Developers

SetSessionData

Usage

Use this method to set the sessionData that you already obtained.

client.setSessionData({sessionToken:string, sessionId:string});

To obtain the sessionData see the method generateSession.

Mandatory parameters

Name Type Description
sessionToken string Session token to be set.
sessionId string Session ID to be set.

Options

This method does not have any options.

Response data format

This method does not return any values.

Example

The following example sets the sessionData obtained through the generateSession:

client.generateSession().then(function(response){
    client.setSessionData(response.data);
});