Skip to content

Commit d247e01

Browse files
authored
Merge pull request #581 from watson-developer-cloud/fix-base-urls
Fix Default Service URLs
2 parents f51dab2 + 2b6fdc6 commit d247e01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

speech-to-text/v1-generated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class SpeechToTextV1 extends BaseService {
2929
name: string; // set by prototype to 'speech_to_text'
3030
version: string; // set by prototype to 'v1'
3131

32-
static URL: string = 'https://gateway.watsonplatform.net/speech-to-text/api';
32+
static URL: string = 'https://stream.watsonplatform.net/speech-to-text/api';
3333

3434
/**
3535
* Construct a SpeechToTextV1 object.
3636
*
3737
* @param {Object} options - Options for the service.
38-
* @param {String} [options.url] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net/speech-to-text/api'). The base url may differ between Bluemix regions.
38+
* @param {String} [options.url] - The base url to use when contacting the service (e.g. 'https://stream.watsonplatform.net/speech-to-text/api'). The base url may differ between Bluemix regions.
3939
* @param {String} [options.username] - The username used to authenticate with the service. Username and password credentials are only required to run your application locally or outside of Bluemix. When running on Bluemix, the credentials will be automatically loaded from the `VCAP_SERVICES` environment variable.
4040
* @param {String} [options.password] - The password used to authenticate with the service. Username and password credentials are only required to run your application locally or outside of Bluemix. When running on Bluemix, the credentials will be automatically loaded from the `VCAP_SERVICES` environment variable.
4141
* @param {Boolean} [options.use_unauthenticated] - Set to `true` to avoid including an authorization header. This option may be useful for requests that are proxied.

text-to-speech/v1-generated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class TextToSpeechV1 extends BaseService {
2828
name: string; // set by prototype to 'text_to_speech'
2929
version: string; // set by prototype to 'v1'
3030

31-
static URL: string = 'https://gateway.watsonplatform.net/text-to-speech/api';
31+
static URL: string = 'https://stream.watsonplatform.net/text-to-speech/api';
3232

3333
/**
3434
* Construct a TextToSpeechV1 object.
3535
*
3636
* @param {Object} options - Options for the service.
37-
* @param {String} [options.url] - The base url to use when contacting the service (e.g. 'https://gateway.watsonplatform.net/text-to-speech/api'). The base url may differ between Bluemix regions.
37+
* @param {String} [options.url] - The base url to use when contacting the service (e.g. 'https://stream.watsonplatform.net/text-to-speech/api'). The base url may differ between Bluemix regions.
3838
* @param {String} [options.username] - The username used to authenticate with the service. Username and password credentials are only required to run your application locally or outside of Bluemix. When running on Bluemix, the credentials will be automatically loaded from the `VCAP_SERVICES` environment variable.
3939
* @param {String} [options.password] - The password used to authenticate with the service. Username and password credentials are only required to run your application locally or outside of Bluemix. When running on Bluemix, the credentials will be automatically loaded from the `VCAP_SERVICES` environment variable.
4040
* @param {Boolean} [options.use_unauthenticated] - Set to `true` to avoid including an authorization header. This option may be useful for requests that are proxied.

visual-recognition/v3-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VisualRecognitionV3 extends BaseService {
2929
name: string; // set by prototype to 'visual_recognition'
3030
version: string; // set by prototype to 'v3'
3131

32-
static URL: string = 'https://gateway.watsonplatform.net/visual-recognition/api';
32+
static URL: string = 'https://gateway-a.watsonplatform.net/visual-recognition/api';
3333

3434
/**
3535
* Construct a VisualRecognitionV3 object.

0 commit comments

Comments
 (0)