List characteristics of a category - celdotro/marketplace GitHub Wiki

About

  • Lists the characteristics of a category

Class

celmarket\Products\ProductsList

Method

getCategoryCharacteristics

API

  • method: products
  • action: getCategoryCharacteristics

Parameters

  • categ_id = category ID

Response

An object with the following attributes

  • (array element) = characteristic's data
    • charact_id = characteristic's ID
    • charact_name = characteristic's name
    • priority = characteristic's priority
    • charact_value = list of accepted values of the characteristic -> array if there is a list of accepted values, null otherwise
      • (array element) = accepted value of the characteristic

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Products/8.getCategoryCharacteristics.php

Example - JSON

{
  "request": {
   "categ_id": 1 
  },
  
  "response": {
    "0": {
      "charact_id": 1,
      "charact_name": "X",
      "priority": 1,
      "charact_value": [
        "X"
      ]
    }
  }
}
⚠️ **GitHub.com Fallback** ⚠️