mikuni-labo/videocloudy

This library is Manipulate the VideoCloud API for PHP.

v1.0.3 2017-06-02 05:39 UTC

This package is not auto-updated.

Last update: 2024-09-15 01:16:57 UTC


README

Latest Stable Version Latest Unstable Version License composer.lock

This library is Manipulate the VideoCloud API for PHP.

Installation

With Composer

$ composer require mikuni-labo/videocloudy
{
    "require": {
        "mikuni-labo/videocloudy": "^1.0.0"
    }
}

Example

<?php
require 'vendor/autoload.php';

use MikuniLabo\VideoCloudy\VideoCloudy;

$vc = new VideoCloudy;

$vc->setAccountId( '0000000000000' );                 // Account ID
$vc->setClientId( 'xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbb' );// Client ID
$vc->setClientSecret( 'xxxxxxxxxxxxxxxxxxxxxxxxx' );  // Client Secret
$vc->setVideoProfile( 'your-profile' );               // Video Profile
$vc->setCallbackUrl( 'http://your-callback-url/' );   // Callback URL

$vc->authenticate();

print_r( $vc->getVideos() );