阿里云-内容安全-图片审核-同步检测
<?php
/*阿里云-内容安全-图片审核-同步检测
https://help.aliyun.com/document_detail/53415.html?spm=a2c4g.11186623.2.14.576c540179VAK1#reference-rxv-cw4-w2b
*/
$AccessKeyId='xx';
$AccessKey_Secret='xx';
$api='/green/image/scan';
$url='https://green.cn-shenzhen.aliyuncs.com'.$api;
// $clientInfo='{"userId":"120234234","userNick":"Mike","userType":"others"}';//选填
//请求内容json
$body='{"scenes":["porn"],"tasks":[{"dataId":"test2NInmO$tAON6qYUrtCRgLo-1mwxdi","url":"https://img.alicdn.com/tfs/TB1urBOQFXXXXbMXFXXXXXXXXXX-1442-257.png"}]}';
//配置header头
$arr=[
'Accept'=>'application/json',
'Content-MD5'=>base64_encode(md5($body,1)),
'Content-Type'=>'application/json',
'D