Created
February 7, 2014 09:42
-
-
Save jakebellacera/8859804 to your computer and use it in GitHub Desktop.
for a redditor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var appName = "yourAppName", | |
keywords = encodeURI("my search term"), | |
url = "http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=" + appName + "&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&keywords=" + keywords; | |
$.get(url, function (response) { | |
console.log(response); | |
// response would be the parsed XML body. | |
// you could then work with this by treating it as an DOM | |
// node in jQuery. For example: | |
// response.find('elementName').html() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment