Integration of Google Calendar or Office 365 calendar?

Are there any decent integrations of either Google calendar or Office 365 calendar with Plone. Not looking for a tight integration with Plone events. It should be possible to maintain event either Google Calendar or Office 365 calendar. Inside Plone we just want to fetch the event data and display them in a list or so.

-aj

Try this placed inside the event_view page template (customise it in the ZMI) after the vCal and iCal links:

<a href="#"
tal:attributes="href python:'http://www.google.com/calendar/event?action=TEMPLATE'
+'&text='+here.title
+'&dates='+here.start().toZone('UTC').ISO8601().replace('-','').replace(':','').split('+')[0]+'Z/'
+here.end().toZone('UTC').ISO8601().replace('-','').replace(':','').split('+')[0]+'Z'
+'&location='+here.location
+'&details='+here.getRawDescription()+'<br />'+here.getRawText()
+'&trp=true'
+'&sprop=website:'+here.event_url()
+'&sprop=name:'+here.contact_name();"
title="Add this event to Google Calendar"
target="_blank"
style="background-image: none; padding: 0px;"
>
<img src="https://www.google.com/calendar/images/ext/gc_button1.gif" alt="Add to Google Calendar" width="50" height="13"  />
</a>

Arjun Dixit
showbox.onl mobdro.one dltutuapp.com

We decided to go with Office 365 since the customer is already on Office 365.

Here is a small Python prototype for accessing Office 365 from Python. It uses oAuth2

Thinks to be figured out: lifetime of the oAuth token is currently one hour. The Graph API however provides different types or token and configurable lifetimes for token.

-aj

1 Like

Seriously, read (and analyze) the code yourself. It is only one small Python file and in particular: the code is completely documented and has a README. So what do you want this your unprofessional reply?