我之前从未使用过Goodle API,现在我尝试通过API访问Google日历.
我下载了google-api-php-client-master.zip,解压缩了.../src/Google目录并将其复制到我的网络服务器(由第三方托管,这意味着我无法安装任何东西).根据样本,我的代码需要从头开始
<?php
require_once "Google/Client.php";
require_once "Google/Service/Calendar.php";
....
Run Code Online (Sandbox Code Playgroud)
但是Client.php抛出一个错误:
致命错误:require_once():在第18行的/homepages/39/d396519017/htdocs/VC2/Google/Client.php中打开所需的''(include_path ='.:/ usr/lib/php5.4')失败
Client.php-Line 18就是这一行 require_once realpath(dirname(__FILE__) . '/../../autoload.php');
但是我无法在任何地方找到autoload.php.我错过了什么?
谢谢!