Функция The function pages/export (http<http://<DOMAIN><DOMAIN>>/api/pages/export/)
ПараметрыParameters:
token - ключ авторизации полученный через функцию auth
parent - родительский раздел относительно которого искать страницы (опционально). По умолчанию 0 (корневой раздел). Можно выбрать любой раздел в качестве родительского
Ответ:
status - статус выполнения функции
OK - все записи обновились успешно
EMPTY - запрос не вернул результатов
response.pages - список страницauthorisation key obtained through the auth function
parent - parent section relative to which pages should be searched (optional). Default is 0 (root partition). You can select any partition as parent
Response:
status - status of the function execution
OK - all records were updated successfully
EMPTY - the query returned no results
response.pages - list of pages
response.pages[i].id - уникальный идентификатор страницыunique page identifier
response.pages[i].parent - идентификатор родительского разделаparent section identifier
response.pages[i].title - массив названий раздела, где ключом массива является язык на котором указано название
...
array of section titles, where the array key is the language in which the title is specified.
response.pages[i].discount — размер скидки на раздел в процентах
...
discount - amount of discount for the section in percent
Query Example (http://<DOMAIN>/api/pages/export/):
Code Block |
---|
{ "token": "68c0a0142b175f711dc8143dbedb757c", "parent": 97 } |
Пример ответа на запросResponse example:
Code Block |
---|
{ "status": "OK", "response": { "pages": [ { "id": 993, "parent": 97, "title": { "ruen": "БрендыBrands", "uaro": "БрендиMărci" }, "discount": 10 }, { "id": 1121, "parent": 97, "title": { "ruen": "iPhone 5s", "uaro": "" } }, { "id": 1122, "parent": 97, "title": { "ruen": "iPad Air 2", "uaro": "" } }, { "id": 1123, "parent": 97, "title": { "ruen": "iPod Nano", "uaro": "" } }, { "id": 1124, "parent": 97, "title": { "ruen": "MacBook Air", "uaro": "" } } ] } } |