HeySpread PHP Library

Install

This library requires PHP5.
Git: (Github)
git clone git://github.com/sadikzzz/heyspread-php.git
Tarball:

https://github.com/sadikzzz/heyspread-php/tarball/master

Usage

Upload a video to YouTube and Google Video

define("HEYSPREAD_API_KEY", "api_key");

$video = new HeySpread_Video(array(
  "title" => "HS test", 
  "category" => "Comedy",
  "tags" => "heyspread tag testing",
  "file" => "/home/user/video.avi",
  "description" => "Test the HeySpread API")
);

$video->destinations["youtube"] = array("login", "password");
$video->destinations["google"]  = array("email", "password");

$video->upload();

Save YouTube credentials

HeySpread_Credentials::save("youtube", "ytlogin", "ytpasswd");

Track videos

$track = new HeySpread_Track();
$track->videoUrl("http://youtube.com/watch?v=sdfds");
$track->videoUrl("http://dailymotion.com/video/xefgd");
$track.save();