This version of the API is deprecated.

See auth.accessToken for the current version of this method.

auth.createSession

Creates a session for the API account to work on. The session is valid for 30 minutes if it is not being used.

Request Parameters

API KeyString (required)

Provide your Saplo API key.

Secret KeyString (required)

Provide your Saplo API Secret key.

Response Parameters

Session IDString
Your created session id.

Code Examples

JSON


//Request
{ 
  "method":"auth.createSession",
  "params":["c0fa86e2e57kw780ea20487888c49df0","48dd4e5bd226bd7950fe6fd97c77ebfe"],
  "id":1
}


//Response
{"result":"0F1F36F5E584D0EF842DD943C036590B","id":1}

Notes

  • The session id is used as your identification id in all future calls.
  • The session id will expire after 30 minutes inactivity.