File tree Expand file tree Collapse file tree 8 files changed +14
-14
lines changed
compare-comply/src/main/java/com/ibm/watson/compare_comply/v1
discovery/src/test/java/com/ibm/watson/discovery/v1
natural-language-classifier/src/test/resources/natural_language_classifier
src/test/resources/speech_to_text Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public class CompareComply extends BaseService {
6161 private static final String DEFAULT_SERVICE_NAME = "compare_comply" ;
6262
6363 private static final String DEFAULT_SERVICE_URL =
64- "https://gateway.watsonplatform.net/ compare-comply/api " ;
64+ "https://api.us-south. compare-comply.watson.cloud.ibm.com " ;
6565
6666 private String versionDate ;
6767
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ public boolean ping() throws RuntimeException {
198198 @ Test
199199 public void exampleIsSuccessful () {
200200 // Discovery discovery = new Discovery("2016-12-15");
201- // discovery.setServiceUrl("https://gateway.watsonplatform.net/ discovery/api ");
201+ // discovery.setServiceUrl("https://api.us-south. discovery.watson.cloud.ibm.com ");
202202 // discovery.setUsernameAndPassword("<username>", "<password");
203203 String environmentId = null ;
204204 String configurationId = null ;
@@ -363,7 +363,7 @@ public void badCredentialsThrowsException() {
363363 /** Ping bad url throws exception. */
364364 @ Test (expected = NotFoundException .class )
365365 public void pingBadUrlThrowsException () {
366- discovery .setServiceUrl ("https://gateway.watsonplatform.net/ discovery-foo/api " );
366+ discovery .setServiceUrl ("https://api.us-south. discovery-foo.watson.cloud.ibm.com " );
367367 ping ();
368368 }
369369
Original file line number Diff line number Diff line change 11{
22 "classifier_id" : " 47C164-nlc-243" ,
3- "url" : " https://gateway.watsonplatform.net/ natural-language-classifier/api /v1/classifiers/47C164-nlc-243" ,
3+ "url" : " https://api.us-south. natural-language-classifier.watson.cloud.ibm.com /v1/classifiers/47C164-nlc-243" ,
44 "text" : " is it hot ?" ,
55 "top_class" : " temperature" ,
66 "classes" : [
1313 "confidence" : 0.018102824692296068
1414 }
1515 ]
16- }
16+ }
Original file line number Diff line number Diff line change 11{
22 "classifier_id" : " 10D41B-nlc-1" ,
3- "url" : " https://gateway.watsonplatform.net/ natural-language-classifier/api /v1/classifiers/10D41B-nlc-1" ,
3+ "url" : " https://api.us-south. natural-language-classifier.watson.cloud.ibm.com /v1/classifiers/10D41B-nlc-1" ,
44 "collection" : [ {
55 "text" : " How hot will it be today?" ,
66 "top_class" : " temperature" ,
2222 "confidence" : 0
2323 } ]
2424 } ]
25- }
25+ }
Original file line number Diff line number Diff line change 11{
22 "classifier_id" : " 5E00F7x2-nlc-507" ,
3- "url" : " https://gateway.watsonplatform.net/ natural-language-classifier/api /v1/classifiers/5E00F7x2-nlc-507" ,
3+ "url" : " https://api.us-south. natural-language-classifier.watson.cloud.ibm.com /v1/classifiers/5E00F7x2-nlc-507" ,
44 "name" : " Music controls" ,
55 "language" : " en" ,
66 "created" : " 2015-10-17T20:56:29.974Z"
7- }
7+ }
Original file line number Diff line number Diff line change 22 "classifiers" : [
33 {
44 "classifier_id" : " 47C164-nlc-243" ,
5- "url" : " https://gateway.watsonplatform.net/ natural-language-classifier/api /v1/classifiers/47C164-nlc-243" ,
5+ "url" : " https://api.us-south. natural-language-classifier.watson.cloud.ibm.com /v1/classifiers/47C164-nlc-243" ,
66 "name" : " weather" ,
77 "language" : " en" ,
88 "created" : " 2015-08-24T18:42:25.324Z"
99 },
1010 {
1111 "classifier_id" : " 5E00F7x2-nlc-507" ,
12- "url" : " https://gateway.watsonplatform.net/ natural-language-classifier/api /v1/classifiers/5E00F7x2-nlc-507" ,
12+ "url" : " https://api.us-south. natural-language-classifier.watson.cloud.ibm.com /v1/classifiers/5E00F7x2-nlc-507" ,
1313 "name" : " Music controls" ,
1414 "language" : " en" ,
1515 "created" : " 2015-10-17T20:56:29.974Z"
1616 }
1717 ]
18- }
18+ }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ System.out.println(transcript);
3939
4040#### WebSocket support
4141
42- Speech to Text supports WebSocket, the url is: ` wss://stream.watsonplatform.net/ speech-to-text/api /v1/recognize `
42+ Speech to Text supports WebSocket, the url is: ` wss://api.us-south. speech-to-text.watson.cloud.ibm.com /v1/recognize `
4343
4444``` java
4545Authenticator authenticator = new IamAuthenticator (" <iam_api_key>" );
Original file line number Diff line number Diff line change 88 "id" : " 2d0ef860-872e-11e6-90d3-5f28bc58ceb2" ,
99 "status" : " processing" ,
1010 "created" : " 2016-09-30T16:51:47.558" ,
11- "url" : " https://stream.watsonplatform.net/ speech-to-text/api /v1/recognitions/2d0ef860-872e-11e6-90d3-5f28bc58ceb2"
11+ "url" : " https://api.us-south. speech-to-text.watson.cloud.ibm.com /v1/recognitions/2d0ef860-872e-11e6-90d3-5f28bc58ceb2"
1212 }, {
1313 "id" : " 2d0ef860-872e-11e6-90d3-5f28bc58ceb2" ,
1414 "results" : [{
You can’t perform that action at this time.
0 commit comments