waseda-moodle

Crates.iowaseda-moodle
lib.rswaseda-moodle
version0.2.0
sourcesrc
created_at2020-05-11 00:13:05.918396
updated_at2020-05-17 06:40:36.962061
descriptionA simple crate to get a list of the enrolled courses
homepage
repositoryhttps://github.com/mkihr-ojisan/waseda-moodle
max_upload_size
id239873
size15,995
(mkihr-ojisan)

documentation

README

waseda-moodle

A simple crate to get a list of the enrolled courses.

Usage

use waseda-moodle::*;

#[tokio::main]
async fn main() -> Result<()> {
    //login
    let session = Session::login("login id", "password").await?;

    //get a list of the enrolled courses (except for hidden courses)
    let list = course::fetch_enrolled_courses(&session).await?;
    //get a list of the hidden courses
    let hidden_list = course::fetch_hidden_courses(&session).await?;

    println!("list: {:#?}", list);
    println!("hidden_list: {:#?}", hidden_list);

    Ok(())
}

Commit count: 0

cargo fmt