@inceptionpad/gotouch
v0.9.0
Published
This is gotouch sdk
Downloads
5
Readme
Get started
💾 Installation
npm install @inceptionpad/gotouch
🧩 Examples
LarkMessageBot
- Send text message
import {LarkMessageBot} from '@inceptionpad/gotouch';
const lark = new LarkMessageBot({
apiKey: '6f7d6a7c-0a1a-4a9d-9d0e-7b8b9c0d1e2f',
});
lark.messages.sendText({
channelName: 'Lark channel 01',
text: 'a test message',
});
- Send message
import {LarkMessageBot} from '@inceptionpad/gotouch';
const lark = new LarkMessageBot({
apiKey: '6f7d6a7c-0a1a-4a9d-9d0e-7b8b9c0d1e2f',
});
lark.messages.send({
channelName: 'Lark channel 02',
body: {
msg_type: 'text',
content: 'a test message',
},
});
SlackMessageBot
- Send text message
import {SlackMessageBot} from '@inceptionpad/gotouch';
const slack = new SlackMessageBot({
apiKey: '6f7d6a7c-0a1a-4a9d-9d0e-7b8b9c0d1e2f',
});
slack.messages.sendText({
channelName: 'Slack channel 01',
text: 'a test message',
});
- Send message
import {SlackMessageBot} from '@inceptionpad/gotouch';
const slack = new SlackMessageBot({
apiKey: '6f7d6a7c-0a1a-4a9d-9d0e-7b8b9c0d1e2f',
});
slack.messages.send({
channelName: 'Slack channel 02',
body: {
text: 'a test message',
},
});
👩💻 Develop
Build the lib
npm run build
Link the lib to your project
cd /your/project/root/directory,
npm link /path/to/gotouch-sdk
📄 License
Newbie is MIT licensed.