Reputation: 21
I am trying to fetch data only which resides on particular dates.I am using this api-: https://www.googleapis.com/calendar/v3/calendars/primary/events&timeMin=2021-10-25T10:00:00-07:00&timeMax=2021-10-28T10:00:00-07:00&timeZone=America/Los_Angeles but this is not working.I am using apex so don't have library support.
Upvotes: 0
Views: 106
Reputation: 201418
When I saw your URL, I thought that when the query parameter is added, it is required to modify from /events&timeMin=
to /events?timeMin=
. So how about the following modification?
https://www.googleapis.com/calendar/v3/calendars/primary/events?timeMin=2021-10-25T10:00:00-07:00&timeMax=2021-10-28T10:00:00-07:00&timeZone=America/Los_Angeles
https://www.googleapis.com/calendar/v3/calendars/primary/events?timeMax=2021-10-28T10%3A00%3A00-07%3A00&timeMin=2021-10-25T10%3A00%3A00-07%3A00&timeZone=America%2FLos_Angeles
Upvotes: 1