스트라이프 검색 API: 요청 오류 - 400 잘못된 요청
<p>我收到 400 잘못된 요청입니다.</p>
<p>당신이 좋아하는 PHP 脚本:</p>
<pre class="brush:php;toolbar:false;">$ch = 컬_init();
$created = '만들었습니다<' . strtotime('내일');
$next_page=isset($_REQUEST['next_page'])==true?'page='.$_REQUEST['next_page']:'';
$한도 = 20;
$curl_url = "https://api.stripe.com/v1/subscriptions/search?".$next_page."&expand[]=total_count&limit=".$limit."&query =상태:'활성' AND 메타데이터['order_id']:'6735'".'AND '.$created;
//"https://api.stripe.com/v1/subscriptions/search?&expand[]=total_count&limit=20&query=status:'active' AND 메타데이터['order_id']:'6735' AND 생성된 <1672272000"
컬_setopt($ch, CURLOPT_URL, $curl_url);
컬_setopt($ch, CURLOPT_RETURNTRANSFER, true);
컬_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headr = 배열();
$headr[] = '스트라이프 버전: 2022-11-15';
컬_setopt($ch, CURLOPT_HTTPHEADER, $headr);
컬_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
컬_setopt($ch, CURLOPT_USERPWD, 'XXXX-secret_key_test-XXX');
$응답 = 컬_exec($ch);
컬_닫기($ch);</pre></p>