API Call Address
{域名地址}/api/retailer/members
Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/members
Calling method
GET
Request parameters
| Field name |
Type |
Required |
Description |
| current |
int |
No |
Get specified pagination data, current page number |
| Page size |
int |
No |
Display quantity, items per page |
Return parameters
| Field name |
Type |
Description |
| code |
int |
error code |
| msg |
string |
error reason description |
| data |
object |
result content |
| Total |
int |
Total count |
data parameter
| Field name |
Type |
Description |
| id |
int |
User ID |
| parent_id |
int |
Parent User ID |
| user_name |
string |
Username |
| real_name |
string |
Real Name |
| avatar_url |
string |
User Avatar Address |
| email |
string |
Email Address |
| phone |
string |
Phone Number |
| group_id |
int |
User Group ID |
| is_retailer |
int |
Is a Distributor |
| balance |
int |
user_balance |
| total_reward |
int |
Distributor Cumulative Earnings |
| invite_code |
int |
User Invite Code |
| Last Login |
int |
Last Login Time |
| expire_time |
int |
expiration_time |
| Created Time |
int |
registration_timestamp |
| updated_time |
int |
update timestamp |
| status |
int |
display status |
request data example
| Parameter |
Value |
| current |
1 |
Return Data Example
{
"code": 0,
"data": [
{
"id": 2,
"created_time": 0,
"updated_time": 1665753923,
"parent_id": 1000,
"user_name": "wangxiaocong",
"real_name": "",
"avatar_url": "",
"email": "",
"phone": "",
"group_id": 1,
"status": 1,
"is_retailer": 0,
"balance": 0,
"total_reward": 0,
"invite_code": "",
"last_login": 0,
"expire_time": 0,
"extra": null,
"token": "",
"group": null,
"full_avatar_url": "",
"link": ""
},
{
"id": 1,
"created_time": 0,
"updated_time": 1665755545,
"parent_id": 1000,
"user_name": "wangdacong",
"real_name": "王小强",
"avatar_url": "",
"email": "[email protected]",
"phone": "13888888888",
"group_id": 1,
"status": 1,
"is_retailer": 1,
"balance": 0,
"total_reward": 0,
"invite_code": "123456",
"last_login": 0,
"expire_time": 1667404800,
"extra": null,
"token": "",
"group": null,
"full_avatar_url": "",
"link": ""
}
],
"msg": "",
"total": 2
}
Error Code
| error code |
Description |
| 0 |
OK |
| -1 |
Error, the reason is indicated in the msg |
| 1001 |
Not logged in |
| 1002 |
Unauthorized |
| 200 |
API request OK |