moosend/phpwrapper

200069478 2020-02-25 17:48 UTC

README

以下项目是Moosend V3 API的PHP实现。您可以在http://docs.moosendapp.apiary.io/#找到API文档。

需求

PHP 5.4.0及更高版本

安装与使用

composer require moosend/phpwrapper

手动安装

下载文件并包含autoload.php

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

入门

请遵循安装步骤,然后运行以下操作

<?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;
}

?>

API端点文档

CampaignsApi

MailingListsApi

SegmentsApi

SubscribersApi

模型文档