Created
May 25, 2013 14:49
-
-
Save Pent/5649329 to your computer and use it in GitHub Desktop.
lastfm api access through meteor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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