Skip to content

motive-media/phpviddler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A PHP class for Viddler's API version 2.

For more information, visit our developer site

Installation Instructions

  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');

// Authenticate and get your videos
$auth = $v->viddler_users_auth(array('user'=>'USERNAME','password'=>'PASSWORD'));
if (isset($auth['auth']['sessionid'])) {
  $videos = $v->viddler_videos_getByUser(array('sessionid'=>$auth['auth']['sessionid']));
  print '<pre>';
  print_r($videos);
  print '</pre>';
}

Examples

Included in this repo is an /examples/ directory with a few code examples from uploading, uploading with curl, searching, get your profile and getting your videos.

Embedding

Viddler now supports a few different embed codes types. To retrieve a proper embed code, you may want to use: http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcodetypes and then grab an embed code with http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcode

Need help?

Submit a ticket at here

Licensing

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

Changelog (started with tag 3.9) - Read overall API changelog here

4.1 - November 27, 2012

  • Add new methods: viddler.logins.[add|delete|update] to POST array

4.0.1 - November 19, 2012

  • Fixed type of method viddler.resellers.removeSubaccount, was removeSubaccounts

4.0 - July 18, 2012

  • Added direct upload example using cURL
  • Removed method viddler.videos.upload
  • Updated README file

3.9 - April 26, 2012

  • Jumped tag numbers like whoa to keep consistent with internal versioning
  • Added new method 'viddler.videos.addClosedCaptioning' (POST)
  • Added new method 'viddler.videos.delClosedCaptioning' (POST)
  • Added new method 'viddler.videos.setClosedCaptioning' (POST)
  • Updates to viddler.encoding.(set|get)Settings
  • Added new method viddler.videos.comments.get (GET)
  • Updates to viddler.videos.(get|set)Details
  • Added new examples in the examples directory
  • Added support for HTTPS for all calls

Packages

No packages published

Languages

  • PHP 100.0%