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>