Zend And YouTube Not Deleting Videos -
until yesterday delete youtube videos using zend framework.
i using code:
$httpclient = zend_gdata_clientlogin::gethttpclient( $username, $password, 'youtube', null, 'mysite', null, null, 'https://www.google.com/accounts/clientlogin'); $yt = new zend_gdata_youtube($httpclient, '', '', $mydevkey); $vid = $yt->getvideoentry($myvidid, null, true); $yt->delete($vid);
now getting error:
expected response code 200, got 410 no longer available
it $yt->delete($vid);
causes problem. perhaps youtube has changed, used working. tried 2 other dev keys , youtube accounts , still nothing.
the video in youtube , id correct.
zend_gdata uses clientlogin deprecated of april 20, 2012 , turned off on may 26 2015. code not longer work need switch using oauth2.
you can use current google php client library authenticate use access token created there access it.
Comments
Post a Comment