Skip to content

Instantly share code, notes, and snippets.

View kuzmany's full-sized avatar

Zdeno Kuzmany kuzmany

View GitHub Profile

Multiple Transport Bundle API Documentation

This bundle provides REST API endpoints to manage transport settings for emails and users.

Multiple Transport Endpoints

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
*/
@kuzmany
kuzmany / gist.sh
Last active January 30, 2019 15:37
Copy Mautic files to server
MTC=2.15.0;
URL=https://github.com/mautic/mautic/releases/download/${MTC}/${MTC}.zip;
wget "${URL}";
unzip -o "${MTC}.zip";
rm "${MTC}.zip";
@kuzmany
kuzmany / mautic-to-server
Last active May 2, 2017 09:09
Copy Mautic files to server using SSH in 5 seconds
MTC=2.8.0;URL=https://s3.amazonaws.com/mautic/releases/${MTC}.zip;wget “${URL}”;unzip -o “${MTC}.zip”;rm “${MTC}.zip”;