Created
June 26, 2014 16:10
-
-
Save Setheck/c6be75f7807c1f8d5b15 to your computer and use it in GitHub Desktop.
YO Api Test - NodeJs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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