List pages - celdotro/marketplace GitHub Wiki

About

  • Returns data for all available pages
  • There are 2 types of pages
    • Default
      1. default = default page with general information
      2. livrare-produse = products delivery page
      3. retur-produse = products return page
      4. garantie-produse = products warranty page
      5. confidentialitate = confidentiality details page
    • Pages added by the API user

Class

celmarket\Pages\PagesData

Method

getPages

API

  • method: settings
  • action: getPages

Parameters

(none)
Even if there is no parameter being sent to the API wrapper's method, a meaningless parameter will be added to the API call. Be aware of this if you plan on using the API directly!

Response

An object with the following attributes

  • (attribute) = page key -> object
    • id = page id
    • pkey = page key
    • nume_pagina = page name
    • continut_pagina = page contents

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Pages/1.getPages.php

Example - JSON

{
  "request": {
    
  },
  
  "response": {
   "pages": [
    {
      "id": 1,
      "pkey": "X",
      "nume_pagina": "X",
      "continut_pagina": "X"
    }
   ] 
  }
}
⚠️ **GitHub.com Fallback** ⚠️