Import history - celdotro/marketplace GitHub Wiki

About

  • Returns data about import history

Class

celmarket\Admin\AdminHistory

Method

getImportHistory

API

  • method: admininfo
  • action: getImportHistory

Parameters

(all parameters are optional)

  • date_start = start date
  • date_stop = end date
  • import_type = import type
  • page = page number (default 0)

Response

An object with the following attributes

  • imports = array containing the history of imports
    • (array element) = data about an import
      • id = import's ID
      • data_import = import's date
      • tip_import = import's type
      • fisier = imported file
      • status = import's status
      • rezultate_import = import's results
  • total = total number of imports

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Admin/3.getImportHistory.php

Example - JSON

{
  "request": {
    "date_start": "01-01-2018",
    "date_stop": "01-01-2018",
    "import_type": 1,
    "page": 0
  },
  
  "response": {
    "imports": [
      "id": 1,
      "data_import": "01-01-2018",
      "tip_import": 1,
      "fisier": "x",
      "status": 1,
      "rezultate_import": "x"
    ],
    "total": 1
  }
}
⚠️ **GitHub.com Fallback** ⚠️