5 releases
0.1.4 | Mar 21, 2024 |
---|---|
0.1.3 | Dec 27, 2023 |
0.1.2 | Jul 21, 2023 |
0.1.1 | Jun 15, 2023 |
0.1.0 | Jun 5, 2023 |
#477 in Web programming
199 downloads per month
635KB
13K
SLoC
rust-traq
⚠️ Community Driven ⚠️ This is a client library for the traQ API, written in Rust.
This crate is updated using openapi-generator.
Example
Add this crate using cargo add traq
, then write in main.rs
:
use traq::apis::{channel_api, configuration};
#[tokio::main]
async fn main() {
let conf = configuration::Configuration {
bearer_access_token: env::var("BOT_ACCESS_TOKEN").ok(),
..Default::default()
};
let res = channel_api::get_channels(&conf, Some(true)).await;
println!("{:?}", res);
}
Dependencies
~4–17MB
~235K SLoC