[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 »

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

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

Post by steppie »

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
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 »

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: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

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

Post by w1lla »

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 »

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: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

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

Post by w1lla »

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 »

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 »

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
fastforza
Posts: 859
Joined: 15 Jun 2010, 11:19
Contact:

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

Post by fastforza »

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 2 guests