https://github.com/horeaporutiu/rest-api-tutorial-ibm-watson
Code based on Youtube Tutorial (Link attached). Learn to use Watson conversation, language translation, and tone analyzer. - Discovery coming soon :)
https://github.com/horeaporutiu/rest-api-tutorial-ibm-watson
language-translation language-translator-api node tone-analyzer tutorial watson-api
Last synced: 2 months ago
JSON representation
Code based on Youtube Tutorial (Link attached). Learn to use Watson conversation, language translation, and tone analyzer. - Discovery coming soon :)
- Host: GitHub
- URL: https://github.com/horeaporutiu/rest-api-tutorial-ibm-watson
- Owner: horeaporutiu
- Created: 2017-11-20T23:39:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T01:12:49.000Z (over 7 years ago)
- Last Synced: 2025-04-09T22:52:37.085Z (2 months ago)
- Topics: language-translation, language-translator-api, node, tone-analyzer, tutorial, watson-api
- Language: JavaScript
- Homepage: https://www.youtube.com/watch?v=XehI724C-GM&index=3&t=2s
- Size: 873 KB
- Stars: 6
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST API Tutorial - IBM Watson
This repo contains the code to use Watson conversation, tone analyzer, and language translation APIs. Please refer to youtube tutorials for full explanation of the code to use Watson APIs.
## Simple to use
Before you get started, you'll need a couple things.
1) Free IBM Cloud Account, to create Watson Service Credentials (Username and Passwords used to authenticate your API call)2) NPM (Node package Manager)
3) Login to IBM Cloud Dashboard
## Instant Access to Watson
1) Create your credentials for the service you want to use (Language Translator and Tone Analyzer for this tutorial).
2) Add your credentials by modifiying the 'Username and Password' variables at the top of either translate.js or tones.js
based on which API you want to use.
## Install Dependencies
If you cloned the repository, to install all the required npm packages, run:
``
npm install
``
Otherwise, run:
``
npm install request
``
and then:
``
npm install http
``## Get the output
To see the output for the Language Translator API, add the credentials and run:
``
node translate.js
``To see the output for the Tone Analyzer API, add the credentials and run:
``
node tones.js
``## Debugging
1) If you get an error such as 'Error: Cannot find module 'request' simply run:
``
npm install request
``
2) If you get an error such as 'Error: Cannot find module 'http' simply run:
``
npm install http
``
3) If you get 404 error, usually the credentials are wrong. Check your credentials first, and if that doesn't work, try deleting the instance and then re-creating it.