I am new to Meteor.js and want to make my web app work with Dropbox Core API. I am not able to wrap my head around making API calls using the HTTP package in Meteor.js
You can use the HTTP package you mentioned
Add it with
meteor add http
Then to use it (server side). This should produce exactly what the curl
request above gives out.
var result = HTTP.get("https://api.dropbox.com/1/account/info", {
headers: {
Authorization: "Bearer "
}
});
console.log(result.content)
console.log(result.data) //<< JSON form (if api reports application/json as the content-type header