1use async_trait::async_trait;
2
3use crate::send::ApiClient;
4
5#[async_trait]
6impl ApiClient for reqwest::Client {
7 type Error = reqwest::Error;
8
9 async fn request(&self, url: String) -> Result<serde_json::Value, Self::Error> {
10 self.get(url).send().await?.json().await
11 }
12}