nuffic/yii2-getresponse

该包最新版本(1.6.0)没有可用的许可证信息。

Yii2 getresponse.com API 客户端组件

1.6.0 2023-08-18 15:22 UTC

This package is auto-updated.

Last update: 2024-09-18 17:42:52 UTC


README

主分支

build coverage

开发分支

build coverage

安装

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

用法

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

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

可用方法

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