PHP code example of anticipated-io / anticipated-io-php
1. Go to this page and download the library: Download anticipated-io/anticipated-io-php 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/ */
anticipated-io / anticipated-io-php example snippets
$key = '890asfe08qt43hqtwr980agdsf9y8dfsay234hnb4308'; // API key from https://app.anticipated.io/apiKeys
$s = new AnticipatedEvents(['key'=>$key]);
$dateTime = new \DateTime('now', new \DateTimeZone('UTC'));
$dateTime->modify('+5 min');
$results = $s->create(
$dateTime,
'https://myservice.com/events',
'POST',
''
);