Name | Type | Required | Data |
---|---|---|---|
username | Text varchar(50) | YES | Username |
password | Text varchar(100) | YES | Password |
user_token | Text | YES | Token provided |
$post = [
'username' => '',
'password' => '',
'user_token' => '',
];
$ch = curl_init('https://api.rrr.lt/get/gearbox_type');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);
{ "list": { "1": { "en": "Automatic", "lv": "Automātiski", "ru": "Автоматическая", "lt": "Automatinė", "pl": "Automatyczny", "es": "Automático", "fr": "Automatique", "it": "Automatico" }, "0": { "en": "Manual", "lv": "Mehānisks", "ru": "Механическая", "lt": "Mechaninė", "pl": "Mechaniczna", "es": "Manual", "fr": "Manuel", "it": "Manuale" } }, "msg": "OK", "status_code": "R200" }