I believe I am successfully authorizing a service account and I can make calls to the google calendar api using this service account without errors, but when I try to list the calendars that are associated with the service account it isn't returning any calendars. I thought it would return the same as my personal company email (the email i used to create the service account). If I put in the calendarId I receive a "Google::APIClient::ClientError? (Not Found)". I used this same calendarId successfully while doing a web based authorization with my personal company email.
Is there anything special I have to do to make it so the service account sees the same calendars as my personal company email? Do I need to manually add the service account email to those calendars or something?
Thanks for the help,
Dan
--To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/tsErJgsHh0wJ.
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To post to this group, send email to google-ca...@googlegroups.com.
To unsubscribe from this group, send email to google-calendar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-calendar-api?hl=en.
Warning: Very few Google APIs currently support Service Accounts. Service accounts are currently supported by the following Google developer services:
.. nothing about calendar..
So, anyone in here who got it working? Daniel, you seem to be able to read calendar events - I assume you can read events form a set of calendars that have been configured to be shared with your developers calendar - does it work?
(Not much use of starting a cruisade when there is no Jerusalem ;-p)..
--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/q40gREQljhYJ.
so i guess for php based on your code it would be something like this:$service->calendar_list->list
--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/vl8LJ9aZrRAJ.
I don't think you need to set the prn parameter to anything because you have shared the calendar already with your service account
$attendee1->setEmail('henk@noreply.lan');
$attendees = array($attendee1);
$event->attendees = $attendees;
/* CREATE THE EVENT IN THE PROPER CALENDAR
*/
$createdEvent = $cal->events->insert('name-of-cale...@gmail.com', $event);
--You received this message because you are subscribed to a topic in the Google Groups "Google Calendar API" group.To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-calendar-api/MySzyAXq12Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-calendar...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-calendar-api.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Calendar API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-calendar-api/MySzyAXq12Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-calendar...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-calendar-api.
For more options, visit https://groups.google.com/d/optout.