๐จ๐ด Fasecolda โ ๋ณดํ ์ฒญ๊ตฌยท์ฌ๊ณ ์ด๋ ฅ
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/fasecolda/sinister
Fasecolda ๊ธฐ๋ก์์ ์ฐจ๋์ ๋ณดํ ์ฌ๊ณ ยท์ฒญ๊ตฌ(sinister) ์ด๋ ฅ์ ์กฐํํฉ๋๋ค. ์ฝ๋กฌ๋น์ ๋ฒํธํ plate ๋ฅผ ์ฟผ๋ฆฌ(?plate=)๋ก ๋ณด๋
๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
plate | string | yes | ์กฐํํ ๋ฒํธํ. ๊ณต๋ฐฑยท๋ง์นจํ ์์ด ์ ๋ ฅํฉ๋๋ค. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/fasecolda/sinister", {
params: { plate: "ABC123" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/fasecolda/sinister"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"plate": "ABC123"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"plate": "KDK605",
"sinister": [
{
"id": "1",
"accidentDate": "20/01/2015",
"protection": "Pรฉrdida Menor Cuantรญa"
},
{
"id": "2",
"accidentDate": "17/08/2012",
"protection": "Pรฉrdida Menor Cuantรญa"
},
{
"id": "3",
"accidentDate": "16/01/2017",
"protection": "Pรฉrdida Menor Cuantรญa"
}
]
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "February 9, 2024 7:43 PM"},
"id": "PFDB2"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate"
}
์ฐธ๊ณ (Notes)โ
- sinister ๋ ์ฝ๋กฌ๋น์ ๋ณดํ์์ ์ฌ๊ณ ยท์ฒญ๊ตฌ๋ฅผ ๊ฐ๋ฆฌํค๋ ์ฉ์ด๋ก ์ฐ์ ๋๋ค.
- Pรฉrdida Menor Cuantรญa ๋ ์์ก/๊ฒฝ๋ฏธํ ์ํด ๊ตฌ๋ถ์ ์์ ๋๋ค.
- ๊ฐ ํญ๋ชฉ์๋ ์ฒญ๊ตฌ IDยท์ฌ๊ณ ์ผยท๋ณด์ฅ ์ ํ ๋ฑ์ด ํฌํจ๋ ์ ์์ต๋๋ค.