Get cars https://api.rrr.lt/get/cars/{date_from}/{date_to}

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
{date_from} date (Y-m-d) NO Date from parts added (exp. 2019-02-14)
{date_to} date (Y-m-d) NO Date to parts added (exp. 2019-03-14)

PHP Curl example code

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

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

Output

{
    "list": [
        {
            "id": "237",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "6",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "1996",
            "car_engine_cubic_capacity": "2000",
            "car_engine_power": "110",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "223014",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "3",
            "car_photo_gallery": []
        },
        {
            "id": "238",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "6",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "1996",
            "car_engine_cubic_capacity": "2000",
            "car_engine_power": "110",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "223014",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "3",
            "car_photo_gallery": []
        },
        {
            "id": "239",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "6",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "1996",
            "car_engine_cubic_capacity": "2000",
            "car_engine_power": "110",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "223014",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "3",
            "car_photo_gallery": []
        },
        {
            "id": "240",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "6",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "1996",
            "car_engine_cubic_capacity": "2000",
            "car_engine_power": "110",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "223014",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "3",
            "car_photo_gallery": []
        },
        {
            "id": "241",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "6",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "1996",
            "car_engine_cubic_capacity": "2000",
            "car_engine_power": "110",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "223014",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "3",
            "car_photo_gallery": []
        },
        {
            "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/home/dev/web/lauris.rrr.lt/public_html/uploads/car/docs/242/6-1996-101.jpg"
            ]
        }
    ],
    "msg": "OK",
    "status_code": "R200"
}