Add Friendship Link Interface

API Call Address

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

Description:{域名地址}Replace it with your domain address,{token}Replace it with the Token in the background content import interface function,https://en.anqicms.com/api/friendlink/create?token=xxx

Calling method

POST form-data

Request parameters

GET Parameters

Field name Type Required Description
token string Yes Token in the background content import interface feature

POST Parameters

Field name Type Required Description
title string Yes Opposite keyword
link string Yes Opposite link
nofollow int No whether to add nofollow, optional values: 0 do not add, 1 add
back_link string No counterparty backlink page
my_title string No my keywords
my_link string No my_link
contact string No contact_info_of_the_other_party
remark string No remark_information

Return parameters

Field name Type Description
code int error code
msg string error reason description

request data example

GET Parameters

token=4712a54b4c456bb29b7816d241db69a7

POST Parameters

Parameter Value
title AnqiCMS
link https://en.anqicms.com/

Return Data Example

{
  "code": 0,
  "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