PHP code example of clicksco / pushover
1. Go to this page and download the library: Download clicksco/pushover 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/ */
clicksco / pushover example snippets
php
use Clicksco\Pushover\PushMessage;
use Clicksco\Pushover\PushManager;
$push_message = new PushMessage;
$push_message->setTitle('This is the title');
$push_message->setDate(new \DateTime());
$push_message->setMessage('This is the message');
$push_manager = new PushManager('YOUR-APP-TOKEN');
$push_manager->setMessage($push_message);
$push_manager->addUser('YOUR-USER-TOKEN');
echo $push_manager->send();