getEvents method

Will get a collection of PcoCheckInsEvent objects (expecting many) using a path like this: https://api.planningcenteronline.com/check-ins/v2/events

Available Query Filters:

  • archived
  • for_headcounts
  • not_archived

Implementation

Future<PcoCollection<PcoCheckInsEvent>> getEvents(
    {PcoCheckInsEventQuery? query}) async {
  query ??= PcoCheckInsEventQuery();
  var url = '$apiEndpoint/events';
  return PcoCollection.fromApiCall<PcoCheckInsEvent>(url,
      query: query, apiVersion: apiVersion);
}