Delete the specified friendship link record from the system, identifying the friendship link to be deleted through the link address.
Points to note
- This interface uses the POST method to submit data in form-data format
- An effective background import interface Token is required for authentication
- You must provide the address of theๅๆ
้พๆฅ to be deleted
- The delete operation is irreversible, please operate with caution
- A successful deletion will return a success message
Request address
{ๅๅๅฐๅ}/api/friendlink/delete?token={token}
Description:{ๅๅๅฐๅ}Replace with your domain address,{token}Replace with the Token in the background content import interface function, such ashttps://en.anqicms.com/api/friendlink/delete?token=xxx
Request Syntax
POST {ๅๅๅฐๅ}/api/friendlink/delete?token={token}
Content-Type: multipart/form-data
Request parameters
GET parameters
| Field name |
Type |
Required |
Description |
| token |
string |
Is |
Token in the background content import interface function |
POST parameters
| Field name |
Type |
Required |
Description |
| link |
string |
Is |
Opponent link |
Return parameters
| Field name |
Type |
Description |
| code |
int |
Error code |
| msg |
string |
Error description |
Usage Example
Request example
POST /api/friendlink/delete?token=4712a54b4c456bb29b7816d241db69a7 HTTP/1.1
Host: www.anqicms.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="link"
https://en.anqicms.com/
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Or use the curl command:
curl -X POST \
'https://en.anqicms.com/api/friendlink/delete?token=4712a54b4c456bb29b7816d241db69a7' \
-H 'Content-Type: multipart/form-data' \
-F 'link=https://en.anqicms.com/'
Response Example
{
"code": 0,
"msg": "้พๆฅๅทฒๅ ้ค"
}
Example of error response
{
"code": -1,
"msg": "ๆพไธๅฐๅฏนๅบ็ๅๆ
้พๆฅ"
}
error code
| Error code |
Description |
| 0 |
OK |
| -1 |
Error, the reason is indicated in msg |
| 1001 |
Not logged in |
| 1002 |
Not authorized |
| 200 |
API request OK |