I got the same error,but i solved it,i made it work like this:
$authenticationURL= 'https://www.google.com/accounts/ClientLogin';
$httpClient = Zend_Gdata_ClientLogin::getHttpClient(
$username = 'your youtube username',
$password = '***********',
$service = 'youtube',
$client = null,
$source = 'MySource', // a short string identifying your application
$loginToken = null,
$loginCaptcha = null,
$authenticationURL);
$key = 'your develop key';
$httpClient->setHeaders('X-GData-Key', "key=${key}");
$youTubeService = new Zend_Gdata_YouTube($httpClient);
$youTubeService->setMajorProtocolVersion(2); //it's very important
$videoEntryToUpdate = $youTubeService->getVideoEntry($youtube_id, null, true);
now you can do:
$putUrl = $videoEntryToUpdate->getEditLink()->getHref();
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment