session.open_session
Note
This document has been machine translated.
Start a new session.
Parameters
- expires_in:
integer-- Duration of session (in seconds). This item is optional. If omitted, the expiration time is 30 days (2,592,000 seconds).
Return Values
- access_token:
string-- Session token. While the session is active, you can use various APIs by specifying the session token. - expires_in:
integer-- Duration of session in seconds.
Execution example
Request Data
{
"id": 1,
"jsonrpc": "2.0",
"method": "session.open_session",
"params": {
}
}
Request Execution
curl -H "Content-type: application/json" \
-H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
-H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
-X POST -d "@request.json" \
https://localhost/api/v2/session/jsonrpc
Response
{
"result": {
"access_token": "00890640-ec03-4663-82ce-456ea993807d",
"expires_in": 2592000
},
"id": 1,
"jsonrpc": "2.0"
}