Skip to content

Buuyers/buuyers-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buuyers-api-php

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),
]);

About

PHP bindings for the Buuyers API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages