batons0/getresponse 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

batons0/getresponse

最新稳定版本:0.1.0

Composer 安装命令:

composer require batons0/getresponse

包简介

GetResponse API v3 client library.

README 文档

README

GetResponse API v3 wrapper working on PHP 5.2+. Here you can find our api documentation.

##Examples

Standard authorization

$getresponse = new GetResponse('your_api_key');

--

Enterprise authorization

$getresponse = new GetResponse('your_api_key'); $getresponse->enterprise_domain = 'somedomain.com'; //api URL is relative to your domain UR: $getresponse->api_url = 'https://api3.getresponse360.pl/v3'; //for PL domains $getresponse->api_url = 'https://api3.getresponse360.com/v3'; //default

-- Search contacts

$result = $getresponse->getContacts(array( 'query' => array( 'email' => '@getresponse.com', ), 'fields' => 'name,email' ));

Add contact

$getresponse->addContact(array( 'name' => 'Jon Smith', 'email' => 'jonsmith@testdomain.com', 'dayOfCycle' => 0, 'campaign' => array('campaignId' => 'campaign_id_obtained_by_API'), 'ipAddress' => '89.206.31.190', 'customFieldValues' => array( array('customFieldId' => 'custom_field_id_obtained_by_API', 'value' => array( 'Y' )), array('customFieldId' => 'custom_field_id_obtained_by_API', 'value' => array( 'Y' )) ) ));

-- Send message

$result = $getresponse->sendNewsletter(array( "subject" => 'Test subject', "fromField" => array('fromFieldId' => 'from_field_id'), "content" => array( 'html' => 'Test newsletter contetnt.' ), "sendSettings" => array( "selectedContacts" => array('contact_id_obtained_by_API') ) ));

-- Add custom field

$getresponse->setCustomField(array( 'name' => 'custom_name', 'type' => 'text', 'hidden' => 'false', ));

-- List saved search

$result = $getresponse->searchContacts();

-- List new web forms

$result = $getresponse->getForms();

-- List old web forms

$result = $getresponse->getWebForms();

统计信息

  • 总下载量: 22.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 56
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固