executeSlackCompatibleWebhook method

Future<Webhook> executeSlackCompatibleWebhook(
  1. String webhookId,
  2. String webhookToken, {
  3. bool? wait,
})

Implementation

Future<Webhook> executeSlackCompatibleWebhook(
  String webhookId,
  String webhookToken, {
  bool? wait,
}) {
  var endpoint = '/webhooks/$webhookId/$webhookToken/slack';
  return _http.request(
    endpoint,
    converter: Webhook.fromJson,
    method: 'post',
    query: {
      ...insertNotNull('wait', wait, str: true),
    },
  );
}