0
클릭 바구니의 샌드 박스 API의 준비 메소드를 사용하려고합니다.php에서 clickbank api를 사용하는 방법?
내 코드
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://sandbox.clickbank.com/rest/1.2/sandbox/prepare");
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, true);`enter code here`
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/xml","Authorization:DEV- 9B0D426BC6C70C4618F37D41B7E01877E731:API-D34454EDE1D2D8F45A62588CBF1DDC6B29B2"));
$result = curl_exec($ch);
curl_close($ch);
print $result;
?>
그러나 그것은 나에게 오류를 제공
,536,913 /2.2.22 (FreeBSD는)/1.2.32의 mod_ssl/2.2.22 OpenSSL을/0.9.8q의 콘텐츠 길이를 mod_jk 경우"HTTP/1.1 500 내부 서버 오류 날짜 : 2012년 6월 15일 (금) 11시 30분 18초 GMT 서버 : 아파치 409 연결 : 가까운 내용 유형 : text/html과 내부 서버 Error1 "
다른 방법을 많이 시도했지만 항상 404 또는 403 또는 500 HTTP 오류를 제공합니다.