Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

8tracks API presentation

on

  • 2,033 views

Presentation of the 8tracks playback API by Rich Caetano at Music Hack Day on Nov 21st, 2009.

Presentation of the 8tracks playback API by Rich Caetano at Music Hack Day on Nov 21st, 2009.

Statistics

Views

Total Views
2,033
Slideshare-icon Views on SlideShare
1,912
Embed Views
121

Actions

Likes
0
Downloads
8
Comments
0

5 Embeds 121

http://8tracks.tumblr.com 66
http://blog.8tracks.com 31
http://arsy.tumblr.com 13
http://www.slideshare.net 9
http://safe.tumblr.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    8tracks API presentation 8tracks API presentation Presentation Transcript

    • 8tracks Developers API Richard Caetano 8tracks.com/arsy caetano@gmail.com
    • 8tracks • Simple way for people to share and discover music • A mix is a short playlist contains at least 8 tracks • Listeners can stream the mix in a legal radio style manner
    • Stratus • Stratus is an API management service • Front end to API (auth, security, monitoring, etc) • Recently launched
    • API • Search and Play mixes • Simple XML or JSON • Register for a key at developer.8tracks.com • Documentation available
    • Authentication • Use your Access Key and Secret Key from Stratus • HTTP Basic Authentication require 'Base64' creds = "{accesskey}" + ':' + "{secretkey}" puts 'Authorization: Basic ' + Base64::encode64(creds)
    • Search for mixes http://api.8tracks.com/mixes.xml?q=miles+davis <?xml version="1.0" encoding="UTF-8"?> <response> <logged-in type="boolean">false</logged-in> <status>200 OK</status> <errors nil="true"></errors> <notices nil="true"></notices> <mixes type="array"> <mix> <description>Ten tracks including music by Charles Mingus, Charlie Parker and Dave Brubeck Quartet.</description> <first-published-at type="datetime">2009-09-17T21:36:33Z</first-published-at> <flagged-for-review type="boolean">false</flagged-for-review> <id type="integer">47967</id> <name>Consider me Miles Davis</name> ...
    • Mix Information http://api.8tracks.com/mixes/47967.xml <mix> <description>Ten tracks including music by Charles Mingus, Charlie Parker and Dave Brubeck Quartet.</description> <first-published-at type="datetime">2009-09-17T21:36:33Z</first-published-at> <flagged-for-review type="boolean">false</flagged-for-review> <id type="integer">47967</id> <name>Consider me Miles Davis</name> <plays-count type="integer">46</plays-count> <published type="boolean">true</published> <slug>consider-me-miles-davis</slug> <tag-list-cache>jazz</tag-list-cache> ...
    • Playback • Get a Play Token • Call Play mix • Play the media (mp3) • Call Next or Skip
    • Play Token http://api.8tracks.com/sets/new.xml <?xml version="1.0" encoding="UTF-8"?> <response> <logged-in type="boolean">false</logged-in> <status>200 OK</status> <play-token>570329908</play-token> <errors nil="true"></errors> <notices nil="true"></notices> </response>
    • Play Mix http://api.8tracks.com/sets/570329908/play.xml?mix_id=47067 <track> <djName>jaguarshark9</djName> <is-fav type="boolean">false</is-fav> <item>http://8tracks.s3.amazonaws.com/tf/000/003/020/01_So_What_54122904b931a7814659.mp3</item> <mixName>Consider me Miles Davis</mixName> <album>Kind of Blue</album> <year type="integer">1959</year> <duration type="integer">0</duration> <title>So What</title> <mixDescription>Ten tracks including music by Charles Mingus,...</mixDescription> <trackId type="integer">3020</trackId> <price></price> <referenceUrl>http://8tracks.com/jaguarshark9/consider-me-miles-davis</referenceUrl> <contributor>Miles Davis</contributor> <photo>http://cf3.8tracks.us/mix_covers/000/047/967/6983186934.sq56.jpg</photo> <allowSkip>true</allowSkip> </track>
    • Next or Skip http://api.8tracks.com/sets/570329908/next.xml?mix_id=47067 http://api.8tracks.com/sets/570329908/skip.xml?mix_id=47067
    • Ideas • SoundManager Javascript • Twitter Player • Genre Player / Music Stations • Firefox Player
    • iPhone Demo