获取 token: https://www.yuque.com/settings/tokens SDK: https://github.com/yuque/sdk OpenAPI: https://spec.openapis.org/oas/v3.1.0 空间文档 API: https://www.yuque.com/yuque/developer/gyht993a76zg54mv 接口列表: https://www.yuque.com/yuque/developer/openapi SwaggerEditor: https://editor-next.swagger.io/ 点击此处下载最新接口文档:yuque_openapi_20240415[green].yml 获取团队下的知识库 获取知识库下的文档 curl --request GET \ --url https://www.yuque.com/api/v2/repos/songxingguo/read/docs \ --header 'Authorization: Bearer ' \ --header 'X-Auth-Token: Rmk8Aa1466VrLXmiAAPy3SuK9cdXnb9NevVPUy16' \ --header 'content-type: application/json' \ --data '{ "msgtype": "actionCard", "actionCard": { "title": "语雀", "text": "文档", "btnOrientation": "0", "btns": [ { "title": "内容不错", "actionURL": "https://www.dingtalk.com/" }, { "title": "不感兴趣", "actionURL": "https://www.dingtalk.com/" } ] } }' https://hopp.sh/r/2ty219vjGvAN 获取文档详情 curl --request GET \ --url 'https://www.yuque.com/api/v2/repos/songxingguo/read/docs/ft66ve9yz6xncggg?raw=1' \ --header 'Authorization: Bearer ' \ --header 'X-Auth-Token: Rmk8Aa1466VrLXmiAAPy3SuK9cdXnb9NevVPUy16' \ --header 'content-type: application/json' \ --data '{ "msgtype": "actionCard", "actionCard": { "title": "语雀", "text": "文档", "btnOrientation": "0", "btns": [ { "title": "内容不错", "actionURL": "https://www.dingtalk.com/" }, { "title": "不感兴趣", "actionURL": "https://www.dingtalk.com/" } ] } }' https://hopp.sh/r/Mkii1OOsbS6F