First version of my site using the API

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

First version of my site using the API

Post by sylario »

Hi here is the very first version of my rails app using maniaplanet app : http://92.243.25.188/

It is using a one hour cache based on the request to the API. Despite that it is still quite heavy with 4 requests to the API each time you search a player (that has not been viewed in the past hour).
http://www.statsmania.net Maniaplanet ladders
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: First version of my site using the API

Post by spaii »

Whouah, cool site :thumbsup:

It would be nice to put his nickname in the URL directly. Like this http://url/login

Nice work :D
sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

Re: First version of my site using the API

Post by sylario »

Good idea, currently you can use the nick as a parameter, but this is a good idea too.

I have works to do on the links anyaway, i should keep the current player name when browsing ladders. Also i must highlight the searched player in the ladders. And i am still considering displaying nickname instead of login in the ladders.
http://www.statsmania.net Maniaplanet ladders
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

Re: First version of my site using the API

Post by m4rcel »

You may consider to cache the MPWS results at least for 24 hours, because the MPWS servers themselves do not update the data more often ;)
ImageImage
Image
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: First version of my site using the API

Post by gouxim »

Indeed, the ladders are updated once a day, so you might consider a 24 hours cache to decrease the rate.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

Re: First version of my site using the API

Post by sylario »

Ok, i changed the value to 24 hours, it will go up with the next version. Is player data (like the nickname) also subject to a 24 hour caching delay?
http://www.statsmania.net Maniaplanet ladders
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: First version of my site using the API

Post by gouxim »

Player data is cached for around 1 hour.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

Re: First version of my site using the API

Post by sylario »

Now there is a domain name : http://www.statsmania.net

I added ubisoft/NADEO mention at the bottom, tell me if itis ok.

Now the ladders display the nickname, and the login is displayed as tool-tip.
http://www.statsmania.net Maniaplanet ladders
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: First version of my site using the API

Post by spaii »

It's ok here, nice work :thumbsup:

Just one thing : in "Multiplayer Ladder", nickname is shadowed, not in "Solo Ladder"
I think it's better in "Multiplayer Ladder" for visibility ;)
sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

Re: First version of my site using the API

Post by sylario »

The nicks are shadowed from the $ markup of maniaplanets nickname. I could add it to all the nicknames, but then i would not respect the nickname original formatting.
http://www.statsmania.net Maniaplanet ladders
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest