0.6.0 • Published 2 years ago

@machinat/twitter v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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',
    }),
  ],
});