#[allow(unused_imports)]
pub use super::config::*;
use super::*;
use reqwest::Method;
use std::sync::Arc;
use crate::{
client::Handle,
operations::common::{make_reqwest, parse_response},
};
pub struct GetMeter;
impl GetMeter {
pub async fn orchestrate(
handle: Arc<Handle>,
meter_id: String,
) -> Result<GetMeterResponse, crate::errors::Error> {
let url = format!("/meters/{}", meter_id);
let response = make_reqwest(handle, Method::GET, &url, None).await?;
let text = response.text().await?;
parse_response(&text)
}
}