0
我需要爲特定的job_uuid過濾JobMaterial。 由於某些原因,儘管按照文檔應用過濾器,它將返回所有記錄。ServiceM8 api過濾器不工作
這裏是我的代碼:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.servicem8.com/api_1.0/JobMaterial.json?%2524ffilter=job_uuid%2520eq%[job_uuid]%2522",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"authorization: Basic [key]",
"cache-control: no-cache"
),
));
能有人幫。 謝謝
捲曲網址:https://api.servicem8.com/api_1.0/JobMaterial.json?%24ffilter=job_uuid %20當量%20%22 [job_uuid]%22 – user7397778