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

0 commit comments

Comments
 (0)