使用PHP代码示例时,'webViewLink'为空/空 [英] 'webViewLink' is empty/null when using PHP code sample

查看:91
本文介绍了使用PHP代码示例时,'webViewLink'为空/空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用来自Google(0.60)的最新版本的PHP apis,来自 Google开发者页面的代码示例似乎工作,除了在函数的末尾使用'print_r($ createdFile)'时'webViewLink'字段为空/空。

Using the latest version of PHP apis from Google (0.60), the code sample from google developer page seems to work except that the 'webViewLink' field is empty/null when using 'print_r($createdFile)' at the end of the function.

我的Google Apps域名的drive.google.com网站显示了使用公开权限成功创建的新文件夹。

The drive.google.com site for my Google Apps domain shows the new folder successfully created with public permissions.

有什么想法?

推荐答案

作为解决方法,如果您拥有文件夹ID,则可以使用 https://googledrive.com/host/FOLDER_ID_HERE

As a workaround, if you have folder ID, you can use https://googledrive.com/host/FOLDER_ID_HERE

这篇关于使用PHP代码示例时,'webViewLink'为空/空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆