예제 #1
0
    def get_boosters(self) -> boosters.Boosters:
        """
        Get the List of Hypixel Coin Boosters and Their Info.

        Returns
        -------
        `boosters.Boosters`
            The Booster class object which depicts the booster data model.
        """
        json = self._fetch(self.url["boosters"])

        return boosters.Boosters(json["boosters"], json)
예제 #2
0
    def get_boosters(self) -> boosters.Boosters:
        """
        Get the List of Hypixel Coin Boosters and Their Info.

        Parameters:
            None

        Returns:
            boosters (Boosters): The Booster Class Object, Which depicts the Booster Data Model.
        """
        json, success = self._fetch("/boosters")

        if not success:
            raise HypixelAPIError(
                "The Key given is invalid, or something else has problem.")

        return boosters.Boosters(json["boosters"])