#

Description
Command Payload
| Parameter |
Required |
Type |
Description |
| opcode |
Yes |
string |
Command opcode, set to 3 for sending gifts |
| payload |
Yes |
PayloadInfo |
Operation payload |
| Parameter |
Required |
Type |
Description |
| gift_id |
Yes |
int32 |
Gift ID (values are as follows) |
| gift_name |
Yes |
UserInfo |
Gift information |
| amount |
Yes |
UserInfo |
Gift quantity |
| user_info |
Yes |
UserInfo |
User information |
| Parameter |
Required |
Type |
Description |
| uid |
Yes |
string |
User ID |
| nick_name |
Yes |
string |
User nickname |
| avatar_url |
Yes |
string |
User avatar |
| gender |
Yes |
string |
User gender (male/female/secret) |
King of War Gift Descriptions
| Gift ID |
Gift Description |
Gift Type |
| 1 |
Junior Warcraft |
Price gift |
| 2 |
Elite Warcraft |
Price gift |
| 3 |
Ancient Warcraft |
Price gift |
| 4 |
Random Summon |
Random gift |
| 5 |
Legendary Warcraft |
Price gift |
| 6 |
Little Demon Patrol |
Gift package |
| 7 |
Dominating the World |
Gift package |
| 8 |
True Dragon Emperor |
Gift package |
Complete Request Example
{
"mg_id": "1554721242510114817",
"anchor_id": "68001",
"command": {
"opcode": "3",
"payload": {
"gift_id": 1,
"gift_name": "Junior Warcraft",
"amount": 1,
"user_info": {
"uid": "1",
"nick_name": "xxx",
"avatar_url": "xxx",
"gender": "mela"
}
}
}
}