PHP code example of fernleafsystems / apiwrappers-pushover
1. Go to this page and download the library: Download fernleafsystems/apiwrappers-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/ */
fernleafsystems / apiwrappers-pushover example snippets
use FernleafSystems\ApiWrappers\Pushover;
$oConnection = ( new Pushover\Connection() )
->setApiKey( 'your api key' );
$bSuccess = ( new Pushover\User\Verify() )
->setConnection( $oConn )
->setUserGroupKey( 'user or group key' )
->verify();
use FernleafSystems\ApiWrappers\Pushover;
$bSuccess = ( new Pushover\Message\Push() )
->setConnection( $oConn )
->setUserGroupKey( 'user or group key' )
->setTitle( 'My lovely title' )
->setMessage( 'An important message' )
->setIsHtml( false )
->push();
$bSuccess = ( new Pushover\Message\Push() )
->setDevice( 'Device Key' )
...
->push();