PHP code example of link0 / phpebble
1. Go to this page and download the library: Download link0/phpebble 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/ */
link0 / phpebble example snippets
use GuzzleHttp\Client;
use Link0\Phpebble\Api\GuzzleTimeline;
use Link0\Phpebble\Api\InvalidPinObject;
use Link0\Phpebble\Api\InvalidTimelineToken;
use Link0\Phpebble\Api\RateLimitExceeded;
use Link0\Phpebble\Api\ServiceUnavailable;
use Link0\Phpebble\Api\TimelineToken;
use Link0\Phpebble\Pin;
dPinObject $ipo) {
printf("%s\n", $ipo->getMessage());
print_r($ipo->pin());
}
catch(InvalidTimelineToken $itt) {
printf("%s\n", $itt->getMessage());
print_r($itt->timelineToken());
}
catch(RateLimitExceeded $rle) {
printf("%s\n", $rle->getMessage());
}
catch(ServiceUnavailable $su) {
printf("%s\n", $su->getMessage());
}