Kasa Tipi Sorgulama GET
https://api.egefilo.com.tr/api/arac-tipi
GET
https://api.egefilo.com.tr/api/arac-tipi
Örnek | |||
---|---|---|---|
key |
string |
Evet |
key=apikey |
token |
string |
Evet |
token=apitoken |
$headers = [
"Accept" => "application/json",
"Content-Type" => "application/json",
];
$query = [
"key" => "apikey",
"token" => "apitoken",
];
$ch = curl_init("https://api.egefilo.com.tr/api/arac-tipi?" . http_build_query($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$err = curl_error($ch);
curl_close($ch);
if ($err) {
throw \Exception($err);
} else {
return $response;
}
const url = new URL("https://api.egefilo.com.tr/api/arac-tipi");
let params = {
"key": "apikey",
"token": "apitoken",
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
curl -X GET -G "https://api.egefilo.com.tr/api/arac-tipi"
{
"data": [
{
"id": 1,
"luggage": "Hatchback"
},
{
"id": 2,
"luggage": "Sedan"
},
{
"id": 3,
"luggage": "Kamyonet"
},
{
"id": 4,
"luggage": "Suv"
}
]
}
Açıklama | ||
---|---|---|
id |
string |
Araç id numarası. |
luggage |
string |
Araca ait kasa tipi bilgisi. |