API call address
{域名地址}/api/archive/password/check
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/archive/password/check
Calling methods
POST
Request parameters
Field name |
type |
Required |
illustrate |
id |
int |
yes |
Document ID |
password |
string |
yes |
The entered password |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Verification results |
Verify the result object
Field name |
type |
illustrate |
status |
boolean |
Verification result, true/false |
content |
string |
Document content, if verification is passed, it will return |
Request data example
parameter |
value |
id |
1 |
password |
123456 |
Return to the data example
{
"code": 0,
"msg": "",
"data": {
"status": true,
"content": "<p>...</p>"
}
}
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 |