Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-03 15:28:08 +00:00
parent 3dba28fa2b
commit 71e26f92c3
5 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
const { StreamService } = require("m3o/stream");
// SendMessage a message to the stream.
async function sendMessage() {
let streamService = new StreamService(process.env.MICRO_API_TOKEN);
let rsp = await streamService.sendMessage({
channel: "general",
text: "Hey checkout this tweet https://twitter.com/m3oservices/status/1455291054295498752",
});
console.log(rsp);
}
sendMessage();