Slack Developer Kit for Node.js
A client for Slack’s Web API
This client provides an alias for each Web API method. Each method is a convenience wrapper for calling the WebClient#apiCall method using the method name as the first parameter.
Kind: static class of @slack/client
Extends: EventEmitter
Properties
| Name | Type | Description |
|---|---|---|
| [token] | string |
Authentication and authorization token for accessing Slack Web API (usually begins with xoxp, xoxb, or xoxa) |
| [slackApiUrl] | string |
The base URL for reaching Slack’s Web API. Consider changing this value for testing purposes. |
EventEmitter
Promise.<WebAPICallResult>Generic method for calling a Web API method
Kind: instance method of WebClient
| Param | Type | Description |
|---|---|---|
| method | string |
the Web API method to call {@see https://api.slack.com/methods} |
| options | WebAPICallOptions |
options |
Kind: instance method of WebClient
| Param | Type |
|---|---|
| method | string |
| options | WebAPICallOptions |
| callback | WebAPIResultCallback |
Kind: instance method of WebClient
| Param | Type |
|---|---|
| method | string |
| options | WebAPICallOptions |
| callback | WebAPIResultCallback |