Page 2 of 2

Re: SDK V1.0

Posted: 28 Sep 2011, 20:53
by Jojo_44
Hi gouxim,

if I try to login, I get the error "Oops something went wrong, ... Invalid redirection URI." My maniaplanet account is jojo95183 and the api user is jojo95183|zeroguestbook. The error occours directly after clicking the login href.

Next thing is, my homepage has 3 urls, so it is possible to add more than one url to an application ?

Thanks, Jojo

Edit: forget the error, I´ve written www.zero-esports.org instead of http://www.zero-esports.org ;) But the question with the 3 urls is still alive

Re: SDK V1.0

Posted: 29 Sep 2011, 18:54
by gouxim
Jojo_44 wrote:Next thing is, my homepage has 3 urls, so it is possible to add more than one url to an application ?
Nop it's not possible.

You could however have a redirection enpoint on your side (eg. you have domain1 & domain2, you register domain1 as redirect URI, and when you want to go to domaine2 you use a redirection URI something like http://domain1/redirect?uri=http://domain2/)

So the flow would be:

Your site (domain1 or 2) =[click]=> ManiaConnect permission page =[accept/deny]=> domain1 redirection endpoint =[redirect]=> domain2

Re: SDK V1.0

Posted: 29 Sep 2011, 19:14
by Jojo_44
Ok thanks, m4rcel told me that it´s general better to have only 1 main domain and just forwarding the other 2 to the main. So I changed the DNS and now I´m waiting ;)

Thanks for your support,

Jojo

Re: SDK V1.0

Posted: 09 Oct 2011, 10:19
by oliverde8
Hi,
I was thinking of recreating tm-teams for maniaPlanet and wanted to ask something.

On the old system we had to cache player information because it took to many time to recover information of about 50 players at once. I suppose I will need to do the same here?

Re: SDK V1.0

Posted: 09 Oct 2011, 20:32
by gouxim
oliverde8 wrote:On the old system we had to cache player information because it took to many time to recover information of about 50 players at once. I suppose I will need to do the same here?
Indeed, as any HTTP API, caching is a key to avoid bad performance