我需要通过api获取已有文档的内容,请问调用接口api https://qyapi.weixin.qq.com/cgi-bin/wedoc/document/get?access_token=ACCESS_TOKEN 时请求包中的docid如何获取?谢谢
谢谢回答,我试了,遇到了另外一个问题
request_url = "https://qyapi.weixin.qq.com/cgi-bin/wedoc/create_doc?access_token=%s"%s_token
params = {"spaceid": "xxx","fatherid": "xxx",
"doc_type": "4","doc_name": "ProjectMaster","admin_users": ["D003"]
}
我是超级管理员,而且我的应用已经赋予了访问文档和微盘的权限,程序所在的服务器ip也加到可信ip中,系统却返回没有权限,想请教下原因,非常感谢。
{'errcode': 640008, 'errmsg': 'permision deny, hint: [1677075747248530735908680], from ip: xxx , more info at https://open.work.weixin.qq.com/devtool/query?e=640008'}
通过api新建文档后,会返回docid
谢谢回答,我试了,遇到了另外一个问题
request_url = "https://qyapi.weixin.qq.com/cgi-bin/wedoc/create_doc?access_token=%s"%s_token
params = {"spaceid": "xxx","fatherid": "xxx",
"doc_type": "4","doc_name": "ProjectMaster","admin_users": ["D003"]
}
我是超级管理员,而且我的应用已经赋予了访问文档和微盘的权限,程序所在的服务器ip也加到可信ip中,系统却返回没有权限,想请教下原因,非常感谢。
{'errcode': 640008, 'errmsg': 'permision deny, hint: [1677075747248530735908680], from ip: xxx , more info at https://open.work.weixin.qq.com/devtool/query?e=640008'}
通过api新建文档后,会返回docid