Trying to make search record api call but giving error "mandatory param missing" even specifying phone in form_params.
public function execute(){
$client = new Client();
$phone = 9XXXXXXXX9;
$token['Authorization']='Zoho-oauthtoken '.'1000.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$deals = $client->request('GET', 'https://www.zohoapis.in/crm/v2/Leads/search', [
'form_params' => [
'phone' => $phone
],
'headers' => [
'Authorization'=>$token
]
]);
dd($deals);
}
What is the issue Here? Thanks in advance.