Created
May 7, 2011 23:31
-
-
Save reiddraper/960961 to your computer and use it in GitHub Desktop.
echo nest rdio js playback
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 myNest = nest.nest("YOURAPIKEY"); | |
| var songs = myNest.searchSongs({artist:"beck", | |
| title: 'lost cause', | |
| bucket: ['id:rdio-us-streaming'], | |
| limit: 'true' | |
| }, function (err, results) { | |
| var id = results[0].foreign_ids[0].foreign_id.split(':').pop(); | |
| apiswf.rdio_play(id); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment