Product Feed - PureClarity/php-sdk GitHub Wiki

Product Feed

Class

\PureClarity\Api\Feed\Type\Product

Usage

$feedData = <data pulled from your system>

$feed = new \PureClarity\Api\Feed\Type\Product($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
Id Product ID
Title Product Name/Title
Categories Array of category ids the product is in (can be empty, but key must be present)
Link URL of the product
Image URL of the product image (can be empty, but key must be present)
Prices array pf price data

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