2017 © Pedro Peláez
 

library v2-api

Ooyala's V2 API PHP SDK

image

ooyala/v2-api

Ooyala's V2 API PHP SDK

  • Thursday, May 18, 2017
  • by Madrigal
  • Repository
  • 82 Watchers
  • 5 Stars
  • 21,369 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 21 Forks
  • 6 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

Ooyala's V2 API PHP SDK

The PHP SDK is a client class for our V2 API., (*1)

2017-05-18 - TAG created "v2.0", (*2)

Requirements

This SDK uses cURL. So, in order to get it running, you need to have the libcurl package installed., (*3)

If PHP is manually compiled, don't forget to add the --with-curl[=DIR] configuration option. Or in Linux environments to make sure a php5-curl or similar package is installed. In a Windows environment, libeay32.dll and ssleay32.dll must be present in the PATH environment variable., (*4)

Usage

The approach is very simple. It allows you to do GET, POST, PUT, PATCH and DELETE requests to our API by simply specifying the path to the API you want to hit and depending of the call, an Array with parameters and an Array containing the body of the request., (*5)

By specifying an associative array object to represent the JSON data you want to send, you can make calls very fast and easily. First you need to create an OoyalaApi object by passing your V2 API keys like this:, (*6)

<?php
    $api = new OoyalaApi("<api key>", "<secret key>");

Now lets get all the assets under the "Funny dogs" label:, (*7)

<?php
    $parameters = array("where" => "labels INCLUDES 'Funny dogs'");

    $results = $api->get("assets", $parameters);
    $assets = $results->items;

Now that we have our results on the assets ArrayList, lets print them out to the console., (*8)

<?php
    echo "Printing assets in the 'Funny dogs' label...";
    foreach($assets as $asset) {
        echo $asset->embed_code . " - " . $asset->name . "\n";
    }

It's that easy to work with this SDK!, (*9)

License

See LICENSE file., (*10)

The Versions

18/05 2017

dev-master

9999999-dev http://help.ooyala.com/video-platform/concepts/api_sdks.html

Ooyala's V2 API PHP SDK

  Sources   Download

proprietary

27/06 2016

v2.0

2.0.0.0

Ooyala's V2 API PHP SDK

  Sources   Download

proprietary

24/02 2015

dev-change-default-expiration-window

dev-change-default-expiration-window

Ooyala's V2 API PHP SDK

  Sources   Download

proprietary