现如今,随着网络安全法等相关法规的实施,线上互联网平台与服务提供商都要求用户进行实名认证,以提高账户安全、防止欺诈行为和保障交易的合法性。翔云实名认证接口,通过核验身份证二要素、三要素、三要素+现场人像的方式助力线上平台快速实现实名制需求。
javascript
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://netocr.com/verapi/veridenOrd.do");
var content = new MultipartFormDataContent();
content.Add(new StringContent("img"), "/9j");
content.Add(new StringContent("M***********g"), "key");
content.Add(new StringContent("3***********6"), "secret");
content.Add(new StringContent("3013"), "typeId");
content.Add(new StringContent("陈**"), "trueName");
content.Add(new StringContent("13***************3"), "idenNo");
content.Add(new StringContent("json"), "format");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());