2017 © Pedro Peláez
 

library video-publisher-api-client

VideoPublisher API client for PHP

image

issetbv/video-publisher-api-client

VideoPublisher API client for PHP

  • Monday, January 18, 2016
  • by IssetBV
  • Repository
  • 4 Watchers
  • 0 Stars
  • 351 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads, (*1)

DESCRIPTION

This is the API client for http://my.videopublisher.io/ API. Use this to simplify the use of the API in PHP., (*2)

Example

The API requires a consumer and private key which can be requested at info@my.videopublisher.io., (*3)

<?php

include 'src/VideoPublisher/AutoLoader.php';

use VideoPublisher\VideoPublisherClient;
use VideoPublisher\Authentication\KeyPairAuthentication;

//Create an authentication, only consumer/private keypair authentication is supported at this time
$authentication = new KeyPairAuthentication('your_consumer_key', 'your_private_key');
//Create the client. On the next request a token will be requested. 
//This token will be cache in 'your_local_token_cache_folder'.
//Make sure this cache folder is writeable by the application.
$client = new VideoPublisherClient($authentication, 'your_local_token_cache_folder');

//Request a list of all your published streams. 
//This will return an array of VideoPublisher\Domain\SimpleStream objects
$list = $client->listStreams();

//Request a specific stream by Uuid. Uuids can be fetched from SimpleStream objects 
//or from http://my.videopublisher.io/ webinterface.
//Example: http://my.videopublisher.io/publish/1A1A1A1A-1A1A-1A1A-1A1A-1A1A1A1A
//This will return an VideoPublisher\Domain\Stream object 
$client->getStream('1A1A1A1A-1A1A-1A1A-1A1A-1A1A1A1A');

The Versions

18/01 2016

dev-master

9999999-dev http://www.isset.nl

VideoPublisher API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Bart Malestein

18/01 2016

1.0.3

1.0.3.0 http://www.isset.nl

VideoPublisher API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Bart Malestein

18/01 2016

1.0.2

1.0.2.0 http://www.isset.nl

VideoPublisher API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Bart Malestein

15/01 2016

1.0.1

1.0.1.0 http://www.isset.nl

VideoPublisher API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Bart Malestein

14/01 2016

1.0.0

1.0.0.0

VideoPublisher API client for PHP

  Sources   Download

The Requires

  • php >=5.3.2

 

by Bart Malestein