PHP Class SevenShores\Hubspot\Resources\Webhooks

Inheritance: extends Resource
Mostrar archivo Open project: fungku/hubspot-php

Public Methods

Method Description
createSubscription ( integer $app_id, array $subscription ) : Response Create a new subscription.
deleteSubscription ( integer $app_id, integer $subscription_id ) : Response Delete a subscription.
getSubscription ( integer $app_id ) : Response Get list of subscriptions.
updateSettings ( integer $app_id, array $settings ) : Response Update webhook settings.
updateSubscription ( integer $app_id, integer $subscription_id, array $subscription ) : Response Update a subscription.
viewSettings ( integer $app_id ) : Response Get webhook settings.

Method Details

createSubscription() public method

Create a new subscription.
public createSubscription ( integer $app_id, array $subscription ) : Response
$app_id integer
$subscription array
return SevenShores\Hubspot\Http\Response

deleteSubscription() public method

Delete a subscription.
public deleteSubscription ( integer $app_id, integer $subscription_id ) : Response
$app_id integer
$subscription_id integer
return SevenShores\Hubspot\Http\Response

getSubscription() public method

Get list of subscriptions.
public getSubscription ( integer $app_id ) : Response
$app_id integer
return SevenShores\Hubspot\Http\Response

updateSettings() public method

Update webhook settings.
public updateSettings ( integer $app_id, array $settings ) : Response
$app_id integer
$settings array
return SevenShores\Hubspot\Http\Response

updateSubscription() public method

Update a subscription.
public updateSubscription ( integer $app_id, integer $subscription_id, array $subscription ) : Response
$app_id integer
$subscription_id integer
$subscription array
return SevenShores\Hubspot\Http\Response

viewSettings() public method

Get webhook settings.
public viewSettings ( integer $app_id ) : Response
$app_id integer
return SevenShores\Hubspot\Http\Response