nuffic/yii2-getresponse

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

Yii2 getresponse.com api client component

1.6.0 2023-08-18 15:22 UTC

This package is auto-updated.

Last update: 2024-12-18 18:16:31 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