Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google calendar api reminder

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.

like image 339
Kashif Iqbal Avatar asked Mar 03 '17 15:03

Kashif Iqbal


People also ask

Can Google Calendar send reminders?

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.

Is there an API for Google Calendar?

The Calendar API lets you integrate your app with Google Calendar, creating new ways for you to engage your users.

Is Google Calendar API free?

All use of the Google Calendar API is available at no additional cost.

How do I create an event in Google Calendar API?

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.


1 Answers

You can use your calendar ID to reference that calendar.

  1. Go to google calendars
  2. Go to calendar settings for the calendar you are trying to reference
  3. 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:)))
    
like image 85
Allison Kornher Avatar answered Nov 01 '22 03:11

Allison Kornher