Player Info
The Player Info API is responsible for getting the info of a specific player.
The following APIs use Hashing Function SHA1, Check how Hashing is done below.
Player Info
POST
/Integrations/Player/Info
Headers
Name | Type | Description |
---|---|---|
APIKey | string | Client API Key |
Request Body
Name | Type | Description |
---|---|---|
playerUniqueId | string | Player external ID used by integrator to uniquely identify the player in Gameball |
bodyHashed | string | Hashed body with SHA1 algorithm. As described in Hashing Transaction Messages section |
Examples
The example shown is a request sent to Gameball to get a player info with playerUniqueId
“ac2635be”and with the bodyHashed
.
Response
The following are the attributes of the json object from the response
Attribute | Description |
displayName | The name of the player |
referralCode | The code of the referral |
referralLink | Referral URL |
scoreBalance | The player score |
scoreName | The naming of the score points that appears to the player |
level.name | The name of the level |
level.description | The description of the level |
level.levelStartScore | The required score to reach that level |
level.levelOrder | The order of the level |
level.iconPath | The logo icon of the level |
level.benefits.scoreEntryReward | The reward score for reaching that level |
level.benefits.pointsEntryReward | The reward points for reaching that level |
level.benefits.levelDiscount | The discount that can be taken by the player for reaching that level |
balance.pointsBalance | The points of the player |
balance.pointsValue | The actual value equivalent to the points of the player |
balance.currency | The store currency |
balance.pointsName | The naming of the rewarding points that appears to the player |
attributes.name | The name of the attribute for the player eg: Age,Email,etc... |
attributes.value | The value of the attribute of the player |
attributes.type | The type of the attribute field eg: string,number |
Last updated