Skip to content

Commit 9c7bde8

Browse files
committed
feat(IAM): Change iam_api_key to iam_apikey
1 parent c3a6d9a commit 9c7bde8

27 files changed

+136
-136
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ You supply either an IAM service **API key** or an **access token**:
9090
# In the constructor, letting the SDK manage the IAM token
9191
discovery = IBMWatson::DiscoveryV1.new(
9292
version: "2017-10-16",
93-
iam_api_key: "<iam_api_key>",
93+
iam_apikey: "<iam_apikey>",
9494
iam_url: "<iam_url>" # optional - the default value is https://iam.ng.bluemix.net/identity/token
9595
)
9696
```
9797

9898
```ruby
9999
# after instantiation, letting the SDK manage the IAM token
100100
discovery = IBMWatson::DiscoveryV1.new(version: "2017-10-16")
101-
discovery._iam_api_key(iam_api_key: "<iam_api_key>")
101+
discovery._iam_apikey(iam_apikey: "<iam_apikey>")
102102
```
103103

104104
#### Supplying the access token

examples/assistant_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
assistant = AssistantV1(
8-
iam_api_key: "IAM API KEY",
8+
iam_apikey: "IAM API KEY",
99
version: "2018-02-16"
1010
)
1111

examples/discovery_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
discovery = IBMWatson::DiscoveryV1.new(
8-
iam_api_key: "IAM API KEY",
8+
iam_apikey: "IAM API KEY",
99
version: "2018-03-05"
1010
)
1111

examples/language_translator_v3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
version: "2018-05-31",
99
### url is optional, and defaults to the URL below. Use the correct URL for your region.
1010
# url: "https://gateway.watsonplatform.net/language-translator/api",
11-
iam_api_key: "your_api_key"
11+
iam_apikey: "your_api_key"
1212
)
1313

1414
# If you have username & password in your credentials use:

examples/natural_language_classifier_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
natural_language_classifier = IBMWatson::NaturalLanguageClassifierV1.new(
8-
iam_api_key: "IAM API KEY"
8+
iam_apikey: "IAM API KEY"
99
)
1010

1111
# If you have username & password in your credentials use:

examples/natural_language_understanding_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
natural_language_understanding = IBMWatson::NaturalLanguageUnderstandingV1.new(
8-
iam_api_key: "IAM API KEY",
8+
iam_apikey: "IAM API KEY",
99
version: "2018-03-16"
1010
)
1111

examples/personality_insights_v3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# If using IAM
1010
personality_insights = IBMWatson::PersonalityInsightsV3.new(
11-
iam_api_key: "IAM API KEY",
11+
iam_apikey: "IAM API KEY",
1212
version: "2017-10-13"
1313
)
1414

examples/speech_to_text_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
speech_to_text = IBMWatson::SpeechToTextV1.new(
8-
iam_api_key: "IAM API KEY"
8+
iam_apikey: "IAM API KEY"
99
)
1010

1111
# If you have username & password in your credentials use:

examples/text_to_speech_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
text_to_speech = IBMWatson::TextToSpeechV1.new(
8-
iam_api_key: "IAM API KEY"
8+
iam_apikey: "IAM API KEY"
99
)
1010

1111
# If you have username & password in your credentials use:

examples/tone_analyzer_v3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# If using IAM
77
tone_analyzer = ToneAnalyzerV3(
8-
iam_api_key: "IAM API KEY",
8+
iam_apikey: "IAM API KEY",
99
version: "2017-09-21"
1010
)
1111

0 commit comments

Comments
 (0)