[beta] SDK 2.0 with Namespaces and OAuth2 support!
Moderator: NADEO
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
gouxim said somewhere (don't know exactly where), that the MPWS will be pretty much the same as TMWS
- w1lla
- Posts: 2287
- Joined: 15 Jun 2010, 11:09
- Manialink: maniaplanetblog
- Location: Netherlands
- Contact:
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
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
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
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
Hello,
I am currently messing arround with your Trackmania WS SDK 2.0!
It's great, but I have got 2 problems:
1. When I open /oauth2/guestbook/index.php from the examples, there's a
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!
I am currently messing arround with your Trackmania WS SDK 2.0!
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 ~~~
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!
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
There's a bug in the example.bas_3008 wrote:1. When I open /oauth2/guestbook/index.php from the examples, there's a
In the OAuth2 directory, theres no Base.php, just Client.php and Players.php! Is that the mistake? Or do I make something wrong?Code: Select all
Fatal error: Class 'TrackMania\WebServices\OAuth2\Base' not found in ~~~
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
I checked in the DB, redirection URL is not "http://www.epic-clan.de" but "www.epic-clan.de".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.
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!
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
Okay thanks!
I tried it - /guestbook/index.php now says:
--
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
(but guestbook still doesn't work )
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
(but guestbook still doesn't work )
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
When I'm logged in (/basic/index.php) and I refresh the page, it get
Is this normal?
btw: it's on my webspace now, http://epic-clan.de/trackmania-ws-sdk/e ... /index.php
Code: Select all
int(401) string(12) "Unauthorized" string(0) ""
btw: it's on my webspace now, http://epic-clan.de/trackmania-ws-sdk/e ... /index.php
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
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
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!
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
Hi,
the redirection for the logout doesn´t work anymore. At least for me
regards, Jojo
the redirection for the logout doesn´t work anymore. At least for me
regards, Jojo
Re: [beta] SDK 2.0 with Namespaces and OAuth2 support!
I think it never have.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer!
Who is online
Users browsing this forum: No registered users and 2 guests