def METHOD_NAME(self, pyfile):
    api_data = self.api_request(
        "getDownloadLink",
        file=self.info["pattern"]["ID"],
        user=self.account.user,
        premiumKey=self.account.get_login("password"),
    )
    if api_data["type"] == "success":
        pyfile.name = api_data["result"]["name"]
        pyfile.size = int(api_data["result"]["size"])
        self.link = api_data["result"]["url"]
    else:
        self.fail(api_data["message"])