# 说明
获取新统计图表预览图片下载链接
# url
https://apiv2.tapd.tencent.com/stat/export
# 支持格式
JSON/XML(默认JSON格式)
# HTTP请求方式
GET
# 请求数限制
- 仅支持分布图、趋势图、燃烧图类型的图表
- 链接有效期为5分钟
# 请求参数
字段名 | 必选 | 类型及范围 | 说明 | 特殊规则 |
---|---|---|---|---|
workspace_id | 是 | integer | 项目ID | 无 |
stat_id | 是 | integer | 新统计报表ID | 无 |
current_user | 是 | string | 标题 | 无 |
# 调用示例及返回结果
# 获取新统计图表 1000000755000066260 的预览图片下载链接
# curl 使用 Basic Auth 鉴权调用示例
curl -u 'api_user:api_password' 'https://apiv2.tapd.tencent.com/stat/export?workspace_id=755&stat_id=1000000755000066260&user_nick=anyechen'
# curl 使用 OAuth Access Token 鉴权调用示例
curl -H 'Authorization: Bearer ACCESS_TOKEN' 'https://apiv2.tapd.tencent.com/stat/export?workspace_id=755&stat_id=1000000755000066260&user_nick=anyechen'
# 返回结果
{
"status": 1,
"data": {
"download_url": "https://file.tapd.woa.com/api/download_file.php?workspace_id=755&key=TAPD平台_测试机器人内容E_b38908&filetype=png&exportname=TAPD平台_测试机器人内容E_b38908"
},
"info": "success"
}
1
2
3
4
5
6
7
2
3
4
5
6
7