The function pages/export (<http://<DOMAIN>>/api/pages/export/)
Parameters:
token - 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 - amount of discount for the section in percent
Query Example (http://<DOMAIN>/api/pages/export/):
{ "token": "68c0a0142b175f711dc8143dbedb757c", "parent": 97 }
Response example:
{ "status": "OK", "response": { "pages": [ { "id": 993, "parent": 97, "title": { "ru": "Бренды", "ua": "Бренди" }, "discount": 10 }, { "id": 1121, "parent": 97, "title": { "ru": "iPhone 5s", "ua": "" } }, { "id": 1122, "parent": 97, "title": { "ru": "iPad Air 2", "ua": "" } }, { "id": 1123, "parent": 97, "title": { "ru": "iPod Nano", "ua": "" } }, { "id": 1124, "parent": 97, "title": { "ru": "MacBook Air", "ua": "" } } ] } }
Add Comment