Git Product home page Git Product logo

horeaporutiu / rest-api-tutorial-ibm-watson Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 5.0 894 KB

Code based on Youtube Tutorial (Link attached). Learn to use Watson conversation, language translation, and tone analyzer. - Discovery coming soon :)

Home Page: https://www.youtube.com/watch?v=XehI724C-GM&index=3&t=2s

JavaScript 100.00%
watson-api tone-analyzer language-translation tutorial language-translator-api node

rest-api-tutorial-ibm-watson's Introduction

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).

1H1HXM

  1. 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.

9NqBZy

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.

rest-api-tutorial-ibm-watson's People

Contributors

horeaporutiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.