PHP code example of torchlighttechnology / delayed-event-api
1. Go to this page and download the library: Download torchlighttechnology/delayed-event-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
torchlighttechnology / delayed-event-api example snippets
use torchlighttechnology\DelayedEventAPI;
$api = new DelayedEventAPI('DELAYEDEVENTS_URL');
$response = $api->create_event(
$callback_uri, // URL string
$parameters, // json string e.x. {"email":"[email protected]"}
$fire_date // date string in YYYY-MM-DD HH:MM:SS format
);
$response = $api->remove_event(
$parameters // json string e.x. {"email":"[email protected]"}
);