blaugueux/litmus-sdk-php

This package is abandoned and no longer maintained. No replacement package was suggested.

The API client for Litmus Preview API

1.0.0 2014-09-13 13:30 UTC

This package is not auto-updated.

Last update: 2021-02-12 12:03:17 UTC


README

Usage

Create an API client

    use Litmus\Sdk\Api;
    use Litmus\Sdk\Config;
    use Litmus\Sdk\Model\EmailTest;

    $client = new Api((new Config())->setAuth('_username_', '_password_'));

Get API entry points

    $emailTestsApi = $client->getEntryPoint('email_tests');
    ...
    $pageTestsApi = $client->getEntryPoint('page_tests');
    ...
    $spamSeedAddressesApi = $client->getEntryPoint('spam_seed_addresses');

Find available applications

    $applications = $emailTestsApi->findTestingApplications();
    foreach ($applications as $application) {
        echo $application->getApplicationName();
    }

License

Litmus Previews SDK for PHP is released under the MIT License. See the bundled LICENSE file for details.