dapplo / Dapplo.Confluence

An Atlassian confluence client for .NET
MIT License
34 stars 20 forks source link

Add Team-Calendar #4

Open Lakritzator opened 8 years ago

Lakritzator commented 8 years ago

This is just to document that there is currently no way to get events from Team-Calendars.

Unfortunately, Atlassian doesn't have documentation on their API and as far as I can see there are only discussions on this missing and not working.

See here: https://jira.atlassian.com/browse/TEAMCAL-269

The only way this might be possible, is to interpret the ics file generated by:

  1. Getting the subcalendar id, somehow
  2. Calling /rest/calendar-services/1.0/calendar/export/subcalendar/.ics?os_authType=basic
  3. use something like https://github.com/UHCalendarTeam/ICalendar/
Lakritzator commented 8 years ago

This returns some information: /rest/calendar-services/1.0/calendar/subcalendars (.json) But only gives me one calendar... which I created.

It should be possible to get events from a calendar, but this doesn't work for me..

Example: /rest/calendar-services/1.0/calendar/events.json?subCalendarId=<id>&userTimeZoneId=Europe%252FBerlin&start=2015-10-09T01%253A00%253A00Z&end=2016-06-17T00%253A00%253A00Z But this just returns an empty array...