buuyers / buuyers-api-php
There is no license information available for the latest version (2.3.0) of this package.
Buuyers API client built on top of Guzzle
2.3.0
2016-08-30 13:55 UTC
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is not auto-updated.
Last update: 2025-04-30 21:01:24 UTC
README
Installation
Using Composer:
{ "require": { "buuyers/buuyers-api-php": "2.3.0" } }
Clients
$client = new EmailingCampaign(appId, apiKey);
Emailing Campaign
$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 ]);
Get Info Campany
$client->companies->getCompany(id);
Get Campany Reviews
$client->companies->getCompanyReviews(id);
Post Add Review
$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), ]);