slack_notification 1.2.3 copy "slack_notification: ^1.2.3" to clipboard
slack_notification: ^1.2.3 copied to clipboard

A simple wrapper to post messages from external sources into Slack.

example/main.dart

import 'package:dio/dio.dart';
import 'package:slack_notification/slack_notification.dart';

void main(List<String> args) async {
  final Message message = Message(
    text: "person: Hello World. ${DateTime.now()}",
    blocks: [
      SectionBlock(
        text: {
          "type": "mrkdwn",
          "text": "Danny Torrence left the following review for your property:"
        },
      ),
      SectionBlock(
        fields: [
          {"type": "mrkdwn", "text": "*Average Rating*\n1.0"}
        ],
      )
    ],
  );

  final Response<dynamic> response = await Slack("personUrl").send(
    message: message,
  );

  print(response.data);
}
4
likes
160
points
191
downloads

Publisher

verified publisherhuhx.cn

Weekly Downloads

A simple wrapper to post messages from external sources into Slack.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio

More

Packages that depend on slack_notification