Skip to content

Commit 96e14f6

Browse files
author
Christian Compton
authored
Merge pull request #700 from watson-developer-cloud/README-fix
docs: BearerToken fix
2 parents 94307b3 + 79d89a6 commit 96e14f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ token = iam_token_manager.get_token()
187187
##### Supplying the bearer token
188188
```python
189189
from ibm_watson import DiscoveryV1
190-
from ibm_cloud_sdk_core.authenticators import BearerAuthenticator
190+
from ibm_cloud_sdk_core.authenticators import BearerTokenAuthenticator
191191

192192
# in the constructor, assuming control of managing the token
193-
authenticator = BearerAuthenticator('your bearer token')
193+
authenticator = BearerTokenAuthenticator('your bearer token')
194194
discovery = DiscoveryV1(version='2018-08-01',
195195
authenticator=authenticator)
196196
discovery.set_service_url('<url_as_per_region>')
@@ -247,7 +247,7 @@ The SDK is generated using OpenAPI Specification(OAS3). Changes are basic reorde
247247
The package is renamed to ibm_watson. See the [changelog](https://github.com/watson-developer-cloud/python-sdk/wiki/Changelog) for the details.
248248

249249
## Changes for v4.0
250-
Authenticator variable indicates the type of authentication to be used.
250+
Authenticator variable indicates the type of authentication to be used.
251251

252252
```python
253253
from ibm_watson import AssistantV1
@@ -406,9 +406,9 @@ assistant.set_disable_ssl_verification(True) # MAKE SURE SSL VERIFICATION IS DIS
406406
### 2) Supplying the access token
407407
```python
408408
from ibm_watson import AssistantV1
409-
from ibm_cloud_sdk_core.authenticators import BearerAuthenticator
409+
from ibm_cloud_sdk_core.authenticators import BearerTokenAuthenticator
410410

411-
authenticator = BearerAuthenticator('your managed access token')
411+
authenticator = BearerTokenAuthenticator('your managed access token')
412412
assistant = AssistantV1(version='<version>',
413413
authenticator=authenticator)
414414
assistant.set_service_url('<service url>') # should be of the form https://{icp_cluster_host}/{deployment}/assistant/{instance-id}/api

0 commit comments

Comments
 (0)