Php setNoEmbed返回错误,如;调用成员函数getDOM();在Youtube API v2中
我正在zend()中使用Gdata youtube库 我可以更新setVideoTitle、setVideoDescription、SetVideoTags和setVideoCategory。但当我尝试更新“setNoEmbed”时,它抛出了类似“调用成员函数getDOM()的错误” 这是我的代码:Php setNoEmbed返回错误,如;调用成员函数getDOM();在Youtube API v2中,php,zend-framework,youtube-api,youtube-data-api,Php,Zend Framework,Youtube Api,Youtube Data Api,我正在zend()中使用Gdata youtube库 我可以更新setVideoTitle、setVideoDescription、SetVideoTags和setVideoCategory。但当我尝试更新“setNoEmbed”时,它抛出了类似“调用成员函数getDOM()的错误” 这是我的代码: $myVideoEntry = new Zend_Gdata_YouTube_VideoEntry(); $myVideoEntry->setVideoTitle($mediaTitle)
$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
$myVideoEntry->setVideoTitle($mediaTitle);
$myVideoEntry->setVideoDescription($mediaDescription);
$myVideoEntry->setVideoCategory($category);
$myVideoEntry->SetVideoTags($tags);
$myVideoEntry->setNoEmbed(true);