Page 1 of 1
WebAPI Issue
Posted: 24 May 2013, 18:31
by Artum
When I try to use "/players/:login/teams" in web APIs I get a 404 error.
(The player login is correct)
Re: WebAPI Issue
Posted: 24 May 2013, 18:54
by steeffeen
how did you came to the idea that this endpoint exists anyways?
Re: WebAPI Issue
Posted: 24 May 2013, 19:02
by Artum
magnetik wrote:NEW : /players/:login/teams
in this post:
http://forum.maniaplanet.com/viewtopic. ... 82&t=11895
Re: WebAPI Issue
Posted: 24 May 2013, 19:07
by steeffeen
mkay, i think the information is either outdated or just wrong ^^
Re: WebAPI Issue
Posted: 24 May 2013, 19:09
by Artum
It can be usefull

I'm making an Android app that needs that function

Re: WebAPI Issue
Posted: 24 May 2013, 19:14
by steeffeen
you will need to use maniaconnect i guess, in order to get the teams of a specific player he will need to login and grant you the permission to access them
alternatively you can use ManiaPlanet\WebServices\Teams in case you have the team id already
Re: WebAPI Issue
Posted: 24 May 2013, 19:17
by Artum
I don't have the team id & I want to retrive teams of another player so I don't have any password, I think I'll drop that function at the moment

Re: WebAPI Issue
Posted: 24 May 2013, 20:46
by magnetik
You can't access the teams of any player.
You can have the teams of a specific player using oauth2. (See ManiaConnect/Player.php)