Test Environment
Production Environment
Test AppID
appid:123456820
payPassward:123456
Test public key
xxxxxxxxxx91-----BEGIN RSA PUBLIC KEY-----2MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxG1Pb+LMXLbUuuebPA6031U3lwovUAK/xbR6biqqCiGCCNYmKunMZlt5xjmC9h5D+MA90gSrPProAu2n6Ocfw43mDTcSP7tRq1Ypr5joZ74YCsbw/+3xSgVzqKVc87vDkcAuQ0Km/5lXesB9PY+UgE5ZK6AJRLh99AdE0/Y3tUyVEe+qjpzvxjUaU5mamfx6iryG6tpeLCqV0qk0QZg7g+16gB/zAbxryIcD1v3fFsOSLyMwVmfD97RAeRfvJ68GgCl12TwVdCaVmKzgkiyBb6Mo7J/8lE1wBl+LFzToT3ub5g6MZdf6Q59y6eLa54yvkwm7x36WPeuIwiV/2tffVjTCm8FQIDAQAB9-----END RSA PUBLIC KEY-----Request Method
Add appid and sign to the header.
appid is the agent user ID.
sign: The parameters are encrypted using the EncryptPKCS1v15 public key, and the parameters do not need to be hashed.
No need to put parameters in the body
xxxxxxxxxx41curl -X POST http://localhost:8080/agent/api/check-user \2-H "Content-Type: application/json" \3-H "appid:<your appid>" \4-H "sign: <sign>" \Interface Request Limitations
One request per interface every 30 seconds
Status Code See Below
Request URL
/agent/api/check-user
Request Method
POST
Request Parameters
| Field Name | Type | Required | Remarks |
|---|---|---|---|
| user_id | int | Yes | User ID |
| app_id | int | Yes | App ID |
| request_time | int | Yes | request time,timestamp in seconds |
Response Parameters
| Field Name | Type | Remarks |
|---|---|---|
| user_id | int | User ID |
| nickname | string | Nickname |
| portrait | string | Avatar |
Response Example
xxxxxxxxxx91{2 "code": 0,3 "message": "success",4 "data": {5 "user_id": 123457947,6 "nickname": "sss",7 "portrait": "https://istatic.imamolive.top//common/fuya_def_head.png"8 }9}Request URL
/agent/api/transfer-record
Request Method
POST
Request Parameters
| Field Name | Type | Required | Remarks |
|---|---|---|---|
| page | int | Yes | Page number, starting from 0 |
| size | int | Yes | Number of records per page |
| start_time | int | No | Start time, timestamp in seconds |
| end_time | int | No | End time, timestamp in seconds |
| target_user_id | int | No | Target user ID |
| app_id | int | Yes | App ID |
| request_time | int | Yes | request time,timestamp in seconds |
Response Parameters
| Field Name | Type | Remarks |
|---|---|---|
| order_id | int | order_id |
| user_id | int | User id |
| target_user_id | int | Platform order ID |
| one_price | float | unit price |
| cost_price | float | Cost unit price |
| diamonds | int | amount |
| before_change | int | Before balance |
| after_change | int | After balance |
| certificate_url | string | voucher |
| payment_id | int | channel |
| payment_name | string | channel name |
| link_order_id | string | Your order id |
| create_time | int | create time |
| update_time | int | update time |
Response Example
xxxxxxxxxx251{2 "code": 0,3 "message": "success",4 "data": {5 "count": 1,6 "list": [7 {8 "order_id": 1850,9 "user_id": 123457945,10 "target_user_id": 123457947,11 "one_price": 0.28,12 "cost_price": 0.2740500025,13 "diamonds": 100000,14 "before_change": 999999799999,15 "after_change": 999999699999,16 "certificate_url": "",17 "payment_id": 0,18 "payment_name": "",19 "link_order_id": "oid123451678",20 "create_time": 1744615890,21 "update_time": 174461589022 }23 ]24 }25}Request URL
/agent/api/transfer-diamond
Request Method
POST
Request Parameters
| Field Name | Type | Required | Remarks |
|---|---|---|---|
| target_user_id | int | Yes | Target user ID |
| app_id | int | Yes | app_id |
| diamonds | int | Yes | diamonds |
| pay_password | string | Yes | pay password(Please refer to the following figure for details) |
| link_order_id | string | Yes | Your order id |
| pop_ids | []int | No | Gift Props Ids (/agent/api/agent-props props_ids) |
| request_time | int | Yes | request time,timestamp in seconds |
Response Parameters
| Field Name | Type | Remarks |
|---|---|---|
| remain_diamonds | int | Remaining Diamonds |
| balance_money | int | Agent Balance |
| order_id | Int | Platform order ID |
Response Example
xxxxxxxxxx81{2 "code": 0,3 "message": "success",4 "data": {5 "remain_diamonds": 51151144,6 "balance_money": 1193805007 }8}
Tap on "Payment Password" to set the payment password.
Request URL
/agent/api/account
Request Method
POST
Request Parameters
| Field Name | Type | Required | Remarks |
|---|---|---|---|
| app_id | int | Yes | app_id |
| request_time | int | Yes | request time,timestamp in seconds |
Response Parameters
| Field Name | Type | Remarks |
|---|---|---|
| remain_diamonds | int | Remaining Diamonds |
| balance_money | int | Agent Balance |
Response Example
xxxxxxxxxx81{2 "code": 0,3 "message": "success",4 "data": {5 "remain_diamonds": 51151144,6 "balance_money": 1193805007 }8}
Request URL
/agent/api/agent-props
Request Method
POST
Request Parameters
| Field Name | Type | Required | Remarks |
|---|---|---|---|
| app_id | int | Yes | app_id |
| request_time | int | Yes | request time,timestamp in seconds |
返回参数
| Field Name | Type | Remarks |
|---|---|---|
| props_name | string | Gift Props Name |
| props_icon | string | Gift Props Icon |
| props_day | int | Number of Gift Props Days |
| props_type | int | Gift Props Type 1 Gift 2 VIP 3 Outfit |
| props_link | int | |
| count | int | Number of Gift Props Items |
| props_ids | []int | List of Gift Props IDs |
返回示例
xxxxxxxxxx181{2 "code": 0,3 "message": "success",4 "data": [5 {6 "props_name": "Crystal Vip",7 "props_icon": "https://static.fuyalive.top/common/vip/Crystal.png",8 "props_day": 30,9 "props_type": 2,10 "props_link": 1,11 "count": 2,12 "props_ids": [13 136,14 13715 ]16 }17 ]18}###
| code | Remarks |
|---|---|
| 0 | Success |
| 500 | Request Failed |
| 1000 | Parameter Error |
| 1001 | Request time difference of 60 seconds |
| 1053 | frequent operations |
| 4001 | IP Inaccessible |
| 4002 | Sign is Empty |
| 4003 | Unauthorized agent user |
| 4004 | Sign Error, Parsing Failed |
| 4005 | Operation Error, No Verification of Transfer User 10 Minutes Before Transfer |
| 4006 | Agent Account Exception |
| 4007 | Incorrect Payment Password |
| 4008 | Insufficient Balance |
| 4009 | Order Repeat |