kwaai-restcall

0.0.11 • 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

Weekly Downloads

3

Version

0.0.11

License

MIT

Last publish

Collaborators

  • martinza78