koreanbots-rs

Crates.iokoreanbots-rs
lib.rskoreanbots-rs
version0.2.1
sourcesrc
created_at2020-10-09 11:33:28.090168
updated_at2020-10-09 14:16:55.391112
descriptionKoreanbots API wrapper library
homepage
repositoryhttps://github.com/AkiaCode/Koreanbots.rs.git
max_upload_size
id297595
size35,139
(AkiaCode)

documentation

https://github.com/AkiaCode/Koreanbots.rs#example

README

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

Commit count: 21

cargo fmt