I am trying to get the documents list. I use PHP curl request to call the api.
$data_string = urlencode('data={"page_context":{"row_count":10,"start_index":1,"search_columns":{},"sort_column":"created_time","sort_order":"DESC"}}');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Zoho-oauthtoken ' . $authtoken)
);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
The output returned is
{"code":9039,"error_param":"data={\"page_context\":{\"row_count\":10,\"start_index\":1,\"search_columns\":{},\"sort_column\":\"created_time\",\"sort_order\":\"DESC\"}}","message":"Unable to process your request","status":"failure"}
Please let me know how to fix this error.