GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(versions): Update references to old static version strings · windofthesky/java-sdk@5d926b2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • conversation
    • README.md
  • discovery
    • README.md
  • natural-language-understanding
    • README.md
  • tone-analyzer
    • README.md
  • visual-recognition
    • README.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Override the `configureHttpClient()` method and add the proxy using the `OkHttpC
143143
For example:
144144

145145
```java
146-
Conversation service = new Conversation(Conversation.VERSION_DATE_2017_05_26) {
146+
Conversation service = new Conversation("2018-02-16") {
147147
@Override
148148
protected OkHttpClient configureHttpClient() {
149149
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxyHost", 8080));
@@ -165,7 +165,7 @@ When running in IBM Cloud (or other platforms based on Cloud Foundry), the libra
165165
If you have more than one plan, you can use `CredentialUtils` to get the service credentials for an specific plan.
166166

167167
```java
168-
PersonalityInsights service = new PersonalityInsights();
168+
PersonalityInsights service = new PersonalityInsights("2016-10-19");
169169
String apiKey = CredentialUtils.getAPIKey(service.getName(), CredentialUtils.PLAN_STANDARD);
170170
service.setApiKey(apiKey);
171171
```
@@ -177,7 +177,7 @@ Default headers can be specified at any time by using the `setDefaultHeaders(Map
177177
The example below sends the `X-Watson-Learning-Opt-Out` header in every request preventing Watson from using the payload to improve the service.
178178

179179
```java
180-
PersonalityInsights service = new PersonalityInsights();
180+
PersonalityInsights service = new PersonalityInsights("2016-10-19");
181181

182182
Map<String, String> headers = new HashMap<String, String>();
183183
headers.put(HttpHeaders.X_WATSON_LEARNING_OPT_OUT, 1);
@@ -196,7 +196,7 @@ For example, if you have the conversation service in Germany, the Endpoint may b
196196
You will need to call
197197

198198
```java
199-
Conversation service = new Conversation("<version-date>");
199+
Conversation service = new Conversation("2018-02-16");
200200
service.sentEndPoint("https://gateway-fra.watsonplatform.net/conversation/api")
201201
```
202202

Collapse file

‎conversation/README.md‎

Copy file name to clipboardExpand all lines: conversation/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Use the [Conversation][conversation] service to identify intents, entities, and conduct conversations.
2222

2323
```java
24-
Conversation service = new Conversation(Conversation.VERSION_DATE_2017_05_26);
24+
Conversation service = new Conversation("2018-02-16");
2525
service.setUsernameAndPassword("<username>", "<password>");
2626

2727
InputData input = new InputData.Builder("Hi").build();
Collapse file

‎discovery/README.md‎

Copy file name to clipboardExpand all lines: discovery/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
The [Discovery][discovery] wraps the environment, collection, configuration, document, and query operations of the Discovery service.
2121

2222
```java
23-
Discovery discovery = new Discovery("2017-09-01");
23+
Discovery discovery = new Discovery("2017-11-07");
2424
discovery.setEndPoint("https://gateway.watsonplatform.net/discovery/api/");
2525
discovery.setUsernameAndPassword("<username>", "<password>");
2626

Collapse file

‎natural-language-understanding/README.md‎

Copy file name to clipboardExpand all lines: natural-language-understanding/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ analysis by default, so the results can ignore most advertisements and other unw
2424

2525
```java
2626
NaturalLanguageUnderstanding service = new NaturalLanguageUnderstanding(
27-
NaturalLanguageUnderstanding.VERSION_DATE_2017_02_27,
27+
"2017-02-27",
2828
"username",
2929
"password"
3030
);
Collapse file

‎tone-analyzer/README.md‎

Copy file name to clipboardExpand all lines: tone-analyzer/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Use the [Tone Analyzer][tone_analyzer] service to get the tone of your email.
2121

2222
```java
23-
final String VERSION_DATE = "2016-05-19";
23+
final String VERSION_DATE = "2017-09-21";
2424
ToneAnalyzer service = new ToneAnalyzer(VERSION_DATE);
2525
service.setUsernameAndPassword("<username>", "<password>");
2626

Collapse file

‎visual-recognition/README.md‎

Copy file name to clipboardExpand all lines: visual-recognition/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ following picture.
2323
![Car](https://visual-recognition-demo.ng.bluemix.net/images/samples/5.jpg)
2424

2525
```java
26-
VisualRecognition service = new VisualRecognition(VisualRecognition.VERSION_DATE_2016_05_20);
26+
VisualRecognition service = new VisualRecognition("2016-05-20");
2727
service.setApiKey("<api-key>");
2828

2929
System.out.println("Classify an image");

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.