To create a webhook, the following fields are required by the config:
- urlA required string defining the URL to which the payloads will be delivered.
- content_type An optional string defining the media type used to serialize the payloads. Supported values include json and form. The default is form.
- secret An optional string that’s passed with the HTTP requests as an X-Hub-Signature header. The value of this header is computed as the HMAC hex digest of the body, using the secret as the key.
- insecure_ssl: An optional string that determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include "0" (verification is performed) and "1" (verification is not performed). The default is "0".
API: https://developer.github.com/v3/repos/hooks/#create-a-hook
Constructors
-
New
Repository Initializes a new instance of the NewRepositoryWebHook class. Using default values for ContentType, Secret and InsecureSsl.Web Hook(String, IRead Only Dictionary<String, String>, String)
Methods
Properties
-
Content
Type Gets the content type used to serialize the payload. The default is `form`. -
Insecure
Ssl Gets whether the SSL certificate of the host will be verified when delivering payloads. The default is `false`. - Secret Gets the secret used as the key for the HMAC hex digest of the body passed with the HTTP requests as an X-Hub-Signature header.
- Url Gets the URL of the hook to create.