Add a friendly link interface

API call address

{域名地址}/api/friendlink/create?token={token}

illustrate:{域名地址}Need to replace it with your domain address.{token}Need to be replaced with the token in the background content import interface function, such as/api/friendlink/create?token=xxx

Calling methods

POST form-data

Request parameters

GET parameters

Field name type Required illustrate
token string yes Token in the background content import interface function

POST parameters

Field name type Required illustrate
title string yes The other party's keywords
link string yes Links to the other party
nofollow int no Whether to add nofollow, optional value: 0 Not added, 1 Add
back_link string no The other party's reverse link page
my_title string no My keywords
my_link string no My link
contact string no Contact information of the other party
Remark string no Notes information

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description

Request data example

GET parameters

token=4712a54b4c456bb29b7816d241db69a7

POST parameters

parameter value
title AnqiCMS
link /

Return to the data example

{
    "code": 0,
    "msg": "链接已保存"
}

Error code

Error code illustrate
0 OK
-1 Error, the cause of the error is pointed out in msg
1001 Not logged in
1002 Unauthorized
200 API request OK