Token
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
A token can be used to communicate with the Sentiance API.
Token API
getExpiryDate()
getExpiryDate()
Returns a
Date
object indicating the token expiry date.The SDK will always attempt to return a valid token, granted proper network connectivity exists to allow token refresh.
getTokenId()
getTokenId()
Returns the token ID.
isExpired()
isExpired()
Returns true if the token is expired.
setExpiryDate()
setExpiryDate()
Sets the token expiryDate
Parameters | |
---|---|
expiryDate |
setTokenId()
setTokenId()
Sets the token ID.
Parameters | |
---|---|
tokenId | The token ID. |
Last updated