I'm using Jquery to send JSON data to the Grooveshark API to get search results, but this is the result I get -
{"errors":[{"code":2,"message":"Method not found."}]}
This is piece of code which triggers the grooveshark API. I cannot figure out the problem with this, any help would be great.
$.ajax({
type: "POST",
url: 'http://api.grooveshark.com/ws3.php?sig=secret_code',
data: {
"method":"getSongSearchResults",
"header":{"wsKey":"secret_key"},"parameters":{"query":"megadeth hangar 18","country":"1","limit":"2","offset":""}
},
dataType: 'jsonp',
crossDomain: true,
async: false,
success: function () {
alert("success!");
}
});