0% acharam este documento útil (0 voto)
22 visualizações8 páginas

Api Dome

Api para consumir WhatsGPS

Enviado por

Tuto Gomez
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato DOCX, PDF, TXT ou leia on-line no Scribd
0% acharam este documento útil (0 voto)
22 visualizações8 páginas

Api Dome

Api para consumir WhatsGPS

Enviado por

Tuto Gomez
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato DOCX, PDF, TXT ou leia on-line no Scribd
Você está na página 1/ 8

1.

Login to get token


1. https://www.whatsgps.com/user/login.do?name=neo&password=0c6m3t
{
"data":{
"address":"",
"available":true,
"email":"",
"joinTime":"2021-01-29 13:42:07",
"lang":"zh_CN",
"linkMan":"",
"linkPhone":"",
"major":false,
"mobileNumbers":"",
"name":"kasem",
"parentId":4785,
"parentLink":".15029.4785.1.2109.",
"postcode":"",
"rechargeURL":"",
"remark":"",
"subAlarm":true,
"timeZoneSecond":28800,
"token":"cce121df-f88a-45ec-b475-a58db512a887",
"updateTime":"2022-07-21 10:34:22",
"userId":15029,
"userName":"neo",
"userType":1
},
"ret":1
}
2. Obtain user information
https://www.whatsgps.com/user/getByUserId.do?token=cce121df-f88a-45ec-
b475-a58db512a887&usreld=15029

{
"data":{
"address":"",
"allCount":501,
"available":true,
"email":"",
"joinTime":"2021-01-29 13:42:07",
"linkMan":"",
"linkPhone":"",
"major":false,
"mobileNumbers":"",
"name":"kasem",
"parentId":4785,
"postcode":"",
"rechargeURL":"",
"remark":"",
"subAlarm":true,
"timeZoneSecond":28800,
"underCount":474,
"updateTime":"2022-07-21 10:34:22",
"userId":15029,
"userName":"neo",
"userType":1,
"verifyPassword":0
},
"ret":1
}

3. Get vehicle status based on user id


https://www.whatsgps.com/carStatus/getByUserId.do?token=cce121df-f88a-
45ec-b475-a58db512a887&targetUserId=15029

{
"data":[
{
"accStatus":-1,
"accTime":0,
"carId":224684,
"carPathPlanAlarmPopUpVos":[

],
"dir":221,
"exData":"",
"gateType":"new",
"heartTime":1620380925466,
"lat":23.168383,
"latc":23.171711,
"lon":113.43455,
"lonc":113.446589,
"machineType":18,
"online":0,
"orginalSpeed":0,
"pointTime":1620352075000,
"pointType":1,
"speed":0,
"staticTime":1620346953000,
"status":""
},
{
"accStatus":-1,
"accTime":0,
"carId":224691,
"carPathPlanAlarmPopUpVos":[

],
"dir":0,
"exData":"",
"gateType":"new",
"heartTime":1620438315935,
"lat":23.168667,
"latc":23.171997,
"lon":113.434433,
"lonc":113.446472,
"machineType":65,
"online":0,
"orginalSpeed":0,
"pointTime":1620409515000,
"pointType":1,
"speed":0,
"staticTime":1620408096000,
"status":""
},
{
"accStatus":1,
"accTime":0,
"carId":960375,
"carPathPlanAlarmPopUpVos":[

],
"dir":284,
"exData":"s=1;v=12840;st=1658283441",
"gateType":"new",
"heartTime":1658297982924,
"lat":23.168782,
"latc":23.172129,
"lon":113.433477,
"lonc":113.445515,
"machineType":117,
"online":0,
"orginalSpeed":0,
"pointTime":1658297956000,
"pointType":1,
"speed":0,
"staticTime":1653380009000,
"status":"5"
}
],
"ret":1,
"time":1658372375282
}

4.Get the statistics of the vehicle status under the user


http://www.whatsgps.com/user/getCarStatusCount.do?token=9b968557-e639-
450c-9747-33fb564ac6c8&usreld=15029

{
"data":{
"address":"",
"allCount":477,
"available":true,
"email":"",
"joinTime":"2021-01-29 13:42:07",
"lang":"zh_CN",
"linkMan":"",
"linkPhone":"",
"major":false,
"mobileNumbers":"",
"name":"kasem",
"notActiveCount":24,
"offlineCount":452,
"onlineCount":1,
"parentId":4785,
"postcode":"",
"rechargeURL":"",
"remark":"",
"subAlarm":true,
"timeZoneSecond":28800,
"token":"977ff619-f7ea-4436-af37-d6005cf317cf",
"updateTime":"2022-07-21 10:34:22",
"userId":15029,
"userName":"neo",
"userType":1
},
"ret":1
}

5.Get vehicle status based on user id


Https://www.whatsgps.com/carStatus/getByUserId.do?token=9b968557-e639-
450c-9747-33fb564ac6c8&targetUserId=15029

{
"data":[
{
"accStatus":-1,
"accTime":0,
"carId":224684,
"carPathPlanAlarmPopUpVos":[

],
"dir":221,
"exData":"",
"gateType":"new",
"heartTime":1620380925466,
"lat":23.168383,
"latc":23.171711,
"lon":113.43455,
"lonc":113.446589,
"machineType":18,
"online":0,
"orginalSpeed":0,
"pointTime":1620352075000,
"pointType":1,
"speed":0,
"staticTime":1620346953000,
"status":""
},
{
"accStatus":-1,
"accTime":0,
"carId":224691,
"carPathPlanAlarmPopUpVos":[

],
"dir":0,
"exData":"",
"gateType":"new",
"heartTime":1620438315935,
"lat":23.168667,
"latc":23.171997,
"lon":113.434433,
"lonc":113.446472,
"machineType":65,
"online":0,
"orginalSpeed":0,
"pointTime":1620409515000,
"pointType":1,
"speed":0,
"staticTime":1620408096000,
"status":""
},
{
"accStatus":-1,
"accTime":0,
"carId":224692,
"carPathPlanAlarmPopUpVos":[

],
"dir":101,
"exData":"",
"gateType":"new",
"heartTime":1634147827272,
"lat":30.135767,
"latc":30.135767,
"lon":31.286867,
"lonc":31.286867,
"machineType":18,
"online":0,
"orginalSpeed":0,
"pointTime":1634119025000,
"pointType":1,
"speed":0,
"staticTime":1620408599000,
"status":""
},
{
"accStatus":-1,
"accTime":0,
"alarm":":",
"carId":224693,
"carPathPlanAlarmPopUpVos":[

],
"dir":289,
"exData":"s=1;v=15390;st=1660718772",
"gateType":"new",
"heartTime":1660726567576,
"lat":-0.560967,
"latc":-0.560967,
"lon":37.0373,
"lonc":37.0373,
"machineType":20,
"online":1,
"pointTime":1660726597000,
"pointType":1,
"speed":33,
"staticTime":1660726597000,
"status":"5"
}
],
"ret":1,
"time":1660726625275
}

6.Query vehicle information based on user id

https://www.whatsgps.com/car/getByUserId.do?token=9b968557-e639-450c-
9747-33fb564ac6c8&UserId=15029

{
"data":[
{
"activeTime":"2021-05-07",
"agentRemark":"",
"carId":224684,
"carNO":"S06U-312758",
"carType":3,
"imei":"359510081312758",
"joinTime":"2020-10-14",
"machineName":"S06U-312758",
"machineType":18,
"platformTime":"2099-09-09",
"remark":"",
"saleTime":"2021-05-07",
"serviceState":1,
"serviceTime":"2021-03-19",
"serviceTimeOrigin":"2021-03-19",
"simNO":"",
"updateTime":"2022-03-19",
"userId":15029
},

7.Play back the historical track


https://www.whatsgps.com/position/queryHistory.do?token=ad044e98-13b7-
4e1f-895e-6b0a97ac456d&carId=224684&startTime=startTime=2022-04-19
11:06:31&endTime=2022-04-19 11:06:31

Você também pode gostar