You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ The file downloaded will be called `ibm-credentials.env`. This is the name the S
124
124
As long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following:
125
125
126
126
```python
127
-
discovery = DiscoveryV1(version='2018-08-01')
127
+
discovery = DiscoveryV1(version='2019-04-30')
128
128
```
129
129
130
130
And that's it!
@@ -175,7 +175,7 @@ from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
175
175
# In the constructor, letting the SDK manage the token
176
176
authenticator = IAMAuthenticator('apikey',
177
177
url='<iam_url>') # optional - the default value is https://iam.cloud.ibm.com/identity/token
178
-
discovery = DiscoveryV1(version='2018-08-01',
178
+
discovery = DiscoveryV1(version='2019-04-30',
179
179
authenticator=authenticator)
180
180
discovery.set_service_url('<url_as_per_region>')
181
181
```
@@ -196,7 +196,7 @@ from ibm_cloud_sdk_core.authenticators import BearerTokenAuthenticator
196
196
197
197
# in the constructor, assuming control of managing the token
0 commit comments