Documentation of the shops data exchange protocol - baselinker.com
Function list
Tests
ChangeLog


ProductsCategories
The method allows you to download a list of store's magazine categories.


Input parameters
Incoming as $_POST fields.
None



Outgoing data
Array fields that the method should return.
categories listarrayAn 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
)