/phpviddler

The PHP wrapper for Viddler's API

Primary LanguagePHP

phpViddler API v2 Library

A PHP class to wrap Viddler's API version 2. To access version 1 of PHPViddler please see the v1.0 tag on GitHub.

For more information, visit our developer site

Installation Instructions

PHPViddler is fully OOP. Like snOOP dogg. Ok, not like him.

  1. Download the most recent version.
  2. Upload phpviddler.php
  3. Include phpviddler.php
  4. Initiate Viddler class like this $v = new Viddler_V2('YOUR API KEY HERE');

Usage

$v = new Viddler_V2('Your API Key');

// Example find videos by user
$videos = $v->viddler_videos_getByUser('viddlerdevtest');
foreach($videos['list_result']['video_list'] as $video) {
  print_r($video);
}

Included in PHPviddler is an /examples/ directory with a few code examples. These have been updated to use version 2 of our API.

Licensing

phpViddler is dual-licensed under the MIT License. The details of this can be found MITlicense.txt