[英]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 进行。
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.