Get the link list interface

API call address

{域名地址}/api/friendlink/list

illustrate:{域名地址}You need to replace it with your domain address, such ashttps://en.anqicms.com/api/friendlink/list

Calling methods

GET

Request parameters

none

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description
data object[] Results content
Data result item information
Field name type illustrate
title string The other party's keywords
link string Links to the other party
nofollow int Whether to add nofollow, optional values: 0 Do not add, 1 Add
back_link string The other party's reverse link page
my_title string My keywords
my_link string My link
contact string Contact information of the other party
Remark string Notes information

Request data example

none

Return to the data example

{
  "code": 0,
  "data": [
    {
      "id": 1,
      "created_time": 1626076270,
      "updated_time": 1652067973,
      "title": "AnqiCMS",
      "link": "https://en.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": ""
}

Error code

Error code illustrate
0 OK
-1 Error, the error reason is indicated in msg
1001 Not logged in
1002 Unauthorized
200 API Request OK