<?php require 'yo.php'; $user = $_POST['user']; // Get an API Key at dev.justyo.co $apiKey = '97bc8528-4e7b-8935-5dff-1f5d5c615749'; // Instanciate $yo = new Yo($apiKey); // Send a Yo to all your subscribers $yo->all(); // Send a Yo to one user $yo->user($user); // Get number of subscribers $count = $yo->subscribers(); // returns an int or false
<?php /** * Send us a Yo to subscribe to SPORTPALEIS and to receive a Yo every time a new event is added to the calendar! */ // USAGE: php YoPaleis.php include_once 'lib/Yo.php'; include_once 'YoToken.php'; try { $yo = new Yo(YO_TOKEN); $yo->all('http://static.sportpaleisgroep.be/sportpaleis/img/events/1235/7a1dba20f624627d5731db93f4893bee577bd094/thumb/thumb_300.jpg'); } catch (Exception $ex) { print $ex->getMessage(); } // Doc area // Yo docs: http://docs.justyo.co/v1.0/docs/getting-started // Add text onto image: // http://www.phpforkids.com/php/php-gd-library-adding-text-writing.php // http://www.codeproject.com/Articles/545046/write-text-over-image-or-picture-with-php