本文就来和大家说说如何使用 人像对比API,来自于 APISpace 接口服务平台。
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "image=&idNum=&name=");
Request request = new Request.Builder()
.url("https://eolink.o.apispace.com/idmatch/idmatch-new")
.method("POST",body)
.addHeader("X-APISpace-Token","")
.addHeader("Authorization-Type","apikey")
.addHeader("Content-Type","")
.build();
Response response = client.newCall(request).execute();