@inceptionpad/gotouch
v0.11.0
Published
This is gotouch sdk
Readme
Get started
💾 Installation
npm install @inceptionpad/gotouch🧩 Examples
LarkMessageBot
- Send text message
import {LarkMessageBot} from '@inceptionpad/gotouch';
const lark = new LarkMessageBot({
// baseUrl: 'https://host',
key: "IwXYDRxIIiyqxGbImedcNhWPctxi2n12",
secret: "xxxx"
});
lark.messages.sendText({
channelId: 'uuid',
text: 'a test message'
});- Send message
import {LarkMessageBot} from '@inceptionpad/gotouch';
const lark = new LarkMessageBot({
// baseUrl: 'https://host',
key: "IwXYDRxIIiyqxGbImedcNhWPctxi2n12",
secret: "xxxxx"
});
lark.messages.send({
channelId: 'uuid',
body: {
msg_type: 'text',
content: {text:'test'}
}
});SlackMessageBot
- Send text message
import {SlackMessageBot} from '@inceptionpad/gotouch';
const slack = new SlackMessageBot({
// baseUrl: 'https://host',
key: "IwXYDRxIIiyqxGbImedcNhWPctxi2n12",
secret: "xxxxx"
});
slack.messages.sendText({
channelId: 'uuid',
text: 'a test message',
});- Send message
import {SlackMessageBot} from '@inceptionpad/gotouch';
const slack = new SlackMessageBot({
// baseUrl: 'https://host',
key: "IwXYDRxIIiyqxGbImedcNhWPctxi2n12",
secret: "xxxxx"
});
slack.messages.send({
channelId: 'uuid',
body: {
text: 'a test message',
},
});📄 License
Newbie is MIT licensed.
