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.
Server account creation
Moderator: NADEO
Server account creation
nc1.eu - TMF, TM² and ShootMania servers with first class support, control panel, FTP access and more..!
https://nc1.eu/
http://facebook.com/nc1.eu/
https://twitter.com/nc1eu/
https://nc1.eu/
http://facebook.com/nc1.eu/
https://twitter.com/nc1eu/
Re: Server account creation
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:
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:
(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:
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.
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
Code: Select all
POST https://player.maniaplanet.com/dedicated-servers/do-create/?code=4688u944wgj5888575323759953hal35737259
login=konte-test3&password=test1234&location=129
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
?>
Re: Server account creation
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Re: Server account creation
Okay, thats for sure the better way
Re: Server account creation
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 , 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.
Thx konte for your suggestion , 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..!
https://nc1.eu/
http://facebook.com/nc1.eu/
https://twitter.com/nc1eu/
https://nc1.eu/
http://facebook.com/nc1.eu/
https://twitter.com/nc1eu/
Who is online
Users browsing this forum: No registered users and 1 guest