gitomato / php-client

PHP client for api.video web-service (video encoding, hosting and secured delivery)

Home Page:https://api.video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api.video PHP client

The api.video web-service helps you put video on the web without the hassle. This documentation helps you use the corresponding PHP client.

Quick start

Install:

$ composer require api-video/php-client

Usage:

<?php

require_once dirname(__FILE__) . '/vendor/autoload.php';

$client = new ApiVideo\Client\Client('john.doe@api.video', 'jOhnDo3_', 'johndoe.api.video');

$video = $client->videos->upload('/path/to/video.mp4', ['title' => 'Course #4 - Part B']);
$client->videos->update($video->videoId, array('tags' => array('course', 'economics', 'finance')));
foreach ($client->videos->search(array('tags' => array('finance'))) as $video) {
    echo $video->title."\n";
}
$client->videos->delete($video->videoId);

Full API

<?php

$client->videos->get($videoId);
$client->videos->search(array $parameters = array(), $callback = null);
$client->videos->create($title, $properties = array());
$client->videos->upload($source, array $properties = array(), $videoId = null);
$client->videos->uploadThumbnail($source, $videoId);
$client->videos->update($videoId, array $properties);
$client->videos->updateThumbnailWithTimeCode($videoId, $timecode);
$client->videos->delete($videoId);

$client->players->get($playerId);
$client->players->search(array $parameters = array(), $callback = null);
$client->players->create(array $properties = array());
$client->players->update($playerId, array $properties);

More on api.video

A full technical documentation is available on https://docs.api.video/

About

PHP client for api.video web-service (video encoding, hosting and secured delivery)

https://api.video


Languages

Language:PHP 100.0%