跳到主要内容
版本:5.2.2

调试文件接口

上传调试文件

上传 iOS 和 Android 的调试文件:

  • iOS: 使用 Zip 压缩后的 dSYM 文件
  • Android: 使用 Zip 压缩后包含 mapping.txt、R.txt 和 AndroidManifest.xml 的文件
POST /api/debug_files/upload

参数

信息
名称类型是否必须描述
channel_keyStringtrue应用具体渠道的 Key
fileFiletrueZip 压缩文件后的调试文件
release_versionStringtrue发布版本号,iOS 类型可忽略该参数
build_versionStringtrue内部版本号,iOS 类型可忽略该参数

返回样例

{
"id": 1,
"app_name": "演示应用",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}

下载调试文件

下载 iOS 和 Android 的调试文件

GET /api/debug_files/download

参数

名称类型是否必须描述
channel_keyStringtrue应用具体渠道的 Key
release_versionStringtrue发布版本号,iOS 类型可忽略该参数
build_versionStringfalse内部版本号,iOS 类型可忽略该参数
orderStringfalse获取最新的方式,可选值有:
version = 最新版本 和 upload_date = 最新上传时间
仅限接受 release_version 值为 latest 有效

返回样例

  • 版本存在返回 200 状态码并返回 302 重定向到下载地址
  • 版本不存在返回 404 状态码和错误信息

调试文件列表

获取创建的应用列表,支持分页

GET /api/debug_files

参数

名称类型是否必须描述
channel_keyStringtrue应用具体渠道的 Key
pageIntegerfalse页数
per_pageIntegerfalse每页返回最大数目

返回样例

[
{
"id": 1,
"app_name": "演示应用",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}
]

调试文件详情

查看调试文件的明细,包含上传调试文件的具体解析。

GET /api/debug_files/:id

参数

信息
名称类型是否必须描述
channel_keyStringtrue应用具体渠道的 Key
idStringtrue调试文件 ID

返回样例

{
"id": 1,
"app_name": "演示应用",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}

更新调试文件

更新调试文件

PUT /api/debug_files/:id

参数

信息
名称类型是否必须描述
channel_keyStringtrue应用具体渠道的 Key
idStringtrue调试文件 ID
fileFiletrueZip 压缩文件后的调试文件
release_versionStringtrue发布版本号,iOS 类型可忽略该参数
build_versionStringtrue内部版本号,iOS 类型可忽略该参数

返回样例

{
"id": 1,
"app_name": "演示应用",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}

删除调试文件

删除指定调试文件

DELETE /api/debug_files/:id

参数

信息
名称类型是否必须描述
channel_keyStringtrue应用具体渠道的 Key
idStringtrue调试文件 ID

返回样例

{
"mesage": "OK"
}