GeezerVison is showing github.com — docs(versions): Update references to old static version strings · windofthesky/java-sdk@5d926b2
File treeExpand file treeCollapse file tree Open diff view settings natural-language-understanding
Expand file treeCollapse file tree Open diff view settings Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -143,7 +143,7 @@ Override the `configureHttpClient()` method and add the proxy using the `OkHttpC | 143 | 143 | For example: | 144 | 144 |
| 145 | 145 | ```java | 146 | | -Conversation service = new Conversation(Conversation.VERSION_DATE_2017_05_26) { | | 146 | +Conversation service = new Conversation("2018-02-16") { | 147 | 147 | @Override | 148 | 148 | protected OkHttpClient configureHttpClient() { | 149 | 149 | 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 | 165 | 165 | If you have more than one plan, you can use `CredentialUtils` to get the service credentials for an specific plan. | 166 | 166 |
| 167 | 167 | ```java | 168 | | -PersonalityInsights service = new PersonalityInsights(); | | 168 | +PersonalityInsights service = new PersonalityInsights("2016-10-19"); | 169 | 169 | String apiKey = CredentialUtils.getAPIKey(service.getName(), CredentialUtils.PLAN_STANDARD); | 170 | 170 | service.setApiKey(apiKey); | 171 | 171 | ``` | @@ -177,7 +177,7 @@ Default headers can be specified at any time by using the `setDefaultHeaders(Map | 177 | 177 | The example below sends the `X-Watson-Learning-Opt-Out` header in every request preventing Watson from using the payload to improve the service. | 178 | 178 |
| 179 | 179 | ```java | 180 | | -PersonalityInsights service = new PersonalityInsights(); | | 180 | +PersonalityInsights service = new PersonalityInsights("2016-10-19"); | 181 | 181 |
| 182 | 182 | Map<String, String> headers = new HashMap<String, String>(); | 183 | 183 | 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 | 196 | 196 | You will need to call | 197 | 197 |
| 198 | 198 | ```java | 199 | | -Conversation service = new Conversation("<version-date>"); | | 199 | +Conversation service = new Conversation("2018-02-16"); | 200 | 200 | service.sentEndPoint("https://gateway-fra.watsonplatform.net/conversation/api") | 201 | 201 | ``` | 202 | 202 |
| |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 21 | 21 | Use the [Conversation][conversation] service to identify intents, entities, and conduct conversations. | 22 | 22 |
| 23 | 23 | ```java | 24 | | -Conversation service = new Conversation(Conversation.VERSION_DATE_2017_05_26); | | 24 | +Conversation service = new Conversation("2018-02-16"); | 25 | 25 | service.setUsernameAndPassword("<username>", "<password>"); | 26 | 26 |
| 27 | 27 | InputData input = new InputData.Builder("Hi").build(); | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 20 | 20 | The [Discovery][discovery] wraps the environment, collection, configuration, document, and query operations of the Discovery service. | 21 | 21 |
| 22 | 22 | ```java | 23 | | -Discovery discovery = new Discovery("2017-09-01"); | | 23 | +Discovery discovery = new Discovery("2017-11-07"); | 24 | 24 | discovery.setEndPoint("https://gateway.watsonplatform.net/discovery/api/"); | 25 | 25 | discovery.setUsernameAndPassword("<username>", "<password>"); | 26 | 26 |
| |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ analysis by default, so the results can ignore most advertisements and other unw | 24 | 24 |
| 25 | 25 | ```java | 26 | 26 | NaturalLanguageUnderstanding service = new NaturalLanguageUnderstanding( | 27 | | - NaturalLanguageUnderstanding.VERSION_DATE_2017_02_27, | | 27 | + "2017-02-27", | 28 | 28 | "username", | 29 | 29 | "password" | 30 | 30 | ); | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 20 | 20 | Use the [Tone Analyzer][tone_analyzer] service to get the tone of your email. | 21 | 21 |
| 22 | 22 | ```java | 23 | | -final String VERSION_DATE = "2016-05-19"; | | 23 | +final String VERSION_DATE = "2017-09-21"; | 24 | 24 | ToneAnalyzer service = new ToneAnalyzer(VERSION_DATE); | 25 | 25 | service.setUsernameAndPassword("<username>", "<password>"); | 26 | 26 |
| |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ following picture. | 23 | 23 |  | 24 | 24 |
| 25 | 25 | ```java | 26 | | -VisualRecognition service = new VisualRecognition(VisualRecognition.VERSION_DATE_2016_05_20); | | 26 | +VisualRecognition service = new VisualRecognition("2016-05-20"); | 27 | 27 | service.setApiKey("<api-key>"); | 28 | 28 |
| 29 | 29 | System.out.println("Classify an image"); | |
|