Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

claude-api-slack

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claude-api-slack - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

12

package.json
{
"name": "claude-api-slack",
"version": "1.0.19",
"version": "1.0.20",
"description": "slack Authentication Library for ClaudeAI.",

@@ -16,11 +16,4 @@ "main": "./dist/index.js",

"license": "MIT",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": [
"dist"
"build"
],

@@ -56,2 +49,3 @@ "source": "./src/index.ts",

]
}

@@ -5,4 +5,2 @@ ### ClaudeAI for Node.js

### Usage

@@ -21,3 +19,3 @@

const authenticator = new Authenticator(token, bot)
// 创建一个频道,已存在则直接返回频道ID
// 创建一个频道,已存在则直接返回频道 ID
const channel = await authenticator.newChannel('chat-7890')

@@ -43,13 +41,13 @@ let result: ChatResponse = await authenticator.sendMessage({

### 授权以及获取user-token
### 授权以及获取 user-token
网页登录后[登录](https://app.slack.com), 进入api配置页面[点我跳转]([Claude - chat - Slack](https://api.slack.com/))。
网页登录后[登录](https://app.slack.com), 进入 api 配置页面[点我跳转]([Claude - chat - Slack](https://api.slack.com/))。
〉》点击 【Create an app】
〉》点击【Create an app】
​ 〉》主页看见Your Apps并弹出窗口【Create an app】 〉》 点击【From scratch】
​ 〉》主页看见 Your Apps 并弹出窗口【Create an app】 〉》点击【From scratch】
​ 〉》填写app名称以及选择工作空间(例:name: Bot, workspace: chat) 〉》 点击【Create App】
​ 〉》填写 app 名称以及选择工作空间(例:name: Bot, workspace: chat) 〉》点击【Create App】
​ 〉》点击左侧边栏上的【OAuth & Permissions】 〉》 下拉至【Scopes】卡片,在 【User Token Scopes】 项下添加权限,如下:
​ 〉》点击左侧边栏上的【OAuth & Permissions】 〉》下拉至【Scopes】卡片,在【User Token Scopes】项下添加权限,如下:

@@ -62,3 +60,3 @@ ​ channels:history, channels:read, channels:write, groups:history, groups:read, groups:write,

至此,获得拥有一定权限的user-token
至此,获得拥有一定权限的 user-token

@@ -65,0 +63,0 @@ <img src="static/截屏2023-04-18 09.10.56.png" alt="截屏2023-04-18 09.10.56" style="zoom:50%;" />

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc