Save pages - celdotro/marketplace GitHub Wiki

About

  • Adds a new page or updates an existing one.

Class

celmarket\Pages\PagesImport

Method

savePage

API

  • method: settings
  • action: savePage

Parameters

  • id = page id
  • pkey = page key
  • ctnp = page content
  • pg_n = page number

Response

An object with the following attributes message = in case of success, the following text will be returned: "Pagina salvata";

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Pages/2.savePages.php

Example - JSON

{
  "request": {
   "id": 1,
   "pkey": "X",
   "ctnp": "X",
   "pg_n": "X"
  },
  
  "response": {
    "message": "X"
  }
}
⚠️ **GitHub.com Fallback** ⚠️