Documentation
¶
Index ¶
- type MessagingClient
- func (client *MessagingClient) Deregister() (RegisterResponse, error)
- func (client *MessagingClient) GetApiAccessToken() string
- func (client *MessagingClient) GetBusinessAccountId() string
- func (client *MessagingClient) GetPhoneNumberId() string
- func (client *MessagingClient) Register(pin string) (RegisterResponse, error)
- func (client *MessagingClient) SetApiAccessToken(apiAccessToken string)
- func (client *MessagingClient) SetPhoneNumberId(phoneNumberId string)
- type RegisterResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagingClient ¶
type MessagingClient struct {
Media manager.MediaManager
Message manager.MessageManager
PhoneNumberId string
ApiAccessToken string
BusinessAccountId string
Requester *request_client.RequestClient
}
MessagingClient represents a WhatsApp client.
func (*MessagingClient) Deregister ¶
func (client *MessagingClient) Deregister() (RegisterResponse, error)
func (*MessagingClient) GetApiAccessToken ¶
func (client *MessagingClient) GetApiAccessToken() string
func (*MessagingClient) GetBusinessAccountId ¶
func (client *MessagingClient) GetBusinessAccountId() string
func (*MessagingClient) GetPhoneNumberId ¶
func (client *MessagingClient) GetPhoneNumberId() string
GetPhoneNumberId returns the phone number ID associated with the client.
func (*MessagingClient) Register ¶
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 (*MessagingClient) SetApiAccessToken ¶
func (client *MessagingClient) SetApiAccessToken(apiAccessToken string)
func (*MessagingClient) SetPhoneNumberId ¶
func (client *MessagingClient) SetPhoneNumberId(phoneNumberId string)
SetPhoneNumberId sets the phone number ID for the client.
type RegisterResponse ¶
type RegisterResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.