@machinat/twitter
v0.6.0
Published
Twitter platform of Machinat.js
Downloads
27
Readme
Twitter Platform
Tweeting and direct messaging on Twitter.
Install
npm install @machinat/core @machinat/http @machinat/twitter
# or with yarn
yarn add @machinat/core @machinat/http @machinat/twitter
Docs
Check the platform document and the package reference.
Setup
import Machinat from '@machinat/core';
import Http from '@machinat/http';
import Twitter from '@machinat/twitter';
const {
} = process.env;
const app = Machinat.createApp({
modules: [
Http.initModule({ /* ... */ }),
],
platforms: [
Twitter.intiModule({
entryPath: '/webhook/twitter',
}),
],
});