我正在尝试建立一个连接到Google的应用程序。
到目前为止,我已经:
Class 'apiClient' not found...
Index.php
<?php
set_include_path('src');
require_once "Google/Client.php";
require_once "Google/Service/Calendar.php";
$apiClient = new apiClient(); <---LINE CAUSING THE ERROR
$apiClient->setUseObjects(true);
$service = new apiCalendarService($apiClient);
if (isset($_SESSION['oauth_access_token'])) {
$apiClient->setAccessToken($_SESSION['oauth_access_token']);
} else {
$token = $apiClient->authenticate();
$_SESSION['oauth_access_token'] = $token;
}
?> 发布于 2014-10-07 20:14:18
我也发现了这个问题。所发生的事情是他们更新了api,但没有更新文档。尝试将包含更改为
$g_Client = new Google_Client();
$g_Cal = new Google_CalendarService($g_Client);https://stackoverflow.com/questions/26139790
复制相似问题