Google 驱动器 API - PHP-客户端缺少 trash()-方法?
Google Drive API - PHP-Client missing trash()-Method?
我在执行来自 https://developers.google.com/drive/v2/reference/files/trash 的 php 代码示例时收到错误 "Call to undefined method google_Service_Drive_Resource_Files::trash()"。
还查看了 Google_Service_Drive_Resource_Files,但找不到实现的垃圾处理方法。
所以 Google 开发者指南是错误的?
我用的是google-api-php-client
的v2.2.1
构建此库的项目当前存在问题。它只是为每个 api 构建一个最新版本。所以此时你只能使用 Google Drive V3 因为 Google Drive v2 没有被构建
在此处跟踪项目:
我在执行来自 https://developers.google.com/drive/v2/reference/files/trash 的 php 代码示例时收到错误 "Call to undefined method google_Service_Drive_Resource_Files::trash()"。
还查看了 Google_Service_Drive_Resource_Files,但找不到实现的垃圾处理方法。
所以 Google 开发者指南是错误的?
我用的是google-api-php-client
的v2.2.1构建此库的项目当前存在问题。它只是为每个 api 构建一个最新版本。所以此时你只能使用 Google Drive V3 因为 Google Drive v2 没有被构建
在此处跟踪项目: