/
20. setSystemUsername()

20. setSystemUsername()

Check if system player for given $splayer_username, $splayer_password, $systeem and player_id from $player(it's loaded with the user_username and user_password) exists. If yes then return it otherwise create new system player with provided data and return it.

REST REQUEST
Array
(
	[api_password] => xapitest
	[api_login] => xapitest
	[method] => setSystemUsername
	[user_username] => domendomen2
	[user_password] => 687ee8d988b2411bfc6983c4fca2f6c622819ac8
	[splayer_username] => brad
	[splayer_password] => bradtheking 
	[system] => hi
	[currency] => EUR
)
REST RESPONSE
On error:
1,[error message]


On success:
<br>0,{"info":{"New: system_player_username":"thebadmother"}}
Source Code
public function setSystemUsername($splayer_username, $splayer_password, $system) {}

Related content