open-dingtalk/dingtalk-stream-sdk-python

找不到权限点Card.Streaming.Write

Iceberry-qdd opened this issue · 1 comments

您好,我目前在尝试使用AIMarkdownCardInstance类下的ai_streaming进行流式更新卡片内容时,程序会报403异常,根据报错信息,是缺少权限点Card.Streaming.Write,但是在官网找不到该权限点。

具体是在调用如下位置时报错:

url = DINGTALK_OPENAPI_ENDPOINT + '/v1.0/card/streaming'
try:
response = requests.put(url,
headers=self.get_request_header(access_token),
json=body)
response.raise_for_status()
except Exception as e:
self.logger.error('AICardReplier.streaming failed, error=%s', e)
return

调用后响应体内容为:

{
    "code": "Forbidden.AccessDenied.AccessTokenPermissionDenied",
    "requestid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "message": "...https://open.dingtalk.com/document/orgapp-server/add-api-permission",
    "accessdenieddetail": {
        "requiredScopes": ["Card.Streaming.Write"]
    }
}

在官网找不到该权限点:
image

抱歉该接口还在内测中,仅在 SDK 代码中透出,文档和权限点均未对外开放,可以先参考其他已经全量发布的能力。