#courses #api-bindings #hidden #login #enrolled

waseda-moodle

A simple crate to get a list of the enrolled courses

4 releases

0.2.0 May 17, 2020
0.1.2 May 12, 2020
0.1.1 May 11, 2020
0.1.0 May 11, 2020

#7 in #courses


Used in waseda-moodle-checker

MIT license

14KB
298 lines

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(())
}

Dependencies

~9–15MB
~310K SLoC