PHP code example of reevoo / reevoomark-php-api
1. Go to this page and download the library: Download reevoo/reevoomark-php-api library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
reevoo / reevoomark-php-api example snippets
$reevooMark->productBadge(array("sku" => "ABC"))
$reevooMark->conversationsBadge(array("sku" => "ABC"))
$reevooMark->productSeriesBadge(array("sku" => "ABC"))
$reevooMark->conversationSeriesBadge(array("sku" => "ABC"))
$reevooMark->overallServiceRatingBadge()
$reevooMark->customerServiceRatingBadge()
$reevooMark->deliveryRatingBadge()
$reevooMark->productReviews(array("sku" => "100A"))
if (!$reevooMark->productReviews(array("sku" => "100A", "showEmptyMessage" => false))):
$reevooMark->offersWidget(array("sku" => "3461209", "trkref" => "PCA"))
if (!$reevooMark->offersWidget(array("sku" => "10023AAA", "trkref" => "PCA"))):
$reevooMark->customerExperienceReviews()
if (!$reevooMark->customerExperienceReviews(array("showEmptyMessage" => false))):
$reevooMark->conversations(array("sku" => "100A"))
if (!$reevooMark->conversations(array("sku" => "100A", "showEmptyMessage" => false))):
{
""reevoo/reevoomark-php-api": "2.4.0"
}
}
$ php composer.phar install
php
rk = new ReevooMark("REV", "/tmp");
php
rk = new ReevooMark("REV1,REV2,REV3", "/tmp");
php
<head>
...
$reevooMark->cssAssets()
php
<body>
...
$reevooMark->javascriptAssets()
php
rk = new ReevooMarkApi("REV", "/tmp");
$reevooMark->cssAssets();
//=> <link rel="stylesheet" href="//mark.reevoo.com/stylesheets/reevoomark/embedded_reviews.css" type="text/css" />
php
$reevooMark->purchaseTrackingEvent(array("skus" => "111,222,333", "value" => "250"))
php
$reevooMark->propensityToBuyTrackingEvent(array("action" => "Brochure"))