Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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": ""
        }
      }
    ]
  }
}

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.