In the IBM Watson Unity SDK, using the IamAuthenticator
to initialize a Watson Service with your API Key generates a token that is then used by the service to make IBM Watson API requests. Do these tokens expire?
I know a new token must be requested every hour using the IBM Watson Node SDK in combination with a browser app, but does the IamAuthenticator
not take care of refreshing the tokens for you in the Unity SDK? If not, how would I go about refreshing the token every hour, do I just create a new Authenticator
object every time and thus a new service object? Or is there a utility method for this?
The documentation for this SDK is not very good, would appreciate if someone pointed me in the right direction for this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.