Description:
- Query whether remote unlocking is successful
Version:
Ver. |
Maker |
Established Date |
Revision Date |
1.0.0 |
lenny |
2022-05-27 |
|
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 |
gpsLockNo |
Yes |
string |
asset ID |
fTokenID |
Yes |
string |
Token |
Return Example:
Return when correct:
{
"Result": 200,
"Message": "success",
"FObject": null
}
{
"Result": 109,
"Message": "opening",
"FObject": null
}
Return on error:
{
"Result": 105,
"Message": "Fail:gpsLockNo is null",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:without this trip ID",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:asset offline",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:the device not found",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:other error",
"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/QueryLockStatus?gpsLockNo=207010199999&&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 作者:刘家帅