PHP code example of steadfastcollective / laravel-api-video

1. Go to this page and download the library: Download steadfastcollective/laravel-api-video 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/ */

    

steadfastcollective / laravel-api-video example snippets


use SteadfastCollective\ApiVideo\ApiVideo;

return (new ApiVideo)->getVideo(...);

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::getDelegateToken();

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::getVideo($videoId);

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::updateVideo($videoId, [$params]);

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::deleteVideo($videoId);

php artisan vendor:publish --tag="api-video-config"