API Stripe Search : erreur de demande – 400 requêtes incorrectes
<p>
<p>这是我的 PHP 脚本:</p>
<pre class="brush:php;toolbar:false;">$ch = curl_init();
$créé = 'créé<' . strtotime('demain');
$next_page=isset($_REQUEST['next_page'])==true?'page='.$_REQUEST['next_page']:'';
$limite = 20 ;
$curl_url = "https://api.stripe.com/v1/subscriptions/search?".$next_page."&expand[]=total_count&limit=".$limit."&query =statut : 'actif' ET métadonnées['order_id']:'6735'".'AND '.$created;
//"https://api.stripe.com/v1/subscriptions/search?&expand[]=total_count&limit=20&query=status:'active' ET métadonnées['order_id']:'6735' ET créé<1672272000"
curl_setopt($ch, CURLOPT_URL, $curl_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headr = tableau();
$headr[] = 'Version Stripe : 15/11/2022';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headr);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, 'XXXX-secret_key_test-XXX');
$réponse = curl_exec($ch);
curl_close($ch);</pre></p>