Hi'
I'm trying to get all the request with PHP but i'm stuck at this error:
Failed No operation name specified in request. Invalid request.
My code is:
$data = array('OPERATION_NAME' => 'GET_REQUESTS', 'TECHNICIAN_KEY' => 'XXXXXXXX', 'INPUT_DATA' => array( 'from' => 0,'limit' => 5,
'filterby' => 'All_requests') );
$data_string = json_encode($data);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string))
);
$result = curl_exec($ch);
print_r($result);
Can someone help me to understand my error?
thanks