Skip to content

AniLink API Documentation

This is the API documentation for the AniLink class in the AniLinkPy module.

AniLink(auth_token: Optional[str] = None)

This class represents the AniLink API.

ATTRIBUTE DESCRIPTION
auth_token

The authentication token.

TYPE: str

anilist

An instance of the AniList class.

TYPE: AniList

PARAMETER DESCRIPTION
auth_token

The authentication token. Defaults to None.

TYPE: str DEFAULT: None

Source code in AniLinkPy/AniLink.py
def __init__(self, auth_token: Optional[str] = None) -> None:
    """
    The constructor for AniLink class.

    Args:
        auth_token (str, optional): The authentication token. Defaults to None.
    """
    self.auth_token = auth_token
    self.anilist = AniList(self.auth_token)

anilist instance-attribute

anilist = AniList(auth_token)

auth_token instance-attribute

auth_token = auth_token