Skip to content

Instantly share code, notes, and snippets.

@Pent
Created May 25, 2013 14:49
Show Gist options
  • Select an option

  • Save Pent/5649329 to your computer and use it in GitHub Desktop.

Select an option

Save Pent/5649329 to your computer and use it in GitHub Desktop.
lastfm api access through meteor
var response = Meteor.http.get('http://ws.audioscrobbler.com/2.0/?method=tasteometer.compare&type1=user&type2=user&value1='+query[0]+'&value2='+query[1]+'&api_key='+config.lastfmClientId+'&format=json');
if (response.statusCode === 200) {
var data = response.data;
if(data.comparison) {
return " score: "+ data.comparison.result.score;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment