Create player using the data passed in the constructor.
Please do not use real player passwords. Because if the player changes his password, you will not be able to log him in via the API. Send a constant password for all players, or create a password by hashing some constant user details (like username) and send that instead. |
Username must be min 4 and max 16 characters long! If your player usernames exceed that limit, then please send your player's ID as username! |
( [api_password] => xapitest [api_login] => xapitest [method] => createPlayer //[user_id] => 123 //DEPRECATED [user_username] => domendomen2 //should be unique - you can use your internal ID for this parameter [user_password] => 687ee8d988b2411bfc6983c4fca2f6c622819ac8 [user_nickname] => notuniquenickname //optional - non unique nickname of a player that is showed in some providers. If not passed user_username is used [currency] => EUR ) |
|
public function createPlayer(){ if($this->playerExists() === FALSE){ return $this->client->createPlayer($this->user); }else{ return "player already exists"; } } |