removeContact() public method

Removes a contact from a company
See also: http://developers.hubspot.com/docs/methods/companies/remove_contact_from_company
public removeContact ( integer $contactId, integer $companyId ) : Response
$contactId integer
$companyId integer
return SevenShores\Hubspot\Http\Response
Exemplo n.º 1
0
 /** @test */
 public function removeContact()
 {
     $newCompanyResponse = $this->createCompany();
     $companyId = $newCompanyResponse['companyId'];
     list($contactId) = $this->createAssociatedContact($companyId);
     $response = $this->companies->removeContact($contactId, $companyId);
     $this->assertEquals(204, $response->getStatusCode());
 }