[beta] SDK 2.0 with Namespaces and OAuth2 support!

Trackmania Forever public API and its open source PHP SDK.

Moderator: NADEO

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, 21:13

Okay thanks!
I tried it - /guestbook/index.php now says:

Code: Select all

Fatal error: Call to undefined method TrackMania\WebServices\OAuth2\Player::getLogin() in D:\xampp\htdocs\trackmania-ws-sdk\examples\oauth2\guestbook\index.php on line 92
--

I changed the URL direction to http://127.0.0.1, opened /basic/index.php, I allowed access to my App and I got redirected to http://127.0.0.1/trackmania-ws-sdk/exam ... guestbook/ and ... okay, now it works. First time, I did that, there was a warning like "int(0) string" or something and I had to log in again. Now I'm authentified and I get my TrackMania data :thumbsup:
(but guestbook still doesn't work :| )
ImageImage

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 » 06 Mar 2012, 21:02

When I'm logged in (/basic/index.php) and I refresh the page, it get

Code: Select all

int(401) string(12) "Unauthorized" string(0) "" 
Is this normal? :?

btw: it's on my webspace now, http://epic-clan.de/trackmania-ws-sdk/e ... /index.php
ImageImage

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

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

Post by gouxim » 08 Mar 2012, 11:27

There was a bug in the SDK. I commited the fix, you can see the difference here:

http://code.google.com/p/trackmania-ws- ... Player.php
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

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 » 08 Mar 2012, 14:14

Yeah! Works great now! Thanks! :thumbsup:
ImageImage

User avatar
Jojo_44
Posts: 500
Joined: 12 Jul 2010, 15:58
Location: Germany->Bavaria
Contact:

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

Post by Jojo_44 » 01 Apr 2012, 12:47

Hi,

the redirection for the logout doesn´t work anymore. At least for me ;)

regards, Jojo
Image
my english sounds very unfriendly but it isn´t ;)

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

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

Post by gouxim » 03 Apr 2012, 10:02

I think it never have.
:lol:
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
Jojo_44
Posts: 500
Joined: 12 Jul 2010, 15:58
Location: Germany->Bavaria
Contact:

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

Post by Jojo_44 » 04 Apr 2012, 09:49

gouxim wrote:I think it never have.
:lol:
You know what to do ? ;)

regards, Jojo
Image
my english sounds very unfriendly but it isn´t ;)

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 » 14 Jul 2012, 21:04

Hello again,
did anything change in the last 1-2 months?
I didn't change my code, but if someone wants to authenticate on my website now, the API doesn't return the information - in my case $trackmania->getPlayer() is false. :?

EDIT: Requesting player info from players who already registered their login does work - but new users can't register their logins, because of the issue above-mentioned.
ImageImage

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

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

Post by gouxim » 16 Oct 2012, 14:26

bas_3008 wrote: Requesting player info from players who already registered their login does work - but new users can't register their logins, because of the issue above-mentioned.
What do you mean by new users? Please note than it usually takes a couple hours for a new user data to be sync in our database ; as for TMNF users, I think it takes something like a couple hours of ingame to be synchronized.
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