Get car parts categories https://api.rrr.lt/get/categories

POST parameters

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

Alert!

The third level category is used for part name!

PHP Curl example code

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

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

Output

{
    "list": [
        {
            "id": "1",
            "parent_id": "0",
            "level": "1",
            "en": "Brake system",
            "lv": "Bremžu sistēma",
            "ru": "Тормозная система",
            "lt": "Stabdžių sistema",
            "pl": "Układ hamulcowy",
            "es": "Sistema de frenos",
            "fr": "Système de freinage",
            "it": "Sistema frenante",
            "ro": "Sistem frânare"
        },
        {
            "id": "98",
            "parent_id": "0",
            "level": "1",
            "en": "Headlight headlamp washing system",
            "lv": "Logu, lukturu tīrīšanas/skalošanas sistēma",
            "ru": "Система опрыскивания / чистки",
            "lt": "Stiklų žibintų apiplovimo/ valymo sistema",
            "pl": "Wycieraczki i spryskiwacze szyb i świateł",
            "es": "Sistema de limpiado/lavado del faro",
            "fr": "Phares / système de lavage / nettoyage des phares",
            "it": "Sistema di lavaggio/pulizia fari/fanali",
            "ro": "Sistem spălare/curățare faruri"
        },
        ...
    ],
    "msg": "OK",
    "status_code": "R200"
}