API 调用地址
{域名地址}/api/friendlink/list
说明:{域名地址} 需要替换成你的域名地址,如 https://www.anqicms.com/api/friendlink/list
调用方法
GET
请求参数
无
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | int | 错误码 |
| msg | string | 错误原因说明 |
| data | object[] | 结果内容 |
data 结果 item 信息
| 字段名 | 类型 | 说明 |
|---|---|---|
| title | string | 对方关键词 |
| link | string | 对方链接 |
| nofollow | int | 是否添加 nofollow,可选值:0 不添加, 1 添加 |
| back_link | string | 对方反链页 |
| my_title | string | 我的关键词 |
| my_link | string | 我的链接 |
| contact | string | 对方联系方式 |
| remark | string | 备注信息 |
请求数据示例
无
返回数据示例
{
"code": 0,
"data": [
{
"id": 1,
"created_time": 1626076270,
"updated_time": 1652067973,
"title": "AnqiCMS",
"link": "https://www.anqicms.com",
"back_link": "",
"my_title": "",
"my_link": "",
"contact": "",
"remark": "",
"nofollow": 0,
"sort": 1,
"status": 4,
"checked_time": 1652067973
},
{
"id": 2,
"created_time": 1626076270,
"updated_time": 1652067973,
"title": "免费取名网",
"link": "https://www.888name.cn",
"back_link": "",
"my_title": "",
"my_link": "",
"contact": "",
"remark": "",
"nofollow": 0,
"sort": 1,
"status": 4,
"checked_time": 1652067973
}
],
"msg": ""
}
错误代码
| 错误码 | 说明 |
|---|---|
| 0 | OK |
| -1 | 错误,错误原因在 msg 中指出 |
| 1001 | 未登录 |
| 1002 | 未授权 |
| 200 | API 请求 OK |