API Call Address
{域名地址}/api/retailer/info
Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/info
Calling method
GET
Request parameters
| Field name |
Type |
Required |
Description |
| retailer_id |
int |
Yes |
Distributor ID |
Return parameters
| Field name |
Type |
Description |
| code |
int |
error code |
| msg |
string |
error reason description |
| data |
object |
result content |
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 |
| group |
object |
User Group |
User Group
| Field name |
Type |
Description |
| id |
int |
Group ID |
| title |
string |
Group name |
| Description |
string |
Group Description |
| Level |
int |
Level |
| price |
int |
Price |
| Setting |
object |
Configuration Information |
| status |
int |
display status |
request data example
Return Data Example
{
"code": 0,
"data": {
"id": 1000,
"created_time": 1669012062,
"updated_time": 1679536756,
"parent_id": 0,
"user_name": "admin",
"real_name": "",
"avatar_url": "uploads/202211/21/14f56760596b5328.webp",
"email": "",
"phone": "",
"group_id": 2,
"status": 1,
"is_retailer": 0,
"balance": 0,
"total_reward": 0,
"invite_code": "anqicms",
"last_login": 1702912236,
"expire_time": 1997404800,
"extra": null,
"group": {
"id": 1,
"created_time": 0,
"updated_time": 1696919880,
"title": "普通用户",
"description": "<ul> <li>有效期不限制</li> <li>最多管理2个站点</li> <li>最多2个/1万关键词导出任务</li> <li>最多2个采集文章任务</li> <li>最多2个文章组合任务</li> <li>最多2个文章监控任务</li> <li>整站采集/下载不可用</li> <li>累计AI写作额度 10 篇<div class=\"extra\">超出数量 10 积分一篇</div> </li> </ul>",
"level": 0,
"status": 1,
"price": 0,
"setting": {
"share_reward": 20,
"parent_reward": 0,
"discount": 95,
"expire_day": 0
},
"favorable_price": 0
},
"full_avatar_url": "",
"link": ""
},
"msg": ""
}
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 |