Documentation
¶
Index ¶
- type Client
- func (c *Client) SendOTPVerification(req *model.OTPRequest) (*model.VerifyResponse, error)
- func (c *Client) SendSMS(req *model.MessageRequest) (*model.MessageResponse, error)
- func (c *Client) SendWhatsapp(req *model.MessageRequest) (*model.MessageResponse, error)
- func (c *Client) ValidateOTPVerification(req *model.ValidateOTPRequest) (*model.VerifyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { AccountSID string AuthToken string VerifyServiceSID string WhatsappPhoneNumber string SMSPhoneNumber string }
Client represents the Twilio API client
func NewTwilioClient ¶
NewTwilioClient creates a new instance of the Twilio client
func (*Client) SendOTPVerification ¶
func (c *Client) SendOTPVerification(req *model.OTPRequest) (*model.VerifyResponse, error)
SendOTPVerification sends an whatsapp/SMS OTP message using the Twilio API
func (*Client) SendSMS ¶
func (c *Client) SendSMS(req *model.MessageRequest) (*model.MessageResponse, error)
SendSMS sends an SMS message using the Twilio API
func (*Client) SendWhatsapp ¶
func (c *Client) SendWhatsapp(req *model.MessageRequest) (*model.MessageResponse, error)
SendWhatsapp sends an whatsapp message using the Twilio API
func (*Client) ValidateOTPVerification ¶
func (c *Client) ValidateOTPVerification(req *model.ValidateOTPRequest) (*model.VerifyResponse, error)
ValidateOTPVerification validates an whatsapp/SMS OTP message using the Twilio API
Click to show internal directories.
Click to hide internal directories.