Метод | Описание | |
---|---|---|
addContact ( integer $contactId, integer $companyId ) : |
Associates a given contact to a given company If a contact is already associated to a different company, the contact will be added to the new company | |
all ( array $params = [] ) : |
Returns all companies | |
create ( array $properties ) : |
Create a company | |
delete ( integer $id ) : |
Deletes a company | |
getAssociatedContactIds ( integer $companyId, array $params = [] ) : |
Returns all of the contact IDs who are associated with the given company | |
getAssociatedContacts ( integer $companyId, array $params = [] ) : |
Returns an array of the associated contacts for the given company | |
getByDomain ( string $domain ) : |
Returns an array of companies that have a matching domain | |
getById ( integer $id ) : |
Returns a company with id $id | |
getRecentlyCreated ( array $params = [] ) : |
Returns the recently created companies | |
getRecentlyModified ( array $params = [] ) : |
Returns the recently modified companies | |
removeContact ( integer $contactId, integer $companyId ) : |
Removes a contact from a company | |
update ( integer $id, array $properties ) : |
Updates a company |
public addContact ( integer $contactId, integer $companyId ) : |
||
$contactId | integer | |
$companyId | integer | |
Результат |
public getAssociatedContactIds ( integer $companyId, array $params = [] ) : |
||
$companyId | integer | The id of the company. |
$params | array | Array of optional parameters ['count', 'vidOffset'] |
Результат |
public getAssociatedContacts ( integer $companyId, array $params = [] ) : |
||
$companyId | integer | The id of the company. |
$params | array | Array of optional parameters ['count', 'vidOffset'] |
Результат |
public getByDomain ( string $domain ) : |
||
$domain | string | The domain of the company eq. 'example.com'. |
Результат |
public getRecentlyCreated ( array $params = [] ) : |
||
$params | array | Array of optional parameters ['count', 'offset'] |
Результат |
public getRecentlyModified ( array $params = [] ) : |
||
$params | array | Array of optional parameters ['count', 'offset'] |
Результат |
public removeContact ( integer $contactId, integer $companyId ) : |
||
$contactId | integer | |
$companyId | integer | |
Результат |