nuffic/yii2-getresponse

There is no license information available for the latest version (1.5.0) of this package.

Yii2 getresponse.com api client component

1.5.0 2021-03-31 09:43 UTC

This package is auto-updated.

Last update: 2021-12-31 00:26:43 UTC


README

Master:

build coverage

Develop:

build coverage

Installation:

Via composer: composer.phar require "nuffic/yii2-getresponse":"~1.2.0"

Usage:

$client = new \nuffic\getresponse\Client([
   'apiKey' => 'API_KEY',
   'domain' => 'example.org', # domain for enterprise users
]);

$client->addContact('asd123', 'user@email.com');

Available methods:

searchContact('user@email.com'); // Gets single contact ID
searchContactInAllLists('user@email.com'); // Gets an array of contact IDs
addContact('asd123', 'user@email.com', ['qwer12' => 'super awesome value']); // campaign ID, email, custom fields
updateCustomFields('asd123', ['qwer12' => 'super awesome value']); // contact ID, custom fields
deleteContact('asd123'); // Removes contact by ID