Tracksolidpro Api v2.7.5
Tracksolidpro Api v2.7.5
1 Contents
Benefit of JIMI Open API, distributor or application vendor could provide tracking service to
customers by calling the API and use your own GUI client, App or Website, this might improve the
localization or user experience.
Your App or web client should connect to your application server, rather than connect to JIMI API
Server directly , use your application server connect to JIMI Server instead.
3 Usage
1. Contact us to apply your appKey and appSecrect, you need to provide your account.
2. According to this document to implement your application server to obtain access_token.
3. Calling other interfaces with access_token to fulfil your business logic.
4 Conventions
0 0 success
Parameter error (lack of required parameters or format
1XXX 1001
error). See interface description for details
Illegal user/illegal device (not their own or subordinate
1002
account or device)
1003 Repeat operation
Illegal access, token exception! (Token failure or
1004
nonexistent)
1005 Illegal access, IP access exceeds limit!
Error code:
Code Value Description
213 Account already exist
1. Get access_token
2. Return access_token
Authentication
/limit
Return data
6 API Features
Interface
Method Description
type
Access token jimi.oauth.token.get Get access_token.
jimi.oauth.token.refresh Refresh access_token.
jimi.user.child.list List all sub-account.
jimi.user.device.list List all devices of current
User API
account.
jimi.user.child.create Create sub-account
jimi.user.child.del Remove sub-account
jimi.user.child.move Move sub-account to another
account.
jimi.track.device.detail Get device detail information
for specific IMEI
jimi.user.device.location.list Get the latest location for all
devices.
jimi.device.location.get Get the latest location data for
specific IMEI.
jimi.device.location.URL.share Get URL for showing location on
the Map.
jimi.user.device.expiration.upda Change user expiration date for
te devices
jimi.device.track.list Obtain track data according to
Device API IMEI.
jimi.device.track.mileage Get mileage report for devices.
jimi.open.device.update Modify the vehicle information
for device.
Jimi.device.media.URL Get URL of photo or video
capture by camera.
jimi.device.live.page.url Get device live streaming page
URL
Command jimi.open.instruction.list Gets commands supported by
API the device.
jimi.open.instruction.send Send command to device.
jimi.open.instruction.result Get the command result.
jimi.open.instruction.raw.send Send raw command data to
device
jimi.open.instruction.raw.receive Jimi push raw data to specified
client’s server URL.
jimi.device.meida.cmd.send Send media instruction
Geo-fence jimi.open.device.fence.delete Remove the Geo fence for the
API device.
jimi.open.device.fence.create Create an Geo fence for the
device.
LBS-API jimi.lbs.address.get Wi-Fi base station location
analysis.
Message jimi.push.device.alarm Push alarm notification.
jimi.device.alarm.list Get alarm list for device
Scooter API jimi.scooter.instruction.send Send command to scooter
(Deprecated) device.
jimi.scooter.device.detail Get scooter status and other
detail information.
7 API Description
7.2 Security
Client should get access_token first before calling the interface, which is generated by JIMI Server by
calling jimi.oauth.token.get interface(method=jimi.oauth.token.get) with provided appKey and
appSecrect.
appKey and access_token are required to sign request parameters when calling API. JIMI server will
validate the the request parameters by checking the sign value.
The parameters of each request should include common parameters and interface private parameters.
For example, if you call the “jimi.oauth.token.get” interface, you need to provide :
7(common parameters) + 3(private parameters) = 10 (parameters, key/value)
To protect API calling from hacked, any API calling needs to be with a signature. JIMI server will check
signature based on request parameters. Illegal signature request will be rejected. Signature algorithms
supported is: md5 (sign_method is a common parameter mentioned above). Following is the
algorithm of signature:
1. Sort all request parameters with parameter key in alphabetical order (including common parameters and
method specific parameters, but NOT include sign and byte type parameter.
For example:
foo=1, bar=2, foo_bar=3, foobar=4
Result: bar=2, foo=1, foo_bar=3, foobar=4
MD5 is the 128-bit summary algorithm and is in hexadecimal. a hexadecimal character can
represent four bits, so the signature string length is 32 hexadecimal characters.
JAVA example:
algorithm
public static String signTopRequest(Map<String, String> params, String seccode, String signMethod) throws IOExc
eption {
// 1:sort parameter key
String[] keys = params.keySet().toArray(new String[0]);
Arrays.sort(keys);
7.5.1 Description
Client(distributor’s server) should stored the access_token locally, do NOT get access_token per
request, instead, use the local access_token before it become invalid. JIMI server will not allow to
access if the request frequency is too high from client.
The access token can be used for about 2 hours(depend on the value for expires_in parameter), do
NOT try to get token for every request.
7.5.2 Request URL
POST
(1)Common parameters
(2)Private parameters as follow:
7.5.5 Response
{
"code": 0,
"message": "success",
"result": {
"appKey": "8FB345B8693CCD003CC2DAB61EC8791D",
"account": "jimitest",
"accessToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"expiresIn": 60
"refreshToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"time": "2017-06-15 10:00:00"
}
}
Return error example:
Postman demo:
For example:
<app_secrect>app_key9FB345B8693CCD0054E44ADF99139409expires_in7200formatjsonmethodjimi.
oauth.token.getsign_methodmd5timestamp2017-09-28
01:55:00user_id<account>user_pwd_md5<password_md5>v1.0<app_secrect>
7.6.1 Description
This interface is used to update token manually when access token is about to be invalid.
7.6.2 Request URL
POST
(1)Common parameters
(2)Private parameters
7.6.5 Response
{
"code": 0,
"message": "success",
"result": {
"appKey": "8FB345B8693CCD003CC2DAB61EC8791D",
"account": "jimitest",
"accessToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"expiresIn": 60,
"refreshToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"time": "2017-06-15 10:00:00"
}
}
Return error example:
{"code":xxx,"message":"Illegal request,token is invalid"}
7.7.1 Description
POST
(1)Common parameters
(2)private parameters
7.7.5 Response
{
"code": 0,
"message": "success",
"result": [
{
"account": "123123",
"name": "test",
"type": 8,
"displayFlag": 1,
"address": null,
"birth": "2017-04-22 00:00:00",
"companyName": "",
"email": "",
"phone": "",
"language": "zh",
"sex": 0,
"enabledFlag": 1,
"remark": null
}
]
}
Wrong return example:
7.8.1 Description
POST
(1)Common parameters
(2)private parameters
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
Wrong return example:
7.9.1 Description
POST
(1)Common parameters
(2)private parameters
7.9.5 Response
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
Wrong return example:
{"code":xxx,"message":"no permissions"}
7.10.1Description
7.10.2Request URL
POST
7.10.4Request parameters
(1)Common parameters
(2)private parameters
7.10.5Response
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
Wrong return example:
{"code":xxx,"message":"no permissions"}
7.11.1 Description
7.11.2Request URL
POST
7.11.4Request parameters
(1)Common parameters
(2)Private parameters
Parameter Type Required Remark Description
Access token for security access JIMI
access_token string
Yes Server.
target string Yes - The specified account for inquired.
7.11.5Response
Result:
Key Type Description
imei string Device IMEI
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"mcType": "GT300L",
"mcTypeUseScope": "personal",
"sim": "415451",
"expiration": "2037-04-01 23:59:59",
"activationTime": "2017-04-01 11:02:20",
"reMark": "test",
"vehicleName": null,
"vehicleIcon": "bus",
"vehicleNumber": "粤 B3604",
"vehicleModels": null,
"carFrame": "2235",
"driverName": "driver",
"driverPhone": "13825036579",
"enabledFlag": 1,
"engineNumber": "8565674"
}
]
}
7.12.1Description
7.12.2Request URL
POST
7.12.4Request parameters
(1)Common parameters
(2)Private parameters
Result:
Key Type Description
imei string Device IMEI
iccid String
importTime String
imsi String
licensePlatNo String
VIN String
vehicleBrand String
{
"code": 0,
"message": "success",
"result":
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"mcType": "GT300L",
"mcTypeUseScope": "personal",
"sim": "415451",
"expiration": "2037-04-01 23:59:59",
"activationTime": "2017-04-01 11:02:20",
"reMark": "test",
"vehicleName": null,
"vehicleIcon": "bus",
"vehicleNumber": "粤 B3604",
"vehicleModels": null,
"carFrame": "2235",
"driverName": "driver",
"driverPhone": "13825036579",
"enabledFlag": 1,
"engineNumber": "8565674",
"iccid": "xxxxxxx",
"imsi": "xxxx",
"importTime": "2017-04-01 11:02:20",
"licensePlatNo": "8565674",
"VIN": "xxxxxxx",
"vehicleBrand": "xxxx",
"fuel_100km": "9",
"status": "8565674",
"currentMileage":"102.5"
}
}
7.13.1Description
7.13.2Request URL
POST
7.13.4Request parameters
(1)Common parameters
(2)private parameters
7.13.5Response
Result data:
Key Type Description
imei string Device IMEI
trackerOil String
Oil quantity of the car(Original voltage value)
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"icon": "bus",
"status": "0",
"posType": "GPS",
"lat": 22.577282,
"lng": 113.916604,
"hbTime": "2017-04-26 09:14:50",
"accStatus": "0",
"speed": "0",
"gpsTime": "2017-04-26 09:17:46",
"activationFlag": "1",
"expireFlag": "1",
"electQuantity": "60",
"locDesc": null
"powerValue": null,
"temperature": "86.5",
"trackerOil": null
}
]
}
7.14.1Description
7.14.2Request URL
POST
7.14.4Request parameters
(1)Common parameters
(2)private parameters
7.14.5Response
Result list:
Key Type Description
IMEI string Device IMEI
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"icon": "bus",
"status": "0",
"posType": "GPS",
"lat": 22.577282,
"lng": 113.916604,
"hbTime": "2017-04-26 09:14:50",
"accStatus": "0",
"speed": "0",
"gpsNum": "11",
"gpsTime": "2017-04-26 09:17:46",
"activationFlag": "1",
"expireFlag": "1",
"electQuantity": "60",
"locDesc": null
"powerValue": null,
"temperature": "86.5",
"trackerOil": null,
"currentMileage": "86.5",
}
]
}
{"code":xxx,"message":"Illegal device"}
7.15 Get sharing location URL
7.15.1Description
7.15.2Request URL
POST
7.15.4Request parameters
(1)Common parameters
(2)private parameters
7.15.5Response
{
"code": 0,
"message": "success",
"result":
{
"URL":
"data.16180track.com/api/share?ver=2&method=trackDevice_abr&deviceinfo=7ae7c62385f2067f164002db3
15854a969a40e3888021cb01dc8f2183ca08dbbd8581f6bb86df4c2e3e1b887cb67c21039b4c0ced18fdf8dd08e0460c
5edd13ad87e16dca9702ce6",
}
}
Wrong return example:
{"code":xxx,"message":"Illegal device"}
7.16.1Description
7.16.2Request URL
POST
7.16.4Request parameters
(1)Common parameters
(2)private parameters
7.16.5Response
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"update_result": "0",
"update_msg": "update success"
},
{
"imei": "868120145233605",
"update_result": "1",
"update_msg": "update failed, reason:xxxxxx"
}
]
}
{"code":xxx,"message":"Illegal device"}
7.17.1Description
7.17.2Request URL
POST
7.17.4Request parameters
(1)Common parameters
(2)Private parameters
result list:
Key Type Description
imei String IMEI of device
{
"code": 0,
"message": "success",
"result": [
{
"imei": “3505831983422342”,
"startTime": "2017-04-26 00:00:58",
"endTime": "2017-04-26 00:03:58",
"startLat": 22.577144898887813,
"startLng": 113.91674845964586,
"endLat": 22.677144898887813,
"endLng": 113.92674845964586,
"elapsed": 2130,
"distance": 25000,
"avgSpeed": 90
}
{
"imei": “3505831983422342”,
"startTime": "2017-04-26 00:00:58",
"endTime": "2017-04-26 00:03:58",
"startLat": 22.577144898887813,
"startLng": 113.91674845964586,
"endLat": 22.677144898887813,
"endLng": 113.92674845964586,
"elapsed": 2130,
"distance": 25000,
"avgSpeed": 90
}
]
"data": [
{
"imei": “3505831983422342”,
"totalMileage": 60000,
}
{
"imei": “3505831983422342”,
"totalMileage": 60000,
}
7.18.1Description
Get device track data of not more than 2 days, within 3 months.
7.18.2Request URL
POST
7.18.4Request parameters
(1)Common parameters
(2)Private parameters
7.18.5Response
result list:
Key Type Description
lng double longitude
{
"code": 0,
"message": "success",
"result": [
{
"lat": 22.577144898887813,
"lng": 113.91674845964586,
"gpsTime": "2017-04-26 00:00:58",
"direction": 0,
"gpsSpeed": -1,
"posType": 3
},
{
"lat": 22.57708,
"lng": 113.916631,
"gpsTime": "2017-04-26 00:01:30",
"direction": 184,
"gpsSpeed": 0,
"posType": 1
}
]
}
7.19.1Description
7.19.2Request URL
POST
7.19.4Request parameters
(1)Common parameters
(2)Private parameters
7.19.5Response
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
Wrong return example:
Vehicle Icon
Icon key Description
automobile Car
bus Bus
per People
mtc Motorcycle
truck
taxi
plane
schoolBus
excavator
ship
tricycle
policeMtc Police Motorcycle
tractor
policeCar
cow
other
7.20.1Description
POST
7.20.4Request parameters
(1)Common parameters
(2)Private parameters
7.20.5Response
result list:
Key Type Description
thumb_URL String URL of video or photo thumbnail.
{
"code": 0,
"message": "Operation successful",
"result":
[
{
"thumb_URL": “Q9GLAFFqfCrYF6YfQAcON4w4Ezs=/lhWse7ie3wtFrjuQZ22dLAk5CSaR”,
"file_URL": “357730090345670_3949477_2019_04_29_12_32_38_01”,
"mime_type": "video/mp4",
"create_time": 2019-04-29 10:32:43,
"media_type": 2,
"camera": 1,
"file_size": 9949087
},
{
"thumb_URL": “Q9GLAFFqfCrYF6YfQAcON4w4Ezs=/FhCrZEIy3518sR_ylOlqDg7w3Ju-”,
"file_URL": “351609080120911_3949476_2019_04_29_18_32_12”,
"mime_type": "video/3gpp",
"create_time": 2019-04-29 10:32:42,
"media_type": 2,
"camera": 1,
"file_size": 2411318
}
}
Wrong return example:
7.21.1Description
7.21.2Request URL
POST
7.21.4Request parameters
(1)Common parameters
(2)Private parameters
7.21.5Response
result list:
Key Type Description
lng double longitude
{
"code": 0,
"message": "Vehicle information modification successful",
"result":
{
"lat": 22.577144898887813,
"lng": 113.91674845964586,
"gpsTime": "2017-04-26 00:00:58",
"direction": 0,
"gpsSpeed": -1,
"posType": 3,
"satellite": 11,
"VIN": "V12345",
"plateNo":"ABC-12345",
"UrlCamera": "https://www.domain.com/device/video/35408343202342345",
}
}
Wrong return example:
7.22.1Description
Allocate by total devices under the account (10 times/day/device. All sub-accounts included)
7.22.2Request URL
POST
7.22.4Request parameters
(1)Common parameters
(2)Private parameters
7.22.5Response
Result list:
Key Type Description
lng string longitude
lat string latitude
accuracy string Accuracy, the greater the value the better
{
"code": 0,
"message": "success",
"result": {
"lat": 40.65615416521587,
"lng": 109.89894039833524,
"accuracy": 0
}
}
Wrong return example:
{"code":xxx,"message":"illegal device"}
7.23.1Description
7.23.2Request URL
POST
7.23.4Request parameters
(1)Common parameters
(2)Private parameters
7.23.5Response
result String The returned data. Fence serial number returned if succeed.
{
"code": 0,
"message": "Successfully create geo-fence.",
"result": "5"
}
Wrong return example:
{
"code": 41003,
"message": "Device is not online, geo-fence creation failed ",
"result": null
}
7.24 Delete Geo-fence for device
7.24.1Description
7.24.2Request URL
POST
7.24.4Request parameters
(1)Common parameters
(2)Private parameters
7.24.5Response
{
"code": 0,
"message": "delete the geo-fence successfully",
"result": null
}
Return error example:
{
"code": 41003,
"message": "The device is not online and geo-fence can’t be deleted",
"result": null
}
7.25.1 Description
POST
(1)Common parameters
(2)Private parameters
7.25.5 Response
Result list:
Key Type Description
id string Command code
orderName string Command name
orderContent string Command template
orderExplain string Command explanation
orderMsg string prompt
isOffLine string if support offline command 0-no; 1-yes
{
"code": 0,
"message": "success",
"result": [
{
"id": 81,
"orderName": "SOS setting",
"orderContent": "SOS,A,{0},{1},{2}#",
"orderExplain": "SOS is used for receive alerts and SOS alerts. SOS number should have
3-20 numbers.",
"orderMsg": "",
"isOffLine": "1"
}
...
]
}
{"code":xxx,"message":"Illegal device"}
7.26.1Description
POST
7.26.4 Request parameters
(1)Common parameters
(2)private parameters
inst_param_json description
Parameter Type Required Remark Description
inst_id string Yes Command code
inst_template String Yes - Command template
params Array<string> Yes - Command params string Array
Whether cover the existed offline
is_cover Boolean NO false command or not
true-cover false-not cover
Example:
{"inst_id": "113","inst_template":"RELAY,1#","params":[],"is_cover":"true"}
{"inst_id": "114","inst_template":"RELAY,0#","params":[],"is_cover":"true"}
User-defined command:
{"inst_id": "96","inst_template":"{0}","params":["STATUS#"],"is_cover":"true"}
7.26.5 Response
{
"code": 0,
"message": "command is successfully sent.",
"result": null
}
{
"code": 12005,
"message": "Fail to send command. Result code:226",
"result": null
}
7.27 Get results of command execution
7.27.1 Description
POST
(1)Common parameters
(2)Private parameters
7.27.5 Response
Result list:
Key Type Description
codeId string Command code
code string Command sent
content string Content replied by device
isExecute string command status 0: execution failed, 1: successful execution, 3:
to be sent, 4: canceled
sendTime string Time, format:yyyy-MM-dd HH:mm:ss
sender string sender
receiveDevice string Received imei
isOffLine string 0: online 1: offline
idsource string Command description
{
"code": 0,
"message": "success",
"result": [
{
"codeId": "99",
"code": "status#",
"content": "Parameter error",
"isExecute": "4",
"sendTime": "2017-06-19 11:46:00",
"sender": "jimitest",
"receiveDevice": "868120111111117",
"isOffLine": "1",
"idsource": "User-defined command"
}
]
}
{"code":xxx,"message":"Illegal device"}
7.28.1Description
POST
(1)Common parameters
(2)private parameters
7.28.5 Response
{
"code": 0,
"message": "command is successfully sent.",
"result": null
}
{
"code": 12005,
"message": "Fail to send command. Result code:226",
"result": null
}
7.29.1Description
Third-party platform should provide an URL(same as messages push URL) to receive the raw
data(please contact us and provide the URL manually), JIMI server will push the raw data by sending a
HTTP request using this URL.
Request content:
Key Type Description
msgType String Message type, corresponding to the message service list
E.g:
Parameter1:
Key = msgType
Value = jimi.open.instruction.raw.receive
Parameter2:
Key = data
Value = {
"imei": "868120145233604",
"deviceName": "868120145233604",
"raw_data": "0A0C0F01182E0101"
}
7.30.1Description
7.30.2Request URL
POST
7.30.4Request parameters
(1)Common parameters
(2)private parameters
7.30.5 Response
Success example:
{
"code": 0,
"message": "Operation successful",
"result": {"code":"255","data":"1.3.3","msg":"通信成功响应","cmdSeqNo":"1"}
}
Exception example:
{
"code": -1,
"message": "Operation successful",
"result": {"code":"228","data":"1.3.3","msg":"设备不在线","cmdSeqNo":"1"}
}
7.31 Receive Notification
7.31.1Description
Third-party platform should provide an URL address to receive the notification(please contact us and
provide the URL manually), JIMI server will push the notification by sending a HTTP request using this
URL.
Request content:
Key Type Description
msgType String Message type, corresponding to the message service list
E.g:
Parameter1:
Key = msgType
Value = jimi.push.device.alarm
Parameter2:
Key = data
Value = {
"imei": "868120145233604",
"deviceName": "868120145233604",
"alarmType": "2",
"alarmName": "Power off alarm",
"lat": 40.65615416521587,
"lng": 109.89894039833524,
"alarmTime": "2017-05-08 12:00:00"
}
7.32.1 Description
POST
(1)Common parameters
(2)Private parameters
7.32.5 Response
Result list:
Key Type Description
DeviceName string Device Name
IMEI string IMEI
model string Device Model
account string Account
alertTypeId String Alert type ID
alertType string Alert type
alertTime string Alert time
positioningTi string
Time of alert positioning
me
lng double longitude
{
"code": 0,
"message": "success",
"result": [
{
"deviceName": "ABC-34352",
"IMEI": "343503422910345",
"model": "GT06N",
"account": "test1234",
"alertTypeId": "1002",
"alertType": "ACC On",
"alertTime": "2019-03-14 14:02:03",
"positioningTime": "2019-03-14 14:02:03",
"lat": 22.577144898887813,
"lng": 113.91674845964586
}
]
}
{"code":xxx,"message":"Illegal device"}
7.33.1Description
POST
(1)Common parameters
(2)private parameters
7.33.5 Response
Success example:
{
"code": 100,
"message": "Success"
}
Exception example:
{
"code": 200,
"message": "Invalid parameter"
}
7.34.1 Description
POST
(1)Common parameters
(2)Private parameters
7.34.5 Response
Result list:
Key Type Description
deviceImei string IMEI of IoT module
realtimeStatus json DLCC status
DLCC 0 - OFF
1 - ON
Brake status
brake 0 - OFF
1 - ON
Setting brake light status
settingBrakeLight 0 - OFF
1 - ON
Setting front light status
0 - OFF
settingFrontLight
1 - ON
"code": 0,
"result":
"deviceImei": "860425040472944",
"scooterError": {
"IoT": 0,
"accelerator": 0,
"battery": 0,
"brakeHandlebar": 0,
"controller": 0,
"dashboard": 0,
"motor": 0,
"voltage": 0
},
"scooterProperties": {
"ECUVersion": "0.1",
"batteryCapacity": 22834,
"batteryVoltage": 36,
"bluetoothVersion": "2.1",
"firmwareVersion": "c.0",
"scooterVersion": "3.0",
"speedLimit": 50
},
"realtimeData": {
"totalOdometer": 14592,
"batteryCycle": 512,
"batteryLevel": 56,
"batteryTemperature": 23,
"current": 614.39,
"currentOdometer": 217.6,
"remainingMileage": 69.2,
"speed": 99.86,
"voltage": 460.94
},
"realtimeStatus": {
"DLCC": 0,
"DLCCStatus": 0,
"acceleratorStatus": 0,
"brake": 0,
"settingBrakeLight": 1,
"charge": 0,
"settingFrontLight": 0,
"realFrontLight": 0,
"motoStatus": 0,
"realBrakeLight": 0,
"workingMode": 0
},
"drivingSetting": {
"DLCC": 0,
"drivingMode": 2,
"lightMode": 0,
"quickStart": 1,
"speedLimit": 30,
"speedUnit": 0
},
"IoTModule": {
"imsi": "0460045394000271",
"iccid": "89860433231880390271",
"BluetoothMac": "000000000000",
"satellite": 11,
"course": 0,
"gpsMode": 0,
"gpsSpeed": 0,
"lAC": 0,
"latitude": 22.577137,
"longitude": 113.916756,
"mCC": 0,
"mNC": 0,
"positioningType": "GPS",
"gsmSignal": 4,
"gpsStatus": 0,
"batteryVoltage": 4.15
}
Return error example:
{"code":xxx,"message":"Illegal device"}
7.35.1Description
Send Historical video file list upload command to device or query file list.
7.35.2Request URL
POST
7.35.4Request parameters
(1)Common parameters
(2)private parameters
7.35.5 Response
type=1
Success example:
{
"code": 0,
"message": "Operation successful",
"result": {"code":"255","data":"1.3.3","msg":"Successful response","cmdSeqNo":"1"}
}
Exception example:
{
"code": -1,
"message": "Operation successful",
"result": {"code":"228","data":"1.3.3","msg":"Device is offline","cmdSeqNo":"1"}
}
type=2
{
"code": 0,
"message": "Operation successful",
"result": "2018_03_29_16_51_45.mp4,2018_03_29_16_52_46.mp4,"}
}
7.36.1Description
7.36.2Request URL
POST
7.36.4Request parameters
(1)Common parameters
(2)private parameters
7.36.5 Response
Success example:
{
"code": 0,
"message": "Operation successful",
"result": {"code":"255","data":"1.3.3","msg":"Successful response","cmdSeqNo":"1"}
}
Exception example:
{
"code": -1,
"message": "Operation successful",
"result": {"code":"228","data":"1.3.3","msg":"Device is offline","cmdSeqNo":"1"}
}
7.37 get video rtmp url
7.37.1Description
7.37.2Request URL
POST
7.37.4Request parameters
(1)Common parameters
(2)private parameters
7.37.5 Response
Success example:
{
"code": 0,
"message": "success",
"result":
“rtmp://36.133.0.208:1935/0/353376110035950?uId=openapi8b7914c3e4c188def67edd6b4a743146&vhost=8&user=
172&expire_stamp=1595923486798&ext=&channel=0&token=25b422283ff824461b33d8c5059d”
}
Exception example:
{
"code": 228,
"message": "The device is not online",
"result": “null”
}
7.38.1Description
7.38.2Request URL
POST
7.38.4Request parameters
(1)Common parameters
(2)Private parameters
result list:
Key Type Description
thumb_URL String URL of video or photo thumbnail.
{
"code": 0,
"message": "Operation successful",
"result":
[
{
"thumb_URL": "http://8.210.205.58:8081/normal/get?fileKey=2021_01_20_09_17_49_I_28.jpg",
"file_URL": "http://8.210.205.58:8081/normal/get?fileKey=357730090564767_29057540_2021_01_20_09
_17_49_I_28_128.mp4",
"create_time": 1611105520,
"mime_type": "video/mp4",
"media_type": 2,
"alarm_time": 1611105469,
"camera": 0,
"file_size": "12108649"
},
{
"thumb_URL": "http://8.210.205.58:8081/normal/get?fileKey=2021_01_20_08_06_13_I_56.jpg",
"file_URL": "http://8.210.205.58:8081/normal/get?fileKey=357730090564767_00000000_2021_01_20_08
_06_13_I_56_146.mp4",
"create_time": 1611101264,
"mime_type": "video/mp4",
"media_type": 2,
"alarm_time": 1611101173,
"camera": 0,
"file_size": "48452069"
}
}
Wrong return example:
7.39.1 Description
Edit the user information of the platform, only edit the user's nickname, mobile phone number,
email address, contact person, company name and permissions。
POST
7.39.4Request parameters
perssion.
7.39.5Response
"code": 0,
"result": null,
"data": null
7.40.1 Description
POST
Shenzhen Jimi Software Co., Ltd.
7.40.4Request parameters
(1)Common parameters
(2)private parameters as follow:
account string Yes - The account to which the new fence belongs
Example values:
imeis string Yes - 869247060001770,869247060001259,8692470
60001804
Start time
start_time string Yes -
Format: yyyy-MM-dd HH:mm:ss
End time
end_time string Yes - Format: yyyy-MM-dd HH:mm:ss
end_time should be earlier than current time
7.40.5Response
Return code:
0: return correctly
code int
1100:Business exception
Other: failure. Refer to the error code description
data list:
rows list:
"totalTime":"185641",
"dataTotalRows":"2",
"rows":[
{
"imei":"869247060001739",
"startTime":"2022-12-10T01:05:33.000Z",
"endTime":"2022-12-10T04:17:48.000Z",
"durSecond":"11535",
"lng":113.943093,
"lat":22.576748,
"addr":"Shigu Road, 松坪村, Xili Sub-district, Nanshan distri...",
"deviceName":"JC450Pro-01739",
"mcType":"JC450Pro",
"acc":"on",
"stopSecond":"11535"
},
{
"imei":"869247060001739",
"startTime":"2022-12-09T22:13:16.000Z",
"endTime":"2022-12-10T01:04:25.000Z",
"durSecond":"10269",
"lng":113.943002,
"lat":22.57649,
"addr":"Shigu Road, 松坪村, Xili Sub-district, Nanshan distri...",
"deviceName":"JC450Pro-01739",
"mcType":"JC450Pro",
"acc":"on",
"stopSecond":"10269"
}
]
}
}
7.41.1 Description
Create a platform geofence,the newly created platform geofence belongs to the default group.
POST
7.41.4Request parameters
(1)Common parameters
(2)private parameters as follow:
7.41.5Response
Return code:
0: return correctly
code int 1114: Fence name already exists
-1:The system is busy
Other: failure. Refer to the error code description
7.42.1 Description
POST
7.42.4Request parameters
(1)Common parameters
(2)private parameters as follow:
7.42.5Response
Return code:
0: return correctly
code int
-1:The system is busy
Other: failure. Refer to the error code description
"code": 0,
"message": "success",
"result": null ,
"data": "c33b80d46d2b41d588a5afbd6f8b6285"
}
7.43.1 Description
POST
7.43.4Request parameters
(1)Common parameters
(2)private parameters as follow:
7.43.5Response
Return code:
0: return correctly
code int
-1:The system is busy
Other: failure. Refer to the error code description
7.44.1 Description
POST
7.44.4Request parameters
(1)Common parameters
(2)private parameters as follow:
account string Yes - The account to which the new fence belongs
Example values:
imeis string No - 869247060001770,869247060001259,86924
7060001804
Alarm types, separated by commas
in: into the fence;
out: out of the fence;
stayTimeIn: If you do not enter the fence for
alert_type string No - more than N days, the alarm will be
triggered;
stayTimeOut: If you do not leave the fence
for more than N days, the alarm will be
triggered;
Do not enter the fence for more than N days
to trigger an alarm.
stay_time_in int No -
When there is a value here, you need to pass
in stayTimeIn in the alert_type.
Do not leave the fence for more than N days
to trigger an alarm.
stay_time_out int No
When there is a value here, you need to pass
in stayTimeOut in alert_type.
Shenzhen Jimi Software Co., Ltd.
7.44.5Response
Return code:
0: return correctly
code int
1100:Business exception
Other: failure. Refer to the error code description
data string The returned data. the number of related devices returned if succeed.
8 Appendix
NCT_SS40_API
command list-1.docx