Skip to content

Instantly share code, notes, and snippets.

@newswim

newswim/http_get.js

Created Aug 27, 2015
Embed
What would you like to do?
Meteor.http.get("http://localhost:3000/api/v1/project", function (error, result) {
if(error) {
console.log('http get FAILED!');
} else {
console.log('http get SUCCES');
if (result.statusCode === 200) {
console.log('Status code = 200!');
console.log(result.content);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.