Skip to content

Instantly share code, notes, and snippets.

@dperussina
Created June 1, 2017 16:12
Show Gist options
  • Save dperussina/b6c4636e4efc5ca862baf42160e10aeb to your computer and use it in GitHub Desktop.
Save dperussina/b6c4636e4efc5ca862baf42160e10aeb to your computer and use it in GitHub Desktop.
var url = 'http://ms1.agentgrid.net/api/tagnet/service_levels?'
var query = 'PartnerID=2&ServiceLevel=Basic%201';
var options = {
type: 'GET',
url: url+query,
dataType: 'json',
success: success,
error: error
};
function success(res){
//handle JSON
}
function error(err){
//handle error
}
$.ajax(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment