open-dingtalk / dingtalk-stream-sdk-python

Python SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk chatbot
MIT License
63 stars 20 forks source link

找不到权限点Card.Streaming.Write #20

Closed Iceberry-qdd closed 1 year ago

Iceberry-qdd commented 1 year ago

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

具体是在调用如下位置时报错: https://github.com/open-dingtalk/dingtalk-stream-sdk-python/blob/2be1f94ae31ab74aea38b60f26dc9b41556b312c/dingtalk_stream/card_replier.py#L281-L290

调用后响应体内容为:

{
    "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

chzealot commented 1 year ago

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