Skip to content

Commit a576db3

Browse files
authored
Merge pull request #760 from jsstylos/master
Update README.md with latest Discovery date
2 parents bceece8 + 87d2aa8 commit a576db3

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
@@ -124,7 +124,7 @@ The file downloaded will be called `ibm-credentials.env`. This is the name the S
124124
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:
125125

126126
```python
127-
discovery = DiscoveryV1(version='2018-08-01')
127+
discovery = DiscoveryV1(version='2019-04-30')
128128
```
129129

130130
And that's it!
@@ -175,7 +175,7 @@ from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
175175
# In the constructor, letting the SDK manage the token
176176
authenticator = IAMAuthenticator('apikey',
177177
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',
179179
authenticator=authenticator)
180180
discovery.set_service_url('<url_as_per_region>')
181181
```
@@ -196,7 +196,7 @@ from ibm_cloud_sdk_core.authenticators import BearerTokenAuthenticator
196196

197197
# in the constructor, assuming control of managing the token
198198
authenticator = BearerTokenAuthenticator('your bearer token')
199-
discovery = DiscoveryV1(version='2018-08-01',
199+
discovery = DiscoveryV1(version='2019-04-30',
200200
authenticator=authenticator)
201201
discovery.set_service_url('<url_as_per_region>')
202202
```
@@ -207,7 +207,7 @@ from ibm_watson import DiscoveryV1
207207
from ibm_cloud_sdk_core.authenticators import BasicAuthenticator
208208

209209
authenticator = BasicAuthenticator('username', 'password')
210-
discovery = DiscoveryV1(version='2018-08-01', authenticator=authenticator)
210+
discovery = DiscoveryV1(version='2019-04-30', authenticator=authenticator)
211211
discovery.set_service_url('<url_as_per_region>')
212212
```
213213

@@ -217,7 +217,7 @@ from ibm_watson import DiscoveryV1
217217
from ibm_cloud_sdk_core.authenticators import NoAuthAuthenticator
218218

219219
authenticator = NoAuthAuthenticator()
220-
discovery = DiscoveryV1(version='2018-08-01', authenticator=authenticator)
220+
discovery = DiscoveryV1(version='2019-04-30', authenticator=authenticator)
221221
discovery.set_service_url('<url_as_per_region>')
222222
```
223223

0 commit comments

Comments
 (0)