Class WebhookTarget
Represents the target of a webhook.
public record WebhookTarget : IEquatable<WebhookTarget>
- Inheritance
-
WebhookTarget
- Implements
- Inherited Members
Constructors
WebhookTarget(WebhookTargetUrl, OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>, IReadOnlyDictionary<string, string>)
Represents the target of a webhook.
public WebhookTarget(WebhookTargetUrl Url, OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None> Authorization, IReadOnlyDictionary<string, string> Headers)
Parameters
UrlWebhookTargetUrlThe WebhookTargetUrl.
AuthorizationOneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>The authorization method.
HeadersIReadOnlyDictionary<string, string>The headers.
Properties
Authorization
The authorization method.
public OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None> Authorization { get; init; }
Property Value
- OneOf<BasicAuthorization, BearerTokenAuthorization, OAuthAuthorization, None>
Headers
The headers.
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
Url
The WebhookTargetUrl.
public WebhookTargetUrl Url { get; init; }