Click Use this process and template will be copied to your environment.
Objects of folder «Get promo list Varus»:
Get promo list Process is intended for getting a list of id all the promotions;
Get category by id Get category by id from promotions list;
Goods by category Id Get goods by category Id;
Get city list - Process is intended for getting a list of id all cities;
Get shop by city_Id Get information about shops and their location by city id.
This template is a set of processes for getting a list of all the promotions and special offers of VARUS supermarkets chain.
Process Get promo list is intended for getting a list of id all the promotions
Name | Type | Description |
---|---|---|
lang | string | response language (ua/ru allowed) |
Response:
[
{
"id": 1,
"name_ua": "Всі акції"
},
{
"id": 2,
"name_ua": "Акції VARUS PERFECT"
},
{
"id": 3,
"name_ua": "MARVEL Mania"
},
{
"id": 4,
"name_ua": "Анонси акцій"
}
]
Get category by id - Get category by id from promotions list Input parameters: | Name | Type | Description | | ------------- |:--------------:| -----| | id |string| promotion Id| | lang |string| response language (ua/ru allowed) | Response: [{ "id": "142", "uk": "алкоголь" }, { "id": "143", "uk": "бакалія, крупи і макарони" }, { "id": "145", "uk": "побутхімія і косметика" }, { "id": "146", "uk": "дитяче" } ]
Goods by category Id Get goods by category Id Input parameters: | Name | Type | Description | | ------------- |:--------------:| -----| | id |string| category Id| | lang |string| response language (ua/ru allowed) | Response: {
"array": [{ "title": "Кофе", "nid": "26359", "img": "https://varus.ua/sites/default/files/sync/out/gazeta22-65.jpg, "field_startdate_value": "2018-10-25 00:00:00", "field_stopdate_value": "2018-11-07 00:00:00", "body_value": "розчинна ТМ Якобз Монарх 170 г", "cover": "https://varus.ua/sites/all/modules/custom/bx_bot/images/generate/26359_uk.png, "old_price": "179.99", "new_price": "129.99", "action_id": [ 1 ] }] }
Process Get city list is intended for getting a list of id all cities
Input parameters:
| Name | Type | Description |
| ------------- |:--------------:| -----|
| id |string| response language (ua/ru allowed) |
Response:
"array": [
{
"id": "22",
"uk": "Київ"
},
{
"id": "25",
"uk": "Дніпро"
},
{
"id": "24",
"uk": "Бровари"
},
{
"id": "26",
"uk": "Вишгород"
},
{
"id": "39",
"uk": "Долинська"
},
{
"id": "27",
"uk": "Запоріжжя"
},
{
"id": "28",
"uk": "Кам'янське"
},
{
"id": "29",
"uk": "Кривий Ріг"
},
{
"id": "34",
"uk": "Марганець"
},
{
"id": "30",
"uk": "Нікополь"t
},
{
"id": "36",
"uk": "Новомосковськ"
},
{
"id": "37",
"uk": "Павлоград"
},
{
"id": "38",
"uk": "Першотравенськ"
}
]
Get shop by city_Id - Get information about shops and their location by city id
Input parameters:
| Name | Type | Description |
| ------------- |:--------------:| -----|
| lang |string| response language (ua/ru allowed) |
| id |string| city id |
Response:
{
"id": "72",
"latitude": "48.001528",
"longitude": "33.482643",
"uk": {
"address": "м-он 5-й Зарічний, 11К ТЦ \"Терра\""
}
}