Wednesday, August 20, 2008

PHP Developer's Guide Updated

Posted by Jochen Hartmann, YouTube APIs and Tools Team

If you use PHP to develop applications that interact with the YouTube API, you may be interested to know that I recently updated our PHP Developer's Guide to cover helper methods that are available in the new version of the PHP Client Library (included in Zend Framework releases starting with 1.5.3).

The new helper methods eliminate the need to explicitly create a MediaGroup object. Instead, you can now set your video's metadata directly:

$myVideoEntry->setVideoTitle('My Test Movie');
$myVideoEntry->setVideoDescription('My Test Movie');
$myVideoEntry->setVideoCategory('Comedy');
$myVideoEntry->SetVideoTags('cars, funny');

Of course, posting a video entry without the helper methods will continue to work. More changes are in the pipeline, so keep your eyes open for further updates. If you notice typos or have feedback on any of our docs, feel free, as always, to post in the forum.