简体   繁体   English

可以使用 amazon chime 自动回复或自动发送消息吗?

[英]Auto reply or auto messaging with amazon chime possible?

I want to write a small program, that allows me to reply or simply write a message at a certain time in the amazon chime app.我想写一个小程序,允许我在特定时间在亚马逊 chime 应用程序中回复或简单地写一条消息。 I recently learned flutter and am learning now JavaScript. So at the moment this is to complicated for me to understand IF it is possible.我最近学习了 flutter,现在正在学习 JavaScript。所以目前这对我来说太复杂了,如果可能的话。 Can someone help me with that?有人可以帮我吗?

If you are sending messages to a chime room you can do it via HTTP POST.如果您要向编钟室发送消息,您可以通过 HTTP POST 进行。

  1. Create a chime room创建一个编钟房间
  2. From the room settings menu, under Manage WebHooks and Bots add new WebHook and give it a name在房间设置菜单中,在“管理 WebHooks 和机器人”下添加新的 WebHook 并为其命名
  3. Once the WebHook is in the room, you will see a button 'Copy URL' next to its name. WebHook 进入房间后,您会在其名称旁边看到一个“复制 URL”按钮。 Click this button to copy the URL as this is where you need to post your message.单击此按钮复制 URL,因为这是您需要发布消息的地方。

Here's an example Sub routine I'm using under VBA to send automated messages这是我在 VBA 下用于发送自动消息的示例子例程

Sub MessageChime(WebHook As String, MessageContent As String)
    Dim oHttp As Object
    Dim body As String
    body = "{""Content"":""" + MessageContent + """}"
    Set oHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
    oHttp.Open "POST", WebHook, False
    oHttp.setRequestHeader "Content-type", "application/json"
    oHttp.send body
End Sub

Then you can send your desired message like this然后你可以像这样发送你想要的消息

Call MessageChime("your copied URL from the WebHook As String", "Your message here as a string")

The message will be sent in the room where you added the WebHook.该消息将在您添加 WebHook 的房间中发送。 You can try port this to whatever language you are using as long as you are able to make POST requests只要您能够发出 POST 请求,您就可以尝试将其移植到您使用的任何语言

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在使用 Amazon IVS 自动录制时访问前缀 S3? - How to access prefix S3 while auto record with Amazon IVS? 连接websocket实时消费amazon chime API - Connect to websocket to consuming amazon chime API in real time certbot-auto (2021) 适用于 Amazon Linux release 2 (Karoo) 和 nginx - certbot-auto (2021) for Amazon Linux release 2 (Karoo) and nginx AWS Chime 消息传递:如何使用 JavaScript 将新用户添加到通道 SDK - AWS Chime Messaging: How to add a new user to a channel using the JavaScript SDK 是否可以在 AWS 中使用 MariaDB 实现自动缩放 RDS 环境? - Is it possible to implement an auto scaling RDS enviroment with MariaDB in AWS? Amazon Chime SDK 进入房间时会议状态为 MeetingStatus.Left - Amazon Chime SDK Meeting status is MeetingStatus.Left when entering a room AWS - 错误 - 更新 Auto Scaling 组、Amazon CloudFormation、部署配置失败 - AWS - Errors - Updating Auto Scaling group, Amazon CloudFormation, Failed to deploy configuration 如何在访问 Amazon SQS 时自动刷新 AWS STS 临时安全凭证? - how to auto-refresh AWS STS Temporary security credentials when it expires while accessing Amazon SQS? 是否可以设置自动缩放以使其始终复制主服务器的最新版本? - Is it possible to set up auto-scaling so that it always duplicates the most recent version of your main server? 在 DynamoDB 中自动填充时间戳 - Auto populate timestamp in DynamoDB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM