Skip to content

Instantly share code, notes, and snippets.

@nhindman
Created March 5, 2015 00:16
Show Gist options
  • Select an option

  • Save nhindman/b7a63b2766328eb9e00e to your computer and use it in GitHub Desktop.

Select an option

Save nhindman/b7a63b2766328eb9e00e to your computer and use it in GitHub Desktop.
<script>
$urx.setApiKey("API KEY GOES HERE");
var geoFilter = "near:40.748441,-73.985664";
var actionFilter = " action:BuyAction";
var domainFilter = " domain:seatgeek.com domain:stubhub.com domain:ticketmaster.com"
$urx.search(geoFilter + actionFilter + domainFilter, function(response) {
var searchResult = response.results[0];
}, function(req, errorMessage){
// SEARCH FAILURE HANDLER
console.log(errorMessage);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment