Check if Friend Link is Available Interface

Used to verify if the friend link interface configuration is correct, check if the Token is valid, and ensure that the friend link function can be used normally.

Precautions

  • This interface supports GET or POST methods.
  • Need to provide a valid backend import interface Token for authentication
  • Mainly used to test the connection status of the friendship link interface
  • No additional parameters are required, only the validity of the Token is verified.

Request address

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

Description:{域名地址}It needs to be replaced with your domain address.{token}It needs to be replaced with the Token from the backend content import interface feature.https://en.anqicms.com/api/friendlink/check?token=xxx

Request syntax

GET/POST {域名地址}/api/friendlink/check?token={token}

Request Parameters

GET Parameter

Field Name Type Required Description
token string Yes Token in the background content import interface function

Return parameters

Field Name Type Description
code integer Error code
message string Error Description

Example Usage

Request Example

GET /api/friendlink/check?token=4712a54b4c456bb29b7816d241db69a7 HTTP/1.1
Host: www.anqicms.com

Or use the POST method:

POST /api/friendlink/check?token=4712a54b4c456bb29b7816d241db69a7 HTTP/1.1
Host: www.anqicms.com
Content-Type: application/x-www-form-urlencoded

Response Example

{
  "code": 0,
  "msg": "验证成功"
}

Error response example

{
  "code": -1,
  "msg": "Token无效"
}

Error Code

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