π§π΄ 볼리λΉμ β μ°¨λ μ 보
λ³Έ μλΉμ€λ λ²νΈνμΌλ‘ 볼리λΉμμ λ±λ‘λ μ°¨λμ μμΈ μ 보λ₯Ό μ‘°νν©λλ€. 보ν μ¦κΆ λ²νΈ, λΈλλ, λ±κΈ(μ: μ λ¬΄μ© μ€ν λ°μ΄), λ±λ‘μ§, μλΉμ€ μ ν(μ: μκ°μ©), λͺ¨λΈ λ±μ λ°νν©λλ€.
μλν¬μΈνΈβ
GET https://api.verifik.co/v2/bo/vehicle
λ²νΈν(plate)μΌλ‘ 볼리λΉμ μ°¨λμ μ‘°νν©λλ€. μ°¨λ μμΈΒ·λ±λ‘ μ 보 λ±μ λ°ννμ¬ μ°¨λ κ²μ¦ λ° μ»΄νλΌμ΄μΈμ€μ νμ©ν μ μμ΅λλ€.
ν€λβ
| μ΄λ¦ | κ° |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
λ§€κ°λ³μβ
| μ΄λ¦ | νμ | νμ | μ€λͺ | μ |
|---|---|---|---|---|
plate | string | μ | μ‘°νν μ°¨λ λ²νΈν. | ABC1234 |
μμ²β
- JavaScript
- Python
- PHP
- Swift
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/bo/vehicle',
params: {
plate: 'ABC1234'
},
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <tu_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
payload = ''
headers = {}
conn.request("GET", "/v2/bo/vehicle?plate=ABC1234", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/bo/vehicle?plate=ABC1234');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
?>
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/bo/vehicle?plate=ABC1234")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
μλ΅β
- 200
- 404
- 409
- 500
{
"data": {
"Policy": "180680443",
"brand": "BAJAJ",
"clase": "MOTOCICLETA - TRABAJO",
"declaratory": "GRAL. SAAVEDRA",
"plate": "1234ZYL",
"service": "PARTICULAR",
"type": "BOXER 150"
},
"signature": {
"dateTime": "July 26, 2024 4:55 PM",
"message": "Certified by Verifik.co"
},
"id": "ZX35K"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate\n"
}
{
"code": "InternalServerError",
"message": "Server error."
}
κΈ°λ₯β
- μ°¨λ μ 보 μ‘°ν: 볼리λΉμ μ°¨λ λ±λ‘λΆμμ μμΈ μ 보λ₯Ό κ°μ Έμ΅λλ€.
- λ²νΈν κ²μ¦: κ΅λ΄ λ±λ‘ λ²νΈνμ μ‘°νν©λλ€.
- 보ν μ 보: μ°¨λ 보ν μ¦κΆ λ²νΈλ₯Ό μ‘°νν©λλ€.
- μ°¨λ λΆλ₯: λ±κΈ(μ: μ λ¬΄μ© μ€ν λ°μ΄) λ± μμΈ μ 보λ₯Ό μ 곡ν©λλ€.
- λ±λ‘μ§: λ±λ‘ κ΄ν μ 보μ μ κ·Όν©λλ€.
- μλΉμ€ μ ν: μκ°μ©Β·μμ μ© λ± κ΅¬λΆμ νμΈν©λλ€.
- λΈλλΒ·λͺ¨λΈ: μ μ‘°μ¬ λ° λͺ¨λΈ μ 보λ₯Ό μ‘°νν©λλ€.
- λ€κ΅μ΄ μν: JavaScript, Python, PHP, Swift μμ μ 곡
- μ€μκ° λ°μ΄ν°: μ΅μ μ°¨λ μ 보μ μ κ·Όν©λλ€.
- μ€λ₯ μ²λ¦¬: λ€μν μλ리μ€μ λν μ€λ₯ μλ΅μ λ°νν©λλ€.