ν루 β μ°¨λ μ 보
μλν¬μΈνΈβ
https://api.verifik.co/v2/pe/vehiculo/placa
ν루 μ°¨λ μ 보 μλΉμ€λ λ²νΈνμ κΈ°λ°μΌλ‘ ν루μ λ±λ‘λ μ°¨λμ μμΈ λ°μ΄ν°λ₯Ό μ 곡ν©λλ€. μλ΅μλ μ μ‘°μ¬, λͺ¨λΈ, μ°μ, μμ§ λ° μ°¨λ μΌλ ¨λ²νΈ, μ μ, μ¬μ© μ ν λ± μ£Όμ μ λ³΄κ° ν¬ν¨λ©λλ€.
ν€λ(Headers)β
| μ΄λ¦ | κ° |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
λ§€κ°λ³μ(Parameters)β
| μ΄λ¦ | νμ | νμ | μ€λͺ |
|---|---|---|---|
plate | string | μ | μ‘°νν λ²νΈν. 곡백μ΄λ μ μμ΄ μ λ ₯ν©λλ€. |
μμ²(Request)β
- JavaScript
- Python
- Swift
- PHP
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/pe/vehiculo/placa',
params: {plate: 'ABC123'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <your_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/pe/vehiculo/placa?plate=", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/pe/vehiculo/placa?plate=")!,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()
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/pe/vehiculo/placa?plate=');
$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();
}
μλ΅(Response)β
- 200
- 404
- 409
{
"data": {
"plate": "ABC123",
"use": "PARTICULAR",
"type": "AUTOMOVIL",
"brand": "NISSAN",
"model": "VERSA",
"year": "2014",
"engineSerial": "HR123456789J",
"chasisSerial": "1234567890",
"seats": "5",
"validFormat": true,
"serial": "1234567890"
},
"signature": {
"dateTime": "August 1, 2022 5:23 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate\n"
}
νμ© μ¬λ‘β
- μ°¨λ κ²μ¦: ν루μ λ±λ‘λ μ°¨λμ κΈ°λ³Έ μ 보λ₯Ό κ²μ¦ν©λλ€.
- 보ν μλΉμ€: 보ν μ μ°¨μ νμν μ°¨λ λ°μ΄ν°λ₯Ό κ²μ¦ν©λλ€.
- κ΅ν΅ κΈ°κ΄: 곡μ μ°¨λ μ 보λ₯Ό μ‘°νν©λλ€.
- μ΄μ κΈ°μ : μμ© μ°¨λ λ°μ΄ν°λ₯Ό κ²μ¦ν©λλ€.
- μμ° κ²μ¦: μ°¨λμ κΈ°μ μ μμΈ μ 보λ₯Ό νμΈν©λλ€.
μ£Όμ κΈ°λ₯β
- β μ°¨λ λ²νΈνμΌλ‘ μ‘°ν
- β μ’ ν© κΈ°μ μ 보(μ μ‘°μ¬, λͺ¨λΈ, μ°μ)
- β μμ§ λ° μ°¨λ μΌλ ¨λ²νΈ
- β μ μ μ 보
- β μ°¨λ μ¬μ© μ ν
- β λ²νΈν νμ κ²μ¦
- β Verifik.coλ‘ μΈμ¦λ μλ΅