[模块文档]
使用 Python 调用文库 API 上传文档
import base64import jsonimport osimport os.pathimport requests # 请求基础API地址API_BASE = 'https://www.example.com/api'# 请求的API_KEYADMIN_API_KEY='xxxxxx' headers = { 'Content-Type': 'application/json', 'Accept': 'application/json'} def fileToBase64(file_path): with open(file_path, "rb") as file:...