NgKhanh / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Google Calendar List service is not adding calendar list #258

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Authenticate for google calendar
2. Use calendarlist insert as
<?php
  $cal = new Google_CalendarListEntry();
  $cal->setId("Test calendarList");
  $cal->setSummary("Test calendarList");
 // $google_client which was authenticated before
  $gcs = new Google_CalendarService($google_client);
  $new_cal = $gcs->calendarList->insert($cal);
?>

What is the expected output? What do you see instead?
$new_cal should be populated with the new calendarlist entry and a entry should 
be created in the account used for account.
It throws a error as
Google_ServiceException: Error calling POST 
https://www.googleapis.com/calendar/v3/users/me/calendarList?key=AIzaSyCKZYrVtgP
KsAsYU-iPcBYzRSUYWWU2btY: (404) Not Found in Google_REST::decodeHttpResponse() 
(line 66 of ...../google-api-php-client/src/io/Google_REST.php).

Also when I try google api explorer 
(https://developers.google.com/apis-explorer/#p/calendar/v3/calendar.calendarLis
t.insert) it throws error as "The resource was not found".
Response is 
404 Not Found

- Show headers -

{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}

Please update me if I have coded something wrong.

What version of the product are you using? On what operating system?
I am using the latest php client library.  I am running it on ubuntu 12.04

Original issue reported on code.google.com by dalvisad...@gmail.com on 31 Jan 2013 at 4:26

GoogleCodeExporter commented 8 years ago
Seems you have an issue with the calendar API rather than the library - try 
asking your question on StackOverflow or 
https://groups.google.com/forum/embed/?place=forum/google-calendar-api in the 
Calendar google group. Thanks!

Original comment by ianbar...@google.com on 22 Mar 2013 at 6:03