【发布时间】:2020-01-30 18:57:55
【问题描述】:
我按照 Google Cloud Run 页面上的教程进行操作,并创建了一个小型的私有 Google Cloud Run API。现在我可以按照here 的描述使用curl 向我的API 发出请求:
curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" SERVICE_URL
到目前为止一切顺利。现在我想建立一个slackbot。 slackbot 应该响应 slashcommands,并且每当发出某个 slashcommand 时,它应该 1) 使用 API 验证自己,然后 2) 发出命令。
这可能吗?我查看了整个 Slack API 文档,但找不到 Slack Bot 必须通过其他服务验证自己的示例。有人可以向我指出一个指南/教程,其中作者在 Google Cloud 中实现了一个从 slackbot 调用的私有 API?
【问题讨论】:
标签: google-cloud-platform slack slack-api google-cloud-run