Things which are missing in the API.

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

Moderator: NADEO

kremsy
Posts: 1723
Joined: 21 Jul 2011, 09:51

Things which are missing in the API.

Post by kremsy » 27 Apr 2013, 16:08

Hello Guys,

Thanks for the nice API!

\Maniaplanet\WebServices\Servers
You are getting the next 15 maps as $item->mapsList but it would be much nicer if you can get a list of all Maps on the server, if not than it should be added at least with the map which is currently running.

Maniaplanet\WebServices\Rankings
You get a path of the Players $player->player->path but its only World|Europe / World|North America, there should be the complete path until the city where the player comes from. and the $player->player->idZone is also only a id for the Continent.

More requests will coming soon, other developers should also feel free to post more things which are missing in this topic.
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

Re: Things which are missing in the API.

Post by The_Big_Boo » 27 Apr 2013, 17:37

kremsy wrote:\Maniaplanet\WebServices\Servers
You are getting the next 15 maps as $item->mapsList but it would be much nicer if you can get a list of all Maps on the server, if not than it should be added at least with the map which is currently running.
More is a bad idea. Imagine a server with thousands of maps, it will cost a lot to send the data from the dedicated to the master server, store it on the master server and send it to API users for nothing because it'll be useless to have such a long list.
I don't know about the current map, but if it's indeed not included then it should.
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310

calaagree
Posts: 152
Joined: 17 Jun 2011, 13:14

Re: Things which are missing in the API.

Post by calaagree » 27 Apr 2013, 20:44

Things that may be missing :

- Merged server list with all enviro (a GET with two params : page and limit would be perfect).
- Player list with a pagination (a GET with two params : page and limit would be perfect).
- Competition list
- Retrieve a player with its id

And that's already enough. :1010

User avatar
magnetik
Nadeo
Nadeo
Posts: 1670
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Things which are missing in the API.

Post by magnetik » 29 Apr 2013, 09:02

kremsy wrote: \Maniaplanet\WebServices\Servers
You are getting the next 15 maps as $item->mapsList but it would be much nicer if you can get a list of all Maps on the server, if not than it should be added at least with the map which is currently running.
This list would be too big to be synchronized.
Because of the different levels of cache, the current map would be always different from the real current map...
kremsy wrote: Maniaplanet\WebServices\Rankings
You get a path of the Players $player->player->path but its only World|Europe / World|North America, there should be the complete path until the city where the player comes from. and the $player->player->idZone is also only a id for the Continent.
I'm not sure to know which function you are talking about.
If you use getMultiplayerPlayer($login) you will have an array with the ranks in each zone: http://pastebin.com/2wYvxDG4
calaagree wrote: - Merged server list with all enviro (a GET with two params : page and limit would be perfect).
I have put the "environment" variable back. It will be available on next WS update.
See: http://code.google.com/p/maniaplanet-ws ... Serverlist
calaagree wrote: - Player list with a pagination (a GET with two params : page and limit would be perfect).
Humm, I don't see any use can except flooding user with notification or else :D
calaagree wrote: - Competition list
Planned. For now you can iterate on all IDs and check for 404s ( :oops: )
calaagree wrote: - Retrieve a player with its id
The "id" of a player is its login. Any other ID shouldn't be public and nothing in the API will use this as an entry point.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Things which are missing in the API.

Post by steeffeen » 29 Apr 2013, 12:23

any chance that \Servers->getFilteredList can be filtered by a specific custom game mode as well? :)
currently only the nadeo modes and "-1", "-2", "-3" are working
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    calaagree
    Posts: 152
    Joined: 17 Jun 2011, 13:14

    Re: Things which are missing in the API.

    Post by calaagree » 29 Apr 2013, 18:52

    Thx :thumbsup:
    calaagree wrote: - Player list with a pagination (a GET with two params : page and limit would be perfect).
    Humm, I don't see any use can except flooding user with notification or else :D
    That's for a specific website, where you can browse the global user list.
    calaagree wrote: - Competition list
    Planned. For now you can iterate on all IDs and check for 404s ( :oops: )
    My bad, i will be over my limit in few secs :D Btw, there is no method to simply get a competition detail. Could be interesting to get one :thumbsup:
    Last edited by calaagree on 29 Apr 2013, 19:56, edited 1 time in total.

    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Things which are missing in the API.

    Post by steeffeen » 29 Apr 2013, 19:48

    @calaagree:
    your post is really misleading with all the quotes outside of [quote]-tags

    about the missing filters:
    you can't get all servers with one request anyways, because you only get 20 servers max
    i know it needs slightly more effort but there isn't really a difference in the performances of going through all environments or getting all servers at once because in the end you have more or less the same amount of requests
    (don't know if i explained it clear enough ^^)
    pro-tip: the filter [title=""] returns ALL servers of all title packs (probably a bug^^)
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks

      schtroumf
      Posts: 22
      Joined: 10 Jan 2011, 18:31
      Location: Région bordelaise
      Contact:

      Re: Things which are missing in the API.

      Post by schtroumf » 30 Apr 2013, 08:43

      For my website, I don't really understand why getOwnedTitles() and getInstalledTitles() are only available in maniaconnect with a title scope. Scopes are here to protect private information of players and I think titles are not a private information.
      This lack constrains us to request ranking on every game to see if the player got a ladder rank on it. Due to this, I must renounce to the idea of creating an overall player information page.
      If you can't implement an overall ranking request, then titles should be in general get() response.

      The_Big_Boo
      Posts: 1041
      Joined: 15 Jun 2010, 15:46

      Re: Things which are missing in the API.

      Post by The_Big_Boo » 30 Apr 2013, 10:00

      schtroumf wrote:Scopes are here to protect private information of players and I think titles are not a private information.
      Actually they are. What if you install a title "My Little Pony" (for example) and don't want others to know?
      OS: Win 7 Pro x64
      RAM: 2x4GB Corsair @ 1600MHz
      CPU: Intel i5 760 @ 3.6GHz
      Mobo: Asus P7P55D-E
      GPU: NVidia GTX 760 2GB
      HDD: WD Black 1TB
      Sound: VIA VT1828S (onboard)
      Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310

      schtroumf
      Posts: 22
      Joined: 10 Jan 2011, 18:31
      Location: Région bordelaise
      Contact:

      Re: Things which are missing in the API.

      Post by schtroumf » 30 Apr 2013, 10:18

      I misspoke, I was speaking about owned games and not owned titles (I don't want everybody knows my title "Barbie world" ;) )

      Post Reply

      Return to “Maniaplanet Web Services”

      Who is online

      Users browsing this forum: No registered users and 2 guests