[][src]Crate rust_twitter_bot_lib

A crate for creating Twitter bots

Example

use rust_twitter_bot_lib::*;

fn main() {
  let example_bot = TwitterBot::new()
    .consumer_key(YOUR_CONSUMER_KEY)
    .consumer_secret_key(YOUR_CONSUMER_SECRET_KEY)
    .access_token(YOUR_ACCESS_TOKEN)
    .secret_access_token(YOUR_SECRET_ACCESS_TOKEN);

  let res = example_bot.tweet("🐦 + 🦀 = 💙 #myfirstTweet").unwrap();

  println!("{:?}", res);
}

Structs

Tweet

Struct provided by TwitterBot methods

TwitterBot

The main struct provided by this crate. See crate documentation for more information.

User

Struct provided by TwitterBot methods