getEventInstances method

Will get a collection of PcoCalendarEventInstance objects (expecting many) using a path like this: https://api.planningcenteronline.com/calendar/v2/event_instances

Available Query Filters:

  • all
  • approved
  • approved_pending
  • approved_pending_rejected
  • approved_rejected
  • approver
  • approver_subscriber
  • future
  • lost
  • owner
  • owner_approver
  • owner_approver_subscriber
  • owner_subscriber
  • pending
  • pending_rejected
  • rejected
  • shared
  • subscriber
  • unresolved

Implementation

Future<PcoCollection<PcoCalendarEventInstance>> getEventInstances(
    {PcoCalendarEventInstanceQuery? query}) async {
  query ??= PcoCalendarEventInstanceQuery();
  var url = '$apiEndpoint/event_instances';
  return PcoCollection.fromApiCall<PcoCalendarEventInstance>(url,
      query: query, apiVersion: apiVersion);
}