rust_twitter_bot_lib

Crates.iorust_twitter_bot_lib
lib.rsrust_twitter_bot_lib
version0.1.2
sourcesrc
created_at2019-05-25 16:24:28.186837
updated_at2019-06-11 12:44:00.677843
descriptionA Rust lib for Twitter Bot creation
homepage
repositoryhttps://github.com/lowczarc/rust_twitter_bot_lib
max_upload_size
id136967
size141,204
Lancelot Owczarczak (lowczarc)

documentation

README

Rust Twitter Bot Lib

A Rust lib for creating Twitter Bot

Usage

Add twitter_bot_rust in your project dependencies

[dependencies]
rust_twitter_bot_lib = "0.1.1"

And Tweet 😄

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);
}

Congratulations ! 🎉
Twitter First Bot

Commit count: 21

cargo fmt