Skip to content

Instantly share code, notes, and snippets.

@hwrdprkns
Created June 22, 2012 18:11
Show Gist options
  • Save hwrdprkns/2974301 to your computer and use it in GitHub Desktop.
Save hwrdprkns/2974301 to your computer and use it in GitHub Desktop.
Broken javascript
function getSuggestions(text, callback){
var rdioBaseURL = "http://api.rdio.com/1/";
var content_type = "application/x-www-form-urlencoded";
var types = "Artist";
var params = new HashTable();
var params['body'] = {"method":"searchSuggestions", "query":text, "types":types};
var params['method'] = 'POST';
var params['headers'] = {"Content-Type":content_type};
oauth.sendSignedRequest(rdioBaseURL,callback,params);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment