Using Composer:
{
"require": {
"buuyers/buuyers-api-php": "2.3.0"
}
}
$client = new EmailingCampaign(appId, apiKey);
$client->emailingCampaigns->campaigns([
'company_id'=>xxx, // Id company
'email'=>xxx@yopmail.com, // Email
'type'=>'feedback', // feedback or avis
'date'=>xxxx-xx-xx, // Date to send
'time'=>xx, // Time to send
'name'=>xxxx, // Name (optional parameter)
'resend'=>xxxx-xx-xx, // Date to send (optional parameter),
'products'=>[], // Array of Products
]);
$client->companies->getCompany(id);
$client->companies->getCompanyReviews(id);
$client->companies->addReview([
'company_id'=>xxx, // Id company
'email'=>xxx@yopmail.com, // Email
'note'=>xx, // Note Review (1,2,3,4,5)
'title'=>xxxx, // Title Review (optional parameter)
'text'=>"Lorem ipsum dolor sit amet.", // Review Text (optional parameter),
]);