Followup question to an answer posted to a question I asked about the Youtube Analytics API
上記の質問への回答に従って、Google PHP API クライアント v0.6.1 を使用して Youtube Data API にクエリを実行しようとしています (最新は 2013 年 4 月 4 日現在利用可能)。
私のコードは次のようになります。
try {
$channelsResponse = $youtube->channels->listChannels('snippet,contentDetails',
array("managedByMe"=>"true", "maxResults"=>50, "onBehalfOfContentOwner"=>$youtube_partner_code));
} catch (Exception $e){
return print "\n\nChannel list failed: ".$e->getMessage()."\n\n";
}
しかし、次の例外メッセージがスローされます。
Channel list failed: (list) unknown parameter: 'managedByMe'
上記のコードでパラメーターをフォーマットした方法に何か問題がありますか?それとも、このバージョンの PHP クライアント ライブラリが実験的な Youtbe Data V3 API のパラメーターをまだサポートしていないということですか?
Youtube Channel List doc で API Explorerを使用して試してみると、クエリが機能します。