Skip to content

Commit

Permalink
Echonest test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsawruk committed Nov 5, 2011
1 parent 300a9a3 commit 1fab44c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions js/fma.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ fma.getPlaylist = function() {
url: "http://developer.echonest.com/api/v4/playlist/dynamic",
data:{
api_key: 'N6E4NIOVYMTHNDM8J',
artist: 'Yacht',
type: 'artist-radio',
// artist: 'Yacht',
mood: 'happy',
style: 'rock',
type: 'artist-description',
bucket: 'id:fma'
/* dataType: 'jsonp',
jsonp: 'callback',
jsonpCallback: 'fma.jsonpCallback', */
},
success: function(data) {
console.log(data);
}
});
};

fma.jsonpCallback = function(data){
//$('#jsonpResult').text(data.message);
console.log(data.message);
}

0 comments on commit 1fab44c

Please sign in to comment.