Skip to content

Instantly share code, notes, and snippets.

@lholmquist
Created April 10, 2014 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lholmquist/10393357 to your computer and use it in GitHub Desktop.
Save lholmquist/10393357 to your computer and use it in GitHub Desktop.
ups_delete_works
$.ajax({
contentType: "application/json",
dataType: "json",
type: "DELETE",
url: "https://mobileweek-lholmqui.rhcloud.com/rest/registry/device/" + encodeURIComponent(encodeURIComponent("https://updates.push.services.mozilla.com/update/pLey967MwgxQV-YVWEf5Rmnu0E_auo7aGPn7tjJGOJSbfNuZWR1v6kpV0-BVfQm3vly38NvkYCXHOTy86gE9NNES6cg8Gwx_xJnH6YjEVHfwW7K95Q==")),
headers: {
"Authorization": "Basic " + window.btoa("2df5ed60-d6a8-4965-a98a-a92f650b1b95:a8f1977f-4318-4616-b62b-072ea8e83c50")
},
success: function() { console.log( arguments ); },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment