SevenShores\Hubspot\Resources\Webhooks::getSubscription PHP Method

getSubscription() public method

Get list of subscriptions.
public getSubscription ( integer $app_id ) : Response
$app_id integer
return SevenShores\Hubspot\Http\Response
    function getSubscription($app_id)
    {
        $endpoint = "https://api.hubapi.com/webhooks/v1/{$app_id}/subscriptions";
        return $this->client->request('get', $endpoint);
    }