def METHOD_NAME(self, client_id, refresh_token):
    api_data = self.api_request(
        "oauth/token",
        post={
            "client_id": client_id,
            "refresh_token": refresh_token,
            "grant_type": "refresh_token",
        },
    )
    if "error" in api_data:
        if api_data["error"] == "invalid_request":
            self.log_error(
                self._(
                    "You have to use GetDebridlinkToken.py to authorize pyLoad: "
                    "https://github.com/pyload/pyload/files/9353788/GetDebridlinkToken.zip"
                )
            )
        else:
            self.log_error(
                api_data.get(
                    "error_description", error_description(api_data["error"])
                )
            )
        self.fail_login()
    return api_data["access_token"], api_data["expires_in"]