Crate tmc_testmycode_client

Source
Expand description

Used to communicate with the TMC server. See the TestMyCodeClient struct for more details.

use tmc_testmycode_client::TestMyCodeClient;

let mut client = TestMyCodeClient::new("https://tmc.mooc.fi".parse().unwrap(), "some_client".to_string(), "some_version".to_string()).unwrap();
client.authenticate("email".to_string(), "password".to_string());
let organizations = client.get_organizations();

Re-exports§

pub use oauth2;

Modules§

api_v8
Models the API of https://tmc.mooc.fi (https://testmycode.github.io/tmc-server/).
request
Contains types used to make requests to the TMC server.
response
Contains types which model the JSON responses from tmc-server

Structs§

TestMyCodeClient
A struct for interacting with the TestMyCode service, including authentication.
UpdateResult
Updated exercises.

Enums§

ClientUpdateData
The update data type for the progress reporter.
Language
TestMyCodeClientError
The main error type for tmc-testmycode-client.

Type Aliases§

TestMyCodeClientResult
Token
Authentication token.