WebhookWithSecret

public final class WebhookWithSecret

Class representing a Nylas webhook with secret.

Constructors

Link copied to clipboard
public WebhookWithSecret WebhookWithSecret(@Json(name = "id") String id, @Json(name = "webhook_url") String webhookUrl, @Json(name = "webhook_secret") String webhookSecret, @Json(name = "trigger_types") List<WebhookTriggers> triggerTypes, @Json(name = "status") WebhookStatus status, @Json(name = "status_updated_at") Long statusUpdatedAt, @Json(name = "created_at") Long createdAt, @Json(name = "updated_at") Long updatedAt, @Json(name = "description") String description, @Json(name = "notification_email_addresses") List<String> notificationEmailAddresses)

Properties

Link copied to clipboard
private final Long createdAt

The time the status field was created, represented as a Unix timestamp in seconds

Link copied to clipboard
private final String description

A human-readable description of the webhook destination.

Link copied to clipboard
private final String id

Globally unique object identifier.

Link copied to clipboard

The email addresses that Nylas notifies when a webhook is down for a while.

Link copied to clipboard
private final WebhookStatus status

The status of the new destination.

Link copied to clipboard
private final Long statusUpdatedAt

The time the status field was last updated, represented as a Unix timestamp in seconds.

Link copied to clipboard

Select the event that triggers the webhook.

Link copied to clipboard
private final Long updatedAt

The time the status field was last updated, represented as a Unix timestamp in seconds.

Link copied to clipboard
private final String webhookSecret

A secret value used to encode the X-Nylas-Signature header on webhook requests.

Link copied to clipboard
private final String webhookUrl

The url to send webhooks to.

Functions

Link copied to clipboard
public final Long getCreatedAt()

The time the status field was created, represented as a Unix timestamp in seconds

Link copied to clipboard
public final String getDescription()

A human-readable description of the webhook destination.

Link copied to clipboard
public final String getId()

Globally unique object identifier.

Link copied to clipboard

The email addresses that Nylas notifies when a webhook is down for a while.

Link copied to clipboard
public final WebhookStatus getStatus()

The status of the new destination.

Link copied to clipboard
public final Long getStatusUpdatedAt()

The time the status field was last updated, represented as a Unix timestamp in seconds.

Link copied to clipboard

Select the event that triggers the webhook.

Link copied to clipboard
public final Long getUpdatedAt()

The time the status field was last updated, represented as a Unix timestamp in seconds.

Link copied to clipboard
public final String getWebhookSecret()

A secret value used to encode the X-Nylas-Signature header on webhook requests.

Link copied to clipboard
public final String getWebhookUrl()

The url to send webhooks to.