MP3: API/SDK Version 5.x

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

Moderator: NADEO

User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: API/SDK Version 4.x

Post by weerwolf »

/examples/servers.php

Code: Select all

Error! HTTP Response: 404 Not Found API Response: Record not found (404) 
I adore the things API/SDK has to offer, but i find myself in constant conflict with examples
that do not work or changing class names or something?
If i may say so im experiencing the information around this a horror
SO anyone can give me a boost here? :P
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: API/SDK Version 4.x

Post by w1lla »

weerwolf wrote:/examples/servers.php

Code: Select all

Error! HTTP Response: 404 Not Found API Response: Record not found (404) 
I adore the things API/SDK has to offer, but i find myself in constant conflict with examples
that do not work or changing class names or something?
If i may say so im experiencing the information around this a horror
SO anyone can give me a boost here? :P
Change zone

Code: Select all

World|Europe
to

Code: Select all

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

Re: API/SDK Version 4.x

Post by magnetik »

The example has been fixed.

Thanks for the report.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: API/SDK Version 4.x

Post by weerwolf »

It works! tnx W1lla :thx:
yw Magnetik :P
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: API/SDK Version 4.x

Post by w1lla »

When connecting through the https:// part of the MPWS website i always get the information returned: Trackmania Web Services API so it seems to me there is a header issue in the "borrowed" code.

with kind regards,

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

Re: API/SDK Version 4.x

Post by magnetik »

Changed in next version :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
Xymph
Posts: 1399
Joined: 15 Jun 2010, 20:35
Contact:

Re: API/SDK Version 4.x

Post by Xymph »

From http://forum.maniaplanet.com/viewtopic. ... 46#p178146 :
magnetik wrote:I've added an endpoint : '/players/:login/maniastars'
Nice. But what about starday votes?

Also, when/where is the maniastars value available via the PHP SDK?
I don't see it in the \Maniaplanet\WebServices\Players->get(<login>) results.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: API/SDK Version 4.x

Post by magnetik »

It's on a separated endpoint, and a separated function (getManiaStars()), available only in SVN version for now.

For the stardays, it's not planned to make them available for now.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: API/SDK Version 4.x

Post by steeffeen »

do you mean the method or the endpoint?
because when trying the endpoint it says "not found"
http://ws.maniaplanet.com/players/steeffeen/maniastars

//Edit: lul it's the ending / ...
http://ws.maniaplanet.com/players/steeffeen/maniastars/

works fine :thumbsup:
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    magnetik
    Posts: 1673
    Joined: 01 Feb 2012, 19:13
    Location: Bordeaux
    Contact:

    Re: API/SDK Version 4.x

    Post by magnetik »

    steeffeen wrote: //Edit: lul it's the ending / ...
    http://ws.maniaplanet.com/players/steeffeen/maniastars/
    Damn you coded such a bad webservice :roll:
    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