本文为您提供了Ruby语言版本的提交查询接口对接DEMO示例
require 'net/http'
#接口地址
postUrl = "https://api.ihuyi.com/idcard/entcert/Submit.json"
#定义请求的数据
params = {
"account":"xxxxxxxx", #APIID(用户中心【认证核验】-【企业信息验证】-【产品总览】查看)
"password":"xxxxxxxxx", #1、APIKEY(用户中心【认证核验】-【企业信息验证】-【产品总览】查看)
2、动态密码(生成动态密码方式请看该文档末尾的说明)
"ent_name":"上海************有限公司", #企业名称(ent_name、ent_code、organization_code、reg_no四选一传递)
"ent_code":"913******", #社会信用代码(ent_name、ent_code、organization_code、reg_no四选一传递)
"organization_code":"403925******", #组织机构代码(ent_name、ent_code、organization_code、reg_no四选一传递)
"reg_no":"403925******", #注册号(ent_name、ent_code、organization_code、reg_no四选一传递)
"license_name_list":"1", #证书类型列表(参考附件《证书类型》),多个用英文逗号分隔
"have_history":"1", #是否包含历史资质证书(1-包含;0-不包含;默认包含)。历史资质证书指过期、注销等状态的证
"page_index":"1", #页码,默认第一页
"page_size":"50", #每页条数(默认50条,最大50条)
"time":"1623643787", #Unix时间戳(10位整型数字,当使用动态密码方式时为必填)
}
#发起请求
uri = URI.parse(postUrl)
res = Net::HTTP.post_form(uri, params)
#打印结果
puts res.body
在线咨询
150,000家
企业客户
21年
行业经验
2V1
2对1客户支持