8 stable releases

1.5.0-alpha.1 Dec 1, 2020
1.5.0-alpha.0 Nov 16, 2020
1.4.1 Aug 21, 2019
1.3.1 Jul 31, 2019
1.0.1 Apr 25, 2019

#247 in HTTP client

Download history 2/week @ 2024-02-21 2/week @ 2024-02-28 47/week @ 2024-03-27 35/week @ 2024-04-03

82 downloads per month

MIT license

135KB
1.5K SLoC

Domo Pitchfork

crates.io Documentation

Domo Pitchfork is a rust lib crate for interacting with Domo's Public API. This lib is what powers the ripdomo CLI tool.

Pre-release

v1.5.0-alpha.0 is a work in progress migration to the surf http client library. Not all API endpoints have been implemented yet. The data APIs will be prioritized in implementing first.

Example

 use domo_pitchfork::auth::DomoClientAppCredentials;
 use domo_pitchfork::DomoPitchfork;
 use std::error::Error;

 fn main() -> Result<(), Box<dyn Error>> {
    let auth = DomoClientAppCredentials::default()
        .client_id("domo client ID here")
        .client_secret("domo secret here")
        .build();
    let token = auth.get_access_token();
    let domo = DomoPitchfork::with_token(&token);

    let dataset_list = domo.datasets().list(5,0)?;

    dataset_list.iter()
        .map(|ds| println!("Dataset Name: {}", ds.name.as_ref().unwrap()));
    Ok(())
}

Dependencies

~9–13MB
~241K SLoC