TokenResultCallback
Last updated
Last updated
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.
This interface is used with .
onSuccess()
Called when the Sentiance SDK has a working token (either previously cached or newly obtained).
Parameters |
---|
onFailure()
Called when a token could not be obtained. This can happen if both of the following conditions are met:
The token has expired,
there is no network connection that can be used to get a new token from the Sentiance API.
token | A object containing token ID and expiry date. |