现如今,无论是乘坐飞机或列车及长途汽车、住宾馆、进网吧、购买管制商品、寄快递、无人机登记、账户及电话号码申请等都需要进行身份核验,其主要作用有利于进行人员监督,打击犯罪,降低欺诈、诽谤等问题的发生概率,有利于进阿里和谐的社会管理生态环境。
下面基于PHP语言开发示例如下:
'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); 标签:示例,rtn,实名制,VERSION,curl,PHP,CURLOPT From: https://www.cnblogs.com/netocr/p/18089478