Crate datto_api

Crate datto_api 

Source
Expand description

Datto RMM API Client

Auto-generated Rust client for the Datto RMM REST API.

§Example

use datto_api::{DattoClient, Platform, Credentials};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = DattoClient::new(
        Platform::Merlot,
        Credentials {
            api_key: std::env::var("DATTO_API_KEY")?,
            api_secret: std::env::var("DATTO_API_SECRET")?,
        },
    ).await?;

    // Use the client...
    Ok(())
}

Structs§

Credentials
OAuth 2.0 credentials for the Datto RMM API.
DattoClient
Datto RMM API client.
PlatformParseError
Error returned when parsing an invalid platform name.

Enums§

Error
Errors that can occur when using the Datto RMM API client.
Platform
Datto RMM platform identifiers.