WhatsAppCloudClient class

The main client class for interacting with WhatsApp Cloud API.

This class serves as the entry point for utilizing all WhatsApp Cloud API features including messaging, templates, media sharing, and webhook handling.

Constructors

WhatsAppCloudClient.new({required String phoneNumberId, required String accessToken, Environment environment = Environment.production, WhatsAppApiConfig? config})
Creates a new WhatsApp Cloud API client.

Properties

accessToken String
Meta WhatsApp API Access Token
final
apiClient ApiClient
Internal API client for advanced usage
no setter
config WhatsAppApiConfig
API Configuration object, defaults to standard production settings
final
contactService ContactService
Access to the contact service for managing recipients
no setter
hashCode int
The hash code for this object.
no setterinherited
mediaService MediaService
Access to the media service for handling media files
no setter
messageService MessageService
Access to the message service for sending various message types
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
Access to the template service for working with message templates
no setter
webhookService WebhookService
Access to the webhook service for processing incoming events
no setter

Methods

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