WhatsAppCloudServerClient class
Server-compatible WhatsApp Cloud API client.
This client is designed for server/CLI environments and doesn't depend on Flutter UI components. It uses in-memory token storage instead of SharedPreferences.
Constructors
- WhatsAppCloudServerClient.new({required String phoneNumberId, required String accessToken, WhatsAppApiConfig? config})
- Creates a new WhatsApp Cloud API server client.
Properties
- accessToken → String
-
Meta WhatsApp API Access Token
final
- config → WhatsAppApiConfig
-
API Configuration object, defaults to standard production settings
final
- contactService → ContactService
-
Service for managing contacts
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
Logger instance for debugging and monitoring
no setter
- mediaService → MediaService
-
Service for handling media operations
no setter
- messageService → MessageService
-
Service for sending messages
no setter
- phoneNumberId → String
-
WhatsApp Business Account Phone Number ID
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templateService → TemplateService
-
Service for managing message templates
no setter
- webhookService → WebhookService
-
Service for processing webhook notifications
no setter
Methods
-
dispose(
) → void - Disposes of the client and cleans up resources
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited