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
query Notifications(
    $page: Int = 1
    $perPage: Int = 20
    $type: NotificationType
    $type_in: [NotificationType]
    $resetNotificationCount: Boolean
    # HTML rendering options
    $message_as_html: Boolean = false
    $text_as_html: Boolean = false
    $comment_as_html: Boolean = false
) {
    Page(page: $page, perPage: $perPage) {
        pageInfo {
            hasNextPage
        }
        notifications(
            type: $type
            type_in: $type_in
            resetNotificationCount: $resetNotificationCount
        ) {
            ... on AiringNotification {
                id
                type
                animeId
                episode
                contexts
                createdAt
                media {
                    id
                    title {
                        romaji
                        english
                        native
                        userPreferred
                    }
                    coverImage {
                        medium
                    }
                }
            }
            ... on FollowingNotification {
                id
                userId
                type
                context
                createdAt
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ActivityMessageNotification {
                id
                userId
                type
                activityId
                context
                createdAt
                message {
                    id
                    message(asHtml: $message_as_html)
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ActivityMentionNotification {
                id
                userId
                type
                activityId
                context
                createdAt
                activity {
                    __typename
                    ... on TextActivity {
                        id
                        text(asHtml: $text_as_html)
                    }
                    ... on ListActivity {
                        id
                        status
                        progress
                    }
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ActivityReplyNotification {
                id
                userId
                type
                activityId
                context
                createdAt
                activity {
                    __typename
                    ... on TextActivity {
                        id
                        text(asHtml: $text_as_html)
                    }
                    ... on ListActivity {
                        id
                        status
                        progress
                    }
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ActivityReplySubscribedNotification {
                id
                userId
                type
                activityId
                context
                createdAt
                activity {
                    __typename
                    ... on TextActivity {
                        id
                        text(asHtml: $text_as_html)
                    }
                    ... on ListActivity {
                        id
                        status
                        progress
                    }
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ActivityLikeNotification {
                id
                userId
                type
                activityId
                context
                createdAt
                activity {
                    __typename
                    ... on TextActivity {
                        id
                        text(asHtml: $text_as_html)
                    }
                    ... on ListActivity {
                        id
                        status
                        progress
                    }
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ActivityReplyLikeNotification {
                id
                userId
                type
                activityId
                context
                createdAt
                activity {
                    __typename
                    ... on TextActivity {
                        id
                        text(asHtml: $text_as_html)
                    }
                    ... on ListActivity {
                        id
                        status
                        progress
                    }
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ThreadCommentMentionNotification {
                id
                userId
                type
                commentId
                context
                createdAt
                thread {
                    id
                    title
                }
                comment {
                    id
                    comment(asHtml: $comment_as_html)
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ThreadCommentReplyNotification {
                id
                userId
                type
                commentId
                context
                createdAt
                thread {
                    id
                    title
                }
                comment {
                    id
                    comment(asHtml: $comment_as_html)
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ThreadCommentSubscribedNotification {
                id
                userId
                type
                commentId
                context
                createdAt
                thread {
                    id
                    title
                }
                comment {
                    id
                    comment(asHtml: $comment_as_html)
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ThreadCommentLikeNotification {
                id
                userId
                type
                commentId
                context
                createdAt
                thread {
                    id
                    title
                }
                comment {
                    id
                    comment(asHtml: $comment_as_html)
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on ThreadLikeNotification {
                id
                userId
                type
                threadId
                context
                createdAt
                thread {
                    id
                    title
                }
                user {
                    id
                    name
                    avatar {
                        large
                        medium
                    }
                }
            }
            ... on RelatedMediaAdditionNotification {
                id
                type
                mediaId
                context
                createdAt
                media {
                    id
                    title {
                        romaji
                        english
                        native
                        userPreferred
                    }
                    coverImage {
                        medium
                    }
                }
            }
            ... on MediaDataChangeNotification {
                id
                type
                mediaId
                context
                reason
                createdAt
                media {
                    id
                    title {
                        romaji
                        english
                        native
                        userPreferred
                    }
                    coverImage {
                        medium
                    }
                }
            }
            ... on MediaMergeNotification {
                id
                type
                mediaId
                deletedMediaTitles
                context
                reason
                createdAt
                media {
                    id
                    title {
                        romaji
                        english
                        native
                        userPreferred
                    }
                    coverImage {
                        medium
                    }
                }
            }
            ... on MediaDeletionNotification {
                id
                type
                deletedMediaTitle
                context
                reason
                createdAt
            }
        }
    }
}