自学内容网 自学内容网

身份证识别ocr、身份证实名认证接口文档

每一次验证背后,都是对用户数据安全的承诺,对平台信誉的坚守。翔云身份证实名认证API,通过身份证识别接口仅需一键上传身份证图片即可快速识别身份证信息,翔云实名认证接口实时联网查验证件信息的真伪。

​PHP身份证实名认证接口文档代码如下:


<?php
class Sample {

public function run() {
$curl = curl_init();
curl_setopt_array($curl, array(

CURLOPT_URL => 'https://netocr.com/verapi/veriden.do',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('img' => '/9j','key' => 'M***********g','secret' => '3***********6','trueName' => '陈**','idenNo' => '13***************3','typeId' => '3004','format' => 'json'),

));
$response = curl_exec($curl);
        curl_close($curl);
        echo $response;
}
}
$rtn = (new Sample())->run();
print_r($rtn);


原文地址:https://blog.csdn.net/weixin_49544544/article/details/137677367

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!