Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Last active December 31, 2015 16:49
Show Gist options
  • Select an option

  • Save jamescarr/8015989 to your computer and use it in GitHub Desktop.

Select an option

Save jamescarr/8015989 to your computer and use it in GitHub Desktop.
var url = 'https://zapier.com/hooks/catch/n/oyya3/'
$.ajax({
type: 'POST',
url: url,
data: {name: 'The Dude'},
contentType: "application/json",
dataType: 'jsonp',
success: function(json) {
console.dir(json);
},
error: function(e) {
console.log(e.message);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment