getLocations method

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

Available Query Filters:

  • locations
  • root

Implementation

Future<PcoCollection<PcoCheckInsLocation>> getLocations(
    {PcoCheckInsLocationQuery? query}) async {
  query ??= PcoCheckInsLocationQuery();
  var url = '$apiEndpoint/locations';
  return PcoCollection.fromApiCall<PcoCheckInsLocation>(url,
      query: query, apiVersion: apiVersion);
}