Skip to content

Instantly share code, notes, and snippets.

@nataliepo
Created December 4, 2012 23:47
Show Gist options
  • Select an option

  • Save nataliepo/4210369 to your computer and use it in GitHub Desktop.

Select an option

Save nataliepo/4210369 to your computer and use it in GitHub Desktop.
// Not sure what the base url should be, but appending the
// callback=? parameter will help use it jsonp-style
var api_url = this._settings.baseAPIURL +
'/search/venue/' + venue_id +
'?callback=?';
// I append things on the end like category=Hamburger&location=Greenpoint
var ending_url = $.fn.getQueryParameterString();
// call it!
$.getJSON(api_url,ending_url,function (obj, textStatus, jqXHR) {
console.log("[jsonRequest] response = ", obj);
// work with the obj now
//...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment