moosend/phpwrapper 问题修复 & 功能扩展

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

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

moosend/phpwrapper

Composer 安装命令:

composer require moosend/phpwrapper

包简介

README 文档

README

The following project is a PHP implementation of the Moosend V3 API. You can find the API documentation at http://docs.moosendapp.apiary.io/#

Requirements

PHP 5.4.0 and later

Installation & Usage

composer require moosend/phpwrapper

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string | 
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested AB test campaign

try {
    $result = $api_instance->aBTestCampaignSummary($format, $apikey, $campaign_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CampaignsApi->aBTestCampaignSummary: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

CampaignsApi

Class Method
GetAllCampaigns Returns a list of all campaigns in your account with detailed information.
GetCampaignsByPage Returns a list of all campaigns in your account with detailed information, paging information is required as input.
GetCampaignsByPageAndPagesize Returns a list of all campaigns in your account with detailed information, paging information is required as input.
GettingCampaignDetails Returns a complete set of properties that describe the requested campaign in detail.
GettingSenderDetails Returns basic information for the specified sender identified by its email address.
CloningAnExistingCampaign Creates an exact copy of an existing campaign. The new campaign is created as a draft.
CreatingADraftCampaign Creates a new campaign in your account. This method does not send the campaign, but rather creates it as a draft, ready for sending or testing.
UpdatingADraftCampaign Updates properties of an existing draft A/B campaign in your account. Non-draft campaigns cannot be updated.
DeletingACampaign Deletes a campaign from your account, draft or even sent.
TestingACampaign Sends a test email of a draft campaign to a list of email addresses you specify for previewing.
SendingACampaign Sends an existing draft campaign to all recipients specified in its mailing list. The campaign is sent immediatelly.
ABTestCampaignSummary Provides a basic summary of the results for a sent AB test campaign, separately for each version (A and B), such as the number of recipients, opens, clicks, bounces, unsubscribes, forwards etc to date.
ActivityByLocation Returns a detailed report of your campaign opens (unique and total) by country.
CampaignSummary Provides a basic summary of the results for any sent campaign such as the number of recipients, opens, clicks, bounces, unsubscribes, forwards etc. to date.
GettingAllYourSenders Gets a list of your active senders in your account. You may specify any email address of these senders when sending a campaign.
LinkActivity Returns a list with your campaign links and how many clicks have been made by your recipients, either unique or total.
SchedulingACampaign Assigns a scheduled date and time at which the campaign will be delivered.
UnschedulingACampaign Removes a previously defined scheduled date and time from a campaign, so that it will be delivered immediately if already queued or when sent.

MailingListsApi

Class Method
CreatingACustomField Creates a new custom field in the specified mailing list.
CreatingAMailingList Creates a new empty mailing list in your account.
DeletingAMailingList Deletes a mailing list from your account.
GettingAllActiveMailingLists Gets a list of your active mailing lists in your account.
GettingAllActiveMailingListsWithPaging Gets a list of your active mailing lists in your account. Because the results for this call could be quite big, paging information is required as input.
GettingMailingListDetails Gets details for a given mailing list. You may include subscriber statistics in your results or not. Any segments existing for the requested mailing list will not be included in the results.
RemovingACustomField Removes a custom field definition from the specified mailing list.
UpdatingACustomField Updates the properties of an existing custom field in the specified mailing list.
UpdatingAMailingList Updates the properties of an existing mailing list.

SegmentsApi

Class Method
GettingSegments Get a list of all segments with their criteria for the given mailing list.
GettingSegmentDetails Gets detailed information on a specific segment and its criteria. However, it does not include the subscribers returned by the segment.
GettingSegmentSubscribers Gets a list of the subscribers that the specified segment returns according to its criteria. Because the results for this call could be quite big, paging information is required as input.
CreatingANewSegment Creates a new empty segment (without criteria) for the given mailing list. You may specify the name of the segment and the way the criteria will match together.
UpdatingASegment Updates the properties of an existing segment. You may update the name and match type of the segment.
AddingCriteriaToSegments Adds a new criterion (a rule) to the specified segment.
UpdatingSegmentCriteria Updates an existing criterion in the specified segment.
DeletingASegment Deletes a segment along with its criteria from the mailing list. The subscribers of the mailing list that the segment returned are not deleted or affected in any way.

SubscribersApi

Class Method
GettingSubscribers Gets a list of all subscribers in a given mailing list. You may filter the list by setting a date to fetch those subscribed since then and/or by their status.
GetSubscriberByEmailAddress Searches for a subscriber with the specified email address in the specified mailing list.
GetSubscriberById Searches for a subscriber with the specified unique id in the specified mailing list
AddingSubscribers Adds a new subscriber to the specified mailing list. If there is already a subscriber with the specified email address in the list, an update will be performed instead.
AddingMultipleSubscribers This method allows you to add multiple subscribers in a mailing list with a single call. If some subscribers already exist with the given email addresses, they will be updated.
UpdatingASubscriber Updates a subscriber in the specified mailing list. You can even update the subscribers email, if he has not unsubscribed.
UnsubscribingSubscribersFromAccount Unsubscribes a subscriber from the account.
UnsubscribingSubscribersFromMailingList Unsubscribes a subscriber from the specified mailing list. The subscriber is not deleted, but moved to the suppression list.
UnsubscribingSubscribersFromMailingListAndASpecifiedCampaign Unsubscribes a subscriber from the specified mailing list and the specified campaign. The subscriber is not deleted, but moved to the suppression list.
RemovingASubscriber Removes a subscriber from the specified mailing list permanently (without moving to the suppression list).
RemovingMultipleSubscribers Removes a list of subscribers from the specified mailing list permanently (without putting them in the suppression list). Any invalid email addresses specified will be ignored.

Documentation for Models

moosend/phpwrapper 适用场景与选型建议

moosend/phpwrapper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 61.81k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2015 年 08 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「api」 「sdk」 「wrapper」 「moosend」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 moosend/phpwrapper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 moosend/phpwrapper 我们能提供哪些服务?
定制开发 / 二次开发

基于 moosend/phpwrapper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 20
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2015-08-04