Created
May 21, 2014 17:52
-
-
Save bingeboy/4f3d204fc941122139cc to your computer and use it in GitHub Desktop.
Curl request in node
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 options = { | |
url: 'https://example.foxycart.com/api', | |
form: { | |
api_token:'PUT_YOUR_API_KEY_HERE', | |
api_action:'subscription_datafeed' | |
}, | |
method: 'POST' | |
}; | |
request(options, function (error, response, body) { }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment