[beta] SDK 2.0 with Namespaces and OAuth2 support!

Trackmania Forever public API and its open source PHP SDK.

Moderator: NADEO

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 » 27 Jul 2011, 16:47

Thank you very much, this was exactly what I wanted to know :)
ImageImage
Image

User avatar
steppie
Translator
Translator
Posts: 104
Joined: 25 Apr 2011, 21:55
Location: Denmark
Contact:

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

Post by steppie » 28 Jul 2011, 16:48

So I had a look at it too, interesting stuff :) and some questions now.

1. Can you access both Email, Buddies etc. in the same sessions, and if how?
2. When I call logout I'm not redirected back to my site, how come?
3. How to re-request with the given access Token?
Image
.Image

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

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

Post by gouxim » 28 Jul 2011, 18:24

steppie wrote:1. Can you access both Email, Buddies etc. in the same sessions, and if how?
You can specify several elements in the scope, separated by a coma. And "basic" is already included to you can do "buddies email" for instance.
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.
steppie wrote:3. How to re-request with the given access Token?
The access token is stored in the session ; whenever TrackMania\WebServices\OAuth2\Client::executeOAuth2Request() is called, it includes the access token in the request. So basically once the player is logged in, you can execute methods from the TrackMania\WebServices\OAuth2\Player class without worrying about access tokens.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
w1lla
Posts: 2377
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, 09:45

nice release... especially oauth2... Anyway love this work...

Could the rate limiting be properly made as now it shows us serveral dates in between each other.
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: 1188
Joined: 14 Jun 2010, 17:20

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

Post by gouxim » 29 Jul 2011, 10:35

w1lla wrote:Could the rate limiting be properly made as now it shows us serveral dates in between each other.
I'm not sure I understand. Are you talking about the dates at the bottom of the request rate graph?
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
w1lla
Posts: 2377
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: 1188
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. :)

Post Reply

Return to “Trackmania Forever Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest