![]() For example, using your favourite terminal, you can set environment variables for Assistant service instance: export ASSISTANT_APIKEY = "" export ASSISTANT_AUTH_TYPE = "iam" Simply set the environment variables using _ syntax. Where is something like /home/user/Downloads/.env. Here's how you can do that: export IBM_CREDENTIALS_FILE = "" This will take precedence over the locations specified above. If you would like to configure the location/name of your credential file, you can set an environment variable called IBM_CREDENTIALS_FILE. If you're using more than one service at a time in your code and get two different ibm-credentials.env files, just put the contents together in one ibm-credentials.env file and the SDK will handle assigning credentials to their appropriate services. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following: discovery = DiscoveryV1 ( version = '' )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |