getProductCategories

Method returns product categories

Usage URL: https://e-hedo.pl/api/getProductCategories.json?key=YOURAPIKEY

Query params

(put those in your URL, e.g. ?id=123)

  • id

    Internal identifier of product category. More than one value can be specified after comma (,) separator.

  • fkparent

    Identifier of parent category. If you specify one, method return only one level of categories. Zero "0" is root category.

  • modified

    Return all product categories modified after the modified date. That is highly recommended when you want to update your local database.
    Date format is yyyy-MM-dd

  • adult

    If set to 0 - will skip any adult content. If 1 - will show only adult content.

  • lang

    Language of result. ISO 2 Letter Language Codes ie: en, pl, cs

  • id | integer

    Internal identifier of product category.

  • modified | datetime

    When last modified.

  • name | string

    Name of category

  • description | string

    Description of category

  • fkparent | integer

    Identifier of parent category. Zero "0" is root category.

  • order | integer

    Order of category

  • countpublished | integer

    Count of all published products in this category

  • foradults | integer

    Content recommended for adults only - 0/1 - false/true

Example URL: https://e-hedo.pl/api/getProductCategories.json?key=YOURAPIKEY&lang=en&id=2662

[
    {
        "id": 2662,
        "modified": "2016-11-30 02:30:21",
        "name": "Films \/ Security glasses",
        "description": null,
        "fkparent": 2622,
        "order": 0,
        "countpublished": 39
    }
]
Example URL: https://e-hedo.pl/api/getProductCategories.xml?key=YOURAPIKEY&lang=en&id=2662

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>2662</id>
		<modified>2016-11-30 02:30:21</modified>
		<name>Films / Security glasses</name>
		<description></description>
		<fkparent>2622</fkparent>
		<order>0</order>
		<countpublished>39</countpublished>
	</item>
</root>