import "github.com/gTahidi/wapi.go/pkg/messaging"MessagingClient represents a WhatsApp client.
type MessagingClient struct {
Media manager.MediaManager
Message manager.MessageManager
PhoneNumberId string
ApiAccessToken string
BusinessAccountId string
Requester *request_client.RequestClient
}func (client *MessagingClient) Deregister() (RegisterResponse, error)func (client *MessagingClient) GetApiAccessToken() stringfunc (client *MessagingClient) GetBusinessAccountId() stringfunc (client *MessagingClient) GetPhoneNumberId() stringGetPhoneNumberId returns the phone number ID associated with the client.
func (client *MessagingClient) Register(pin string) (RegisterResponse, error)this register function is for one time registration of the phone number to enable the usage with WhatsApp Cloud API
func (client *MessagingClient) SetApiAccessToken(apiAccessToken string)func (client *MessagingClient) SetPhoneNumberId(phoneNumberId string)SetPhoneNumberId sets the phone number ID for the client.
type RegisterResponse struct {
Success bool `json:"success"`
}