anilist_moe 0.4.0

Anilist_Moe is a Rust Wrapper for the Anilist API. This library allows you to seamlessly interact with Anilist's Public API with and without authentication. This currently supports Anime, Manga, Users, Staff, Forum, Threads, Recommendations, Reviews and User Activities
Documentation
#[cfg(feature = "media")]
use anilist_moe::{AniListClient, AniListError, endpoints::media::FetchMediaOptions};

#[cfg(feature = "media")]
#[tokio::main]
async fn main() -> Result<(), AniListError> {
    let client = AniListClient::new();

    // Example usage
    let popular_anime = client
        .media()
        .fetch(&FetchMediaOptions {
            sort: Some(vec![anilist_moe::enums::media::MediaSort::PopularityDesc]),
            per_page: Some(5),
            page: Some(1),
            ..Default::default()
        })
        .await?;
    println!("Popular anime: {:#?}", popular_anime);

    Ok(())
}

#[cfg(not(feature = "media"))]
fn main() {
    println!("Please enable the 'media' feature to run the example binary.");
}