|
3 | 3 | [](http://travis-ci.org/watson-developer-cloud/node-sdk) |
4 | 4 | [](https://codecov.io/gh/watson-developer-cloud/node-sdk) |
5 | 5 | [](https://wdc-slack-inviter.mybluemix.net) |
6 | | -[](https://www.npmjs.com/package/watson-developer-cloud) |
7 | | -[](https://www.npmjs.com/package/watson-developer-cloud) |
| 6 | +[](https://www.npmjs.com/package/ibm-watson) |
| 7 | +[](https://www.npmjs.com/package/ibm-watson) |
8 | 8 | [](https://github.com/semantic-release/semantic-release) |
9 | 9 |
|
10 | 10 | Node.js client library to use the Watson APIs. |
@@ -53,7 +53,7 @@ Node.js client library to use the Watson APIs. |
53 | 53 | ## Installation |
54 | 54 |
|
55 | 55 | ```sh |
56 | | -npm install watson-developer-cloud |
| 56 | +npm install ibm-watson |
57 | 57 | ``` |
58 | 58 |
|
59 | 59 | ## Usage |
@@ -115,7 +115,7 @@ The file downloaded will be called `ibm-credentials.env`. This is the name the S |
115 | 115 | As long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following: |
116 | 116 |
|
117 | 117 | ```js |
118 | | -const DiscoveryV1 = require('watson-developer-cloud/discovery/v1'); |
| 118 | +const DiscoveryV1 = require('ibm-watson/discovery/v1'); |
119 | 119 | const discovery = new DiscoveryV1({ version: '2019-02-01' }); |
120 | 120 | ``` |
121 | 121 |
|
@@ -180,7 +180,7 @@ discovery.setAccessToken('<access-token>') |
180 | 180 | ### Username and password |
181 | 181 |
|
182 | 182 | ```javascript |
183 | | -var DiscoveryV1 = require('watson-developer-cloud/discovery/v1'); |
| 183 | +var DiscoveryV1 = require('ibm-watson/discovery/v1'); |
184 | 184 |
|
185 | 185 | var discovery = new DiscoveryV1({ |
186 | 186 | version: '{version}', |
@@ -347,7 +347,7 @@ Note that the token is supplied URL-encoded, and will not be accepted if it is d |
347 | 347 | The Authorization SDK now supports returning IAM Access Tokens when instantiated with an IAM API key. |
348 | 348 |
|
349 | 349 | ```javascript |
350 | | -var watson = require('watson-developer-cloud'); |
| 350 | +var watson = require('ibm-watson'); |
351 | 351 |
|
352 | 352 | // to get an IAM Access Token |
353 | 353 | var authorization = new watson.AuthorizationV1({ |
@@ -389,7 +389,7 @@ Use the [Assistant][conversation] service to determine the intent of a message. |
389 | 389 | Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details. |
390 | 390 |
|
391 | 391 | ```js |
392 | | -var AssistantV2 = require('watson-developer-cloud/assistant/v2'); |
| 392 | +var AssistantV2 = require('ibm-watson/assistant/v2'); |
393 | 393 |
|
394 | 394 | var assistant = new AssistantV2({ |
395 | 395 | username: '<username>', |
@@ -421,7 +421,7 @@ Use the [Assistant][assistant] service to determine the intent of a message. |
421 | 421 | Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details. |
422 | 422 |
|
423 | 423 | ```js |
424 | | -var AssistantV1 = require('watson-developer-cloud/assistant/v1'); |
| 424 | +var AssistantV1 = require('ibm-watson/assistant/v1'); |
425 | 425 |
|
426 | 426 | var assistant = new AssistantV1({ |
427 | 427 | username: '<username>', |
@@ -451,7 +451,7 @@ Use the Compare Comply service to compare and classify documents. |
451 | 451 |
|
452 | 452 | ```javascript |
453 | 453 | const fs = require('fs'); |
454 | | -const CompareComplyV1 = require('watson-developer-cloud/compare-comply/v1'); |
| 454 | +const CompareComplyV1 = require('ibm-watson/compare-comply/v1'); |
455 | 455 |
|
456 | 456 | const compareComply = new CompareComplyV1({ |
457 | 457 | iam_apikey: '<iam_apikey>', |
@@ -484,7 +484,7 @@ compareComply.compareDocuments( |
484 | 484 | Use the [Discovery Service][discovery] to search and analyze structured and unstructured data. |
485 | 485 |
|
486 | 486 | ```javascript |
487 | | -var DiscoveryV1 = require('watson-developer-cloud/discovery/v1'); |
| 487 | +var DiscoveryV1 = require('ibm-watson/discovery/v1'); |
488 | 488 |
|
489 | 489 | var discovery = new DiscoveryV1({ |
490 | 490 | username: '<username>', |
@@ -515,7 +515,7 @@ discovery.query( |
515 | 515 | Translate text from one language to another or idenfity a language using the [Language Translator][language_translator] service. |
516 | 516 |
|
517 | 517 | ```javascript |
518 | | -const LanguageTranslatorV3 = require('watson-developer-cloud/language-translator/v3'); |
| 518 | +const LanguageTranslatorV3 = require('ibm-watson/language-translator/v3'); |
519 | 519 |
|
520 | 520 | const languageTranslator = new LanguageTranslatorV3({ |
521 | 521 | iam_apikey: '<apikey>', |
@@ -557,7 +557,7 @@ languageTranslator.identify( |
557 | 557 | Use [Natural Language Classifier](https://console.bluemix.net/docs/services/natural-language-classifier/getting-started.html) service to create a classifier instance by providing a set of representative strings and a set of one or more correct classes for each as training. Then use the trained classifier to classify your new question for best matching answers or to retrieve next actions for your application. |
558 | 558 |
|
559 | 559 | ```javascript |
560 | | -var NaturalLanguageClassifierV1 = require('watson-developer-cloud/natural-language-classifier/v1'); |
| 560 | +var NaturalLanguageClassifierV1 = require('ibm-watson/natural-language-classifier/v1'); |
561 | 561 |
|
562 | 562 | var classifier = new NaturalLanguageClassifierV1({ |
563 | 563 | username: '<username>', |
@@ -590,7 +590,7 @@ Use Natural Language Understanding is a collection of natural language processin |
590 | 590 |
|
591 | 591 | ```javascript |
592 | 592 | var fs = require('fs'); |
593 | | -var NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-language-understanding/v1.js'); |
| 593 | +var NaturalLanguageUnderstandingV1 = require('ibm-watson/natural-language-understanding/v1.js'); |
594 | 594 |
|
595 | 595 | var nlu = new NaturalLanguageUnderstandingV1({ |
596 | 596 | username: '<username>', |
@@ -624,7 +624,7 @@ Analyze text in English and get a personality profile by using the |
624 | 624 | [Personality Insights][personality_insights] service. |
625 | 625 |
|
626 | 626 | ```javascript |
627 | | -var PersonalityInsightsV3 = require('watson-developer-cloud/personality-insights/v3'); |
| 627 | +var PersonalityInsightsV3 = require('ibm-watson/personality-insights/v3'); |
628 | 628 |
|
629 | 629 | var personalityInsights = new PersonalityInsightsV3({ |
630 | 630 | username: '<username>', |
@@ -655,7 +655,7 @@ personalityInsights.profile( |
655 | 655 | Use the [Speech to Text][speech_to_text] service to recognize the text from a `.wav` file. |
656 | 656 |
|
657 | 657 | ```javascript |
658 | | -var SpeechToTextV1 = require('watson-developer-cloud/speech-to-text/v1'); |
| 658 | +var SpeechToTextV1 = require('ibm-watson/speech-to-text/v1'); |
659 | 659 | var fs = require('fs'); |
660 | 660 |
|
661 | 661 | var speechToText = new SpeechToTextV1({ |
@@ -689,7 +689,7 @@ fs.createReadStream('./resources/speech.wav') |
689 | 689 | Use the [Text to Speech][text_to_speech] service to synthesize text into an audio file. |
690 | 690 |
|
691 | 691 | ```js |
692 | | -var TextToSpeechV1 = require('watson-developer-cloud/text-to-speech/v1'); |
| 692 | +var TextToSpeechV1 = require('ibm-watson/text-to-speech/v1'); |
693 | 693 | var fs = require('fs'); |
694 | 694 |
|
695 | 695 | var textToSpeech = new TextToSpeechV1({ |
@@ -732,7 +732,7 @@ Use the [Tone Analyzer][tone_analyzer] service to analyze the |
732 | 732 | emotion, writing and social tones of a text. |
733 | 733 |
|
734 | 734 | ```js |
735 | | -var ToneAnalyzerV3 = require('watson-developer-cloud/tone-analyzer/v3'); |
| 735 | +var ToneAnalyzerV3 = require('ibm-watson/tone-analyzer/v3'); |
736 | 736 |
|
737 | 737 | var toneAnalyzer = new ToneAnalyzerV3({ |
738 | 738 | username: '<username>', |
@@ -765,7 +765,7 @@ following picture. |
765 | 765 | <img src="https://visual-recognition-demo.ng.bluemix.net/images/samples/5.jpg" /> |
766 | 766 |
|
767 | 767 | ```js |
768 | | -var VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3'); |
| 768 | +var VisualRecognitionV3 = require('ibm-watson/visual-recognition/v3'); |
769 | 769 | var fs = require('fs'); |
770 | 770 |
|
771 | 771 | var visualRecognition = new VisualRecognitionV3({ |
@@ -799,7 +799,7 @@ By default, the library tries to authenticate and will ask for `iam_apikey`, `ia |
799 | 799 | `use_unauthenticated`. |
800 | 800 |
|
801 | 801 | ```javascript |
802 | | -var watson = require('watson-developer-cloud'); |
| 802 | +var watson = require('ibm-watson'); |
803 | 803 |
|
804 | 804 | var assistant = new watson.AssistantV1({ |
805 | 805 | use_unauthenticated: true |
@@ -850,7 +850,7 @@ See [CONTRIBUTING](https://github.com/watson-developer-cloud/node-sdk/blob/maste |
850 | 850 | [language_translator]: https://www.ibm.com/watson/services/language-translator/ |
851 | 851 | [ibm_cloud]: https://console.bluemix.net |
852 | 852 | [watson-dashboard]: https://console.bluemix.net/dashboard/apps?category=watson |
853 | | -[npm_link]: https://www.npmjs.com/package/watson-developer-cloud |
| 853 | +[npm_link]: https://www.npmjs.com/package/ibm-watson |
854 | 854 | [request_github]: https://github.com/request/request |
855 | 855 | [examples]: https://github.com/watson-developer-cloud/node-sdk/tree/master/examples |
856 | 856 | [document_conversion_integration_example]: https://github.com/watson-developer-cloud/node-sdk/tree/master/examples/document_conversion_integration.v1.js |
|
0 commit comments