Skip to content

Instantly share code, notes, and snippets.

@cianclarke
Created November 28, 2016 18:20
Show Gist options
  • Save cianclarke/7cf06f4785953a76dff74250400f8a36 to your computer and use it in GitHub Desktop.
Save cianclarke/7cf06f4785953a76dff74250400f8a36 to your computer and use it in GitHub Desktop.
$fh.cloud({
"path": "/somePath",
"method": "POST|GET|PUT|DELETE", // optional - default GET
"contentType": "application/json", // optional - default shown
"data": { "username": "testuser"}, // optional - request body
"timeout": 60000 // optional - default shown
}, function(res) {
// Success - your response will be in the "res" variable
}, function(msg,err) {
// Failure
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment