use super::types::*;
use crate::{error::Result, http::HttpClient};
use std::sync::Arc;
pub struct CompaniesApi {
http: Arc<HttpClient>,
}
impl CompaniesApi {
pub fn new(http: Arc<HttpClient>) -> Self {
Self { http }
}
pub async fn get(&self, company_id: &str) -> Result<GetCompanyResponse> {
self.http.get(&format!("/companies/{company_id}")).await
}
}