【发布时间】:2019-03-12 22:40:04
【问题描述】:
我有一个 slack 机器人,以 xoxb 开头的令牌用于将文件上传到频道。
我正在使用以下格式
curl -F token="${SLACK_TOKEN}" -F file=e2e.sh -F channel="${SLACK_CHANNEL}" -F as_user=true https://slack.com/api/files.upload
这会抛出
{"ok":false,"error":"no_file_data"}
【问题讨论】: