def METHOD_NAME(self, pyfile):
    file_id = self.info["pattern"]["ID"]
    if self.info["access"] == "private":
        self.fail(self._("This is a private file"))
    json_data = self.api_request(
        "GetUrl",
        file_id=file_id,
        free_download_key=None,
        captcha_challenge=None,
        captcha_response=None,
        auth_token=self.account.info["data"]["token"],
    )
    self.link = json_data["url"]