Search…
Token
A token can be used to communicate with the Sentiance API.

Token API

Date
String
boolean
isExpired ()
void
setExpiryDate (Date expiryDate)
void
setTokenId (String tokenId)

getExpiryDate()

1
Date getExpiryDate()
Copied!
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()

1
String getTokenId()
Copied!
Returns the token ID.

isExpired()

1
boolean isExpired()
Copied!
Returns true if the token is expired.

setExpiryDate()

1
void setExpiryDate(Date expiryDate)
Copied!
Sets the token expiryDate
Parameters
expiryDate
A Date object indicating the token expiry date.

setTokenId()

1
void setTokenId(String tokenId)
Copied!
Sets the token ID.
Parameters
tokenId
The token ID.
Last modified 2yr ago