Rectangle 27 1

It's the UTC offset, telling you which time zone the event's time is being expressed in. That's probably coming from the time zone setting of the calendar. Toronto is currently at UTC-4:00, meaning it's four hours behind the UTC clock. So when you moved the event to Taipei, you kept it at the same local time (10 AM on the 25th), but the API expresses it in Toronto hours; i.e. the event will happen when it's 10 PM on the 24th in Toronto.

Toronto's time zone is GMT-5:00 (UTC and GMT are roughly equivalent) because without daylight savings, that's the offset. The API knows that Toronto is currently on daylight savings, though, and changes the offset accordingly.

It's also worth noting that this date/time format is ISO 8601 and is the usual way of representing time in APIs.

Great answer! I just moved from Taiwan and I didn't know the effects of daylight saving! Also, thanks for the ISO, I was looking through RFC-2445 and could not dig out anything about it!

android - What does "-04:00" in Google Calendar's Event.Datetime mean?...

android json datetime google-calendar
Rectangle 27 0

As its been a few weeks you've probably found your answer but I was having the same issue recently starting with basically the same code that you're using. I had simply not activated google calendar under "services" in the google console. If all of the console settings aren't correct, the "authorize" button remains hidden(it is hidden by default). Once all the settings are correct and the script is communicating properly with the api, the authorize button becomes visible and you can then add the event and write the response by clicking the button.

html - Google Calendar API Javascript Quickadd - Stack Overflow

javascript html google-api google-calendar
Rectangle 27 0

Reminders are tied to the authenticated user. In this case Bob was creating events using service account but on user's calendar. Service accounts do not have privileges to modify reminders for users.

In order to change reminders for someone, you need to be authenticated as that person (use their Oauth token).

asp.net - Setting reminders in google calendar through .net api - Stac...

asp.net google-api google-calendar
Rectangle 27 0

To anyone trying to achieve the same and who's not in the need to use API v3 at any cost:

There is still an option to get future events with a request similar to API v2. Therefore, use the private XML-code from the calendar settings and add the parameters you need. E.g.:

HTTP GET http://www.google.com/calendar/feeds/your_email/private-validation/basic?futureevents=true&max-results=1&singleevents=true&orderby=starttime&sortorder=ascending

I could not find any up-to-date documentation from Google about this but it's working. The main difference to API v2 is the "/basic?" at the end instead of the old "/full?". Otherwise most parameters seem to work fine.

futureevents=true - only shows future events
max-results=integer - only show integer number of results
singleevents=true - handly reoccuring events as single events
orderby=starttime - sort results by their starting time instead of last update
sortorder=ascending - well, sort order

"printpretty" seems not to be supported anymore. Also, the timestamp has a different look now. But still, all the information needed is included.

The example above shows the request for the next event in the calendar. This may be extended to multiple events (e.g. max-results=5). The other parameters are needed to show up the next events as expected instead of some seemingly random events. The problem with this method is of course that your private adress is used in the request which may be insecure in comparison to API v3.

android - HTTP GET: Get Google Calendar Event List via Google Calendar...

android google-calendar http-get tasker
Rectangle 27 0

Have you tried disabling the automatic addition of hangout links by updating the calendar settings? Not sure if this applies to new events created through the API, but here's a link: https://support.google.com/a/answer/4362302

Thank you for the suggestion. Unfortunately, that seems to be across our entire domain, which isn't what I am looking for. If it only applied to a specific calendar, it would be perfect.

Want to create a Google Calendar Event without a Hangout/video link - ...

google-api
Rectangle 27 0

Yes, you'll need to authenticate as a service account and impersonate the user who you'd like to be the creator of the event. The Google Drive SDK has a good tutorial on using service accounts to impersonate users with the API, your process would be nearly identical except that you'd be using the Calendar API.

Setting the creator for Google calendar events created via API - Stack...

google-api google-calendar google-api-client
Rectangle 27 0

Reminders are tied to the authenticated user. In this case Bob was creating events using service account but on user's calendar. Service accounts do not have privileges to modify reminders for users.

In order to change reminders for someone, you need to be authenticated as that person (use their Oauth token).

asp.net - Setting reminders in google calendar through .net api - Stac...

asp.net google-api google-calendar
Rectangle 27 0

I had a some difficulty figuring out how to use the google calendar api with OAuth etc. I finally got everything working and along the way I wrote a very simple easy to use package. I posted it to github and it can be installed from pypi using "pip install gback". The documentation has instructions for google account settings also.

Here is an example snippit for adding an appointment to a calendar.

from gback import GCalSession

# print the output will display the appiointment url.
# 'Marc' is the name of the calendar used.

session = GCalSession('~/gback.oauth')
des='Write a simpler way to use the google calendar api.'
print session['Marc'].add('Write Python code.', '20150430', des=des)

How to use Python to create a Google calendar event through API v3 - S...

python google-api google-calendar google-api-client google-api-python-client
Rectangle 27 0

I had a some difficulty figuring out how to use the google calendar api with OAuth etc. I finally got everything working and along the way I wrote a very simple easy to use package. I posted it to github and it can be installed from pypi using "pip install gback". The documentation has instructions for google account settings also.

Here is an example snippit for adding an appointment to a calendar.

from gback import GCalSession

# print the output will display the appiointment url.
# 'Marc' is the name of the calendar used.

session = GCalSession('~/gback.oauth')
des='Write a simpler way to use the google calendar api.'
print session['Marc'].add('Write Python code.', '20150430', des=des)

How to use Python to create a Google calendar event through API v3 - S...

python google-api google-calendar google-api-client google-api-python-client