고객 관리: 파일 보기 관련 rest api를 만들어 봤습니다. 소스코드가 맞는것인지 알고 싶습니다

https://developers.kakao.com/docs/latest/ko/kakaotalk-channel/rest-api#view-user-file

고객 관리: 파일 보기
관련 rest api를 만들어 봤습니다.

아래와 같이 작성 하는것이 맞는것인지 알고 싶습니다.

<?php
$url = "https://kapi.kakao.com/v1/talkchannel/target_user_file";
 
$headers = array('Authorization: KakaoAK {REST_API_KEY}');
 
$ch=curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSLVERSION, 1);
curl_setopt($ch, CURLOPT_POST, 2);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
$response = curl_exec($ch);
var_dump($response);
?>