Description:
- Request for remote un-lock out of the fence
Version:
Ver. |
Maker |
Established Date |
Revision Date |
1.0.0 |
lenny |
2021-12-31 |
|
Request URL:
Request Method:
Request Header:
Parameter Name |
Whether Must |
Type |
Instructions |
Content-Type |
Yes |
string |
Request Type: x-www-form-urlencoded |
Request Parameter:
Parameter Name |
Whether Must |
Type |
Instructions |
tripId |
Yes |
string |
Trip ID |
name |
Yes |
string |
unlock person |
fTokenID |
Yes |
string |
Token |
Return Example:
Return when correct:
{
"Result": 200,
"Message": "success",
"FObject": null
}
Return on error:
{
"Result": 105,
"Message": "Fail:tripId is null",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:no unlocking outside the fence",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:device not supported",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:the device is offline",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:instruction sending failure",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:send instruction error",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:tripId is wrong",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:other",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:token error or timeout",
"FObject": null
}
Return Parameter Description:
Parameter Name |
Type |
Instructions |
Request Example:
String result = "";
String url ="http://icloud.assetscontrols.com:8092/api/AscentPH/SendRequestOutRemoteUnlock?tripId=BOC-A-12312021-0002&name='liu'&fTokenID=DB7F20D9-84C3-44C3-B05A-06A9C392A189";
HttpPost post = new HttpPost(url);
CloseableHttpClient client = HttpClients.createDefault();
HttpResponse response = client.execute(post);
HttpEntity entity = response.getEntity();
String result = EntityUtils.toString(entity, "UTF-8");
return result;
文档更新时间: 2023-02-06 16:05 作者:刘家帅