domo 0.3.2

The Domo Rust SDK wrapping our APIs. Also includes a CLI application.
Documentation
use std::error::Error;

use serde_json::Value;

impl super::Client {
    /// A webhook dataset can be created via the product.
    /// https://{customer}.domo.com/connectors/com.domo.connector.jsonwh
    ///
    /// Json data can then be sent into the dataset
    pub async fn post_dataset_json(
        &self,
        url: &str,
        obj: Value,
    ) -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
        surf::post(url.to_string())
            .body(surf::Body::from_json(&obj)?)
            .await?;
        Ok(())
    }
}