身份证实名认证接口是通过身份证号码、身份证姓名以及人像来核验身份证的真伪,翔云身份证实名认证接口,实时联网查验身份证的真伪。
下面为翔云身份证实名认证接口C++语言调用代码:
package com.test;
import okhttp3.;
import org.json.JSONObject;
import java.io.;
/**
- 需要添加依赖
-
com.squareup.okhttp3
-
okhttp
-
4.12.0
*/
class Sample {
static final OkHttpClient HTTP_CLIENT = new OkHttpClient().newBuilder().build();public static void main(String []args) throws IOException{MediaType mediaType = MediaType.parse("text/plain");RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("img","/9j").addFormDataPart("key","M***********g").addFormDataPart("secret","3***********6").addFormDataPart("trueName","陈**").addFormDataPart("idenNo","13***************3").addFormDataPart("typeId","3012").addFormDataPart("format","json").build();Request request = new Request.Builder().url("https://netocr.com/verapi/veridenCardOrd.do").method("POST", body).build();Response response = HTTP_CLIENT.newCall(request).execute();System.out.println(response.body().string());
}
}
翔云(https://www.netocr.com/idenCardOrd.html)身份证实名认证接口,便于集成,安全搞笑,售后服务有保障!