Created
June 24, 2016 17:28
-
-
Save shaosh/2156fd4d7476ca447a2636a761bdbac7 to your computer and use it in GitHub Desktop.
Call Sales API to load workspace
This file contains hidden or 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
$.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