tmc_testmycode_client/
lib.rs

1#![deny(clippy::print_stdout, clippy::print_stderr, clippy::unwrap_used)]
2
3//! Used to communicate with the TMC server. See the TestMyCodeClient struct for more details.
4//!
5//! ```rust,no_run
6//! use tmc_testmycode_client::TestMyCodeClient;
7//!
8//! let mut client = TestMyCodeClient::new("https://tmc.mooc.fi".parse().unwrap(), "some_client".to_string(), "some_version".to_string()).unwrap();
9//! client.authenticate("email".to_string(), "password".to_string());
10//! let organizations = client.get_organizations();
11//! ```
12//!
13
14mod client;
15mod error;
16pub mod request;
17pub mod response;
18
19pub use self::{
20    client::{ClientUpdateData, TestMyCodeClient, Token, UpdateResult, api_v8},
21    error::{TestMyCodeClientError, TestMyCodeClientResult},
22};
23// these types are part of tmc-testmycode-client's API and thus re-exported
24pub use oauth2;
25pub use tmc_langs_plugins::Language;