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 = "callback_url") String callbackUrl, @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") String updatedAt, @Json(name = "description") String description, @Json(name = "notification_email_address") String notificationEmailAddress)

Properties

Link copied to clipboard
private final String callbackUrl

The url to send webhooks to.

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 String 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.

Functions

Link copied to clipboard
public final String getCallbackUrl()

The url to send webhooks to.

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 String 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.