Server account creation

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

Moderator: NADEO

Post Reply
User avatar
sotn0r
Posts: 79
Joined: 13 Mar 2011, 15:57
Contact:

Server account creation

Post by sotn0r » 12 Jan 2016, 18:06

Hi,

is it possible to automate the creation (and maybe even the deletion) of server accounts using ManiaPlanet Web Services?

I'm running a company that offers maniaplanet server hosting and we're having a lot of people that are having trouble with the creation of their server account. It would certainly make things easier for them and for us.
nc1.eu - TMF, TM² and ShootMania servers with first class support, control panel, FTP access and more..!

Image http://nc1.eu/
Image http://facebook.com/nc1.eu/
:arrow: http://twitter.com/nc1eu/

konte
Posts: 235
Joined: 15 Jun 2010, 12:36
Location: Germany

Re: Server account creation

Post by konte » 20 Jan 2016, 23:07

Hey,
I believe registering via the PlayerPage is the only possibility. But you can reconstruct the registering process:
If you go to the player page by clicking Options->Player Page ingame, there will open a page similar to this one:

Code: Select all

https://player.maniaplanet.com/?code=4688u944wgj5888575323759953hal35737259
You'll need the code for authentication. So, if you copy it and replace it in the following POST request, you should be able to register a server:

Code: Select all

POST https://player.maniaplanet.com/dedicated-servers/do-create/?code=4688u944wgj5888575323759953hal35737259

login=konte-test3&password=test1234&location=129
(login, password and the zone id of the server)

In my example, 129 is the zoneId of Europe|Germany|Nordrhein-Westfalen|Dortmund. Either you remember the zoneIds you need, or you get the zone of a certain login with the WS SDK:

Code: Select all

<?php
require "libraries/autoload.php";
$players = new Maniaplanet\WebServices\Players($username, $password);
$zoneId = $players->get("konte")->idZone; // returns 129
?>
Remember that you have only 30 dedicated server slots by default. And similarly, you'll be able to delete the server again (that's only a GET request). I hope I could help, I didn't test it myself.

User avatar
magnetik
Nadeo
Nadeo
Posts: 1614
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: Server account creation

Post by magnetik » 21 Jan 2016, 09:03

Hello,

Sorry for the late response

Feel free to PM Alinoa, we can sure help you with that. :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

konte
Posts: 235
Joined: 15 Jun 2010, 12:36
Location: Germany

Re: Server account creation

Post by konte » 21 Jan 2016, 17:57

Okay, thats for sure the better way :D

User avatar
sotn0r
Posts: 79
Joined: 13 Mar 2011, 15:57
Contact:

Re: Server account creation

Post by sotn0r » 21 Jan 2016, 18:20

For all those interested, according to Cerovan there is no way to do that via the Web Services at this time. It may be added in the future, but thats uncertain.

Thx konte for your suggestion :thumbsup: , but the mentioned code is likely not the same with every login but some kind of one-time access token generated in the game client.
nc1.eu - TMF, TM² and ShootMania servers with first class support, control panel, FTP access and more..!

Image http://nc1.eu/
Image http://facebook.com/nc1.eu/
:arrow: http://twitter.com/nc1eu/

Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 3 guests