Skip to content

Commit 9b81639

Browse files
committed
docs: update bearer token example in readme
1 parent 82b99f8 commit 9b81639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ string versionDate = "<service-version-date>";
136136

137137
void TokenExample()
138138
{
139-
// Create authenticator using the IAM apikey
140-
authenticator = new IamAuthenticator(apikey: "<iam-api-key>");
139+
// Create authenticator using the Bearer Token
140+
authenticator = new BearerTokenAuthenticator("<bearer-token>");
141141

142142
assistant = new AssistantService(versionDate, authenticator);
143143
assistant.ListWorkspaces(callback: OnListWorkspaces);
@@ -192,7 +192,7 @@ public IEnumerator ExampleAutoService()
192192

193193
And that's it!
194194

195-
If you're using more than one service at a time in your code and get two different `ibm-authenticator.env` files, just put the contents together in one `ibm-authenticator.env` file and the SDK will handle assigning authenticator to their appropriate services.
195+
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 authenticator to their appropriate services.
196196

197197
If you would like to configure the location/name of your credential file, you can set an environment variable called `IBM_CREDENTIALS_FILE`. **This will take precedence over the locations specified above.** Here's how you can do that:
198198

0 commit comments

Comments
 (0)