SevenShores\Hubspot\Tests\Integration\Resources\CompaniesTest::createAssociatedContact PHP Method

createAssociatedContact() private method

Creates an associated contact for a new company with the HubSpotApi
private createAssociatedContact ( integer $companyId ) : array
$companyId integer The id of the company where to create the new contact.
return array
    private function createAssociatedContact($companyId)
    {
        $newContactResponse = $this->createContact();
        $contactId = $newContactResponse['vid'];
        $response = $this->companies->addContact($contactId, $companyId);
        sleep(1);
        return [$contactId, $response];
    }