last.fm

Last.fm API: are Etag/Last-Modified headers supported?

When using the REST interface for Last.fm web service, are the "Etag" and/or "Last-Modified" HTTP headers provided in the responses? E.g. let's say I plan on using the track.getTags API method, is either "Etag" / "Last-Modified" HTTP header sent along with the response? (NOTE: I have asked the same question on Last.fm's "discussion boa...

[PHP] DOMDocument load on a page returning 400 Bad Request status

Hiya, I'm trying to use the Last.fm API for an application I'm creating, but am having some problems with validation. If an API request gives an error it returns a code and message in the response XML like this: <lfm status="failed"> <error code="6">No user with that name</error> </lfm> However, the request also returns an HTTP stat...

Returning different images through PHP.

There's a status indicator code for AIM which returns two different images depending on your status (on/offline) which was done in PHP and with the AIM API. <img src="http://big.oscar.aol.com/USERNAME?on_url=ON_IMAGE&amp;off_url=OFF_IMAGE"&gt; I was looking for a Last.fm widget that shows JUST the album cover I'm listening to or the l...

Using last.fm API in javascript

I have very little experience with web development. I have a little experience with HTML and I am learning JavaScript right now. I created a program in Java using a a last.fm library for Java. I was able to get user information, artist information, and venue information. Now I want to try and do that in a webpage, which is where my probl...

With the last.fm API, is there a way to get the top tracks for a time period with a supplied start and end date?

Is there anyway to use user.getTopTracks for a time period, with a start and end, as opposed to a time duration? I know you can send a period parameter such as 7day, 3month etc, which returns the top track for that period up until the present day, but is there anyway to get the top tracks like this: for the time period 1 Jan 07 - 31 Feb...

jquery get function not working, even though the URL of the request works fine?

I'm using jquery to access a method of the Last.FM API. Here is my jquery code: $.get('http://ws.audioscrobbler.com/2.0/','method=user.getweeklytrackchart&amp;user=rj&amp;api_key=fb04ae401284be24afba0fbc2f4b0efb', function(data,status) { console.debug("in result method"); console.debug(data); }); Here is the console o...

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 parse JSON like geo:point?

I'm trying to parse a JSON response using jquery from last.fm and getting longitude and latitude values. The part of the JSON that holds those values looks like this: "location":{"geo:point":{"geo:lat":"58.409901","geo:long":"15.563306"} The code I got is this: $.getJSON("http://ws.audioscrobbler.com/2.0/?method=artist.getevents&amp;...