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.
Name | Type | Description |
---|---|---|
sessionToken | string | Session token to be set. |
sessionId | string | Session ID to be set. |
This method does not have any options.
This method does not return any values.
The following example sets the sessionData obtained through the generateSession:
client.generateSession().then(function(response){
client.setSessionData(response.data);
});