Get fuel list https://api.rrr.lt/get/fuel

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/fuel');
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": "Diesel",
            "lv": "Dīzelis",
            "ru": "Дизельное топливо",
            "lt": "Dyzelinas",
            "pl": "Diesel",
            "es": "Gasóleo",
            "fr": "Diesel",
            "it": "Diesel"
        },
        "2": {
            "en": "Petrol",
            "lv": "Benzīns",
            "ru": "Бензин",
            "lt": "Benzinas",
            "pl": "Benzyna",
            "es": "Gasolina",
            "fr": "Essence",
            "it": "Benzina"
        },
        "3": {
            "en": "Petrol / Gas",
            "lv": "Benzīns / gāze",
            "ru": "Бензин / газ",
            "lt": "Benzinas / dujos",
            "pl": "Benzyna / Gaz",
            "es": "Gasolina / GLP",
            "fr": "Essence / GPL",
            "it": "Benzina / GPL"
        },
        "4": {
            "en": "Petrol / Electric",
            "lv": "Benzīns / elektrība",
            "ru": "Бензин / электричество",
            "lt": "Benzinas / elektra",
            "pl": "Benzyna / Elektryk",
            "es": "Gasolina / Electricidad",
            "fr": "Essence / électricité",
            "it": "Benzina / Elettrico"
        },
        "5": {
            "en": "Electric",
            "lv": "Elektrība",
            "ru": "Электричество",
            "lt": "Elektra",
            "pl": "Elektryk",
            "es": "Eléctrico",
            "fr": "Électrique",
            "it": "Elettrico"
        },
        "6": {
            "en": "Diesel / Electric",
            "lv": "Dīzelis / elektrisks",
            "ru": "Дизельное топливо / электричество",
            "lt": "Dyzelinas / elektra",
            "pl": "Diesel / Elektryk",
            "es": "Gasóleo / electricidad",
            "fr": "Diesel / électricité",
            "it": "Diesel / Elettrico"
        },
        "7": {
            "en": "Diesel / Gas",
            "lv": "Dīzelis / gāze",
            "ru": "Дизельное топливо / газ",
            "lt": "Dyzelinas / dujos",
            "pl": "Diesel / Gaz",
            "es": "Gasóleo / GLP",
            "fr": "Diesel / GPL",
            "it": "Diesel / GPL"
        },
        "8": {
            "en": "Bioethanol (E85)",
            "lv": "Bioetanols (E85)",
            "ru": "Биоэтанол (E85)",
            "lt": "Bioetanolis (E85)",
            "pl": "Bioetanol / E85",
            "es": "Bioetanol (E85)",
            "fr": "Bioéthanol (E85)",
            "it": "Bioetanolo (E85)"
        },
        "9": {
            "en": "Other",
            "lv": "Cits",
            "ru": "Другое",
            "lt": "Kita",
            "pl": "Inne",
            "es": "Otro",
            "fr": "Autre",
            "it": "Altro"
        }
    },
    "msg": "OK",
    "status_code": "R200"
}