Skip to content

Instantly share code, notes, and snippets.

@JKring
Created May 5, 2014 18:26
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 JKring/82af6bae837292c771b0 to your computer and use it in GitHub Desktop.
Save JKring/82af6bae837292c771b0 to your computer and use it in GitHub Desktop.
var params = {};
$.ajax({
type: "GET", url: "/cd000031/v1/job_templates",
data: params,
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Token token=pzZwPPATmAqsye9ZXbjS");
}
}).done(function(data){
console.dir(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment