PHP Класс SevenShores\Hubspot\Resources\Companies

Наследование: extends Resource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addContact ( integer $contactId, integer $companyId ) : Response 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 = [] ) : Response Returns all companies
create ( array $properties ) : Response Create a company
delete ( integer $id ) : Response Deletes a company
getAssociatedContactIds ( integer $companyId, array $params = [] ) : Response Returns all of the contact IDs who are associated with the given company
getAssociatedContacts ( integer $companyId, array $params = [] ) : Response Returns an array of the associated contacts for the given company
getByDomain ( string $domain ) : Response Returns an array of companies that have a matching domain
getById ( integer $id ) : Response Returns a company with id $id
getRecentlyCreated ( array $params = [] ) : Response Returns the recently created companies
getRecentlyModified ( array $params = [] ) : Response Returns the recently modified companies
removeContact ( integer $contactId, integer $companyId ) : Response Removes a contact from a company
update ( integer $id, array $properties ) : Response Updates a company

Описание методов

addContact() публичный Метод

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
См. также: http://developers.hubspot.com/docs/methods/companies/add_contact_to_company
public addContact ( integer $contactId, integer $companyId ) : Response
$contactId integer
$companyId integer
Результат SevenShores\Hubspot\Http\Response

all() публичный Метод

Returns all companies
См. также: http://developers.hubspot.com/docs/methods/companies/get-all-companies
public all ( array $params = [] ) : Response
$params array Array of optional parameters ['limit', 'offset', 'properties']
Результат SevenShores\Hubspot\Http\Response

create() публичный Метод

Create a company
См. также: http://developers.hubspot.com/docs/methods/companies/create_company
public create ( array $properties ) : Response
$properties array Array of company properties.
Результат SevenShores\Hubspot\Http\Response

delete() публичный Метод

Deletes a company
См. также: http://developers.hubspot.com/docs/methods/companies/delete_company
public delete ( integer $id ) : Response
$id integer The company id
Результат SevenShores\Hubspot\Http\Response

getAssociatedContactIds() публичный Метод

Returns all of the contact IDs who are associated with the given company
См. также: http://developers.hubspot.com/docs/methods/companies/get_company_contacts_by_id
public getAssociatedContactIds ( integer $companyId, array $params = [] ) : Response
$companyId integer The id of the company.
$params array Array of optional parameters ['count', 'vidOffset']
Результат SevenShores\Hubspot\Http\Response

getAssociatedContacts() публичный Метод

Returns an array of the associated contacts for the given company
См. также: http://developers.hubspot.com/docs/methods/companies/get_company_contacts
public getAssociatedContacts ( integer $companyId, array $params = [] ) : Response
$companyId integer The id of the company.
$params array Array of optional parameters ['count', 'vidOffset']
Результат SevenShores\Hubspot\Http\Response

getByDomain() публичный Метод

Returns an array of companies that have a matching domain
См. также: http://developers.hubspot.com/docs/methods/companies/get_companies_by_domain
public getByDomain ( string $domain ) : Response
$domain string The domain of the company eq. 'example.com'.
Результат SevenShores\Hubspot\Http\Response

getById() публичный Метод

Returns a company with id $id
См. также: http://developers.hubspot.com/docs/methods/companies/get_company
public getById ( integer $id ) : Response
$id integer
Результат SevenShores\Hubspot\Http\Response

getRecentlyCreated() публичный Метод

Returns the recently created companies
См. также: http://developers.hubspot.com/docs/methods/companies/get_companies_created
public getRecentlyCreated ( array $params = [] ) : Response
$params array Array of optional parameters ['count', 'offset']
Результат SevenShores\Hubspot\Http\Response

getRecentlyModified() публичный Метод

Returns the recently modified companies
См. также: http://developers.hubspot.com/docs/methods/companies/get_companies_modified
public getRecentlyModified ( array $params = [] ) : Response
$params array Array of optional parameters ['count', 'offset']
Результат SevenShores\Hubspot\Http\Response

removeContact() публичный Метод

Removes a contact from a company
См. также: http://developers.hubspot.com/docs/methods/companies/remove_contact_from_company
public removeContact ( integer $contactId, integer $companyId ) : Response
$contactId integer
$companyId integer
Результат SevenShores\Hubspot\Http\Response

update() публичный Метод

Updates a company
См. также: http://developers.hubspot.com/docs/methods/companies/update_company
public update ( integer $id, array $properties ) : Response
$id integer The company id.
$properties array The company properties to update.
Результат SevenShores\Hubspot\Http\Response