We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
飞书服务台API要求在HTTP请求头中加入X-Lark-Helpdesk-Authorization字段。
X-Lark-Helpdesk-Authorization
请求中代入服务台token,表示拥有和服务台负责人相同的权限(查看修改服务台实体)。 使用方法,设置在请求Header中: Header Key: X-Lark-Helpdesk-Authorization Header Value: base64(helpdesk_id:helpdesk_token), 通过base64加密将helpdesk_id和helpdesk_token用':'连接而成的字符串。
请求中代入服务台token,表示拥有和服务台负责人相同的权限(查看修改服务台实体)。 使用方法,设置在请求Header中:
Header Key: X-Lark-Helpdesk-Authorization
Header Value: base64(helpdesk_id:helpdesk_token)
目前SDK中的larksuiteoapi.api.Request没有自定义header的选项。若调用服务台API,需要直接修改存在larksuiteoapi.api.Request.session的requests.Session对象的headers,暴露了其实现细节。
larksuiteoapi.api.Request
larksuiteoapi.api.Request.session
requests.Session
headers
建议SDK在后续添加服务台API服务的支持,并优化Request对象的接口。
The text was updated successfully, but these errors were encountered:
谢谢你的反馈,这个能力我们应该会支持的。 支持了,会同步到这。
Sorry, something went wrong.
已经支持了,请看 https://github.com/larksuite/oapi-sdk-python/blob/main/README.zh.md ,代码示例:https://github.com/larksuite/oapi-sdk-python/blob/main/sample/api/helpdesk.py
No branches or pull requests
飞书服务台API要求在HTTP请求头中加入
X-Lark-Helpdesk-Authorization
字段。目前SDK中的
larksuiteoapi.api.Request
没有自定义header的选项。若调用服务台API,需要直接修改存在larksuiteoapi.api.Request.session
的requests.Session
对象的headers
,暴露了其实现细节。建议SDK在后续添加服务台API服务的支持,并优化Request对象的接口。
The text was updated successfully, but these errors were encountered: