*/ /** * Example File * @author Mario Mueller <*****@*****.**> * @version 1.0.0 */ require_once dirname(__FILE__) . '/bootstrap.php'; // Use \Prowl\SecureConnector to make cUrl use SSL $oProwl = new \Prowl\Connector(); $oMsg = new \Prowl\Message(); // If you have one: // $oProwl->setProviderKey('MY_PROVIDER_KEY'); try { // You can choose to pass a callback $oProwl->setFilterCallback(function ($sText) { return $sText; }); // or set a filter instance: // $oFilter = new \Prowl\Security\PassthroughFilterImpl(); // $oProwl->setFilter($oFilter); /* * Both, the closure and the instance, can be passed to the connector * or to each message. Setting it at the connector passes the closure or the instance down * to each message on push() execution - but only if the message has neither of them set. */ $oProwl->setIsPostRequest(true); $oMsg->setPriority(0); // You can ADD up to 5 api keys // This is a Test Key, please use your own. $oMsg->addApiKey('e0bf09a4cc20ae0bcd63b30b19031ef59a458634'); $oMsg->setEvent('My Event!');