Things which are missing in the API.

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

Moderator: NADEO

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

Re: Things which are missing in the API.

Post by The_Big_Boo »

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

Re: Things which are missing in the API.

Post by magnetik »

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: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Things which are missing in the API.

Post by steeffeen »

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
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Things which are missing in the API.

    Post by steeffeen »

    @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 »

      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: 1026
      Joined: 15 Jun 2010, 15:46

      Re: Things which are missing in the API.

      Post by The_Big_Boo »

      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 »

      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 1 guest