moosend/phpwrapper

200069478 2020-02-25 17:48 UTC

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

MailingListsApi

SegmentsApi

SubscribersApi

Documentation for Models