项目作者: avinashadev

项目描述 :
twitter bot to DM on follow
高级语言: JavaScript
项目地址: git://github.com/avinashadev/twitterbot.git
创建时间: 2017-11-09T09:53:34Z
项目社区:https://github.com/avinashadev/twitterbot

开源协议:

下载


Twitter bot to auto send a direct message after following

How to get Twitter API Keys

  1. Login into your twitter account and go to https://apps.twitter.com
  2. Next click on create new app button
    create app
  3. Next enter app name and other details
    app-name
  4. Next we can see our app details
    app-details
  5. Next click on Generate Access tokens to get the app access tokens
    app-token

Usage:

create a Javascript file in config folder name it twitter-keys.js

  • Next add the following snippet to configure Twitter API keys.
  • A sample file is included to get started in /config/twitter-keys.sample.js
  1. module.exports = {
  2. consumer_key: '...',
  3. consumer_secret: '...',
  4. access_token: '...',
  5. access_token_secret: '...',
  6. timeout_ms: 60*1000, // optional HTTP request timeout to apply to all requests.
  7. };

Running

  1. yarn install
  2. yarn run start

License

Javascript Twitter Tools are released under an MIT License.