to make an HTTP get to get all meetings based on the current day (today), Then I will make an HTTP PUT to update my Philips hue lights a few mins before the meeting to warn me.
I've done these steps already and have the API_KEY noted.
I saw these: https://www.googleapis.com/calendar/v3/users/me/calendarList https://www.googleapis.com/auth/calendar.readonly
I wasn't sure if I am looking at the right calendar object
Am I looking at the right place ? Pls advise.
You can use Events: list to return events on the specified calendar. Read the same SO scenario here: how to get all events from google calendar using google calendar API
Alternatively, you can also retrieve an event using its iCalendar ID
, call the events.list method using the iCalUID
parameter. You may read further details here: Events: get
As for getting all the meetings based on current day, there isn't a way to get it directly, you can use the method Events: list
then set the timeMin
and timeMax
from start of current date up to the last hour of the day. You may read the same SO scenarios here :
For more information on Google Calendar API: Develop Google Calendar solutions