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
$apikey
public
mixed
$apikey
$ch
public
mixed
$ch
$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]
$exports
public
mixed
$exports
$inbound
public
mixed
$inbound
$internal
public
mixed
$internal
$ips
public
mixed
$ips
$messages
public
mixed
$messages
$metadata
public
mixed
$metadata
$rejects
public
mixed
$rejects
$root
public
mixed
$root
= 'https://mandrillapp.com/api/1.0'
$senders
public
mixed
$senders
$subaccounts
public
mixed
$subaccounts
$tags
public
mixed
$tags
$templates
public
mixed
$templates
$urls
public
mixed
$urls
$users
public
mixed
$users
$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