获取团队下的知识库

获取知识库下的文档

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/"
            }
        ]
    }
}'

获取文档详情

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/"
            }
        ]
    }
}'