IActivityClientStartSubscription Method

Starts a subscription to the specified content type. If a subscription to the specified content type already exists, this operation is used to: - update the properties of an active webhook - enable a webhook that was disabled because of excessive failed notifications - re-enable an expired webhook by specifying a later or null expiration date - remove a webhook

Namespace:  Aspose.Email.Clients.Activity
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.6
Syntax
Subscription StartSubscription(
	string contentType,
	Webhook webhook
)

Parameters

contentType
Type: SystemString
Indicates the content type.
webhook
Type: Aspose.Email.Clients.ActivityWebhook
Indicates the configured webhook

Return Value

Type: Subscription
Subscription in current state
See Also