|
免费注册
联系我们

企业科创评估报告 [R011]查询导出企业报告

[R011]查询导出企业报告公开V1
该接口提供企业报告下载,根据 生成科创企业报告任务 接口中返回的job_id,查询导出报告
注意:1、企业报告的下载链接有效期为7天,请及时导出,过期作废 2、每次只能查询一个导出任务的下载情况1、The download link of the enterprise report is valid for 7 days. (Please export it in time, and it will be invalid when it expires) 2、You can only query the download status of one export task at a time

基本信息

接口地址: /innovation/company-report/job_id/status

请求方式: get

返回格式: application/json

登录后即可调试接口,点击 登录/注册

接口说明文档下载

请求参数

query
ParameterTypeRequiredDescriptionSample
job_idintegerfalse
任务id
1579434053399035904

请求示例

  • Curl
  • NodeJs
  • Python
  • Java
curl -X GET "https://connect.zhihuiya.com/innovation/company-report/job_id/status?job_id=1579434053399035904&apikey="
-H "Content-Type:application/json"
-H "authorization:Bearer {token}"
const axios = require('axios');
const options = {
    url: "https://connect.zhihuiya.com/innovation/company-report/job_id/status",
    method: "GET",
    headers: {
        'Content-Type': 'application/json',
        'authorization': 'Bearer {token}',
    },
    params: {
        'job_id': '1579434053399035904',
        'apikey': '',
    },
};
axios(options).then(res => {
    console.log(res.data)
}).catch(err => {
    console.log(err)
})
import requests
url = "https://connect.zhihuiya.com/innovation/company-report/job_id/status"

params = {
    "job_id": "1579434053399035904",
    "apikey": ""
}

payload = None

headers = {
    "Content-Type": "application/json",
    "authorization": "Bearer {token}"
}

response = requests.request("GET", url, params=params, data=payload, headers=headers)

print(response.text)
public static void main(String[] args) {
    String host = "https://connect.zhihuiya.com";
    String path = "/innovation/company-report/job_id/status";

    Map headers = new HashMap();
    headers.put("Content-Type", "application/json");
    headers.put("authorization", "Bearer {token}");

    Map querys = new HashMap();
    querys.put("job_id", "1579434053399035904");
    querys.put("apikey", "");
    try {
        /**
        * Important Tips:
        * Please Download HttpUtils From
        * https://github.com/aliyun/api-gateway-demo-sign-java/blob/master/src/main/java/com/aliyun/api/gateway/demo/util/HttpUtils.java
        *
        * Please refer to the corresponding dependence:
        * https://github.com/aliyun/api-gateway-demo-sign-java/blob/master/pom.xml
        */
        HttpResponse response = HttpUtils.doGet(host, path, null, headers, querys);
        System.out.println(EntityUtils.toString(response.getEntity()));
    } catch (Exception e) {
        e.printStackTrace();
    }
}
复制

返回参数

CommonResponse
ParameterTypeRequiredDescriptionSample
data
objectfalse
响应数据
no sample
status
booleantrue
状态
false
error_msg
stringfalse
错误信息
The request parameter format is incorrect!
error_code
integertrue
错误代码
0
CompanyReportExportResponse
ParameterTypeRequiredDescriptionSample
job_id
integerfalse
导出任务id
1579434053399036000
queue_num
integerfalse
队列中job数量
10
job_status
integerfalse
导出状态(0:待导出 1:正在导出 2:导出成功 3:报告生成异常)
1
download_url
stringfalse
文件下载链接(导出状态为成功 时返回)
http://data-country-source-cn-northwest-1.s3.cn-northwest-1.amazonaws.com.cn/zhaoruncheng/test/DP-0003%E9%A3%8E%E9%99%A9%E9%A2%84%E8%AD%A6%E6%95%B0%E6%8D%AE.xlsx?response-content-disposition=attachment%3Bfilename%2A%3DUTF-8%27%27DP-0003%25E9%25A3%258E%25E9%2599%25A9%25E9%25A2%2584%25E8%25AD%25A6%25E6%2595%25B0%25E6%258D%25AE.xlsx&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221026T102022Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Credential=AKIAOCKXBMBTRQNHGHMQ%2F20221026%2Fcn-northwest-1%2Fs3%2Faws4_request&X-Amz-Signature=7d5e45f4214dd0bc53c5b764627268ff4185202b56b1b635440fe53c38b225a7
abnormal_cause
stringfalse
异常原因
由于服务器异常,正在修复中

返回状态码

error_codeDescription
0请求成功
401Unauthorized
403Forbidden
404Not Found
68300013报告不存在
68300004请求参数异常!
68300005查询Api失败!
68300006解析基本存取错误!
68300007存在错误的请求!
68300008服务中断异常,请稍后再试!
68300010文件不符合上传规范!
67200001API整体限流错误!
67200002用户调用请求限流限制错误!
67200003申请token的key和secret不正确或者状态错误!
67200004无权限或该接口的套餐已超过系统设置的上限!
67200005账户余额不足,调用失败!
67200006客户端已过期,调用失败!

返回示例

  • json
{
    "data": {
        "job_id": 1579434053399036000,
        "queue_num": 10,
        "job_status": 1,
        "download_url": "http://data-country-source-cn-northwest-1.s3.cn-northwest-1.amazonaws.com.cn/zhaoruncheng/test/DP-0003%E9%A3%8E%E9%99%A9%E9%A2%84%E8%AD%A6%E6%95%B0%E6%8D%AE.xlsx?response-content-disposition=attachment%3Bfilename%2A%3DUTF-8%27%27DP-0003%25E9%25A3%258E%25E9%2599%25A9%25E9%25A2%2584%25E8%25AD%25A6%25E6%2595%25B0%25E6%258D%25AE.xlsx&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221026T102022Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Credential=AKIAOCKXBMBTRQNHGHMQ%2F20221026%2Fcn-northwest-1%2Fs3%2Faws4_request&X-Amz-Signature=7d5e45f4214dd0bc53c5b764627268ff4185202b56b1b635440fe53c38b225a7",
        "abnormal_cause": "由于服务器异常,正在修复中"
    },
    "status": true,
    "error_code": 0
}
复制
[R011]生成企业报告任务(无logo版)
[R025]企业核心专利