Hi
I need to get access to a Deal's contact roles. (I assume the contact roles is a related list of the Deal).
My code so far:
- curl_setopt_array($curl, array(
- CURLOPT_URL => 'https://www.zohoapis.eu/crm/v3/Deals/' . $_POST['dealID'],
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_CUSTOMREQUEST => 'GET',
- CURLOPT_HTTPHEADER => array(
- 'Authorization: Zoho-oauthtoken ' . $access_token,
- 'Content-Type: application/json'
- ),
- ));
- $getDealData = curl_exec($curl);
- $deal_detail = json_decode($getDealData, true);
- $contactID = $deal_detail['data'][0]['Contact_Name']['id'];
- $getDealData = json_decode($getDealData, true);
- echo '<pre>';
- print_r($getDealData);
- echo '</pre>';
Do I need to append the related list to the ID to the CURLOPT_URL maybe?