- SNML-tester
- API-browser
- Handtekeningtester
- SNML-documenten
- API-documenten
- SNQL-documenten
- SNJS documenten
auth.getSession (socialNetwork.auth.getSession)
The auth.getSession API method is currently in beta and its features, attributes and behavior could change with no notice. We'd appreciate your input while auth.getSession is in beta.
Returns the session of a logged in user after they have confirmed the addition of your application. The Bebo user must go through the authentication process and have chosen to add your application. If this is the case, a session key will be granted for your application.
Example Response:
<auth_getSession_response>
<session_key>YOUR-SESSION-KEY</session_key>
<uid>1</uid>
<expires>0</expires>>
</auth_getSession_response>
Session key expiration
In the case the user did not check the 'keep me logged in to this application' box, your session key will expire two weeks after it was granted. The expires element of the response represents this expiration time as milliseconds since the epoch. A zero value represents a token that will never expire.
Parameters
- String < required> An auth token created by calling auth.createToken
- String < optional> Token type
- String < optional> Referer
- String < optional> Dev Id
Other parameters required to make this API method call
- String < required> The api key of the current app.
- Decimal < required> The sequence number for this request. This must be greater than the value provided for the previous call. Tip: Server time in milliseconds is ideal for this.
- String < required> The signature for the current request.
- String < required> Set this to 1.0 for now.
- String < optional> Response format, accepts XML or JSON, default is XML.
- String < optional> Generates a call to the callback containing the formatted results.