Marka ve Model Sorgulama GET
https://api.egefilo.com.tr/api/modeller
GET
https://api.egefilo.com.tr/api/modeller
Ö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/modeller?" . 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/modeller");
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/modeller"
{
"data": [
{
"id": 1,
"brand": "Fiat Egea"
},
{
"id": 15,
"brand": "Renault Taliant"
},
{
"id": 16,
"brand": "Renault Clio"
},
{
"id": 17,
"brand": "Dacia Stepway"
},
{
"id": 18,
"brand": "Opel Corsa"
},
{
"id": 19,
"brand": "Volkswagen Passat"
},
{
"id": 20,
"brand": "Renault Megane"
},
{
"id": 21,
"brand": "Ford Courier"
},
{
"id": 22,
"brand": "Peugeot 308"
},
]
}
Açıklama | ||
---|---|---|
id |
string |
Araç id numarası. |
brand |
string |
Araca ait marka ve model bilgisi. |