g4gcal_listEvents will list the events for a specific calendar for a certain ID for the specified time period. All events will be placed in the file G4GEVTPF
Returns: n for the number of events added and/or updated, -1 for error.
Events Added (output) - The number of events added to the file.
Events Updated (output) - The number of events updated in the file.
Error Message (output) - Error message
Settable Variables (use g4gcal_setValue):
id (required) - Your Google ID
calendar_id (required) - The calendar ID to retrieve events for. This must be a valid value for the Google ID in the field GGCCALID in file G4GCALPF.
start_date (required) - *The start date to retrieve events.
end_date (required) - *The end date to retrieve events.
event_key - The event key to retrieve events for. This can further subset the events retrieved as long as events were added with a specific event key.
event_option - Enter the option to perform when storing events. *REPLACE will clear the events from the file for the Calender ID specified before retrieving them. *ADD will add records to the file, and if a duplicate event is found update it with the most recent information from the calendar. The default is *REPLACE.
ccsid - The CCSID to use. The default is 1208.
debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.
debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4g_[id]_listCalendarsEventsDebug.txt
* We have found an issue with the event list API provided by Google in that events that are set to start 7pm and later will not be retrieved for that specific day, and will be included on the next day's event list.
For example, if you have an event set to start at 7:30pm on October 26th and you retrieve all the events for October 26th, this even will NOT be retrieved. But, if you retrieve events for October 27th this event will then be included in the event list.
This is something we are asking about and hope to get an answer as to why this happens.