ProductsCategories
The method allows you to download a list of store's magazine categories.
Input parameters
Incoming as $_POST fields.
returned data JSON:
Dane wyjściowe:
None |
Outgoing data
Array fields that the method should return.
categories list | array | An array where category IDs are key and category name values. Any hierarchy of relations between individual categories must be "flattened", as shown in the attached example. |
Example:
returned data JSON:
{"12":"Toys","19":"Toys/Bricks","20":"Toys/Bricks/Lego","23":"Toys/Bricks/Wooden","44":"Clothes ","45":"Clothes / for boys"}
Dane wyjściowe:
Array
(
[12] => Toys
[19] => Toys/Bricks
[20] => Toys/Bricks/Lego
[23] => Toys/Bricks/Wooden
[44] => Clothes
[45] => Clothes / for boys
)
(
[12] => Toys
[19] => Toys/Bricks
[20] => Toys/Bricks/Lego
[23] => Toys/Bricks/Wooden
[44] => Clothes
[45] => Clothes / for boys
)