mod common;
use cielo_rs_sdk::{api, CieloApi};
use std::env;
#[tokio::test]
async fn test_cielo_api_request() {
common::setup();
let api_key = env::var("CIELO_API_KEY").expect("CIELO_API_KEY must be set");
let cielo_api = CieloApi::new(&api_key, None, None, None).unwrap();
let response = cielo_api
.get_feed(api::feed::Filters {
limit: Some(2),
..Default::default()
})
.await;
assert!(
response.is_ok(),
"Failed to fetch feed: {:?}",
response.as_ref().err(),
);
assert!(!response.unwrap().is_empty(), "Feed data is empty");
}