Skip to content

Commit bad726c

Browse files
committed
docs(IAM): update IAM examples in readme
1 parent 14a3c03 commit bad726c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ discovery = IBMWatson::DiscoveryV1.new(
100100
```ruby
101101
# after instantiation, letting the SDK manage the IAM token
102102
discovery = IBMWatson::DiscoveryV1.new(version: "2017-10-16")
103-
discovery._iam_apikey(iam_apikey: "<iam_apikey>")
103+
discovery.iam_apikey(iam_apikey: "<iam_apikey>")
104104
```
105105

106106
#### Supplying the access token
@@ -115,7 +115,7 @@ discovery = IBMWatson::DiscoveryV1.new(
115115
```ruby
116116
# after instantiation, assuming control of managing IAM token
117117
discovery = IBMWatson::DiscoveryV1.new(version: "2017-10-16")
118-
discovery._iam_access_token(iam_access_token: "<access_token>")
118+
discovery.iam_access_token(iam_access_token: "<access_token>")
119119
```
120120

121121
### Username and password

0 commit comments

Comments
 (0)