getBlockoutDates method
Future<PcoCollection<PcoServicesBlockoutDate> >
getBlockoutDates({
- PcoServicesBlockoutDateQuery? query,
Will get a collection of PcoServicesBlockoutDate objects (expecting many)
using a path like this: https://api.planningcenteronline.com/services/v2/people/1/blockouts/1/blockout_dates
Implementation
Future<PcoCollection<PcoServicesBlockoutDate>> getBlockoutDates(
{PcoServicesBlockoutDateQuery? query}) async {
query ??= PcoServicesBlockoutDateQuery();
var url = '$apiEndpoint/blockout_dates';
return PcoCollection.fromApiCall<PcoServicesBlockoutDate>(url,
query: query, apiVersion: apiVersion);
}