Documentation

Client
in package

Mandrill API Client.

Table of Contents

Properties

$apikey  : mixed
$ch  : mixed
$debug  : mixed
$errorMap  : mixed
$exports  : mixed
$inbound  : mixed
$internal  : mixed
$ips  : mixed
$messages  : mixed
$metadata  : mixed
$rejects  : mixed
$root  : mixed
$senders  : mixed
$subaccounts  : mixed
$tags  : mixed
$templates  : mixed
$urls  : mixed
$users  : mixed
$webhooks  : mixed
$whitelists  : mixed

Methods

__construct()  : mixed
Create a new Mandrill API Client.
__destruct()  : mixed
call()  : mixed
castError()  : mixed
log()  : mixed
readConfigs()  : mixed

Properties

$debug

public mixed $debug = false

$errorMap

public static mixed $errorMap = ['ValidationError' => \Mandrill\Exceptions\ValidationError::class, 'Invalid_Key' => \Mandrill\Exceptions\InvalidKey::class, 'PaymentRequired' => \Mandrill\Exceptions\PaymentRequired::class, 'Unknown_Subaccount' => \Mandrill\Exceptions\UnknownSubaccount::class, 'Unknown_Template' => \Mandrill\Exceptions\UnknownTemplate::class, 'ServiceUnavailable' => \Mandrill\Exceptions\ServiceUnavailable::class, 'Unknown_Message' => \Mandrill\Exceptions\UnknownMessage::class, 'Invalid_Tag_Name' => \Mandrill\Exceptions\InvalidTagName::class, 'Invalid_Reject' => \Mandrill\Exceptions\InvalidReject::class, 'Unknown_Sender' => \Mandrill\Exceptions\UnknownSender::class, 'Unknown_Url' => \Mandrill\Exceptions\UnknownUrl::class, 'Unknown_TrackingDomain' => \Mandrill\Exceptions\UnknownTrackingDomain::class, 'Invalid_Template' => \Mandrill\Exceptions\InvalidTemplate::class, 'Unknown_Webhook' => \Mandrill\Exceptions\UnknownWebhook::class, 'Unknown_InboundDomain' => \Mandrill\Exceptions\UnknownInboundDomain::class, 'Unknown_InboundRoute' => \Mandrill\Exceptions\UnknownInboundRoute::class, 'Unknown_Export' => \Mandrill\Exceptions\UnknownExport::class, 'IP_ProvisionLimit' => \Mandrill\Exceptions\IPProvisionLimit::class, 'Unknown_Pool' => \Mandrill\Exceptions\UnknownPool::class, 'NoSendingHistory' => \Mandrill\Exceptions\NoSendingHistory::class, 'PoorReputation' => \Mandrill\Exceptions\PoorReputation::class, 'Unknown_IP' => \Mandrill\Exceptions\UnknownIP::class, 'Invalid_EmptyDefaultPool' => \Mandrill\Exceptions\InvalidEmptyDefaultPool::class, 'Invalid_DeleteDefaultPool' => \Mandrill\Exceptions\InvalidDeleteDefaultPool::class, 'Invalid_DeleteNonEmptyPool' => \Mandrill\Exceptions\InvalidDeleteNonEmptyPool::class, 'Invalid_CustomDNS' => \Mandrill\Exceptions\InvalidCustomDNS::class, 'Invalid_CustomDNSPending' => \Mandrill\Exceptions\InvalidCustomDNSPending::class, 'Metadata_FieldLimit' => \Mandrill\Exceptions\MetadataFieldLimit::class, 'Unknown_MetadataField' => \Mandrill\Exceptions\UnknownMetadataField::class]

$internal

public mixed $internal

$messages

public mixed $messages

$metadata

public mixed $metadata

$root

public mixed $root = 'https://mandrillapp.com/api/1.0'

$subaccounts

public mixed $subaccounts

$templates

public mixed $templates

$webhooks

public mixed $webhooks

$whitelists

public mixed $whitelists

Methods

__construct()

Create a new Mandrill API Client.

public __construct([string|null $apikey = null ]) : mixed

If there is no API key the client will try to load it from the MANDRILL_APIKEY environment variable or '~/.mandrill.key' & '/etc/mandrill.key' files.

Parameters
$apikey : string|null = null

the Mandrill API key (optional)

__destruct()

public __destruct() : mixed

call()

public call(mixed $url, mixed $params) : mixed
Parameters
$url : mixed
$params : mixed

castError()

public castError(mixed $result) : mixed
Parameters
$result : mixed

log()

public log(mixed $msg) : mixed
Parameters
$msg : mixed

readConfigs()

public readConfigs() : mixed

        
On this page

Search results