Click or drag to resize

WebhookClientCreate Method

Posts a webhook for the authenticated user.

Namespace:  SparkSDK
Assembly:  SparkSDK (in SparkSDK.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
C#
public void Create(
	string name,
	string targetUrl,
	string resource,
	string eventType,
	string filter,
	string secret,
	Action<SparkApiEventArgs<Webhook>> completionHandler
)

Parameters

name
Type: SystemString
A user-friendly name for this webhook.
targetUrl
Type: SystemString
The URL that receives POST requests for each event.
resource
Type: SystemString
The resource type for the webhook.
eventType
Type: SystemString
The event type for the webhook.
filter
Type: SystemString
The filter that defines the webhook scope.
secret
Type: SystemString
Secret use to generate payload signiture
completionHandler
Type: SystemActionSparkApiEventArgsWebhook
The completion event handler.
Remarks
Since: 0.1.0
See Also