Documentation ¶
Index ¶
- Constants
- type Response
- type Zenziva
- func (zen *Zenziva) Message(text string) *Zenziva
- func (zen *Zenziva) OTP(status bool) *Zenziva
- func (zen *Zenziva) Send() (res Response, err error)
- func (zen *Zenziva) SimpleSend(to, message string) (res Response, err error)
- func (zen *Zenziva) SimpleSendOTP(to, message string, otp bool) (res Response, err error)
- func (zen *Zenziva) To(phone string) *Zenziva
Constants ¶
View Source
const ( SCHEME = "https" DOMAIN = "zenziva.net" )
static const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { MessageID string `json:"message_id"` To string `json:"to"` Status bool `json:"status"` Message string `json:"message"` }
Response API
type Zenziva ¶
type Zenziva struct { Username string `json:"username"` Password string `json:"password"` Type string `json:"type"` Subdomain string `json:"subdomain"` Payload payload `json:"payload"` }
Zenziva model
func (*Zenziva) SimpleSend ¶
SimpleSend : Used to send message with simpler method
func (*Zenziva) SimpleSendOTP ¶
SimpleSendOTP : Used to send message with simpler method + otp
Click to show internal directories.
Click to hide internal directories.