Please would someone give me an example of how to call yboss (v2) using jquery. I've tried using getJSON and $.ajax methods passing the correct oauth values and signature but neither methods call the callback function. The same code worked fine with v1 of boss.
Here's an example of the url (requestStr) I pass to ajax:
http://yboss.yahooapis.com/ysearch/web?callback=?&count=10&oauth_consumer_key=dj0yJmk9SFUzQno3ZnUwMHBaJmQ9WVdrOWNXRkRaa1Z2Tm1zbWNHbzlOek01TVRJeU1UWXkmcz1jb25zdW1lcnNlY3JldCZ4PWNk&oauth_nonce=7887075&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1317994276&oauth_version=1.0&q=horse&start=0&oauth_signature=lFVXgxkq79Tp5E5QeyEHdOfbASg=
When pasted into a browser (chrome) this returns the results expected. A payment account for using Yahoo Boss has been setup successfully in order to make calls to this api.
Thanks,
Rob
$.getJSON(requestStr, function (response) {
// never gets here
});
this doesn't work either:
$.ajax({
type: 'GET',
url: requestStr,
dataType: 'jsonp',
success: function (response) {
// never gets here
}
});