/
2.2 playerExists() *

2.2 playerExists() *

Check if player exist using the username from the constructor.

REST REQUEST
Array
(
	[api_password] => xapitest
	[api_login] => xapitest
	[method] => playerExists
	[user_username] => domendomen2
	[currency] => EUR
)
REST RESPONSE
OK:
{  
   "error":0,
   "response":{  
      "id":41457, //remote_id that will be sent in seamless request
      "username":"xxdomendomen2",
      "balance":"20.00",
      "currencycode":"EUR",
      "created":"2013-02-15 14:57:47",
      "agent_balance":"0.25"
   }
}

DOESN'T EXIST:
{"error":0,"response":false}
Source Code
public function playerExists(){    //returns FALSE on no user, else returns details
	return $this->client->checkPlayer($this->user['username']);
}

Related content