Skip to content

Commit 49e2c5a

Browse files
authored
chore: update gateway urls [skip ci] (#1070)
1 parent 4c4feae commit 49e2c5a

File tree

21 files changed

+33
-33
lines changed

21 files changed

+33
-33
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
468468

469469
const assistant = new AssistantV2({
470470
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
471-
serviceUrl: 'https://gateway.watsonplatform.net/assistant/api/',
471+
serviceUrl: 'https://api.us-south.assistant.watson.cloud.ibm.com',
472472
version: '2018-09-19'
473473
});
474474

@@ -498,7 +498,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
498498

499499
const assistant = new AssistantV1({
500500
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
501-
serviceUrl: 'https://gateway.watsonplatform.net/assistant/api/',
501+
serviceUrl: 'https://api.us-south.assistant.watson.cloud.ibm.com',
502502
version: '2018-02-16'
503503
});
504504

@@ -526,7 +526,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
526526

527527
const compareComply = new CompareComplyV1({
528528
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
529-
serviceUrl: 'https://gateway.watsonplatform.net/compare-comply/api',
529+
serviceUrl: 'https://api.us-south.compare-comply.watson.cloud.ibm.com',
530530
version: '2018-12-06'
531531
});
532532

@@ -557,7 +557,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
557557

558558
const discovery = new DiscoveryV1({
559559
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
560-
serviceUrl: 'https://gateway.watsonplatform.net/discovery/api/',
560+
serviceUrl: 'https://api.us-south.discovery.watson.cloud.ibm.com',
561561
version: '2017-09-01'
562562
});
563563

@@ -585,7 +585,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
585585

586586
const languageTranslator = new LanguageTranslatorV3({
587587
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
588-
serviceUrl: 'https://gateway.watsonplatform.net/language-translator/api/',
588+
serviceUrl: 'https://api.us-south.language-translator.watson.cloud.ibm.com',
589589
version: 'YYYY-MM-DD',
590590
});
591591

@@ -625,7 +625,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
625625

626626
const classifier = new NaturalLanguageClassifierV1({
627627
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
628-
serviceUrl: 'https://gateway.watsonplatform.net/natural-language-classifier/api/'
628+
serviceUrl: 'https://api.us-south.natural-language-classifier.watson.cloud.ibm.com'
629629
});
630630

631631
classifier.classify(
@@ -656,7 +656,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
656656
const nlu = new NaturalLanguageUnderstandingV1({
657657
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
658658
version: '2018-04-05',
659-
serviceUrl: 'https://gateway.watsonplatform.net/natural-language-understanding/api/'
659+
serviceUrl: 'https://api.us-south.natural-language-understanding.watson.cloud.ibm.com'
660660
});
661661

662662
nlu.analyze(
@@ -688,7 +688,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
688688
const personalityInsights = new PersonalityInsightsV3({
689689
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
690690
version: '2016-10-19',
691-
serviceUrl: 'https://gateway.watsonplatform.net/personality-insights/api/'
691+
serviceUrl: 'https://api.us-south.personality-insights.watson.cloud.ibm.com'
692692
});
693693

694694
personalityInsights.profile(
@@ -717,7 +717,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
717717

718718
const speechToText = new SpeechToTextV1({
719719
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
720-
serviceUrl: 'https://stream.watsonplatform.net/speech-to-text/api/'
720+
serviceUrl: 'https://api.us-south.speech-to-text.watson.cloud.ibm.com'
721721
});
722722

723723
const params = {
@@ -752,7 +752,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
752752

753753
const textToSpeech = new TextToSpeechV1({
754754
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
755-
serviceUrl: 'https://stream.watsonplatform.net/text-to-speech/api/'
755+
serviceUrl: 'https://api.us-south.text-to-speech.watson.cloud.ibm.com'
756756
});
757757

758758
const params = {
@@ -800,7 +800,7 @@ const { IamAuthenticator } = require('ibm-watson/auth');
800800
const toneAnalyzer = new ToneAnalyzerV3({
801801
authenticator: new IamAuthenticator({ apikey: '<apikey>' }),
802802
version: '2016-05-19',
803-
serviceUrl: 'https://gateway.watsonplatform.net/tone-analyzer/api/'
803+
serviceUrl: 'https://api.us-south.tone-analyzer.watson.cloud.ibm.com'
804804
});
805805

806806
toneAnalyzer.tone(

assistant/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AssistantV1 extends BaseService {
4141
* programmatically specify the current date at runtime, in case the API has been updated since your application's
4242
* release. Instead, specify a version date that is compatible with your application, and don't change it until your
4343
* application is ready for a later version.
44-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net'). The base url may differ between IBM Cloud regions.
44+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
4545
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
4646
* @param {string} [options.serviceName] - The name of the service to configure
4747
* @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service. Defaults to environment if not set

assistant/v2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class AssistantV2 extends BaseService {
4242
* programmatically specify the current date at runtime, in case the API has been updated since your application's
4343
* release. Instead, specify a version date that is compatible with your application, and don't change it until your
4444
* application is ready for a later version.
45-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net'). The base url may differ between IBM Cloud regions.
45+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
4646
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
4747
* @param {string} [options.serviceName] - The name of the service to configure
4848
* @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service. Defaults to environment if not set

authorization/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Authenticator, BaseService, TokenRequestBasedAuthenticator, UserOptions
1919
import url = require('url');
2020

2121
class AuthorizationV1 extends BaseService {
22-
static URL: string = 'https://stream.watsonplatform.net/authorization/api';
22+
static URL: string = 'https://api.us-south.speech-to-text.watson.cloud.ibm.com/authorization/api';
2323
name: string; // set by prototype to 'authorization'
2424
serviceVersion: string; // set by prototype to 'v1'
2525
// tslint:disable-next-line:variable-name

compare-comply/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CompareComplyV1 extends BaseService {
3939
* programmatically specify the current date at runtime, in case the API has been updated since your application's
4040
* release. Instead, specify a version date that is compatible with your application, and don't change it until your
4141
* application is ready for a later version.
42-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net'). The base url may differ between IBM Cloud regions.
42+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
4343
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
4444
* @param {string} [options.serviceName] - The name of the service to configure
4545
* @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service. Defaults to environment if not set

discovery/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class DiscoveryV1 extends BaseService {
4141
* programmatically specify the current date at runtime, in case the API has been updated since your application's
4242
* release. Instead, specify a version date that is compatible with your application, and don't change it until your
4343
* application is ready for a later version.
44-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net'). The base url may differ between IBM Cloud regions.
44+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
4545
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
4646
* @param {string} [options.serviceName] - The name of the service to configure
4747
* @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service. Defaults to environment if not set

discovery/v2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class DiscoveryV2 extends BaseService {
4141
* programmatically specify the current date at runtime, in case the API has been updated since your application's
4242
* release. Instead, specify a version date that is compatible with your application, and don't change it until your
4343
* application is ready for a later version.
44-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net'). The base url may differ between IBM Cloud regions.
44+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
4545
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
4646
* @param {string} [options.serviceName] - The name of the service to configure
4747
* @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service. Defaults to environment if not set

examples/browserify/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
TONE_ANALYZER_APIKEY=kcLLX123ghgjVSdM9Basdadasda90IesOrCIywWr0rNLo
2-
TONE_ANALYZER_URL=https://gateway-wdc.watsonplatform.net/tone-analyzer/api
2+
TONE_ANALYZER_URL=https://api.us-east.tone-analyzer.watson.cloud.ibm.com

examples/webpack/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
TONE_ANALYZER_APIKEY=kcLLX123ghgjVSdM9Basdadasda90IesOrCIywWr0rNLo
2-
TONE_ANALYZER_URL=https://gateway-wdc.watsonplatform.net/tone-analyzer/api
2+
TONE_ANALYZER_URL=https://api.us-east.tone-analyzer.watson.cloud.ibm.com

language-translator/v3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class LanguageTranslatorV3 extends BaseService {
4141
* programmatically specify the current date at runtime, in case the API has been updated since your application's
4242
* release. Instead, specify a version date that is compatible with your application, and don't change it until your
4343
* application is ready for a later version.
44-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net'). The base url may differ between IBM Cloud regions.
44+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
4545
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
4646
* @param {string} [options.serviceName] - The name of the service to configure
4747
* @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service. Defaults to environment if not set

0 commit comments

Comments
 (0)