I can't login with my token

31 views
Skip to first unread message

JoToor

unread,
Sep 25, 2011, 3:28:24 AM9/25/11
to 8tracks public API
Hi,

I'm successfully request a user_token with my credentials, but when I
try to make a POST against the mixes.xml I receive this message from
the response "401 Unauthorized; You must log in to do this.". I'm
passing these two parameters the api_key and user_token i got from the
sessions.xml. I have read all your documentation and I'm making
request as described. Any suggestions?

JoToor

unread,
Sep 25, 2011, 2:05:33 PM9/25/11
to 8tracks public API
Now the mixes.xml is responding this:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Name Name cannot be blank.</error>
<error>Agree to terms Sorry but you have to agree to our terms.</
error>
</errors>

Where I can change this information for make the request success.
Because when a request my API key I never asked to agree with your
terms.

gdub22

unread,
Sep 25, 2011, 2:15:32 PM9/25/11
to 8tracks-p...@googlegroups.com
Hi,

You need to pass the login parameter containing the user name along with the user token.

Regards,
gdub

Jose Torres

unread,
Sep 25, 2011, 2:53:18 PM9/25/11
to 8tracks-p...@googlegroups.com
Ok, then the request will be this
https://8tracks.com/mixes/?login=username&user_token=token&api_key=key.
I will try this and let you know if it works.

Thanks for the help,
JoToor

Remi Gabillet

unread,
Sep 25, 2011, 4:23:09 PM9/25/11
to 8tracks-p...@googlegroups.com
Actually I think the issue is that you're doing a POST instead of a
GET, it should not be necessary to pass login.

JoToor

unread,
Sep 25, 2011, 10:56:24 PM9/25/11
to 8tracks public API
Remi you are right, I change the request to a GET and I could see the
response of the mixes. Thanks for your help. BTW I think 8tracks is an
excellent product personally and have great future in the music
industry.

On Sep 25, 4:23 pm, Remi Gabillet <rgabil...@gmail.com> wrote:
> Actually I think the issue is that you're doing a POST instead of a
> GET, it should not be necessary to pass login.
>
> On Sun, Sep 25, 2011 at 11:53 AM, Jose Torres
>
>
>
>
>
>
>
> <jose.torres.or...@gmail.com> wrote:
> > Ok, then the request will be this
> >https://8tracks.com/mixes/?login=username&user_token=token&api_key=key.
> > I will try this and let you know if it works.
>
> > Thanks for the help,
> > JoToor
>

Remi Gabillet

unread,
Sep 26, 2011, 12:51:29 PM9/26/11
to 8tracks-p...@googlegroups.com
Great to hear that it works and thanks for the kind words Jose.
Reply all
Reply to author
Forward
0 new messages