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
use crate::universals::{client::HubSpotClient, requests::HttpMethod};
use super::types::HubSpotObjectType;

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