Questions tagged [last.fm]

Last.fm is a music recommendation service.

The Last.fm API allows anyone to build their own programs using Last.fm data, whether they're on the web, the desktop or mobile devices. Find out more about how you can start exploring the social music playground on the link below.

Links

320 questions
0
votes
2 answers

How to get album art from last.fm Android

I'm making an Music player for Android, I want to provide feature for users to get album art of a song from last.fm. I've got my API key too. Just need help for retrieving the image from Last.fm. Any help in getting the image url would also be…
0
votes
2 answers

Angularjs - Passing API Data between two controllers

i want to share data that i get from the lastFM API between two controllers. I've been trying with the factory but I don't get a grip on it... angular.module('myApp') .factory('getData', function($http, $scope, $routeParams) { $http.get(lastfm…
0
votes
1 answer

Last.fm java API - get all members from a group

I am working with the Java API of lastfm. I want to extract all users from a group, say Belgium. How do I create a new group and extract their members? Group mygroup = new Group(); PaginatedResult users =…
dorien
  • 5,265
  • 10
  • 57
  • 116
0
votes
0 answers

How I get values of url of tag image of size attribute?

How do I get the values of the url of a tag image of a mega attribute? Should I get it by attribute? How do I do this in PHP? $string =…
0
votes
1 answer

Return value from array in PHP

I'm trying to return the value [name] from the following array (last.fm) Array ( [totalResults] => 9771 [startIndex] => 0 [itemsPerPage] => 1 [results] => Array ( [0] => Array ( [name] => Beyoncé …
0
votes
0 answers

Error Authenticating to LastFM "Must not send passwords in query string"

Ok, so I have been fighting this one for a bit. I am trying to Authenticate to LastFM from an Android App. This page describes my basic plan of attack: http://www.last.fm/api/mobileauth sig = "api_key" + getString(R.string.lastfm_key) +…
Phyziks
  • 91
  • 1
  • 1
  • 6
0
votes
1 answer

ReferenceError: LastFMCache is not defined in Javascript

I'm trying to use the last.fm API in javascript but I can't get it working. I found this GitHub reference which I thought would be useful: https://github.com/fxb/javascript-last.fm-api var cache = new LastFMCache(); but this ^ causes an error…
Jeremy Bader
  • 382
  • 1
  • 6
  • 14
0
votes
2 answers

Last.fm java.lang.ClassCastException - reading in User objects from file

I would really appreciate if anyone can help me with this issue. I'm getting an error when I run this class UniqueUsersData.java Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashSet at…
user2886192
  • 21
  • 1
  • 3
0
votes
1 answer

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…
jldupont
  • 93,734
  • 56
  • 203
  • 318
0
votes
2 answers

Javascript return data from json call (using LastFM)

I am using this LastFM wrapper plugin (https://github.com/fxb/javascript-last.fm-api). What I want to do is return the result after the success function. var getTopTracks = function(){ var last_fm; last_fm = new LastFM({ apiKey :…
cusejuice
  • 10,285
  • 26
  • 90
  • 145
0
votes
1 answer

Unable to make secure HTTPS POST request to REST API from Android

I'm trying to make an HTTPS POST to a RESTful API (last.fm); however, the REST response seems to indicate that I'm not connecting in HTTPS. My code looks like this (I've kept only the most relevant parts for sake of brevity). What is wrong with my…
mannykary
  • 812
  • 2
  • 10
  • 18
0
votes
1 answer

Sending parameter along URL actionscript

As part of a mobile app I'm building I have to authenticate trough the API of Last.FM. As documented on their website I tried to format to url correctly but appearently I'm doing something wrong because I get error: Error #2044: Unhandled ioError:.…
0
votes
2 answers

Using getInfo() for album does not return tracks

I am using Last.FM api and using this package http://www.last.fm/api/show/album.getInfo I searched SO and other in google, nobody seems to be having this issue...strangely... As per documentation, I should get a list of tracks. Nope. Nada. I do get…
TrueStory
  • 439
  • 5
  • 17
0
votes
1 answer

Class not found (using lastfm api) Laravel 4

I am trying to print out the album information for a certain artist and album using the last.fm api. I have used dump-autoload for the api library (so the classes should be available). In one of my controllers, LastFMController.php, I have the…
user1072337
  • 12,615
  • 37
  • 116
  • 195
0
votes
1 answer

Last Fm API returns nothing with specific time period

I'm using the last fm api to get data from a user but when using the User.getTopTracks method with the time period 1month, it returns nothing: { toptracks: { #text: " ", user: "RJ", type: "1month", page: "", perPage: "", …
Amja
  • 1,315
  • 9
  • 25