1
동영상에 대한 모든 세부 정보 (제목, 설명, 날짜, 태그 등)가있는 특정 사용자의 동영상 목록을 가져 오려고합니다. 거의 필요한 모든 것을 제공하지만 업로드 날짜를 얻는 방법을 알 수는 없습니다. getVideoRecorded() 및 getRecorded()를 사용하여 시도했지만 모두 반환하지 않습니다.Zend Gdata로 동영상 업로드 날짜 받기 Youtube API
Google에서 이와 관련있는 항목을 찾을 수없는 것 같습니다. getVideoRecorded 또는 getRecorded를 사용해야한다는 클래스 참조가 있지만 그 이상은 없습니다.
내가 잘못 했나요? 업로드 날짜는 어떻게받을 수 있습니까?
현재 코드 :
$authenticationURL= 'https://www.google.com/accounts/ClientLogin';
$httpClient =
Zend_Gdata_ClientLogin::getHttpClient(
$username = $yt_username,
$password = $yt_password,
$service = 'youtube',
$client = null,
$source = '', // a short string identifying your application
$loginToken = null,
$loginCaptcha = null,
$authenticationURL);
$yt = new Zend_Gdata_YouTube($httpClient);
$feed = $yt->getUserUploads($yt_username);
foreach($feed as $item)
{
echo "<div>";
echo "<h4>title: " . $item->getVideoTitle() . "</h4>";
echo "<p>id: " . $item->getVideoId() . " | ";
echo "upload date: " . $item->getVideoRecorded() . "</p>";
echo "<p>description: " . $item->getVideoDescription() . "</p>";
echo "<p>tags: " . implode(", ", $item->getVideoTags()) . "</p>";
echo "</div>";
echo "<hr>";
}