getWebhook method
Returns the webhook information that corresponds to a specified webhook ID.
May throw BadRequestException.
May throw InternalFailureException.
May throw LimitExceededException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter webhookId :
The unique ID for a webhook.
Implementation
Future<GetWebhookResult> getWebhook({
required String webhookId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/webhooks/${Uri.encodeComponent(webhookId)}',
exceptionFnMap: _exceptionFns,
);
return GetWebhookResult.fromJson(response);
}