Crates.io | niconico |
lib.rs | niconico |
version | 0.2.0 |
source | src |
created_at | 2024-10-22 16:02:27.919907 |
updated_at | 2024-10-23 08:40:23.134152 |
description | A Rust client library for Niconico authentication |
homepage | https://github.com/toof-jp/niconico |
repository | https://github.com/toof-jp/niconico |
max_upload_size | |
id | 1418874 |
size | 43,523 |
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());
}