xdubois/activecampaign-api
Composer 安装命令:
composer require xdubois/activecampaign-api
包简介
A PHP package for interacting with the ActiveCampaign API v3
README 文档
README
This package provides a simple way to interact with the ActiveCampaign API v3 using PHP. It covers DEALS, CONTACTS, ACCOUNTS, CUSTOM OBJECTS, and CUSTOM FIELDS endpoints.
Installation
You can install this package via Composer:
composer require xdubois/activecampaign-api
Usage
use xdubois\ActiveCampaign\ActiveCampaignAPI; $api = new ActiveCampaignAPI('your-api-token', 'https://your-account.api-us1.com'); // Deals $deals = $api->deals->list(); $deal = $api->deals->get(123); // Contacts $contacts = $api->contacts->list(); $contact = $api->contacts->create([ 'contact' => [ 'email' => 'john@example.com', 'firstName' => 'John', 'lastName' => 'Doe' ] ]); // Custom Fields $customFields = $api->customFields->list(); $newCustomField = $api->customFields->create([ 'field' => [ 'title' => 'New Custom Field', 'type' => 'text', 'isRequired' => false ] ]); // Custom Field Values $fieldValues = $api->contacts->getCustomFieldValues(123); $api->contacts->updateCustomFieldValue([ 'fieldValue' => [ 'contact' => 123, 'field' => 1, 'value' => 'New Value' ] ]); // Accounts $accounts = $api->accounts->list(); // Custom Objects $schemas = $api->customObjects->listSchemas(); // More examples...
Refer to the ActiveCampaign API documentation for all available endpoints and parameters.
License
This package is open-sourced software licensed under the MIT
统计信息
- 总下载量: 2.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-08-08