Skip to content

Instantly share code, notes, and snippets.

@msmithstubbs
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save msmithstubbs/277a9e87535ed7f85bbb to your computer and use it in GitHub Desktop.

Select an option

Save msmithstubbs/277a9e87535ed7f85bbb to your computer and use it in GitHub Desktop.
Calling Back In Stock API from a third party site using JSONP
$.ajax({
url: 'https://app.backinstock.org/stock_notification/create.json',
jsonp: 'callback',
dataType: "jsonp",
data: {
shop: 'feil-llc8678.myshopify.com',
variant: {
variant_no: 665433569
},
notification: {
product_no: 12341234,
email: '[email protected]'
}
},
success: function(data){
alert(data.status)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment