hubspot-rust-sdk 0.4.4

A HubSpot SKD for Rust. This SDK is designed to be a simple and easy to use interface for the HubSpot API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde_json::Value;
use crate::universals::{client::HubSpotClient, requests::HttpMethod};
use super::types::HubSpotObjectType;

impl HubSpotClient {
    pub async fn update(&self, object_type: HubSpotObjectType, object_id: &str, body: Value) -> Result<(), String> {
        self.request(
            &format!("/crm/v3/objects/{object_type}/{object_id}"),
            &HttpMethod::Patch,
            Some(body)
        ).await?;
        Ok(())
    }
}