Skip to content

feat: add PhoneService, PhoneAPIKeyService, and WebhookService#5

Open
AchoArnold wants to merge 1 commit intomainfrom
feature/add-phone-webhook-services
Open

feat: add PhoneService, PhoneAPIKeyService, and WebhookService#5
AchoArnold wants to merge 1 commit intomainfrom
feature/add-phone-webhook-services

Conversation

@AchoArnold
Copy link
Copy Markdown
Member

Adds three new services to the SDK for managing phones, phone API keys, and webhooks programmatically.

New Services

  • PhoneService: \Upsert()\ and \UpsertFCMToken()\ for phone management
  • PhoneAPIKeyService: \Store()\ for creating phone API keys
  • WebhookService: \Store()\ for creating webhooks with signing keys

Changes

  • \client.go: Register new services (Phones, PhoneAPIKeys, Webhooks)
  • \phone_service.go\ + \phone.go: Phone models and service
  • \phone_api_key_service.go\ + \phone_api_key.go: PhoneAPIKey models and service
  • \webhook_service.go\ + \webhook.go: Webhook models and service

These are needed by the httpSMS integration test suite to dynamically create phones and webhooks per test.

- PhoneService: Upsert() and UpsertFCMToken() for phone management
- PhoneAPIKeyService: Store() for creating phone API keys
- WebhookService: Store() for creating webhooks with signing keys
- Register new services on Client struct

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant