Token
Last updated
A token can be used to communicate with the Sentiance API.
getExpiryDate()Date getExpiryDate()Returns a
Dateobject 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()String getTokenId()Returns the token ID.
isExpired()boolean isExpired()Returns true if the token is expired.
setExpiryDate()void setExpiryDate(Date expiryDate)Sets the token expiryDate
expiryDate
A Date object indicating the token expiry date.
setTokenId()Sets the token ID.
tokenId
The token ID.
Last updated
void setTokenId(String tokenId)