lastfm

Error in the file returned from a request to the Last.FM API

I'm using the Last.fm API with jquery as follows: $.getJSON('http://ws.audioscrobbler.com/2.0/?JSONCallback=?',{ method: "user.getweeklytrackchart", user: "rj", api_key: "fb04ae401284be24afba0fbc2f4b0efb" }, function(data) { //console.debug (data) } ); I'm getting the following error in Firebug: ...

How do I send in a REST request (to use an API)?

I'm writing a small web app for myself in Rails and I want it to use Last.fm's API. I'm incredibly new to web development in general, so I'm not sure where to even begin. http://www.last.fm/api/rest I'm not asking for a step-by-step tutorial or anything like that, but a nudge in the right direction would be awesome. Or even just a litt...

Decoding gzip (using PHP sockets)

Ok, so there is this PHP implementation of Last.FM API some guy wrote and I'm using it for a small project of mine. His implementation doesn't request gzipped data from Last.FM servers so I decided to modify his implementation to work with gzip to reduce bandwidth. I have no problem in requesting gzipped data, that works just fine and al...

Read xml nodes values from web service

I am trying to read xml nodes values from lastfm web service that look like this: <lfm status="ok"> <results for="stinkfist" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"&gt; <opensearch:Query role="request" searchTerms="stinkfist" startPage="1" /> <opensearch:totalResults>188</opensearch:totalResults> <opensearch:startInd...