更新时间:2023-02-14 12:47:27
没关系,我自己发现了它 似乎您需要实例化父参考服务并将其传递给DriveFIle的parent方法.
never mind i found it myself it seems that you need to instantiate a parent reference service and pass it to the parents method of your DriveFIle
$parent = new Google_Service_Drive_ParentReference();
$parent->setId('folderid');
$file->setParents(array($parent));