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.
- Datto
Client - Datto RMM API client.
- Platform
Parse Error - Error returned when parsing an invalid platform name.