未找到或禁用客户端 {CLIENT_ID}', 'error_detail_key': 'E20109', 'error_uri': 'https://dev.xing.com/docs/error_responses'}

Client {CLIENT_ID} not found or disabled', 'error_detail_key': 'E20109', 'error_uri': 'https://dev.xing.com/docs/error_responses'}

我正在尝试为 Xing 创建一个监控服务。当我尝试通过以下请求获取取消访问令牌时:

    consumer = oauth2.Consumer(app_key, app_secret)
    client = oauth2.Client(consumer)

    ...       

    params = {
        "client_id": app_key,
        "client_secret": app_secret,
        "redirect_uri": app_callback_url,
        "code": code,
        "grant_type": "authorization_code",
    }  
    _, content = client.request(access_token_url, "POST", body=urllib.parse.urlencode(params))

我收到以下回复:

{'error': 'invalid_client', 'error_description': 'Client {CLIENT_ID} not found or disabled', 'error_detail_key': 'E20109', 'error_uri': 'https://dev.xing.com/docs/error_responses'}

我该如何解决?

我通过从参数中删除“client_secret”并添加“code_verifier”

来修复它