Skip to content

Qencode API Client for PHP - Containing examples, pre-made scripts and other tools to take full advantage of the Qencode API

License

Notifications You must be signed in to change notification settings

Qencode-Corp/qencode-api-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qencode-api-php-client

PHP library for interacting with the Qencode API.

Installation

Get composer, run this in your project directory:

    curl -sS https://getcomposer.org/installer | php

Create composer.json under the root of your project with the following instructions:

    {
      "require": {
        "qencode/api-client": "1.13.*"
      }
    }

Run composer:

    php composer.phar install

Include vendor/autoload.php:

   require 'vendor/autoload.php';

If you don't use composer, use autoload.php located in the root of the repo:

   require_once __DIR__ . '/../autoload.php';

Usage

Instantiate Qencode API Client:

   $q = new QencodeApiClient($apiKey);

Create a new job:

   $task = $q->createTask(); 
   $task->start($transcodingProfileId, $video_url);

Query an existing job:

    $response = $task->getStatus();

Copyright

Copyright 2018 Qencode, Inc.