Authentication
InitSession
The InitSession method authenticates your account, establishes a secure connection, and provides the session ID required to make other API calls. Call InitSession before doing anything else with the API.
The InitSession method requires your access token and returns a SessionId string. Use this SessionId string to authenticate all other API operations. A SessionId expires after one hour of inactivity.
Input
Parameter | Type | Required / Optional | Available | Comments |
|---|---|---|---|---|
| String | Required | /v1+ |
|
Listing 3-1 InitSession Sample Input
{ |
"method":"InitSession", |
"id":"1000", |
"params":{ |
"accessToken":"1234567890" |
}, |
"jsonrpc":"2.0" |
} |
Output
Parameter | Type | Available | Comments |
|---|---|---|---|
| String | /v1+ |
|
Listing 3-2 InitSession Sample Output
{ "id": "RequestNo-001", |
"result": { |
"SessionId": "44e5b59211ae0da9c9739b0866936ca94301d444" |
}, |
"jsonrpc": "2.0" |
} |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-08-12