PHP code example of jorisnoo / craft-bunny-stream
1. Go to this page and download the library: Download jorisnoo/craft-bunny-stream 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/ */
jorisnoo / craft-bunny-stream example snippets
// config/bunny-stream.php
use craft\helpers\App;
return [
'bunnyStreamAccessKey' => App::env('BUNNY_STREAM_ACCESS_KEY'),
'bunnyStreamLibraryId' => App::env('BUNNY_STREAM_LIBRARY_ID'),
'bunnyStreamCdnHostname' => App::env('BUNNY_STREAM_CDN_HOSTNAME'),
'bunnyStreamCollectionId' => App::env('BUNNY_STREAM_COLLECTION_ID'),
'bunnyStreamWebhookToken' => App::env('BUNNY_STREAM_WEBHOOK_TOKEN'),
];
text
https://your-site.tld/bunnystream/webhook?token=YOUR_URL_ENCODED_TOKEN