industrious-mouse/laravel-dotmailer 问题修复 & 功能扩展

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

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

industrious-mouse/laravel-dotmailer

最新稳定版本:0.2.1

Composer 安装命令:

composer require industrious-mouse/laravel-dotmailer

包简介

Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)

README 文档

README

A very basic Laravel wrapper for the Dotmailer API Client by romanpitak.

Installation

To install, inside your project directory run the following from your terminal:

composer require industrious-mouse/laravel-dotmailer

Then load the service provider in your config/app.php:

IndustriousMouse\LaravelDotmailer\LaravelDotmailerServiceProvider::class

You'll also need to publish the config, so you can provide your keys:

php artisan vendor:publish --provider="IndustriousMouse\LaravelDotmailer\LaravelDotmailerServiceProvider"

Examples

Adding a Contact with custom data fields.

$contact_data = new ApiContact([
	'email'			=> 'test@test.com',
	'emailType'		=> 'Html',
	'dataFields'	=> [
		[
			'key' => 'FIRSTNAME',
			'value' => 'Name'
		]
	]
]);

try
{
    $contact = Dotmailer::PostContacts($contact_data);
}
catch (Exception $e)
{
    return $e;
}

Sending a Campaign to a contact

$contact_id = 12345;
$campaign_id = 12345;

$data = [
	'CampaignId'		=> $campaign_id,
	'ContactIds'		=> [
		$contact_id
	]
];

$send = Dotmailer::PostCampaignsSend(new ApiCampaignSend($data));

try
{
	$contact = Dotmailer::PostContacts($contact_data);
}
catch (Exception $e)
{
	return $e;
}

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固