Post Statuses

Firstly post statuses, with .post('statuses/update'... bot will post a hello world! status.

bot.post('statuses/update', {
  status: 'hello world!'
}, (err, data, response) => {
  if (err) {
    console.log(err)
  } else {
    console.log(`${data.text} tweeted!`)
  }
})

Previous: Set up the bot.

Next: Work with Users.

results matching ""

    No results matching ""