reporting and next song issues

68 views
Skip to first unread message

meydrew

unread,
Mar 28, 2012, 9:36:30 PM3/28/12
to 8tracks-p...@googlegroups.com
hey,
problem #1)
I've been getting alot of 401 errors when trying to report a song. am I doing it correctly?

#############comments for Report Track#####################
# inPT=play token
# inTrackId = current track Id
# mymixId = current mix ID
#########################################################
urllib.urlopen("http://8tracks.com/sets/"+str(inPT)+"/report.xml?track_id="+str(inTrackId)+"&mix_id="+str(mymixId))


problem #2)
 the second song in the mix is getting returned each time I call the  "/next.xml" service has the next call changed since the original API came out?

paydro

unread,
Mar 29, 2012, 2:11:14 PM3/29/12
to 8tracks-p...@googlegroups.com
Hey meydrew,

For problem #1, are you sending your api key along with the request (either in the header named X-API-KEY or in the URL like api_key=12341)?

For problem #2, we haven't changed the next.xml api call. We have made some upgrades to how we handle that request, so there might be regressions we weren't aware of. Can you send me the URL you use to request the next mix (including whatever headers and query arguments you use)? You can use a place holder for your API key since I don't need to know what it is.

Cheers,
Peter

meydrew

unread,
Mar 31, 2012, 2:27:42 PM3/31/12
to 8tracks-p...@googlegroups.com
Hey, Problem number one was solved I havent been in the 8tracks dev game for about 8 months so I apologies for the noob mistake.

as for the url I used it was the following pattern
the "token" is the play token and the "mId" is the mix Id. It has been happening on every mix I try.
the first two tracks are retrieved fine but the second track keeps getting returned as the next track.


"http://www.8tracks.com/sets/"+token+"/next.json?mix_id="+str(mId)+"api_version=2&api_key=XXXXXXXXXXXXXXXXXXXXX"

gdub22

unread,
Apr 4, 2012, 4:28:42 PM4/4/12
to 8tracks-p...@googlegroups.com
Looks like you are missing an '&' after mix_id, before api_version.
Not sure if that line is actual code or just a mistake when you typed it into the forum.

Remi - 8tracks

unread,
Apr 4, 2012, 6:23:24 PM4/4/12
to 8tracks-p...@googlegroups.com
Nice catch Garth :)

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

meydrew

unread,
Apr 6, 2012, 8:09:08 AM4/6/12
to 8tracks-p...@googlegroups.com
LOL garth I could kiss you. WOW *Embarassing* thanks man I owe you.

Gal Melamed

unread,
Apr 6, 2012, 8:27:30 AM4/6/12
to 8tracks-p...@googlegroups.com
Hi , 
Till recently every post from 8tracks to Facebook which included a link to one of the mixes, had a field called 'source' which was part of the open graph standard fields.
For some reason, this field isn't available anymore, is this on purpose?
Thx,

-Gal

Remi - 8tracks

unread,
Apr 25, 2012, 4:39:35 PM4/25/12
to 8tracks-p...@googlegroups.com
Hey Gal, sorry I just saw your message. We never added a source field
ourselves so I think it's something on the Facebook side..
Reply all
Reply to author
Forward
0 new messages