-
Notifications
You must be signed in to change notification settings - Fork 1
Tests on Nissan endpoints
jumpjack edited this page Apr 28, 2022
·
13 revisions
Tests on Nissan endpoints:
{
"data": {
"type": "SendNavigation",
"attributes": {
"downloadTrafficInfo": false, // true/false or 0/1
"destinations": [ // Server note: "size must be between 1 and 5"
{
"id": 1, // Server note: "must be between 1 and 5"
"latitude": 42,
"longitude": 12,
"calculationCondition": 0 // (Server notes: "must be between 0 and 3") (Probably "shorter", "faster", "eco",...)
}
]
}
}
}
}
Unknown error
{
"data": {
"type": "HornLights",
"attributes": {
"action": "start",
"duration": 2,
"target": "horn"
}
}
}
Security error:
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
{
"data": {
"type": "EngineStart",
"attributes": {
"action": "start"
}
}
}
Security error:
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
{
"data": {
"type": "OpenClose",
"attributes": {
"target" : 1 , // 0 or 1 allowed (???)
"action" : "open"
}
}
}
Hintsfor target:
Other hints:
- "driver_s_door"
- "doors_hatch"
this.doorFrontLeft = _lockStatus(recs['doorStatusFrontLeft']);
this.doorFrontRight = _lockStatus(recs['doorStatusFrontRight']);
this.doorRearRight = _lockStatus(recs['doorStatusRearLeft']);
this.doorRearLeft = _lockStatus(recs['doorStatusRearRight']);
this.doorHatch = _lockStatus(recs['hatchStatus']);
this.locked = _lockStatus(recs['lockStatus']);
Access denied:
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
Not implemented:
{
"status": "Not Implemented",
"code": "501",
"title": "Not supported Feature",
"detail": "This feature is not technically supported by this gateway"
}
Security error:
{
"status": "502",
"code": "gateway.processing",
"title": "VNEXT",
"detail": "an internal error occured while processing request : 403 FORBIDDEN"
}
On Renault Captur PHEV:
Security error:
{
"status": "502",
"code": "gateway.processing",
"title": "VNEXT",
"detail": "an internal error occured while processing request : 403 FORBIDDEN"
}
On Zoe50:
"data": {
"type": "TECHNICAL",
"messages": [
{
"code": "err.tech.wired.unknown-error",
"message": "An unknown error happened"
}
],
"errors": [
{
"errorCode": "err.tech.wired.unknown-error",
"errorMessage": "An unknown error happened"
}
],
"error_reference": "TECHNICAL"
},
"status": 500,
"statusText": ""
Start/End: YYYYMM if type=month YYYYMMDD if type = day
---> SECURITY ERROR
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
Start/End:
YYYYMMDD for both types (day and month)
---> SECURITY ERROR
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
Security error:
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
{
"status": "403",
"code": "security.access",
"detail": "Access is denied for this resource"
}
{
"status": "Not Implemented",
"code": "501",
"title": "Not supported Feature",
"detail": "This feature is not technically supported by this gateway"
}
{
"status": "Not Implemented",
"code": "501",
"title": "Not supported Feature",
"detail": "This feature is not technically supported by this gateway"
}