slack-d 0.0.8
Slack API for D
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Slack Web API for D
Example
import std.process, std.stdio;
import slack;
void main() {
auto token = environment.get("SLACK_TOKEN");
assert(token != null, "Please set the SLACK_TOKEN environment variable");
// Create a Slack object using the given token.
auto slack = Slack(token);
// Post a message.
auto r = slack.postMessage("Hello from slack-d !");
writeln(r);
}
Implemented methods (so far)
Utilities
- https://api.slack.com/methods/api.test
Chat
- https://api.slack.com/methods/chat.postMessage
Conversations
- https://api.slack.com/methods/conversations.list
- https://api.slack.com/methods/conversations.history
TODO's
- Add support for RTM (real-time messaging) API (see: https://api.slack.com/methods/rtm.connect)
See https://api.slack.com/methods for a full list of methods offered by the Slack API.
History
- v0.0.8 Fixed github build & unittest failures; improved coverage.
- v0.0.7 Added Slack.test(); some refactoring.
- v0.0.6 Added first async support.
- v0.0.5 Updated GitHub actions.
- v0.0.4 Small code and GitHub actions fixes.
- v0.0.3 Attachement fixes due to Slack API change.
- v0.0.2 Simplyfied
post
example, unit tests. - v0.0.1 First slack.
- 0.0.8 released 6 months ago
- sinisa-susnjar/slack-d
- MIT
- Copyright © 2024, Sinisa Susnjar
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.8 2024-Mar-15 0.0.7 2024-Mar-13 0.0.6 2023-Jun-03 0.0.5 2022-Sep-05 0.0.4 2022-Sep-05 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
4 downloads this month
-
14 downloads total
-
- Score:
- 0.4
- Short URL:
- slack-d.dub.pm