|
免费注册
联系我们

企业科创评估报告 [R011]生成企业报告任务

[R011]生成企业报告任务公开V1
该接口提供对企业创新能力报告创建下载任务
注意:1、企业报告只支持word/pdf 版本下载 2、企业报告与产品端内容保持一致 3、企业报告均实时下载,单篇企业报告下载时间为1~10分钟

基本信息

接口地址: /innovation/company-report/task/create

请求方式: post

返回格式: application/json

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

接口说明文档下载

请求参数

body
InnoCompanyReportRequest
ParameterTypeRequiredDescriptionSample
report_typestringtrue
查询企业返回报告的类型,word/pdf,二者选其一
word
company_namestringfalse
查询企业名称,单个查询
小米科技有限责任公司
credit_codestringfalse
查询企业的统一社会信用代码,单个查询
91110108551385082Q
org_numberstringfalse
查询企业的组织机构代码,单个查询
5513850T82

请求示例

  • Curl
  • NodeJs
  • Python
  • Java
curl -X POST "https://connect.zhihuiya.com/innovation/company-report/task/create?apikey="
-H "Content-Type:application/json"
-H "authorization:Bearer {token}"
-d '{"org_number":"5513850T82","credit_code":"91110108551385082Q","report_type":"word","company_name":"小米科技有限责任公司"}'
const axios = require('axios');
const options = {
    url: "https://connect.zhihuiya.com/innovation/company-report/task/create",
    method: "POST",
    headers: {
        'Content-Type': 'application/json',
        'authorization': 'Bearer {token}',
    },
    params: {
        'apikey': '',
    },
    data: {
        "org_number": "5513850T82",
        "credit_code": "91110108551385082Q",
        "report_type": "word",
        "company_name": "小米科技有限责任公司"
    }
};
axios(options).then(res => {
    console.log(res.data)
}).catch(err => {
    console.log(err)
})
import requests
url = "https://connect.zhihuiya.com/innovation/company-report/task/create"

params = {
    "apikey": ""
}

payload = {
    "org_number": "5513850T82",
    "credit_code": "91110108551385082Q",
    "report_type": "word",
    "company_name": "小米科技有限责任公司"
}

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

response = requests.request("POST", url, params=params, json=payload, headers=headers)

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

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

    Map querys = new HashMap();
    querys.put("apikey", "");
    JSONObject dataBody = (JSONObject)JSON.parse("{\"org_number\":\"5513850T82\",\"credit_code\":\"91110108551385082Q\",\"report_type\":\"word\",\"company_name\":\"小米科技有限责任公司\"}");

    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.doPost(host, path, null, headers, querys, dataBody.toJSONString());
        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
CompanyReportCreateResponse
ParameterTypeRequiredDescriptionSample
job_id
stringfalse
导出任务id
1579434053399036000

返回状态码

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

返回示例

  • json
{
    "data": {
        "job_id": 1579434053399036000
    },
    "status": true,
    "error_code": 0
}
复制
[A110]企业专利转入转出
[R011]生成企业报告任务(无logo版)