{"id":13696765,"url":"https://github.com/clonn/slack-node-sdk","last_synced_at":"2025-10-26T06:44:57.364Z","repository":{"id":16199618,"uuid":"18946360","full_name":"clonn/slack-node-sdk","owner":"clonn","description":"slack.com, slack, node sdk","archived":false,"fork":false,"pushed_at":"2017-12-08T18:42:01.000Z","size":74,"stargazers_count":167,"open_issues_count":8,"forks_count":32,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-30T00:33:29.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clonn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-19T17:15:34.000Z","updated_at":"2021-10-23T20:13:58.000Z","dependencies_parsed_at":"2022-09-12T16:23:35.473Z","dependency_job_id":null,"html_url":"https://github.com/clonn/slack-node-sdk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clonn%2Fslack-node-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clonn%2Fslack-node-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clonn%2Fslack-node-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clonn%2Fslack-node-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clonn","download_url":"https://codeload.github.com/clonn/slack-node-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128752,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T18:00:46.663Z","updated_at":"2025-10-26T06:44:52.332Z","avatar_url":"https://github.com/clonn.png","language":"CoffeeScript","funding_links":[],"categories":["Node JS"],"sub_categories":[],"readme":"slack-node-sdk\n==============\n\n[![Build Status](https://travis-ci.org/clonn/slack-node-sdk.svg?branch=master)](https://travis-ci.org/clonn/slack-node-sdk)\n\n[Slack](https://slack.com/) Node SDK, full support for Webhook and the Slack API, continuously updated.\n\n## Install\n\n    npm install slack-node\n\n## Slack Webhook usage\n\nAt first, you have to apply [Slack webhook](https://my.slack.com/services/new/incoming-webhook).\nand copy `webhook url`\n\n### Webhook usage\n\nCode example:\n\n```javascript\nvar Slack = require('slack-node');\n\nwebhookUri = \"__uri___\";\n\nslack = new Slack();\nslack.setWebhook(webhookUri);\n\nslack.webhook({\n  channel: \"#general\",\n  username: \"webhookbot\",\n  text: \"This is posted to #general and comes from a bot named webhookbot.\"\n}, function(err, response) {\n  console.log(response);\n});\n```\n\nUse icon emoji, you can give a Slack defined emoji, or use image from URL.\n\n\n```javascript\nvar Slack = require('slack-node');\n\nwebhookUri = \"__uri___\";\n\nslack = new Slack();\nslack.setWebhook(webhookUri);\n\n// slack emoji\nslack.webhook({\n  channel: \"#general\",\n  username: \"webhookbot\",\n  icon_emoji: \":ghost:\",\n  text: \"test message, test message\"\n}, function(err, response) {\n  console.log(response);\n});\n\n// URL image\nslack.webhook({\n  channel: \"#general\",\n  username: \"webhookbot\",\n  icon_emoji: \"http://icons.iconarchive.com/icons/rokey/popo-emotions/128/after-boom-icon.png\",\n  text: \"test message, test message\"\n}, function(err, response) {\n  console.log(response);\n});\n```\n\nOtherwise, you can check usage from [example](https://github.com/clonn/slack-node-sdk/tree/master/example)\n\n## Slack API support\n\nFirst you have to apply an API from [SLACK API page](https://api.slack.com/),\n\n * [https://api.slack.com/](https://api.slack.com/)\n\nThe method, please reference [Slack API page](https://api.slack.com/)\n\nexample code,\n\n```javascript\nvar Slack = require('slack-node');\napiToken = \"-- api token --\";\n\nslack = new Slack(apiToken);\n\nslack.api(\"users.list\", function(err, response) {\n  console.log(response);\n});\n\nslack.api('chat.postMessage', {\n  text:'hello from nodejs',\n  channel:'#general'\n}, function(err, response){\n  console.log(response);\n});\n```\n\n## Changelog\n\n * 0.1.7\n  * slack-node no longer crashes if Slack returns HTML instead of JSON.\n\n * 0.1.6\n  * support ES6, promise function.\n\n * 0.1.3\n  * use [requestretry](https://www.npmjs.com/package/requestretry) replace request. thanks for [timjrobinson](https://github.com/clonn/slack-node-sdk/pull/11)\n  * update test\n  * fixed emoji error\n  * fixed return error crash when run time.\n\n * 0.1.0\n  * fixed test type error\n  * support new [slack webhook](https://api.slack.com/incoming-webhooks).\n\n * 0.0.95\n  * fixed webhook function and test\n  * support file upload function\n\n * 0.0.93\n  * return header and status\n\n * 0.0.92\n  * merge slack emoji for webhook\n  * pass request full request object\n\n * 0.0.9\n  * pass parameters bug fixed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclonn%2Fslack-node-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclonn%2Fslack-node-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclonn%2Fslack-node-sdk/lists"}