# wps文件预览
# host: https://yach-oapi.zhiyinlou.com 正式环境
# host: https://yach-oapi-test.zhiyinlou.com 测试环境
# 概述
| 名称 | 值 |
|---|---|
| 地址 | /oapi/file/preview |
| 请求方式 | POST |
| 参数 | 见【参数】 |
| 返回值 | 见【返回值】 |
# 参数
| 参数 | 参数类型 | 必须 | 说明 |
|---|---|---|---|
| access_token | String | 是 | 调用接口凭证 |
| url | String | 是 | 要预览文件的url地址(该参数需要进行urlencode),目前支持的文件类型为 word、excel、ppt、pdf、image) |
返回值
{
"code": 200,
"msg": "",
"obj": {
"view_url": "/dev/openApi/12345678/" //文件预览地址
}
}