PHP 클래스 SevenShores\Hubspot\Resources\Companies

상속: extends Resource
파일 보기 프로젝트 열기: fungku/hubspot-php 1 사용 예제들

공개 메소드들

메소드 설명
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