Crates.io | traq |
lib.rs | traq |
version | 0.1.4 |
source | src |
created_at | 2023-06-05 23:47:50.2909 |
updated_at | 2024-03-21 14:52:16.477051 |
description | ⚠️ Community Driven ⚠️ traQ v3 API |
homepage | |
repository | https://github.com/traPtitech/rust-traq |
max_upload_size | |
id | 883423 |
size | 964,230 |
⚠️ Community Driven ⚠️ This is a client library for the traQ API, written in Rust.
This crate is updated using openapi-generator.
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);
}