Reputation: 1
I am using Klipfolio and want to create a visualization that pulls events from my google calendar that take place 6 months from present day, and just the events that occur on that day.
I have tried the following query:
https://www.googleapis.com/calendar/v3/calendars/[email protected]/events?timeMin={date.format("yyyy-MM-dd'T'00:00:00Z")}&timeMax={date.addMonths(6).format("yyyy-MM-dd'T'23:59:59Z")}&singleEvents=true
However it is pulling all events that occur from present to +6 months. Where is my query wrong?
Upvotes: 0
Views: 580
Reputation: 753
Currently you have the timeMin value set to today and your timeMax value set to +6 months so this will pull everything in between these dates. If you set your timeMin value to the same that you have for the timeMax value then it'll only events for the day that is +6 months from today. Note that the hours, minutes and seconds will still be 00:00:00:
https://www.googleapis.com/calendar/v3/calendars/[email protected]/events?timeMin={date.addMonths(6).format("yyyy-MM-dd'T'00:00:00Z")}&timeMax={date.addMonths(6).format("yyyy-MM-dd'T'23:59:59Z")}&singleEvents=true
Upvotes: 1