0

PHPライブラリ、つまりzendに「youtube api」を使用しています。

私の目標は、説明を設定することです。つまり、右側のテキストボックスでユーザーのチャネルを開いたときに表示されるものです。

私がしたこと。

function anmelden_yt($name,$passwort)
{
$yt_source = 'sou'; //name of application (can be anything)  
$yt_api_key = 'ak';
$yt = null;
$authenticationURL= 'https://www.google.com/youtube/accounts/ClientLogin';  
$httpClient = Zend_Gdata_ClientLogin::getHttpClient(  
$username = $name,  
$password = $passwort,  
$service = 'youtube',  
$client = null,  
$source = $yt_source, // a short string identifying your application  
$loginToken = null,  
$loginCaptcha = null,  
$authenticationURL); 
return new Zend_Gdata_YouTube($httpClient, $yt_source, NULL, $yt_api_key); 
}

$yt = anmelden_yt('name','pw');
$yt->setMajorProtocolVersion(2);
$userProfileEntry = $yt->getUserProfile('name');
$userProfileEntry->setAboutMe('test');
$userProfileEntry->setContent('test');
$userProfileEntry->setSummary('test');

何も変わっていません。

4

1 に答える 1

0

これらのフィールドは、API 経由で公開されなくなりました。また、参照しているチャネルの説明表示にも対応していません。現在、API を介してチャネルの説明を設定する方法はありません。

于 2012-11-30T16:29:39.297 に答える