- Product
- Category
- _User
- _Installation
- Evidence
- Rule
- Device
- _Role
- License
- View
- Crond
- ProductTemplet
- Channel
- LogLevel
- Wechat
- Instruct
- App
- METER
- Gb26875
- System
- Log
- Project
- Group
- Data
- Notification
- TOPO
- _Session
- Menu
- Maintenance
- Timescale
- Permission
- Dict
- Decoder
- OPC
- Devicelog
- aliyun
- FFMPEG
- Article
- Basic
- Dlink
- BACnet
- UniApp
文件导出
正式环境
https://prod.iotn2n.com
正式环境
https://prod.iotn2n.com
POST
/iotapi/export_file
Data
请求参数
Body 参数application/json
files
array
文件列表
示例值:
["/shapes/利 欧泵业测试部/6.png","/shapes/利欧泵业测试部/1.png","/shapes/利欧泵业测试部/GBT 3216-2016 回转动力泵 水力性能验收试验 1、2级和3级.pdf"]
示例
{
"files": [
"/shapes/利欧泵业测试部/6.png",
"/shapes/利欧泵业测试部/1.png",
"/shapes/利欧泵业测试部/GBT 3216-2016 回转动力泵 水力性能验收试验 1、2级和3级.pdf"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://prod.iotn2n.com/iotapi/export_file' \
--header 'Content-Type: application/json' \
--data-raw '{
"files": [
"/shapes/利欧泵业测试部/6.png",
"/shapes/利欧泵业测试部/1.png",
"/shapes/利欧泵业测试部/GBT 3216-2016 回转动力泵 水力性能验收试验 1、2级和3级.pdf"
]
}'
返回响应
🟢200Returns success
application/json
Body
file
string
下载地址
示例值:
http://127.0.0.1:1250/shapes/upload/app/1.png
示例
{
"file": "http://127.0.0.1:1250/shapes/upload/app/1.png"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Internal error