3 unstable releases
0.2.1 | Oct 9, 2020 |
---|---|
0.2.0 | Oct 9, 2020 |
0.1.1 | Oct 9, 2020 |
0.1.0 |
|
#328 in #api-wrapper
12KB
98 lines
koreanbots-rs
Example
use koreanbots_rs::*;
fn main() {
println!("{}", get_bots(Some("1"))[0]["name"]);
// "원더봇"
println!("{}", get_seacrh_bots("387548561816027138")["web"]);
// "https://wonderbot.xyz"
println!("{}", get_votes_mybot("MY_BOT_ID", "KOREANBOTS_TOKEN"));
// {"message":"jwt malformed","name":"JsonWebTokenError"}
println!("{}", post_bot_servers("KOREANBOTS_TOKEN", 1));
// {"message":"jwt malformed","name":"JsonWebTokenError"}
println!("{}", get_bots_by_category("관리", Some("1")));
println!("{}", get_server_widget("387548561816027138"));
println!("{}", get_vote_widget("387548561816027138"));
println!("{}", get_search_bots("원더봇", Some("1")));
}
License: Apache-2.0
Dependencies
~2–2.8MB
~78K SLoC