本文为您提供了Python语言版本的提交查询接口对接DEMO示例
#python3.10.2
import http.client
import urllib.parse
hostname = "api.ihuyi.com"
request_uri = "/idcard/entmark/Submit.json"
#定义请求的数据
values = {
'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四选一传递)
'begin_date':'2025-01-01', #申请开始日(格式yyyy-MM-DD)
'end_date':'2025-01-01', #申请结束日(格式yyyy-MM-DD)
'int_category':'1', #国际分类代码(参考附件商标国际分类,如1、2...)
'application_number':'403925******', #申请/注册号
'page_index':'1', #页码,默认第一页
'page_size':'20', #每页条数(默认20条,最大20条)
'time':'1623643787', #Unix时间戳(10位整型数字,当使用动态密码方式时为必填)
}
#将数据进行编码
params = urllib.parse.urlencode(values).encode(encoding='UTF8')
#定义请求的头部
headers = {
"Content-type": "application/x-www-form-urlencoded",
"Accept": "text/plain"
}
#初始化一个 http 链接
conn = http.client.HTTPConnection(hostname)
conn.request("POST", request_uri, params, headers)
response = conn.getresponse()
#打印状态
print(response.status, response.reason)
#打印结果
print(response.read().decode("utf-8"))
conn.close()
国内专业互联网团队
21年行业经验
7x24小时售后支持
丰富的行业经验
Copyright © 2004-2025 上海思锐信息技术有限公司 All rights reserved. 沪ICP备07035915号-15 电信增值业务许可证:B2-20160082
服务热线:
4008 808 898
服务热线(工作时间):
4008 808 898
业务咨询(非工作时间):
售后咨询(非工作时间):