kamva/sendinblue-api-php

SendinBlue API Wrapper

dev-master 2017-01-15 12:45 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:09:19 UTC


README

A wrapper for sendinblue api (Beta)

Current features

  • Campaigns

Installation

Add moloquent package to your compoer.json:

"require": {
  "kamva/sendinblue-api-php": "dev-master"
}

And then do a composer update.

Or run the following command on your console:

composer require kamva/sendinblue-api-php

Usage

Campaigns

For adding a user to campaign list, do the following.

$data = [
    'email'      => 'john.doe@mail.com',
    'attributes' => [
        'name' => 'John Doe',
        'age' => 34
    ],
    'listid'     => [21]
];

$client = new Kamva\SendinBlue\Client();
$client->campaigns()->users()->createOrUpdate($data);

فروشگاه ساز