nsulistiyawan/motionmail

motionmail api wrapper for the lazy one

dev-master 2016-08-29 13:15 UTC

This package is auto-updated.

Last update: 2024-05-16 21:44:04 UTC


README

Wrapper for MotionMail API

Installation

composer require nsulistiyawan/motionmail

Usage Example

<?php
require_once __DIR__.'/vendor/autoload.php';

$motionmail = new Nsulistiyawan\MotionMail\MotionMail('YOUR-MOTIONMAIL-API-KEY','YOUR-MOTIONMAIL-SECRET-KEY');
echo $motionmail->generateDynamicDatetime(date('Y-m-dTH:i:s'));

//example usage on html image, example template image http://s.mmgo.io/t/bPc
//<img src="http://s.mmgo.io/t/bPc?endDateTimeToken=<?php echo $motionmail->generateDynamicDatetime(date('Y-m-dTH:i:s')); ?>"> <img>

Preview

MotionMail