1.0.0-beta.4 • Published 10 months ago

@indiekit/syndicator-twitter v1.0.0-beta.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@indiekit/syndicator-twitter

Twitter syndicator for Indiekit.

Installation

npm i @indiekit/syndicator-twitter

Requirements

A set of Twitter API keys. You can get these from https://developer.twitter.com.

Usage

Add @indiekit/syndicator-twitter to your list of plug-ins, specifying options as required:

{
  "plugins": ["@indiekit/syndicator-twitter"],
  "@indiekit/syndicator-twitter": {
    "user": "username",
    "checked": true,
    "forced": true
  }
}

Options

OptionTypeDescription
accessTokenstringYour Twitter access token. Required, defaults to process.env.TWITTER_ACCESS_TOKEN.
accessTokenSecretstringYour Twitter access token secret. Required, defaults to process.env.TWITTER_ACCESS_TOKEN_SECRET.
apiKeystringYour Twitter API key. Required, defaults to process.env.TWITTER_API_KEY.
apiKeySecretstringYour Twitter API secret key. Required, defaults to process.env.TWITTER_API_KEY_SECRET.
userstringYour Twitter username (without the @). Required.
checkedbooleanTell a Micropub client whether this syndicator should be enabled by default. Optional, defaults to false.
forcedbooleanIgnore the presence or value of checked and always syndicate. Optional.