I want to access the reminder calendar in the my calendar account with the google calendar API. I can't seem to find anything in the documentation. When I request a list of my calendars, it gives me every calendar in my calendar account, apart from the reminder calendar.
I want some way to add a reminder using the Google calendar API.
You can use reminders in Google Calendar to track tasks. Reminders repeat every day or until you mark them as done. Reminders are private and cannot be shared with others.
The Calendar API lets you integrate your app with Google Calendar, creating new ways for you to engage your users.
All use of the Google Calendar API is available at no additional cost.
To create an event, call the events. insert() method providing at least these parameters: calendarId is the calendar identifier and can either be the email address of the calendar on which to create the event or a special keyword 'primary' which will use the primary calendar of the logged in user.
You can use your calendar ID to reference that calendar.
scroll to the bottom and find where it says Calendar Address: across from that is your calendar ID. Use that in your query. for example in swift to get events from a calendar use this
let query = GTLRCalendarQuery_EventsList.query(withCalendarId: "insert your calendar ID here")
query.maxResults = 10
query.timeMin = GTLRDateTime(date: Date())
query.singleEvents = true
query.orderBy = kGTLRCalendarOrderByStartTime
service.executeQuery(
query,
delegate: self,
didFinish: #selector(displayResultWithTicket(ticket:finishedWithObject:error:)))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With