A simple handler for RESTful APIs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
test
.gitignore
.travis.yml
README.md
handler.js
package-lock.json
package.json

README.md

Api handler

A simple NodeJs module to use a RESTful API

Build Status npm version Code Coverage

Installation: npm install apihandlerrestful

Usage:

let handler = require('apihandlerrestful');

handler("http://yourapi.com/")
  .then(data => {
    console.log(data.value);

    //Just do whatever you want with data
  })

Important: You are not able to use an API with https://, use normal http://