slack_notification 1.2.0 copy "slack_notification: ^1.2.0" to clipboard
slack_notification: ^1.2.0 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: "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
0
points
179
downloads

Publisher

verified publisherhuhx.cn

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio

More

Packages that depend on slack_notification