3 releases
0.1.2 | Jun 11, 2019 |
---|---|
0.1.1 | May 25, 2019 |
0.1.0 | May 25, 2019 |
#16 in #tweet
32 downloads per month
115KB
289 lines
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 ! 🎉
lib.rs
:
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);
}
Dependencies
~24–34MB
~683K SLoC