Skip to content

Commit 39ebba7

Browse files
committed
docs: update readme
1 parent 112b703 commit 39ebba7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ You supply either an IAM service **API key** or an **access token**:
130130

131131
```ruby
132132
# In the constructor, letting the SDK manage the IAM token
133-
authenticator = IBMWatson::Authenticators::::IamAuthenticator.new(
133+
authenticator = IBMWatson::Authenticators::IamAuthenticator.new(
134134
apikey: "<iam_apikey>",
135135
url: "<iam_url>" # optional - the default value is https://iam.cloud.ibm.com/identity/token
136136
)
@@ -144,7 +144,7 @@ discover.service_url = "<service-url>" # setting service url
144144
#### Supplying the access token
145145

146146
```ruby
147-
authenticator = IBMWatson::Authenticators::::BearerTokenAuthenticator.new(
147+
authenticator = IBMWatson::Authenticators::BearerTokenAuthenticator.new(
148148
bearer_token: "<access_token>"
149149
)
150150
discovery = IBMWatson::DiscoveryV1.new(version: "2017-10-16", authenticator)
@@ -157,7 +157,7 @@ require "ibm_watson"
157157
require "ibm_cloud_sdk_core"
158158
include IBMWatson
159159
# In the constructor
160-
authenticator = IBMWatson::Authenticators::::BasicAuthenticator.new(
160+
authenticator = IBMWatson::Authenticators::BasicAuthenticator.new(
161161
username: "<username>",
162162
password: "<password>"
163163
)
@@ -177,7 +177,7 @@ Requests can be sent asynchronously. There are two asynchronous methods availabl
177177
When `await` is used, the request is made synchronously.
178178

179179
```ruby
180-
authenticator = IBMWatson::Authenticators::::BasicAuthenticator.new(
180+
authenticator = IBMWatson::Authenticators::BasicAuthenticator.new(
181181
username: "<username>",
182182
password: "<password>"
183183
)
@@ -196,7 +196,7 @@ output = future.value # The response is accessible at future.value
196196
When `async` is used, the request is made asynchronously
197197

198198
```ruby
199-
authenticator = IBMWatson::Authenticators::::BasicAuthenticator.new(
199+
authenticator = IBMWatson::Authenticators::BasicAuthenticator.new(
200200
username: "<username>",
201201
password: "<password>"
202202
)
@@ -350,7 +350,7 @@ The SDK will manage the token for the user
350350

351351
```ruby
352352

353-
authenticator = IBMWatson::Authenticators::::CLoudPakForDataAuthenticator.new(
353+
authenticator = IBMWatson::Authenticators::CLoudPakForDataAuthenticator.new(
354354
username: "<username>",
355355
password: "<password>",
356356
url: "<authentication url>",

0 commit comments

Comments
 (0)