PHP Class SevenShores\Hubspot\Resources\Deals

Inheritance: extends Resource
显示文件 Open project: fungku/hubspot-php Class Usage Examples

Public Methods

Method Description
associateWithCompany ( integer $dealId, integer | int[] $companyIds ) : mixed
associateWithContact ( integer $dealId, integer | int[] $contactIds ) : mixed
create ( array $deal ) : mixed
delete ( integer $id ) : mixed
disassociateFromCompany ( integer $dealId, integer | int[] $companyIds ) : mixed
disassociateFromContact ( integer $dealId, integer | int[] $contactIds ) : mixed
getById ( integer $id ) : mixed
getRecentlyCreated ( array $params = [] ) : mixed
getRecentlyModified ( array $params = [] ) : mixed
update ( integer $id, array $deal ) : mixed

Method Details

associateWithCompany() public method

public associateWithCompany ( integer $dealId, integer | int[] $companyIds ) : mixed
$dealId integer
$companyIds integer | int[]
return mixed

associateWithContact() public method

public associateWithContact ( integer $dealId, integer | int[] $contactIds ) : mixed
$dealId integer
$contactIds integer | int[]
return mixed

create() public method

public create ( array $deal ) : mixed
$deal array Array of deal properties.
return mixed

delete() public method

public delete ( integer $id ) : mixed
$id integer
return mixed

disassociateFromCompany() public method

public disassociateFromCompany ( integer $dealId, integer | int[] $companyIds ) : mixed
$dealId integer
$companyIds integer | int[]
return mixed

disassociateFromContact() public method

public disassociateFromContact ( integer $dealId, integer | int[] $contactIds ) : mixed
$dealId integer
$contactIds integer | int[]
return mixed

getById() public method

public getById ( integer $id ) : mixed
$id integer
return mixed

getRecentlyCreated() public method

public getRecentlyCreated ( array $params = [] ) : mixed
$params array Optional parameters ['limit', 'offset']
return mixed

getRecentlyModified() public method

public getRecentlyModified ( array $params = [] ) : mixed
$params array Optional parameters ['limit', 'offset']
return mixed

update() public method

public update ( integer $id, array $deal ) : mixed
$id integer The deal id.
$deal array The deal properties to update.
return mixed