use super::{TextbeltClient,Value};
use anyhow::Result;
use reqwest::Client;
impl<'a> TextbeltClient<'a> {
pub async fn quota(self) -> Result<Value> {
let url = format!("{}/quota/{}",self.endpoint,self.api_key);
let client = Client::new()
.get(&url)
.send()
.await?;
Ok(client.json().await?)
}
}