[beta] SDK 2.0 with Namespaces and OAuth2 support!

Trackmania Forever public API and its open source PHP SDK.

Moderator: NADEO

User avatar
w1lla
Posts: 2359
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by w1lla » 29 Jul 2011, 10:39

yes the dates in google chrome it looks like they are bound together.
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
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by gouxim » 29 Jul 2011, 11:28

Fixed
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
fastforza
Posts: 859
Joined: 15 Jun 2010, 11:19
Contact:

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by fastforza » 14 Aug 2011, 06:46

gouxim wrote:
steppie wrote:2. When I call logout I'm not redirected back to my site, how come?
It lacks a redirection when you logout out of the player page. Should be fixed soon.
This still isn't fixed too. :P (If you forgot about it.)

I've ported this across to .NET for use on Mania Exchange and it works well. Hopefully farfa will update his .NET library and add it. All I need now is access to the ManiaPlanet service. :ugeek:
Mania Exchange - Share your maps!

ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti

Need technical help for ManiaPlanet? Click here. :)

User avatar
ManiacTwister
Posts: 70
Joined: 10 Feb 2011, 22:37

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by ManiacTwister » 01 Sep 2011, 23:09

Are there already informations if the webservices will be available for trackmania2? And if yes when?
TDRacer - TrackMania Dirt Clan since 2009 - http://www.tdracer.de/
Die Intelligenz in der Welt bleibt konstant. Nur dumm, dass die Bevölkerung wächst.

User avatar
fastforza
Posts: 859
Joined: 15 Jun 2010, 11:19
Contact:

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by fastforza » 02 Sep 2011, 07:29

ManiacTwister wrote:Are there already informations if the webservices will be available for trackmania2? And if yes when?
The ManiaPlanet web services will be ready soon. Some time before (possibly after) the full game release which is nearing. ;)
Mania Exchange - Share your maps!

ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti

Need technical help for ManiaPlanet? Click here. :)

User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by m4rcel » 02 Sep 2011, 08:58

gouxim said somewhere (don't know exactly where), that the MPWS will be pretty much the same as TMWS ;)
ImageImage
Image

User avatar
w1lla
Posts: 2359
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by w1lla » 02 Sep 2011, 09:14

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

calaagree
Posts: 152
Joined: 17 Jun 2011, 13:14

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by calaagree » 06 Sep 2011, 16:37

The new sdk works perfectly but I have two suggestions :
- is it possible to have a function to get a player with is ID (and not only with his nick) ?
- Can you add the HTML nick in the players rankings (to avoid a double request to get it) ?

Have a nice day.

User avatar
bas_3008
Posts: 52
Joined: 06 Apr 2011, 21:43

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by bas_3008 » 29 Feb 2012, 08:33

Hello,
I am currently messing arround with your Trackmania WS SDK 2.0! :thumbsup:
It's great, but I have got 2 problems:

1. When I open /oauth2/guestbook/index.php from the examples, there's a

Code: Select all

Fatal error: Class 'TrackMania\WebServices\OAuth2\Base' not found in ~~~
In the OAuth2 directory, theres no Base.php, just Client.php and Players.php! Is that the mistake? Or do I make something wrong?

2. When I open /oauth2/basic/index.php , I click on "Login with your TrackMania Forever account", I login there, but then "Something went wrong, please try again later"! :(

Btw: I'm using xampp on my localhost to test this.
My TM-login is bas_3008, API-username is epic-lol.
I registered an OAuth2 application, named epic-clan.de, redirection URL is http://www.epic-clan.de.

It's the first time I'm working with a SDK, it would be great if you could help me with this.

Thanks in advance!
ImageImage

User avatar
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!

Post by gouxim » 29 Feb 2012, 11:02

bas_3008 wrote:1. When I open /oauth2/guestbook/index.php from the examples, there's a

Code: Select all

Fatal error: Class 'TrackMania\WebServices\OAuth2\Base' not found in ~~~
In the OAuth2 directory, theres no Base.php, just Client.php and Players.php! Is that the mistake? Or do I make something wrong?
There's a bug in the example.
http://code.google.com/p/trackmania-ws- ... dex.php#86
Line 91 it shouldn't be new \TrackMania\WebServices\OAuth2\Base but new \TrackMania\WebServices\OAuth2\Player
bas_3008 wrote:2. When I open /oauth2/basic/index.php , I click on "Login with your TrackMania Forever account", I login there, but then "Something went wrong, please try again later"! :(

Btw: I'm using xampp on my localhost to test this.
My TM-login is bas_3008, API-username is epic-lol.
I registered an OAuth2 application, named epic-clan.de, redirection URL is http://www.epic-clan.de.
I checked in the DB, redirection URL is not "http://www.epic-clan.de" but "www.epic-clan.de".
Try to put with http:// in your OAuth2 application settings.
Also not that it can only work on that domain name. If you want to test it locally (on http://127.0.0.1) you have to create a username and an oauth2 app for that.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

Post Reply

Return to “Trackmania Forever Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest