keepTokenAlive()

Web-method used to extend the life of a security token for the amount of minutes specified in your license record.
This is helpful in situations when your application does not make any calls for certain amount of time but you want to keep your token valid.
Call example:
//
string result = keepTokenAlive(
    string securityToken, 
    string userId, 
    string password, 
    string outputFormat);
//

Request:

Input parameters:
securityToken(string)(required)Token to extend. This must be one you previously got from getSecurityToken() method
userId(string)(required)Login name associated with your license
password(string)(required)Password to acess SageBridge API
outputFormat(string)(optional)Defines a serialization method for APIResponse. Possible values: "XML", "JSON"

Response:

XML or JSON string representing APIResponse structure.

APIResponse payload element may be encrypted and delivered as Base64 string.

Possible return codes:

  • 0 - Success. Description may vary.
  • -1 - General error. Description attribute will show more details about an error.

Notes:

  • For security reasons this method will not return any credentials or license related errors

See Also:

getSecurityToken() , invalidateToken() , APIResponse data