
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
claude-api
Advanced tools
Slack Conversation Library for ClaudeAI.
npm install claude-api
// or
yarn install claude-api
import Authenticator, { type ChatResponse } from 'claude-api'
// ==========
let
// user-token
token = 'xoxp-xxxxx',
// claude appid
bot = 'U0xxxx',
text = '讲个故事'
const authenticator = new Authenticator(token, bot)
// 创建一个频道,已存在则直接返回频道ID
const channel = await authenticator.newChannel('chat-7890')
let result: ChatResponse = await authenticator.sendMessage({
text, channel, onMessage: (originalMessage: ChatResponse) => {
// console.log(originalMessage)
}
})
console.log('==============1\n', result)
text = '接着讲,接下来进入修仙情节'
result = await authenticator.sendMessage({
text, channel,
conversationId: result.conversationId,
onMessage: (originalMessage: ChatResponse) => {
// console.log(originalMessage)
}
})
〉》点击 【Create an app】
〉》主页看见Your Apps并弹出窗口【Create an app】 〉》 点击【From scratch】
〉》填写app名称以及选择工作空间(例:name: Bot, workspace: chat) 〉》 点击【Create App】
〉》点击左侧边栏上的【OAuth & Permissions】 〉》 下拉至【Scopes】卡片,在 【User Token Scopes】 项下添加权限,如下:
channels:history, channels:read, channels:write, groups:history, groups:read, groups:write,
chat:write, im:history, im:write, mpim:history, mpim:write
〉》回到顶部【OAuth Tokens for Your Workspace】栏,点击【Install to Workspace】,然后确认授权即可
至此,获得拥有一定权限的user-token
Credits Thank you to:
FAQs
slack Authentication Library for ClaudeAI.
The npm package claude-api receives a total of 26 weekly downloads. As such, claude-api popularity was classified as not popular.
We found that claude-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.