CommitBirthday
The commitBirthday
API is used to submit user's birthday.
caution
Credit card authorization is currently not supported but is planned for subsequent versions.
Request Parameter
Parameter | Type | Description |
---|---|---|
birthday | string | User birthday YYYY-MM or YYYY-MM-DD |
adultAge | number | Age of majority in the player's country |
gameGrade | number | Age criteria of games in the player's country |
certificateType | number | Authorization method according to country/region Use the default authorization method if not found -1: Unknown 0: Authorization not required 1: Self-authorization 2: Credit-card authorization(currently not supported) 3: Email authorization |
Response Parameter
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success !=0: Request failure, see msg for detailed return message |
msg | string | Return message |
adult_check_status | number | Player adult status -1: Minor 0: Not set 1: Adult |
Request Sample
complianceApi.commitBirthday(
{
birthday: "2000-01-01",
adultAge: 18,
gameGrade: 16,
certificateType: 0,
},
(res) => {
console.log(res);
}
);
Response Sample
{
adult_check_status: 1,
msg: "success",
ret: 0,
seq: "1636535835-1006943754-007094-0000351947",
}