Список товаров

Метод требует передачу User-Agent заголовка!

Подробнее о User-Agent и примерах отправки запроса можно узнать здесь.

Получение списка товаров магазина

GET https://easydonate.ru/api/v2/shop/{key}/products

Запрос вернет список всех товаров, добавленных в магазине.

Query Parameters

Name
Type
Description

key

string

Уникальный ключ магазина

{
   "success":1,
   "response":[
      {
         "id":6074,
         "name":"Алмазный меч",
         "price":49,
         "old_price":null,
         "type":"item",
         "number":1,
         "commands":[
            "give {user} 276 {amount}"
         ],
         "withdraw_commands":null,
         "withdraw_commands_days":null,
         "additional_fields":null,
         "description":null,
         "image":"http://cp.easydonate.ru/storage/app/media/Diamond%20Sword-min.png",
         "first_delete":0,
         "shop_id":531,
         "created_at":"2021-02-24 18:02:40",
         "updated_at":"2021-03-26 13:48:13",
         "sort_index":0,
         "servers":[
            {
               "id":965,
               "name":"Выживание",
               "ip":"alcor.mcstudio.pro",
               "port":"25641",
               "version":"",
               "is_port_hidden":0,
               "hide_ip":0,
               "is_hidden":0,
               "shop_id":531,
               "created_at":"2021-02-22 17:44:47",
               "updated_at":"2021-03-05 22:39:44"
            }
         ]
      },
      {
         "id":11237,
         "name":"Алмазная кирка",
         "price":59,
         "old_price":null,
         "type":"item",
         "number":1,
         "commands":[
            "give {user} 278 {amount}"
         ],
         "withdraw_commands":null,
         "withdraw_commands_days":null,
         "additional_fields":null,
         "description":"",
         "image":"https://cp.easydonate.ru/storage/app/uploads/public/605/dbc/33d/605dbc33d4ef6691959726.png",
         "first_delete":0,
         "shop_id":531,
         "created_at":"2021-03-26 13:49:24",
         "updated_at":"2021-03-26 13:49:24",
         "sort_index":1,
         "servers":[
            {
               "id":965,
               "name":"Выживание",
               "ip":"alcor.mcstudio.pro",
               "port":"25641",
               "version":"",
               "is_port_hidden":0,
               "hide_ip":0,
               "is_hidden":0,
               "shop_id":531,
               "created_at":"2021-02-22 17:44:47",
               "updated_at":"2021-03-05 22:39:44"
            }
         ]
      }
   ]
}

Last updated