Skip to content

Instantly share code, notes, and snippets.

@Setheck
Created June 26, 2014 16:10
Show Gist options
  • Save Setheck/c6be75f7807c1f8d5b15 to your computer and use it in GitHub Desktop.
Save Setheck/c6be75f7807c1f8d5b15 to your computer and use it in GitHub Desktop.
YO Api Test - NodeJs
var request = require('request')
, _ = require('underscore');
var apiToken = "XXXXXXXXXXXXXXX"
var requestOptions = {
url: "http://api.justyo.co/yoall/",
headers: { "Content-Type":"application/x-www-form-urlencoded" },
body: "api_token=" + apiToken
}
request.post(requestOptions, function(e,r,body){
console.log(body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment