getWebhookWithToken abstract method

  1. @GET.new('/webhooks/{webhook_id}/{token}')
Future<WebhookTokenResponse> getWebhookWithToken({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @Path.new('token') required String token,
})

Get webhook with token.

Retrieves detailed information about a specific webhook using its ID and token. No authentication required as the token serves as the credential. Returns the webhook object without creator user data.

webhookId - The ID of the webhook.

token - The token.

Implementation

@GET('/webhooks/{webhook_id}/{token}')
Future<WebhookTokenResponse> getWebhookWithToken({
  @Path('webhook_id') required SnowflakeType webhookId,
  @Path('token') required String token,
});