niconico

Crates.ioniconico
lib.rsniconico
version0.2.0
sourcesrc
created_at2024-10-22 16:02:27.919907
updated_at2024-10-23 08:40:23.134152
descriptionA Rust client library for Niconico authentication
homepagehttps://github.com/toof-jp/niconico
repositoryhttps://github.com/toof-jp/niconico
max_upload_size
id1418874
size43,523
toof (toof-jp)

documentation

https://docs.rs/niconico

README

niconico

Crates.io Version docs.rs

A Rust client library for Niconico authentication

use niconico::{login, Credentials};
use secrecy::ExposeSecret;

#[tokio::main]
async fn main() {
    dotenvy::dotenv().ok();
    let credentials = envy::from_env::<Credentials>().unwrap();

    let user_session = login(credentials).await.unwrap();

    println!("{:?}", user_session.0.expose_secret());
}
Commit count: 12

cargo fmt