承接 kite/ohmyemma 相关项目开发

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

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

kite/ohmyemma

最新稳定版本:v1.3

Composer 安装命令:

composer require kite/ohmyemma

包简介

关键字:

README 文档

README

OhMyEmma is a PHP library for interfacing with the Emma, www.myemma.com, API and requires an active API account_id, public_api_key, and private_api_key.

This library is based off the API documentation published on March 05, 2013 and can be found at this URL: http://api.myemma.com/index.html. Currently Emma does not have a method to inform users when the API is updated so this library will only be updated when users find a need or inform the authors of a change.

Additionally, to properly use this library it is best to read and understand the documentation for how filters, arrays and other parameters should be structured as this library is not intended to validate the data structures provided to it.

With that, we give you OhMyEmma

Installing

You have two options for using this library, clone this repo then move it to your desired location and second USE COMPOSER. So, USE COMPOSER. ;-)

    
        {
            "require": {
                "kite/ohmyemma": "1.*"
            }
        }
    

Usage

Create an Instance

Create a new instance by providing account credentials.

    
        $emma = new Emma(
            $account_id,
            $public_api_key,
            $private_api_key
        );
    

Available interfaces are: (case sensitive)

  • Events
  • Fields
  • Groups
  • Mailings
  • Members
  • Response
  • Searches
  • Triggers
  • Webhooks

Each interface has their unique set of methods. It's best to at least read through those files. These interfaces are saved as an object within the main OhMyEmma object.

Usage of the Control Object

Here is an example of using the members interface to add a new member and then retreave an updated list of members.

    
        $emma = new Emma(
            $account_id,
            $public_api_key,
            $private_api_key,
        );

        $newUser = array(
            'email' => 'notso@fast.com',
            'fields' => array(
                'first_name' => 'Jacques',
                'last_name' => 'Woodcock'
            )
        );

        $emma->Members->updateAddMember($newUser);
        $memberList = $emma->Members->getMembers();

        print_r($memberList);
    

License

Copyright (c) 2013, Kite, Inc All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 10
  • 开发语言: PHP

其他信息

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