Download the PHP package mattstein/unsend-php without Composer
On this page you can find all versions of the php package mattstein/unsend-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package unsend-php
Unsend PHP Library
An unofficial SDK for Unsend.

On non-2xx responses, methods throw
\Unsend\Exceptions\ApiExceptionwith parsed message and status code.
Installation & Usage
Install via Composer:
Create a client instance with your API key and specify your Unsend domain if you self host:
You can then use any of the included methods to interact with the API, where getData() provides decoded response data and getResponseObject() provides the entire Guzzle response:
Methods
Available methods follow the API Reference.
getEmail(string $emailId)
Returns a single email record by ID.
listEmails(array $parameters = [])
Returns an array of email records, optionally filtered by parameters.
iterateEmails(array $parameters = [])
Lazy iterator for listEmails() that continues through pagination instead of returning pagination metadata.
sendEmail(array $parameters)
Sends an email.
batchEmail(array $parameters)
Sends up to 100 emails in one request.
updateSchedule(string $emailId, string $scheduledAt)
Updates the targeted send time for a scheduled email.
cancelSchedule(string $emailId)
Cancels a scheduled email.
getContact(string $contactBookId, string $contactId)
Returns a single contact record.
getContacts(string $contactBookId, array $parameters = [])
Returns an array of contact records, optionally filtered by parameters.
createContact(string $contactBookId, array $parameters)
Creates a contact record.
updateContact(string $contactBookId, string $contactId, array $parameters = [])
Updates a contact record.
upsertContact(string $contactBookId, string $contactId, array $parameters = [])
Upserts a contact record.
deleteContact(string $contactBookId, string $contactId)
Deletes a contact record.
getDomain(int $id)
Returns a single domain record.
getDomains()
Returns an array of domain records.
createDomain(array $parameters)
Creates a domain record.
verifyDomain(int $id)
Attempts to verify a domain.