ManiaPlanet WebServices JavaScript SDK

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

Moderator: NADEO

Post Reply
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

ManiaPlanet WebServices JavaScript SDK

Post by magnetik »

Hi,

I started a little project of porting the PHP SDK to JavaScript.
Actually it's written in CoffeeScript which is compiled to JavaScript

The code is here: https://github.com/magnetik/maniaplanet-ws-js-sdk

Download here : https://github.com/magnetik/maniaplanet ... all/master


Feel free to contribute (as TheM did ;) ) and make pull requests if you see some stuff to improve.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
anvolcano
Posts: 40
Joined: 06 Jul 2012, 09:25

Re: ManiaPlanet WebServices JavaScript SDK

Post by anvolcano »

Nice! As someone who mainly uses Python and JavaScript, I'm glad to see the SDK in more languages :)
sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

Re: ManiaPlanet WebServices JavaScript SDK

Post by sylario »

It's great but.. from what i remember, doing an ajax call to an URL different from where the script have been downloaded is impossible due to crossdomain attack. is it some kind of server-side JS like node.js?
http://www.statsmania.net Maniaplanet ladders
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: ManiaPlanet WebServices JavaScript SDK

Post by magnetik »

There is a way to bypass this : JSONP, it is used in this script.

Moreover I'll add the compatibility with node.js
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
sylario
Posts: 28
Joined: 14 Feb 2012, 13:44

Re: ManiaPlanet WebServices JavaScript SDK

Post by sylario »

So i could build a page with JS that would transform the document in a webservice client, with the requests navigating directly between ws.maniaplanet and the browser.

Do you plan on using your port for some kind of project?

EDIT: Did not saw you were from NADEO ><
http://www.statsmania.net Maniaplanet ladders
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 0 guests