Skip to content
This repository was archived by the owner on Sep 28, 2026. It is now read-only.

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

Deprecated. This is the legacy PHP client for the Elastic Email Web API v2. It is archived and no longer maintained. Use the official elasticemail-php SDK for the REST API v4 instead.

This library allows you to quickly and easily use the Elastic Email Web API v2 via PHP.

Prerequisites

Instalation

composer require elastic-email/web-api-client

API

API documentation you can find on Elastic Email website.

Examples

Load account
    $loader = require_once(__DIR__.'/../vendor/autoload.php');

    $configuration = new \ElasticEmailClient\ApiConfiguration([
        'apiUrl' => 'https://api.elasticemail.com/v2/',
        'apiKey' => 'yourApiKey'
    ]);

    $client = new \ElasticEmailClient\ElasticClient($configuration);

    $clientData = $client->Account->Load();
Send email
    $loader = require_once(__DIR__.'/../vendor/autoload.php');

    $configuration = new \ElasticEmailClient\ApiConfiguration([
        'apiUrl' => 'https://api.elasticemail.com/v2/',
        'apiKey' => 'yourApiKey'
    ]);

    $client = new \ElasticEmailClient\ElasticClient($configuration);

    $client->Email->Send(
        "title",
        "from@email",
        "from name",
        null,
        null,
        null,
        null,
        null,
        null,
        array("to@email"),
        array(),
        array(),
        array(),
        array(),
        array(),
        null,
        null,
        null,
        "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
        null
    );

About

ElasticEmail.WebApiClient is guided and supported by the ElasticEmail Dev Team.

ElasticEmail.WebApiClient is maintained and funded by Elastic Email Inc. The names and logos for ElasticEmail.WebApiClient are trademarks of Elastic Email Inc.

logo

About

Deprecated. Legacy Elastic Email Web API v2 client for PHP, no longer maintained. Use elasticemail-php (REST API v4) instead.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

22 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages