0.0.1 • Published 7 years ago

kwaai-restcall-fixed v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

#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);
})