TTMSFNCCustomCloudGoogleCalendar.GetCalendar Method
Sends a request to retrieve the events of a calendar within a date range.
API unit family: TMSFNCCloudGoogleCalendar
Declaring type: TTMSFNCCustomCloudGoogleCalendar
Overloads
Overload 1
Sends a request to retrieve the events of a calendar within a date range.
procedure GetCalendar(AID: string; AFromDate, AToDate: TDate; AMaxResults: integer = 250); overload;
Remarks
The request runs asynchronously; results are stored in the events collection and reported through OnGetCalendar.
Parameters
| Name | Description |
|---|---|
AID |
Identifier of the calendar to read events from. |
AFromDate |
Start of the date range to retrieve. |
AToDate |
End of the date range to retrieve. |
AMaxResults |
Maximum number of events to return. Defaults to 250. |
Overload 2
Sends a request to retrieve the events of the primary calendar within a date range.
procedure GetCalendar(AFromDate, AToDate: TDate; AMaxResults: integer = 250); overload;
Remarks
The request runs asynchronously; results are stored in the events collection and reported through OnGetCalendar.
Parameters
| Name | Description |
|---|---|
AFromDate |
Start of the date range to retrieve. |
AToDate |
End of the date range to retrieve. |
AMaxResults |
Maximum number of events to return. Defaults to 250. |
Overload 3
Sends a request to retrieve the events of a calendar changed since a given time.
procedure GetCalendar(AID: string; AChangedSince: TDateTime; AMaxResults: integer = 250); overload;
Remarks
The request runs asynchronously; results are stored in the events collection and reported through OnGetCalendar.
Parameters
| Name | Description |
|---|---|
AID |
Identifier of the calendar to read events from. |
AChangedSince |
Only events updated at or after this time are returned. |
AMaxResults |
Maximum number of events to return. Defaults to 250. |
Overload 4
Sends a request to retrieve all events of a calendar.
procedure GetCalendar(AID: string; AMaxResults: integer = 250); overload;
Remarks
The request runs asynchronously; results are stored in the events collection and reported through OnGetCalendar.
Parameters
| Name | Description |
|---|---|
AID |
Identifier of the calendar to read events from. |
AMaxResults |
Maximum number of events to return. Defaults to 250. |