Crates.io | domo_pitchfork |
lib.rs | domo_pitchfork |
version | 1.5.0-alpha.1 |
source | src |
created_at | 2019-04-16 22:49:43.130353 |
updated_at | 2020-12-01 00:19:08.452842 |
description | Domo API Sdk |
homepage | |
repository | https://github.com/TrashPandacoot/domo-pitchfork |
max_upload_size | |
id | 128465 |
size | 149,394 |
Domo Pitchfork is a rust lib crate for interacting with Domo's Public API. This lib is what powers the ripdomo CLI tool.
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.
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(())
}