Page 1 of 1
[FIXED][3.3.0] Bug in Title Rankings
Posted: 06 Oct 2012, 17:50
by spaii
Hi all,
i make some tests to have web page with Ladder Ranking of the Stunters Title Pack.
This work well :
$rankings = new \Maniaplanet\WebServices\Rankings\Title("login", "pass");
$getMultiplayerPlayer = $rankings->getMultiplayerPlayer("Stunters@spaii", "spaii");
All works nice

, i have informations on player.
But this not work :
$rankings = new \Maniaplanet\WebServices\Rankings\Title("login", "pass");
$getMultiplayerWorld = $rankings->getMultiplayerWorld("Stunters@spaii");
I don't have the ladder ranking.
Thx

Re: [3.3.0] Bug in Title Rankings
Posted: 08 Oct 2012, 09:53
by magnetik
Hi,
When I try the ranking URL in my browser it's working fine :
https://ws.maniaplanet.com/titles/ranki ... ters@spaii
Do you get an error or something ?
Thanks for using our API and reporting issues

Re: [3.3.0] Bug in Title Rankings
Posted: 14 Oct 2012, 12:56
by spaii
Hi Magnetik, sorry for this late response.
Yes, it work in the navigator but not with the php sdk request.
This is the php error
2012-10-14 13:54:22: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Fatal error: Uncaught exception 'Maniaplanet\WebServices\Exception' with message 'Bad Request' in /home/www/stunters.org/classes/ws-sdk/libraries/Maniaplanet/WebServices/HTTPClient.php:338
Stack trace:
#0 /home/www/stunters.org/classes/ws-sdk/libraries/Maniaplanet/WebServices/Rankings/Title.php(32): Maniaplanet\WebServices\HTTPClient->execute('GET', '/titles/ranking...', Array)
#1 /home/www/stunters.org/admin/ladderRanking.php(31): Maniaplanet\WebServices\Rankings\Title->getMultiplayerWorld('Stunters@spaii')
#2 {main}
thrown in /home/www/stunters.org/classes/ws-sdk/libraries/Maniaplanet/WebServices/HTTPClient.php on line 338
Thx in advance

Re: [3.3.0] Bug in Title Rankings
Posted: 22 Oct 2012, 09:24
by magnetik
Sorry for the delay.
It should be okay now !

Re: [3.3.0] Bug in Title Rankings
Posted: 22 Oct 2012, 11:19
by spaii
No problem for the delay
It works now.
Thank you very much

Re: [FIXED][3.3.0] Bug in Title Rankings
Posted: 28 Jan 2013, 22:06
by Electron
Hello,
can someone check if the rankings.php sample in the example folder works properly, please.
The code doesn't make sense to me.
The $players object was created but is not used anywhere and
$canyonRankings = new \Maniaplanet\WebServices\Rankings\Canyon($user, $password);
should be
$canyonRankings = new \Maniaplanet\WebServices\Rankings\Canyon($username, $password);
right?
Re: [FIXED][3.3.0] Bug in Title Rankings
Posted: 29 Jan 2013, 14:33
by w1lla
That is correct
I issued an issue and a solution for the project
