Skip to content

Instantly share code, notes, and snippets.

@dcherman
Created February 14, 2013 19:31
Show Gist options
  • Save dcherman/4955592 to your computer and use it in GitHub Desktop.
Save dcherman/4955592 to your computer and use it in GitHub Desktop.
// {"error":{"code":"missing-parameters","info":"One ore more required fields were not submitted."}}
$.ajax({
url: "http://testserver/testswarm/api.php?action=addjob",
type: "POST",
dataType: "text",
data: {
authUsername: "dherman",
authToken: "12345",
jobName: "Test Run",
runMax: 3,
runUrls: [
"http://testserver/app/TestRunner.html"
],
browserSets: [
"example"
]
},
success: function( data ) {
console.log( data );
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment