moo-theo/php-api-wrapper

v0.0.1.6 2017-09-20 11:28 UTC

This package is not auto-updated.

Last update: 2024-09-23 08:11:21 UTC


README

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

需求

PHP 5.4.0及更高版本

安装与使用

composer require moosend/api-wrappers-php

手动安装

下载文件并包含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

模型文档