kwaai-restcall-fixed

0.0.1 • Public • Published

#kwaai-restcall

Node helpers to call restful JSON API's

var kwaaiRest=require("kwaai-restcall")(
    {headers:{"Content-Type": "application/json"},
    baseUrl:"http://api.openweathermap.org/data/2.5"
});

kwaaiRest.callRestService({
    url:"/weather?q={weatherQuery}",
    weatherQuery:"London,uk",
    verb:"get"
    },function(err,res){
    console.log(res);
})

Readme

Keywords

none

Package Sidebar

Install

npm i kwaai-restcall-fixed

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • gitarehero