WebAPI Issue

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
Artum
Posts: 15
Joined: 18 Jun 2012, 09:35

WebAPI Issue

Post by Artum »

When I try to use "/players/:login/teams" in web APIs I get a 404 error.
(The player login is correct)
User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: WebAPI Issue

Post by steeffeen »

how did you came to the idea that this endpoint exists anyways?
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Artum
    Posts: 15
    Joined: 18 Jun 2012, 09:35

    Re: WebAPI Issue

    Post by Artum »

    magnetik wrote:NEW : /players/:login/teams
    in this post: http://forum.maniaplanet.com/viewtopic. ... 82&t=11895
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: WebAPI Issue

    Post by steeffeen »

    mkay, i think the information is either outdated or just wrong ^^
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      Artum
      Posts: 15
      Joined: 18 Jun 2012, 09:35

      Re: WebAPI Issue

      Post by Artum »

      It can be usefull :(
      I'm making an Android app that needs that function :D
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2472
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: WebAPI Issue

      Post 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
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        Artum
        Posts: 15
        Joined: 18 Jun 2012, 09:35

        Re: WebAPI Issue

        Post 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 :)
        User avatar
        magnetik
        Nadeo
        Nadeo
        Posts: 1678
        Joined: 01 Feb 2012, 19:13
        Location: Bordeaux
        Contact:

        Re: WebAPI Issue

        Post 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)
        ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
        Post Reply

        Return to “Maniaplanet Web Services”

        Who is online

        Users browsing this forum: No registered users and 0 guests