瀏覽此文檔時,我無法弄清楚如何使搜索功能正常工作,并且出現(xiàn)錯誤:$json = '{}';$url = 'https://connect.squareup.com/v2/customers/search';$curl_handle = curl_init($url);$request_headers = array();$request_headers[] = 'Accept: application/json';$request_headers[] = 'Authorization: Bearer '.$token;$request_headers[] = 'Content-Length: '.strlen($json);$request_headers[] = 'Content-Type: application/json';curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, 'POST');curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $request_headers);curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $json);curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);if (substr($_SERVER['HTTP_HOST'],0,4) !== 'www.') {curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);}$result = curl_exec($curl_handle);$json_response = json_decode($result,1);curl_close($curl_handle);我得到以下信息:[category] => INVALID_REQUEST_ERROR[code] => SANDBOX_NOT_SUPPORTED[detail] => This endpoint is not supported in legacy Sandbox.Learn more about the new Sandbox at https://developer.squareup.com/docs/testing/sandbox.我希望能夠通過電子郵件地址進行搜索。我嘗試在頁面上使用 JSON,但仍然收到相同的錯誤消息。請問有什么想法嗎?
Square API Search user by Email - 舊版 Sandbox 不支持端點
拉風(fēng)的咖菲貓
2022-05-27 14:31:55