{"id":24617859,"url":"https://github.com/jacoblincool/moodle-rs","last_synced_at":"2025-05-07T05:44:46.439Z","repository":{"id":195546833,"uuid":"692861544","full_name":"JacobLinCool/moodle-rs","owner":"JacobLinCool","description":"Moodle Webservice Client in Rust.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:49:55.000Z","size":712,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-23T14:05:29.511Z","etag":null,"topics":["moodle"],"latest_commit_sha":null,"homepage":"https://docs.rs/moodle","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobLinCool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-17T19:59:31.000Z","updated_at":"2024-02-13T07:08:22.000Z","dependencies_parsed_at":"2023-12-15T03:42:25.101Z","dependency_job_id":null,"html_url":"https://github.com/JacobLinCool/moodle-rs","commit_stats":null,"previous_names":["jacoblincool/moodle-rs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fmoodle-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fmoodle-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fmoodle-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fmoodle-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobLinCool","download_url":"https://codeload.github.com/JacobLinCool/moodle-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235519909,"owners_count":19003201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["moodle"],"created_at":"2025-01-24T23:41:23.605Z","updated_at":"2025-01-24T23:41:24.162Z","avatar_url":"https://github.com/JacobLinCool.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moodle-rs\n\nMoodle Webservice Client in Rust.\n\n## Features\n\n- Parameters and return values are fully typed.\n  - However, due to the version differences of Moodle, sometimes you can use `call_raw` to get the raw `serde_json::Value` and parse it yourself.\n\n## Example\n\nSee [examples](./examples/).\n\n```rs\nuse moodle::api::core::course::get_enrolled_courses_by_timeline_classification::{call, Params};\nuse moodle::client::{login, MoodleClient};\n\n#[tokio::main]\nasync fn main() {\n    let base_url = std::env::var(\"MOODLE_URL\").unwrap();\n    let username = std::env::var(\"MOODLE_USERNAME\").unwrap();\n    let password = std::env::var(\"MOODLE_PASSWORD\").unwrap();\n\n    let token = login(\u0026base_url, \u0026username, \u0026password).await.unwrap();\n    let mut client = MoodleClient::new(\u0026base_url, \u0026token);\n\n    let result = call(\n        \u0026mut client,\n        \u0026mut Params {\n            classification: Some(\"all\".to_string()),\n            limit: Some(3),\n            offset: Some(0),\n            sort: None,\n            customfieldname: None,\n            customfieldvalue: None,\n            searchvalue: None,\n        },\n    )\n    .await;\n\n    println!(\"{:#?}\", result);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Fmoodle-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblincool%2Fmoodle-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Fmoodle-rs/lists"}