getAll static method
Future<PcoCollection<PcoWebhooksSubscription> >
getAll({
- String? id,
- PcoWebhooksSubscriptionQuery? query,
Will get a PcoCollection
containing ALL PcoWebhooksSubscription objects (expecting many)
using a path like this: /webhooks/v2/subscriptions
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
This function forces the query.getAll
to be true.
Implementation
static Future<PcoCollection<PcoWebhooksSubscription>> getAll({
String? id,
PcoWebhooksSubscriptionQuery? query,
}) async {
query ??= PcoWebhooksSubscriptionQuery();
query.getAll = true;
var url = '/webhooks/v2/subscriptions';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoWebhooksSubscription>(url,
query: query, apiVersion: kApiVersion);
}