Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

911 B
Raw Blame
package events

import (
	"github.com/NdoleStudio/httpsms/pkg/entities"
	"github.com/google/uuid"
)

// EventTypeWebhookSendFailed is emitted when we can't send a webhook event
const EventTypeWebhookSendFailed = "webhook.send.failed"

// WebhookSendFailedPayload is the payload of the EventTypeWebhookSendFailed event
type WebhookSendFailedPayload struct {
	WebhookID              uuid.UUID       `json:"webhook_id"`
	WebhookURL             string          `json:"webhook_url"`
	Owner                  string          `json:"owner"`
	UserID                 entities.UserID `json:"user_id"`
	EventID                string          `json:"event_id"`
	EventType              string          `json:"event_type"`
	EventPayload           string          `json:"event_payload"`
	HTTPResponseStatusCode *int            `json:"http_response_status_code"`
	ErrorMessage           string          `json:"error_message"`
}