Get car https://api.rrr.lt/get/car/{id}

POST parameters

Name Type Required Data
username Text varchar(50) YES Username
password Text varchar(100) YES Password
user_token Text YES Token provided

URI values

Name Type Required Data
{id} Numeric (int 11) YES Car ID

PHP Curl example code

$post = [
'username' => '',
'password' => '',
'user_token' => '',
];

$ch = curl_init('https://api.rrr.lt/get/car/{id}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);

Output

{
    "list": [
        [
            {
                "id": "242",
                "car_color": "3",
                "car_color_code": "asd123",
                "car_model": "16",
                "car_model_category": "0",
                "car_model_years": "0",
                "car_body_number": "sadfasdfasdf",
                "car_engine_number": "465464564646",
                "car_years": "2007",
                "car_engine_cubic_capacity": "2200",
                "car_engine_power": "103",
                "car_engine_type": "2",
                "car_engine_code": "enginecode456",
                "car_gearbox_type": "1",
                "car_gearbox_code": "555",
                "car_interior": "2",
                "car_fuel": "1",
                "car_mileage": "223014",
                "defectation_notes": "smarkiai daužtas",
                "car_wheel_type": "0",
                "car_wheel_drive": "1",
                "car_body_type": "2",
                "car_photo_gallery": [
                    "https://lauris.rrr.lt/car/242/img/6-1996-101.jpg"
                ]
            }
        ]
    ],
    "msg": "OK",
    "status_code": "R200"
}