getFilteredList issue

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

Moderator: NADEO

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

getFilteredList issue

Post by spaii »

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

Re: getFilteredList issue

Post by magnetik »

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

Re: getFilteredList issue

Post by magnetik »

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: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: getFilteredList issue

Post by spaii »

It works :)

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

Re: getFilteredList issue

Post by spaii »

Erf, works with Stunters@spaii and ValleyStunters@spaii, but not with StadiumStunters@spaii
User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: getFilteredList issue

Post by jonthekiller »

It's no more possible to filter by environments? Else how can we take the complete list of titles?
Image
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: getFilteredList issue

Post by magnetik »

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: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: getFilteredList issue

Post by jonthekiller »

Ok, I see now a dependency who show the "root title" of each title. I will adapt my script, thanks.
Image
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: getFilteredList issue

Post by magnetik »

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