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

Installs: 251

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/buuyers/buuyers-api-php

2.3.0 2016-08-30 13:55 UTC

This package is not auto-updated.

Last update: 2025-10-01 23:02:33 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),
]);