Skip to content

Instantly share code, notes, and snippets.

@shaosh
Created June 24, 2016 17:28
Show Gist options
  • Save shaosh/2156fd4d7476ca447a2636a761bdbac7 to your computer and use it in GitHub Desktop.
Save shaosh/2156fd4d7476ca447a2636a761bdbac7 to your computer and use it in GitHub Desktop.
Call Sales API to load workspace
$.ajax({
type:"POST",
url: "https://salesproducts.api.test-godaddy.com/v1/pl/1/cart/packages",
contentType: "application/json",
data: "requestData=" + JSON.stringify({
pkgid: "office365migration_tier3_012mo",
qty: 1,
itc: "eml_365_workspace",
ci: "86495"
}),
dataType: "jsonp"
})
.done(function(data) { alert("Doing my successful stuff"); })
.fail(function(xhr, status, error) { alert("Doing my error stuff"); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment