Page 1 of 2

Re: Things which are missing in the API.

Posted: 27 Apr 2013, 17:37
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.

Re: Things which are missing in the API.

Posted: 29 Apr 2013, 09:02
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.

Re: Things which are missing in the API.

Posted: 29 Apr 2013, 12:23
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

Re: Things which are missing in the API.

Posted: 29 Apr 2013, 19:48
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^^)

Re: Things which are missing in the API.

Posted: 30 Apr 2013, 08:43
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.

Re: Things which are missing in the API.

Posted: 30 Apr 2013, 10:00
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?

Re: Things which are missing in the API.

Posted: 30 Apr 2013, 10:18
by schtroumf
I misspoke, I was speaking about owned games and not owned titles (I don't want everybody knows my title "Barbie world" ;) )