Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php setNoEmbed返回错误,如;调用成员函数getDOM();在Youtube API v2中_Php_Zend Framework_Youtube Api_Youtube Data Api - Fatal编程技术网

Php setNoEmbed返回错误,如;调用成员函数getDOM();在Youtube API v2中

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)

我正在zend()中使用Gdata youtube库

我可以更新setVideoTitle、setVideoDescription、SetVideoTags和setVideoCategory。但当我尝试更新“setNoEmbed”时,它抛出了类似“调用成员函数getDOM()的错误”

这是我的代码:

 $myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
 $myVideoEntry->setVideoTitle($mediaTitle);
 $myVideoEntry->setVideoDescription($mediaDescription);
 $myVideoEntry->setVideoCategory($category);
 $myVideoEntry->SetVideoTags($tags); 
 $myVideoEntry->setNoEmbed(true);