How often do I have to call /sets/new.xml (Play-token)

75 views
Skip to first unread message

Mika

unread,
May 31, 2012, 2:25:05 PM5/31/12
to 8tracks public API
Hey there!
First, thanks for the API! I really like 8tracks and want to build my
desktop-app, probably with Youttube-integration, etc.
I have done now all the wrapping for Mix, Response, User, etc. and
building up the "infrastructure". But now I want to start actually
playing the songs.
And so I come to my question: how often do I have to retreive a new
play-token?
Can I use one play token to play different sets like
http://8tracks.com/sets/460486803/play.xml?mix_id=2000
and when the userer changes the mix I just go
http://8tracks.com/sets/460486803/play.xml?mix_id=73948
without a new play-token? Or does it expire sometime, someway?

Thanks in advance,
Greets Markus

Remi - 8tracks

unread,
May 31, 2012, 2:37:15 PM5/31/12
to 8tracks-p...@googlegroups.com
Yes, you can reuse the play_token forever on any mix. Actually it's
better since it will keep position within the mix.

Cheers,

Remi
--
Rémi Gabillet
8tracks CTO & co-founder

Mika

unread,
Jun 5, 2012, 8:24:51 AM6/5/12
to 8tracks public API
And I think I have to get a play_token for each logged-in user? Or can
I use a play_token for all users together?

Thanks, Markus

Remi - 8tracks

unread,
Jun 5, 2012, 11:51:26 AM6/5/12
to 8tracks-p...@googlegroups.com
You should be using different play_tokens for different users, they're
a bit like authentication tokens.
Reply all
Reply to author
Forward
0 new messages