API Reference - system.uin
This API allows to retrieve vehicle UIN. This API is an alias of cea.uin.
Input Parameter | |||||
---|---|---|---|---|---|
No input params |
Output Data | ||||
---|---|---|---|---|
Data name | Description | Type | Unit/Values | Example |
CarData | Vehicle identifier (UIN) & timestamp in Base64. |
string |
|
eyJ0aV1lc3RhbXAiOiIzMDE3RTA4LTAyVDE3OjE1OjAcWiIsInVpbiI6IjAwMDAwVDBwMDAwMDAwMDAwMDAyIn0=
|
CarData_signature | Type MIME of this response in Base64. |
strings |
|
TUlNRS1WZXJzaW9uOiAxLjANCkNvbnRlbnQtRGlz
|
Code Example
1
2
3
4
5
6
7
8
9
10
11
12
13
webportal.get(
/* api name */
"system.uin",
/* parameters */
null
)
/* callback for `REPLY` messages */
.then((message) => {
if (message.status === 200) {
/* handle `REPLY` success */
}
else { /* handle `REPLY` error */ }
})
1
2
3
4
5
6
{
"id": "7372c16f-5f2f-42c9-84a7-5490e35f1be0",
"type": "GET",
"api": "system.uin",
"params": null
}
1
2
3
4
5
6
7
8
9
10
11
12
13
// --- format of the `REPLY` message ---
{
"id": "7372c16f-5f2f-42c9-84a7-5490e35f1be0",
"type": "REPLY",
"api": "system.uin",
"status": 200,
"statusText": "OK",
"data": {
"CarData": "eyJ0aV1lc3RhbXAiOiIzMDE3RTA4LTAyVDE3OjE1OjAcWiIsInVpbiI6IjAwMDAwVDBwMDAwMDAwMDAwMDAyIn0=",
"CarData_signature": "TUlNRS1WZXJzaW9uOiAxLjANCkNvbnRlbnQtRGlz"
}
}
false