Skip to content

Commit c8227be

Browse files
committed
updating readme to include using statements per feedback
1 parent 9607c0c commit c8227be

File tree

15 files changed

+120
-30
lines changed

15 files changed

+120
-30
lines changed

Scripts/Services/AlchemyAPI/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ The [AlchemyLanguage API][alchemy-api] uses natural language processing technolo
66
### Instantiating and authenticating the service
77
Before you can send requests to the service it must be instantiated and credentials must be set.
88
```cs
9-
Credentials credentials = new Credentials(<apikey>, <url>);
10-
AlchemyAPI _alchemyApi = new AlchemyAPI(credentials);
9+
using IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1;
10+
using IBM.Watson.DeveloperCloud.Utilities;
11+
12+
void Start()
13+
{
14+
Credentials credentials = new Credentials(<apikey>, <url>);
15+
AlchemyAPI _alchemyApi = new AlchemyAPI(credentials);
16+
}
1117
```
1218

1319
### Get Authors

Scripts/Services/Conversation/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ You complete these steps to implement your application:
1212
### Instantiating and authenticating the service
1313
Before you can send requests to the service it must be instantiated and credentials must be set.
1414
```cs
15-
Credentials credentials = new Credentials(<username>, <password>, <url>);
16-
Conversation _conversation = new Conversation(credentials);
15+
using IBM.Watson.DeveloperCloud.Services.Conversation.v1;
16+
using IBM.Watson.DeveloperCloud.Utilities;
17+
18+
void Start()
19+
{
20+
Credentials credentials = new Credentials(<username>, <password>, <url>);
21+
Conversation _conversation = new Conversation(credentials);
22+
}
1723
```
1824

1925
### Message

Scripts/Services/Discovery/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ The IBM Watson™ [Discovery][discovery] Service uses data analysis combined wit
77
### Instantiating and authenticating the service
88
Before you can send requests to the service it must be instantiated and credentials must be set.
99
```cs
10-
Credentials credentials = new Credentials(<username>, <password>, <url>);
11-
Discovery _discovery = new Discovery(credentials);
10+
using IBM.Watson.DeveloperCloud.Services.Discovery.v1;
11+
using IBM.Watson.DeveloperCloud.Utilities;
12+
13+
void Start()
14+
{
15+
Credentials credentials = new Credentials(<username>, <password>, <url>);
16+
Discovery _discovery = new Discovery(credentials);
17+
}
1218
```
1319

1420

Scripts/Services/DocumentConversion/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Convert a document into an easily ingestible format.
88
### Instantiating and authenticating the service
99
Before you can send requests to the service it must be instantiated and credentials must be set.
1010
```cs
11-
Credentials credentials = new Credentials(<username>, <password>, <url>);
12-
DocumentConversion _documentConversion = new DocumentConversion(credentials);
11+
using IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1;
12+
using IBM.Watson.DeveloperCloud.Utilities;
13+
14+
void Start()
15+
{
16+
Credentials credentials = new Credentials(<username>, <password>, <url>);
17+
DocumentConversion _documentConversion = new DocumentConversion(credentials);
18+
}
1319
```
1420

1521
### Converting Documents

Scripts/Services/LanguageTranslation/v2/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Select a domain, then identify or select the language of text, and then translat
88
### Instantiating and authenticating the service
99
Before you can send requests to the service it must be instantiated and credentials must be set.
1010
```cs
11-
Credentials credentials = new Credentials(<username>, <password>, <url>);
12-
LanguageTranslation _languageTranslation = new LanguageTranslation(credentials);
11+
using IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2;
12+
using IBM.Watson.DeveloperCloud.Utilities;
13+
14+
void Start()
15+
{
16+
Credentials credentials = new Credentials(<username>, <password>, <url>);
17+
LanguageTranslation _languageTranslation = new LanguageTranslation(credentials);
18+
}
1319
```
1420

1521

Scripts/Services/LanguageTranslator/v2/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Select a domain, then identify or select the language of text, and then translat
88
### Instantiating and authenticating the service
99
Before you can send requests to the service it must be instantiated and credentials must be set.
1010
```cs
11-
Credentials credentials = new Credentials(<username>, <password>, <url>);
12-
LanguageTranslator _languageTranslator = new LanguageTranslator(credentials);
11+
using IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2;
12+
using IBM.Watson.DeveloperCloud.Utilities;
13+
14+
void Start()
15+
{
16+
Credentials credentials = new Credentials(<username>, <password>, <url>);
17+
LanguageTranslator _languageTranslator = new LanguageTranslator(credentials);
18+
}
1319
```
1420

1521

Scripts/Services/NaturalLanguageClassifier/v2/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Classify intents in natural language.
88
### Instantiating and authenticating the service
99
Before you can send requests to the service it must be instantiated and credentials must be set.
1010
```cs
11-
Credentials credentials = new Credentials(<username>, <password>, <url>);
12-
NaturalLanguageClassifier _naturalLanguageClassifier = new NaturalLanguageClassifier(credentials);
11+
using IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v2;
12+
using IBM.Watson.DeveloperCloud.Utilities;
13+
14+
void Start()
15+
{
16+
Credentials credentials = new Credentials(<username>, <password>, <url>);
17+
NaturalLanguageClassifier _naturalLanguageClassifier = new NaturalLanguageClassifier(credentials);
18+
}
1319
```
1420

1521
### Listing Classifiers

Scripts/Services/NaturalLanguageUnderstanding/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ You can create [custom models][custom_models] with Watson Knowledge Studio that
1010
### Instantiating and authenticating the service
1111
Before you can send requests to the service it must be instantiated and credentials must be set.
1212
```cs
13-
Credentials credentials = new Credentials(<username>, <password>, <url>);
14-
NaturalLanguageUnderstanding _naturalLanguageUnderstanding = new NaturalLanguageUnderstanding(credentials);
13+
using IBM.Watson.DeveloperCloud.Services.NaturalLanguageUnderstanding.v2;
14+
using IBM.Watson.DeveloperCloud.Utilities;
15+
16+
void Start()
17+
{
18+
Credentials credentials = new Credentials(<username>, <password>, <url>);
19+
NaturalLanguageUnderstanding _naturalLanguageUnderstanding = new NaturalLanguageUnderstanding(credentials);
20+
}
1521
```
1622

1723
### Analyze

Scripts/Services/PersonalityInsights/v3/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ The service offers a single `profile` method that accepts up to 20 MB of input d
1212
### Instantiating and authenticating the service
1313
Before you can send requests to the service it must be instantiated and credentials must be set.
1414
```cs
15-
Credentials credentials = new Credentials(<username>, <password>, <url>);
16-
PersonalityInsights _personalityInsights = new PersonalityInsights(credentials);
15+
using IBM.Watson.DeveloperCloud.Services.PersonalityInsights.v3;
16+
using IBM.Watson.DeveloperCloud.Utilities;
17+
18+
void Start()
19+
{
20+
Credentials credentials = new Credentials(<username>, <password>, <url>);
21+
PersonalityInsights _personalityInsights = new PersonalityInsights(credentials);
22+
}
1723
```
1824

1925
### Profile

Scripts/Services/RetrieveAndRank/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Ingest documents and query the document corpus.
88
### Instantiating and authenticating the service
99
Before you can send requests to the service it must be instantiated and credentials must be set.
1010
```cs
11-
Credentials credentials = new Credentials(<username>, <password>, <url>);
12-
RetrieveAndRank _retrieveAndRank = new RetrieveAndRank(credentials);
11+
using IBM.Watson.DeveloperCloud.Services.RetrieveAndRank.v1;
12+
using IBM.Watson.DeveloperCloud.Utilities;
13+
14+
void Start()
15+
{
16+
Credentials credentials = new Credentials(<username>, <password>, <url>);
17+
RetrieveAndRank _retrieveAndRank = new RetrieveAndRank(credentials);
18+
}
1319
```
1420

1521

Scripts/Services/SpeechToText/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ The Speech to Text API consists of the following groups of related calls:
2424
### Instantiating and authenticating the service
2525
Before you can send requests to the service it must be instantiated and credentials must be set.
2626
```cs
27-
Credentials credentials = new Credentials(<username>, <password>, <url>);
28-
SpeechToText _speechToText = new SpeechToText(credentials);
27+
using IBM.Watson.DeveloperCloud.Services.SpeechToText.v1;
28+
using IBM.Watson.DeveloperCloud.Utilities;
29+
30+
void Start()
31+
{
32+
Credentials credentials = new Credentials(<username>, <password>, <url>);
33+
SpeechToText _speechToText = new SpeechToText(credentials);
34+
}
2935
```
3036

3137
### Get models

Scripts/Services/TextToSpeech/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ For more information about customization and about sounds-like and phonetic tran
4343
### Instantiating and authenticating the service
4444
Before you can send requests to the service it must be instantiated and credentials must be set.
4545
```cs
46-
Credentials credentials = new Credentials(<username>, <password>, <url>);
47-
TextToSpeech _textToSpeech = new TextToSpeech(credentials);
46+
using IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1;
47+
using IBM.Watson.DeveloperCloud.Utilities;
48+
49+
void Start()
50+
{
51+
Credentials credentials = new Credentials(<username>, <password>, <url>);
52+
TextToSpeech _textToSpeech = new TextToSpeech(credentials);
53+
}
4854
```
4955

5056

Scripts/Services/ToneAnalyzer/v3/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Use [Tone Analyzer][tone-analyzer] to detect three types of tones from written t
88
### Instantiating and authenticating the service
99
Before you can send requests to the service it must be instantiated and credentials must be set.
1010
```cs
11-
Credentials credentials = new Credentials(<username>, <password>, <url>);
12-
ToneAnalyzer _toneAnalyzer = new ToneAnalyzer(credentials);
11+
using IBM.Watson.DeveloperCloud.Services.ToneAnalyzer.v1;
12+
using IBM.Watson.DeveloperCloud.Utilities;
13+
14+
void Start()
15+
{
16+
Credentials credentials = new Credentials(<username>, <password>, <url>);
17+
ToneAnalyzer _toneAnalyzer = new ToneAnalyzer(credentials);
18+
}
1319
```
1420

1521

Scripts/Services/TradeoffAnalytics/v1/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ The IBM Watson™ Tradeoff Analytics service helps people make better choices wh
1010
### Instantiating and authenticating the service
1111
Before you can send requests to the service it must be instantiated and credentials must be set.
1212
```cs
13-
Credentials credentials = new Credentials(<username>, <password>, <url>);
14-
TradeoffAnalytics _tradeoffAnalytics = new TradeoffAnalytics(credentials);
13+
using IBM.Watson.DeveloperCloud.Services.TradeoffAnalytics.v1;
14+
using IBM.Watson.DeveloperCloud.Utilities;
15+
16+
void Start()
17+
{
18+
Credentials credentials = new Credentials(<username>, <password>, <url>);
19+
TradeoffAnalytics _tradeoffAnalytics = new TradeoffAnalytics(credentials);
20+
}
1521
```
1622

1723
### Get dillema

Scripts/Services/VisualRecognition/v3/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ The IBM Watson™ [Visual Recognition][visual-recognition] service uses deep lea
77
### Instantiating and authenticating the service
88
Before you can send requests to the service it must be instantiated and api key must be set.
99
```cs
10-
Credentials credentials = new Credentials(<username>, <password>, <url>);
11-
VisualRecognition _visualRecognition = new VisualRecognition(credentials);
10+
using IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3;
11+
using IBM.Watson.DeveloperCloud.Utilities;
12+
13+
void Start()
14+
{
15+
Credentials credentials = new Credentials(<username>, <password>, <url>);
16+
VisualRecognition _visualRecognition = new VisualRecognition(credentials);
17+
}
1218
```
1319

1420
### Classify an image

0 commit comments

Comments
 (0)