slowprog / unisender
UniSender API wrapper
0.1.2
2015-10-04 01:39 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-11-05 18:54:47 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
]);