lib/AssociatedContactsService.php
public function create($deal_id, array $associatedContact, array $options = array())
  {
    $attributes = array_intersect_key($associatedContact, array_flip(self::$keysToPersist));

    list($code, $createdAssociatedContact) = $this->httpClient->post("/deals/{$deal_id}/associated_contacts", $attributes, $options);
    return $createdAssociatedContact;
  }
public function create($deal_id, array $associatedContact, array $options = array())
  {
    $attributes = array_intersect_key($associatedContact, array_flip(self::$keysToPersist));

    list($code, $createdAssociatedContact) = $this->httpClient->post("/deals/{$deal_id}/associated_contacts", $attributes, $options);
    return $createdAssociatedContact;
  }
public function create ( $ deal_id , array $ associatedContact , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ associatedContact , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ createdAssociatedContact ) = $ this -> httpClient -> post ( "/deals/{$deal_id}/associated_contacts" , $ attributes , $ options ) ; return $ createdAssociatedContact ; }
Create an associated contact

post '/deals/{deal_id}/associated_contacts'

Creates a deal's associated contact and its role
If the specified deal or contact does not exist, the request will return an error

@param integer $deal_id Unique identifier of a Deal
@param array $associatedContact This array's attributes describe the object to be created.
@param array $options Additional request's options.

@return array The resulting object representing created resource.
Create an associated contact