承接 mylittleparis/campaign-commander 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mylittleparis/campaign-commander

Composer 安装命令:

composer require mylittleparis/campaign-commander

包简介

Client for the Campaign Commander API (wrapper)

README 文档

README

Campaign Commander is the stuff you need to manage your Campaign Commander.

About

PHP Campaign Commander is a library to communicate with the Campaign Commander API.

License

PHP Campaign Commander is BSD licensed.

Documentation

Requirements

  • PHP >= 5.4.4
  • soap extension

Installation through Composer

{
	"require": {
		"mylittleparis/campaign-commander": "dev-master"
	},
}	

Architecture

This library is structured on 2 layers:

  • Low-level API clients : only SOAP (using BeSimple lib) clients are provided (one for standard requests, one for requests containing attachments)
  • Mid-level API services : using low-level clients, they are mapped to CampaignCommander API methods and allow you to really work with CampaignCommander

Basic usage

Principle:

  1. Instantiate a mid-level service with an appropriate low-level API client factory
  2. Enjoy the service methods :)

Example : create an export from a segment

use BeSimple\SoapClient as Soap;
use MyLittle\CampaignCommander\API\SOAP as Client;
use MyLittle\CampaignCommander\Service as Service;

$clientFactory = new Client\StandardClientFactory(new Soap\SoapClientBuilder(), 'login', 'password', 'key', 'http://emvapi.emv3.com');
$service = new Service\MemberExportService($clientFactory);
try {
	$result = $service->createDownloadByMailinglist('ID_SEGMENT', 'ALL_MEMBERS', 'EMAIL,FIELD1', 'PIPE', 'true', 'EMAIL', 'true');
}

Testing

PHPUnit

this library comes with some unit tests. if you plan to run these tests, you can do it simply by running phpunit in the project root directory like that :

$ cd /path/to/lib
$ phpunit

For more information about PHPUnit, you can read the official documentation

The tests are located in the folder tests/.

Sites using this class

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 31
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固