This bundle provides REST API endpoints to manage transport settings for emails and users.
Standard CRUD endpoints are available for managing transports:
| <?php | |
| class ExampleSmsCallback implements CallbackInterface | |
| { | |
| /** | |
| * @return string | |
| */ | |
| public function getTransportName() | |
| { |
| <?php | |
| // Delivered | |
| $deliveryEvent = new DeliveryEvent(); | |
| $deliveryEvent->setContact($contact); | |
| $deliveryEvent->setTrackingHash($trackingHash); | |
| $deliveryEvent->setIsDelivered(true); | |
| $this->callbackHelper->dispatchDeliveryEvent( | |
| $deliveryEvent | |
| ); |
| <?php | |
| /* | |
| * @copyright 2020 Mautic Contributors. All rights reserved | |
| * @author Mautic | |
| * | |
| * @link http://mautic.org | |
| * | |
| * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
| <?php | |
| /* | |
| * @copyright 2019 Mautic Contributors. All rights reserved | |
| * @author Mautic | |
| * | |
| * @link http://mautic.org | |
| * | |
| * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
| MTC=2.15.0; | |
| URL=https://github.com/mautic/mautic/releases/download/${MTC}/${MTC}.zip; | |
| wget "${URL}"; | |
| unzip -o "${MTC}.zip"; | |
| rm "${MTC}.zip"; |
| MTC=2.8.0;URL=https://s3.amazonaws.com/mautic/releases/${MTC}.zip;wget “${URL}”;unzip -o “${MTC}.zip”;rm “${MTC}.zip”; |