Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

switchvox.users.cookies.getPassword

Description

This method fetches the token that can be set in the Cookie header of HTTPS requests for authentication. 

Example wget request using cookie authentication:

wet --no-check-certificate --cookies=off 
--header="Cookie: extension=101;password=77b3e6926e7295494dd3be91c6934899" 
--header="Content-Type: text/xml" --post-file=request.xml  https://10.10.2.102/xml 
-O response.xml

Arguments

Name

Required

Type

Default

Description

account_id

required

integer

The account of the user

Example 

Request

<request method="switchvox.users.cookies.getPassword">
    <parameters>
        <account_id>1116</account_id>
    </parameters>
</request>

Response

<response method="switchvox.users.cookies.getPassword">
        <result>
                <password cookie="77b3e6926e7295494dd3be91c6934899" />
        </result>
</response>
  • No labels