getDynamicWebhooksForApp method

Future<PageBeanWebhook> getDynamicWebhooksForApp({
  1. int? startAt,
  2. int? maxResults,
})

Returns a paginated list of the webhooks registered by the calling app.

Permissions required: Only Connect and OAuth 2.0 apps can use this operation.

Implementation

Future<PageBeanWebhook> getDynamicWebhooksForApp(
    {int? startAt, int? maxResults}) async {
  return PageBeanWebhook.fromJson(await _client.send(
    'get',
    'rest/api/3/webhook',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}