getFilteredList issue

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

Moderator: NADEO

User avatar
spaii
Posts: 1071
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

getFilteredList issue

Post by spaii » 11 Mar 2014, 13:16

Hi,

there is an issue since today with :

Code: Select all

$Servers->getFilteredList(array('environment'=>'Canyon', 'title'=>'Stunters@spaii', 'mode'=>'Stunters', 'playersMin'=>0, 'hideFull'=>false, 'visibility'=>'all', 'zone'=>'World', 'length'=>20));
This code supposed to filter servers and seems to not work today...
Result : http://servers.stunters.org/

Thx ;)
Last edited by spaii on 11 Mar 2014, 17:00, edited 2 times in total.

User avatar
magnetik
Nadeo
Nadeo
Posts: 1613
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: getFilteredList issue

Post by magnetik » 11 Mar 2014, 13:35

I've updated the endpoint with different filter.

Could you try with only :

Code: Select all

$Servers->getFilteredList(array('titleIds'=>'Stunters@spaii', 'length'=>20));
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!


User avatar
magnetik
Nadeo
Nadeo
Posts: 1613
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: getFilteredList issue

Post by magnetik » 11 Mar 2014, 16:30

Sorry for the delay.

I've changed the argument name, it's titleUids

Current supported :

Code: Select all

[39] => Array

    [url] => https://ws.maniaplanet.com/servers/
    [params] => Array
        [0] => titleUids
        [1] => zoneId <== not done yet
        [2] => hideFull
        [3] => hideEmpty
        [4] => offset
        [5] => length
I have done a special endpoint that list all current endpoints, I will probably release it tomorrow :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
spaii
Posts: 1071
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: getFilteredList issue

Post by spaii » 11 Mar 2014, 16:55

It works :)

Thx :thumbsup:

User avatar
spaii
Posts: 1071
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: getFilteredList issue

Post by spaii » 11 Mar 2014, 17:00

Erf, works with Stunters@spaii and ValleyStunters@spaii, but not with StadiumStunters@spaii

User avatar
jonthekiller
Translator
Translator
Posts: 4616
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: getFilteredList issue

Post by jonthekiller » 12 Mar 2014, 14:45

It's no more possible to filter by environments? Else how can we take the complete list of titles?

User avatar
magnetik
Nadeo
Nadeo
Posts: 1613
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: getFilteredList issue

Post by magnetik » 12 Mar 2014, 14:46

If you don't give any title filter, you'll get the full title list
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
jonthekiller
Translator
Translator
Posts: 4616
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: getFilteredList issue

Post by jonthekiller » 12 Mar 2014, 15:03

Ok, I see now a dependency who show the "root title" of each title. I will adapt my script, thanks.

User avatar
magnetik
Nadeo
Nadeo
Posts: 1613
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: getFilteredList issue

Post by magnetik » 12 Mar 2014, 15:08

Sorry for this unannounced change. We don't really use the "environment" internally and the code was really not working.
:thumbsup:
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 2 guests