Category Feed - PureClarity/php-sdk GitHub Wiki

Category Feed

Class

\PureClarity\Api\Feed\Type\Category

Usage

$feedData = <data pulled from your system>

$feed = new \PureClarity\Api\Feed\Type\Category($accessKey, $secretKey, $region);

$feed->start();

foreach ($feedData as $row) {
    $feed->append($row);
}

$feed->end();

See Data feed overview for more details

Format

The following array keys must be present when passed to the append function:

Key Description Empty allowed
Id Category ID No
DisplayName Category Name/Title No
Link URL of the Category No
Image URL of the Category image Yes
ParentIds Array of Category ids the category is a child of Yes
Description description of the Category Yes

For specific formatting of the above fields, and further fields you can add, see the category feed documentation