package
Basic Slack Api SDK
npm install slack-sdkGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Basic Slack Api SDK using User Session Token
npm i --save slack-sdkconst slack = require('slack-sdk')('workspace-name', 'user-session-token', {/* options */});
slack.channel.message('channel-name', 'message');Cache duration in seconds. Optional, defaults to 60.
Maximum number of entries in cache at any given time. Optional, defaults to 100.
token. It starts with xoxs-Send message to self.
Share files to self.
Get meta information about channel channel
Send message to channel channel.
Set topic of channel channel
Set purpose of channel channel
Share files to a channel channel.
Obtain details for workspace. Should usually be cached as it is easy to run into rate limits.
Upload file. Title and filename default to basename of filepath. Returns file id.
Send request to slack endpoint endpoint with parameters params.
E.g. call("rtm.start", {}, true) to obtain information about current user. Use cache if information was already obtained before.
Cache operates by matching the exact outgoing request signature.
Cached and non-cached requests operate separately. So making a non cached request does never alter the cache.
Estimated unpacked size across 25 packages.
6.2 MB
Includes dependencies.
4 direct · 4 outdated
1.7.9
1.21.1
4.0.1
4.0.6
5.0.0
5.0.1
5.0.0
5.0.1