[FIXED][3.3.0] Bug in Title Rankings

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

Moderator: NADEO

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

[FIXED][3.3.0] Bug in Title Rankings

Post 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 :thumbsup: , 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 ;)
Last edited by spaii on 22 Oct 2012, 13:39, edited 1 time in total.
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: [3.3.0] Bug in Title Rankings

Post by magnetik »

Hi,

When I try the ranking URL in my browser it's working fine :
https://ws.maniaplanet.com/titles/ranki ... ters@spaii
Image

Do you get an error or something ?


Thanks for using our API and reporting issues :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: [3.3.0] Bug in Title Rankings

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

Re: [3.3.0] Bug in Title Rankings

Post by magnetik »

Sorry for the delay.

It should be okay now ! :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: [3.3.0] Bug in Title Rankings

Post by spaii »

No problem for the delay :)

It works now.

Thank you very much :thumbsup:
User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

Re: [FIXED][3.3.0] Bug in Title Rankings

Post 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?
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [FIXED][3.3.0] Bug in Title Rankings

Post by w1lla »

That is correct ;)

I issued an issue and a solution for the project ;)
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest