Skip to content

steadfast-collective/laravel-api-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo api.video

Total Downloads Latest Stable Version License

Introduction

This package is a Laravel wrapper around the api.video API that lets you upload & manage your videos directly from your Laravel app. This package is unofficial and is maintained by Steadfast Collective.

Documentation

Installation

  1. Install with Composer
composer require steadfastcollective/laravel-api-video
  1. Publish the configuration file
php artisan vendor:publish --tag="api-video-config"
  1. Add your API key and the API URI to your .env
API_VIDEO_URL=https://sandbox.api.video
API_VIDEO_KEY=....

Usage

The primary way to use this package is via the Facade. If you'd prefer to not use the class, you may use the ApiVideo class directly, like the below example.

use SteadfastCollective\ApiVideo\ApiVideo;

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

Get delegate token

TODO: docs link

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::getDelegateToken();

Get video

Docs: Show a video

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::getVideo($videoId);

Parameters

  • videoId: The unique identifier for the video you want details about.

Update video

Docs: Update a video

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

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

Parameters

  • videoId: The video ID for the video you want to update.
  • params: Array of parameters you wish to send to api.video. List of available parameters.

Delete video

Docs: Delete a video

use SteadfastCollective\ApiVideo\Facades\ApiVideo;

return ApiVideo::deleteVideo($videoId);

Parameters

  • videoId: The video ID for the video you want to delete.

Other endpoints?

Currently this SDK only provides a few of the available API methods provided by api.video's API. However, if you're in need of any others, please create an issue and we'll see to adding it!

License

Laravel api.video is open-sourced software licensed under the MIT license.

About

Laravel wrapper around the api.video API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages