slowprog/unisender

UniSender API wrapper

0.1.2 2015-10-04 01:39 UTC

This package is auto-updated.

Last update: 2024-04-05 17:43:00 UTC


README

See the documentation available method.

Usage

$unisender = new \SlowProg\UniSender\Api('api_key');

// Get a list of subscription sheets 
$lists = $unisender->getLists();

// Get email_status of email
$emailStatus = $unisender->exportContacts([
    'email' => $data['email'],
    'field_names' => ['email_status'],
]);

// Add email@domain.com
$response = $this->unisender->importContacts([
    'field_names' => ['email', 'some_addition_field'],
    'data' => [
        ['email@domain.com', 'some_value']
    ],
    'force_import' => 1
]);