ibm-iam

Are IBM Watson IAM tokens good for all services or specific to each service, e.g., Speech-to-Text?

走远了吗. 提交于 2020-05-17 03:33:04
问题 IBM's documentation says that the following Node back end code enables you to Use the API key to have the SDK manage the lifecycle of the token. The SDK requests an access token, ensures that the access token is valid, and refreshes it if necessary. const SpeechToTextV1 = require('ibm-watson/speech-to-text/v1'); const { IamAuthenticator } = require('ibm-watson/auth'); const speechToText = new SpeechToTextV1({ authenticator: new IamAuthenticator({ apikey: '{apikey}', }), url: '{url}', }); How