Get car color list https://api.rrr.lt/get/color

POST parameters

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

PHP Curl example code

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

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

Output

{
    "list": {
        "1": {
            "en": "Red",
            "lv": "Sarkans",
            "ru": "Красный",
            "lt": "Raudona",
            "pl": "Czerwony",
            "es": "Rojo",
            "fr": "Rouge",
            "it": "Rosso"
        },
        "2": {
            "en": "Orange",
            "lv": "Oranžs",
            "ru": "Оранжевый",
            "lt": "Oranžinė",
            "pl": "Pomarańczowy",
            "es": "Naranja",
            "fr": "Orange",
            "it": "Arancione"
        },
        "3": {
            "en": "Yellow",
            "lv": "Dzeltens",
            "ru": "Желтый",
            "lt": "Geltona",
            "pl": "Żółty",
            "es": "Amarillo",
            "fr": "Jaune",
            "it": "Giallo"
        },
        "4": {
            "en": "Green",
            "lv": "Zaļš",
            "ru": "Зеленый",
            "lt": "Žalia",
            "pl": "Zielony",
            "es": "Verde",
            "fr": "Vert",
            "it": "Verde"
        },
        "5": {
            "en": "Blue",
            "lv": "Zils",
            "ru": "Синий",
            "lt": "Mėlyna",
            "pl": "Niebieski",
            "es": "Azul",
            "fr": "Bleu",
            "it": "Blu"
        },
        "6": {
            "en": "White",
            "lv": "Balts",
            "ru": "Белый",
            "lt": "Balta",
            "pl": "Biały",
            "es": "Blanco",
            "fr": "Blanc",
            "it": "Bianco"
        },
        "7": {
            "en": "Violet",
            "lv": "Violets",
            "ru": "Фиолетовый",
            "lt": "Violetinė",
            "pl": "Fioletowy",
            "es": "Violeta",
            "fr": "Violet",
            "it": "Viola"
        },
        "8": {
            "en": "Brown",
            "lv": "Brūns",
            "ru": "Коричневый",
            "lt": "Ruda",
            "pl": "Brązowy",
            "es": "Marrón",
            "fr": "Marron",
            "it": "Marrone"
        },
        "9": {
            "en": "Grey",
            "lv": "Pelēks",
            "ru": "Серый",
            "lt": "Pilka",
            "pl": "Szary",
            "es": "Gris",
            "fr": "Gris",
            "it": "Grigio"
        },
        "10": {
            "en": "Black",
            "lv": "Melns",
            "ru": "Черный",
            "lt": "Juoda",
            "pl": "Czarny",
            "es": "Negro",
            "fr": "Noir",
            "it": "Nero"
        },
        "0": {
            "en": "",
            "lv": "",
            "ru": "",
            "lt": "",
            "pl": "",
            "es": "",
            "fr": "",
            "it": ""
        }
    },
    "msg": "OK",
    "status_code": "R200"
}