我无法连接能够显示事件,使用php客户端库插入事件。 这是我得到的错误。 我使用的客户端库我无法使用v3 php客户端库连接到谷歌日历api
Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/calendar/v3/calendars/primary?key=****************: (401) Login Required' in /var/www/html/google-api-php-client1/src/Google/Http/REST.php:79
Stack trace:
#0 /var/www/html/google-api-php-client1/src/Google/Http/REST.php(44): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request))
#1 /var/www/html/google-api-php-client1/src/Google/Client.php(503): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
#2 /var/www/html/google-api-php-client1/src/Google/Service/Resource.php(195): Google_Client->execute(Object(Google_Http_Request))
#3 /var/www/html/google-api-php-client1/src/Google/Service/Calendar.php(1269): Google_Service_Resource->call('get', Array, 'Google_Service_...')
#4 /var/www/html/simple.php(27): Google_Service_Calendar_Calendars_Resource->get('primary') #5 {main} thrown in /var/www/html/google-api-php-client1/src/Google/Http/REST.php on line 79
能否请您分享给谷歌日历与PHP客户端库 TIA这里 – Naveen1425 2014-09-03 12:15:30
访问https://developers.google.com/google-apps/calendar/downloads – 2014-09-03 12:18:56
那些工作不细的工作示例。 通过添加令牌代码,它可以重定向我项目中的另一个测试页面。 我如何将它重新导向到同一个sample.php页面。 我注意到,在重定向之后,它在url中传递了一个“code”变量。 – Naveen1425 2014-09-03 12:25:52