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/part_quality');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);
{ "list": { "1": { "en": "New", "lv": "Jauns", "ru": "Новая", "lt": "Nauja", "pl": "Nowy", "es": "Nuevo", "fr": "Nouveau", "it": "Nuovo" }, "3": { "en": "With Defects", "lv": "Ar defektiem", "ru": "С дефектами", "lt": "Su defektais", "pl": "Uszkodzony", "es": "Con defectos", "fr": "Avec défauts", "it": "Con difetti" }, "4": { "en": "Restored", "lv": "Atjaunots", "ru": "Реставрированная", "lt": "Restauruota", "pl": "Regenerowany", "es": "Restaurado", "fr": "Restauré", "it": "Restaurato" }, "0": { "en": "Used", "lv": "Lietots", "ee": "Kasutada", "ru": "Б/у", "lt": "Naudota", "pl": "Używany", "es": "Usado", "fr": "Utilisé", "it": "Usato" } }, "msg": "OK", "status_code": "R200" }