Any Request parameters that are part of this API request would be provided with a token / session_id, typically a unique string assigned to each player. This response would contain information from the given session_id, such as player’s account ID, username / alias, first name last name etc.
GetSession() Request
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/get_session |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: { |
Parameters | Type | Description |
---|---|---|
token | String | Unique string assigned to each player |
GetSession() Response + Example
{
"status": 0,
"account_id": "123123",
"username": "test_username",
"country": "US",
"token": "3c2ef39d02581e2db3ddf6c713e83e05",
"balance": 12345,
"currency": "USD"
}
Object/Key in Response Object | Type | Description |
---|---|---|
status | Integer | Response status |
account_id | String | Account ID of the player |
username | String | Username of the player or alternatively it can be the value of account_id when the actual username can’t be shared |
country | String | Country of the player |
token | String | Unique string assigned to each player (session ID). |
balance | Integer | Balance of the player |
currency | String | Currency of the player |