我無法連接能夠顯示事件,使用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