Skip to content

Instantly share code, notes, and snippets.

@aamedina
Created February 13, 2013 23:02
Show Gist options
  • Save aamedina/4949203 to your computer and use it in GitHub Desktop.
Save aamedina/4949203 to your computer and use it in GitHub Desktop.
request.post({
uri: 'https://api.datasift.com/validate',
headers: headers,
json: JSON.stringify(json)}, function(err, res, body) { console.log(body) });
request.post({url: 'https://api.datasift.com/validate', headers: headers, body: "csdl=willfailvalidation" }, function(err, res, body) { console.log(body) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment