List categories - celdotro/marketplace GitHub Wiki
- Returns product categories
celmarket\Products\ProductsList
getCategories
- method: import
- action: getSupplierCategories
(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!
An object with the following attributes
- (attribute) = parent category -> object
- (attribute) = subcategory -> object
- (object name) = category id
- (object value) = category name
- (attribute) = subcategory -> object
First category will be named 'parent' by default
https://github.com/celdotro/marketplace_examples/blob/master/Products/1.getCategories.php
{
"request": {
},
"response": {
"categories": {
"X" : {
"X": 1
}
}
}
}