Skip to content

⚠️ Community Driven ⚠️ Rust client library for the traQ API

License

Notifications You must be signed in to change notification settings

traPtitech/rust-traq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 21, 2024
30d1953 · Mar 21, 2024

History

55 Commits
Jun 5, 2023
Dec 25, 2023
Dec 25, 2023
Dec 25, 2023
Jun 4, 2023
Jun 5, 2023
Mar 21, 2024
Mar 21, 2024
Jun 5, 2023
Jul 20, 2023
Jun 5, 2023

Repository files navigation

rust-traq

Rust Release LICENSE

GitHub release crate

⚠️ 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);
}

About

⚠️ Community Driven ⚠️ Rust client library for the traQ API

Resources

License

Stars

Watchers

Forks

Packages

No packages published