getPlans method
Will get a collection of PcoServicesPlan objects (expecting many)
using a path like this: https://api.planningcenteronline.com/services/v2/service_types/1/plans
Available Query Filters:
-
after
filter to plans with a time beginning after theafter
parameter -
before
filter to plans with a time beginning before thebefore
parameter -
future
-
no_dates
-
past
Implementation
Future<PcoCollection<PcoServicesPlan>> getPlans(
{PcoServicesPlanQuery? query}) async {
query ??= PcoServicesPlanQuery();
var url = '$apiEndpoint/plans';
return PcoCollection.fromApiCall<PcoServicesPlan>(url,
query: query, apiVersion: apiVersion);
}