Skip to content

Instantly share code, notes, and snippets.

@newswim
Created August 27, 2015 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newswim/88a014ec64687329533a to your computer and use it in GitHub Desktop.
Save newswim/88a014ec64687329533a to your computer and use it in GitHub Desktop.
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