Download the PHP package quanti/mailq-connector without Composer
On this page you can find all versions of the php package quanti/mailq-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quanti/mailq-connector
More information about quanti/mailq-connector
Files in quanti/mailq-connector
Package mailq-connector
Short Description Library used for communication with MailQ REST API
License MIT
Homepage http://mailq.cz
Informations about the package mailq-connector
MailQ PHP library
Instalation
Composer
Using in Nette
Add this section to your config. You should use different URL and API key for development and production environment.
Usage
There is MailQ object which is facade to whole MailQ REST API. Most common use case is only one company in MailQ per customer. You need to instantiate MailQ object with company ID. Because there are also customers with multiple companies there is MailQFactory which creates MailQ for specific company.
Running sandbox with Docker
Sandbox is minimum application for playing around with PHP MailQ library.
Windows
- Run
docker run --rm -it -v %cd%:/app composer install
to install PHP dependencies - Run
docker run --rm -it -v %cd%:/app php:cli php /app/sandbox/sandbox.php <API key> <company ID>
Unix
- Run
docker run --rm -it -v $(pwd):/app composer install
to install PHP dependencies - Run
docker run --rm -it -v $(pwd):/app php:cli php /app/sandbox/sandbox.php <API key> <company ID>
Where API key is your private company key used for authentication and company ID is integer number used for identication company.
Campaign resource
Get all campaigns
Get single campaign
Company resource
Get company
Regenerate API key
Use this with caution! After regenerating API key application will throw errors because you have already create connection
Log message resource
Get all log messages
Get single log message
Newsletter resource
Create newsletter
Update newsletter
Update newsletter in ready state
Get all newsletters
Get newsletter
Send test e-mail
Start preparation of newsletter
Stop preparation of newsletter
Notification resource
Create notification
Update notification
Get all notifications
Delete notification
Send notification e-mail
In data section are all values which will be used in notification. Keys of associative array are variable names and values are values.
Get notification e-mail
Get all notification e-mails
Recipients list resource
Create recipients list
Delete recipients list
Get recipients list
Get recipients lists
You can specify e-mail and API returns only recipients list which contains this e-mail
Get all recipients
Add multiple recipients at once
Update or create recipient
Get all recipients list unsubscriber
Add recipients list unsubscriber
Add recipients list unsubscribers
Delete recipients list unsubscriber
SMS Notifications
Create single SMS notification
Update single SMS notification
Delete SMS notification
Get all SMS notifications
Get single SMS notification
Send SMS
Send SMS batch
Sender emails
Get all sender emails
Get single sender email
Users
Get all users
Get single user
All versions of mailq-connector with dependencies
nette/robot-loader Version >=2.4
nette/utils Version ^2.5
nette/reflection Version ^2.4