Closed chinobing closed 3 years ago
DEMO:
import requests api = 'http://127.0.0.1:8000/api/modify_doc/?token=XXXXXXXXX' title = u"对文档2作出修改" doc = u'# 这是文档2修改后的内容' data = { "pid":1, #文集ID "did":3, #文档ID "title":title, "doc":doc } req = requests.post(api, data=data) print(req.text)
DEMO: