短信签名快速报备,马上注册寻求客户经理支持!
所有文档
企业信息核验
文档中心 > 企业信息核验 > 企业详情信息核验V2

企业详情信息核验V2

Go对接提交查询接口DEMO示例

本文为您提供了Go语言版本的提交查询接口对接DEMO示例


//测试:go run ./test.go

package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"strings"
)

const strUrl = "https://api.ihuyi.com/idcard/entinfov2/Submit.json"

func main() {

    v := url.Values{}
        v.Set("account", "xxxxxxxx") //APIID(用户中心【认证核验】-【企业信息验证】-【产品总览】查看)
        v.Set("password", "xxxxxxxxx") //1、APIKEY(用户中心【认证核验】-【企业信息验证】-【产品总览】查看)
2、动态密码(生成动态密码方式请看该文档末尾的说明) v.Set("ent_name", "上海xx信息技术有限公司") //企业名称(ent_name、ent_code、organization_code、reg_no四选一传递) v.Set("ent_code", "9121xxxxxxxxxN") //统一社会信用代码(ent_name、ent_code、organization_code、reg_no四选一传递) v.Set("organization_code", "123xxxxx") //组织机构代码(ent_name、ent_code、organization_code、reg_no四选一传递) v.Set("reg_no", "301xxxxxxx [注:企业名称、统一社会信用代码、组织机构代码、企业注册号四选一传递]") //企业注册号(ent_name、ent_code、organization_code、reg_no四选一传递) v.Set("time", "1623643787") //Unix时间戳(10位整型数字,当使用动态密码方式时为必填) body := strings.NewReader(v.Encode()) //把form数据编码 client := &http.Client{} req, _ := http.NewRequest("POST", strUrl, body) req.Header.Set("Content-Type", "application/x-www-form-urlencoded") resp, err := client.Do(req) //发送 if err != nil { fmt.Println(err) } defer resp.Body.Close() //一定要关闭resp.Body res, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(res)) }
在线咨询
服务热线:
4008 808 898

免费体验

提交成功
若短信发送异常,系统将自动给您发送语音验证码,请注意接听电话。

填写验证码后,点击“开通体验账户”自动开通体验账户。

收不到短信验证码?
×