$APIKEY = ‘앱키’;
$imageUrl = ‘이미지 주소’;
$ch = curl_init();
$headers = Array("Authorization: KakaoAk $APIKEY");
curl_setopt($ch, CURLOPT_URL, "https://dapi.kakao.com/v2/vision/adult/detect" );
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt(CURLOPT_POSTFIELDS,"image_url=$imageUrl");
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$postResult = curl_exec($ch);
header("Content-Type: text/html; charset=UTF-8");
echo "result : $postResult";