mediapart/selligent 问题修复 & 功能扩展

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

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

mediapart/selligent

最新稳定版本:v1.1.3

Composer 安装命令:

composer require mediapart/selligent

包简介

Selligent Client API. Use to manage your Selligent data from PHP.

README 文档

README

Build Status Code Coverage Scrutinizer Quality Score Total Downloads Latest Stable Version

A simple PHP library to help you interact with both Selligent Individual and Broadcast API.

Usage

<?php # example.php

require './vendor/autoload.php';

use Mediapart\Selligent\Connection;
use Mediapart\Selligent\Transport;
use Mediapart\Selligent\Properties;


/* connect you to your Selligent API server */
$connection = new Connection();
$client = $connection->open([
    'login' => '*****',
    'password' => '*****',
    'wsdl' => 'http://emsecure/individual?wsdl', 
]);

/*
    Example : Trigger the TESTGATE campaign to an user.
    We will register the user first an then, we will trigger
    the campaign with a custom message :
 */
try {

    $transport = new Transport($client);

    $user = new Properties();
    $user['NAME'] = 'Foo Bar';
    $user['MAIL'] = 'foo@bar.tld';

    $userId = $transport
        ->setList($config['list'])
        ->subscribe($user)
    ;

    $inputData = new Properties();
    $inputData['MESSAGE'] = 'Lorem ipsum dolor sit amet conceptuem.';

    $result = $transport
        ->setCampaign($config['campaign'])
        ->triggerCampaign($userId, $inputData)
    ;

} catch (\Exception $e) {
    echo 'something bad happens.';
}

You could broadcast campaign based on complete HTML from the API.

Installation

Simply install this package with Composer.

composer require mediapart/selligent

Tests

Executing tests out of the box :

./vendor/bin/phpunit

Without setting some environment variables, some tests will be skipped. Tests in real testsuite for example.

Read More

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 7
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: CC
  • 更新时间: 2016-10-20