Crates.io | koreanbots-rs |
lib.rs | koreanbots-rs |
version | 0.2.1 |
source | src |
created_at | 2020-10-09 11:33:28.090168 |
updated_at | 2020-10-09 14:16:55.391112 |
description | Koreanbots API wrapper library |
homepage | |
repository | https://github.com/AkiaCode/Koreanbots.rs.git |
max_upload_size | |
id | 297595 |
size | 35,139 |
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