getPledgeCampaign method
Future<PcoCollection<PcoGivingPledgeCampaign> >
getPledgeCampaign({
- PcoGivingPledgeCampaignQuery? query,
Will get a collection of PcoGivingPledgeCampaign objects (expecting one)
using a path like this: https://api.planningcenteronline.com/giving/v2/pledges/1/pledge_campaign
Implementation
Future<PcoCollection<PcoGivingPledgeCampaign>> getPledgeCampaign(
{PcoGivingPledgeCampaignQuery? query}) async {
query ??= PcoGivingPledgeCampaignQuery();
var url = '$apiEndpoint/pledge_campaign';
return PcoCollection.fromApiCall<PcoGivingPledgeCampaign>(url,
query: query, apiVersion: apiVersion);
}