Versions in this module Expand all Collapse all v1 v1.0.0 Jul 30, 2024 Changes in this version + const VerihubsBadRequest + const VerihubsConflict + const VerihubsForbidden + const VerihubsInternalError + const VerihubsSuccess + const VerihubsSuccessRequest + const VerihubsTooManyReq + type Client struct + APIEnvType EnvironmentType + AppId string + AppKey string + LogLevel int + func NewClient() Client + func (c *Client) ExecuteRequest(req *http.Request, v interface{}) (httpStatus int, err error) + func (c *Client) NewRequest(method string, fullPath string, body io.Reader) (*http.Request, error) + type EnvironmentType int8 + const Production + const Sandbox + func (e EnvironmentType) CreateMiscallVerifyUrl() string + func (e EnvironmentType) CreateMiscalllUrl() string + func (e EnvironmentType) CreateSmsOtpURL() string + func (e EnvironmentType) CreateSmsOtpVerifyURL() string + func (e EnvironmentType) CreateWhatsappOtpURL() string + func (e EnvironmentType) CreateWhatsappOtpVerifyURL() string + func (e EnvironmentType) String() string + type FlexInt int + func (fi *FlexInt) UnmarshalJSON(b []byte) error + type SmsGateway struct + Client Client + func (gateway *SmsGateway) RequestMiscallOtp(req *VerihubsMisscallOtpRequest) (response *VerihubsMisscallOtpResponse, err error) + func (gateway *SmsGateway) RequestMiscallVerifyOtp(req *VerihubsOtpVerifyRequest) (response *VerihubsOtpVerifyResponse, err error) + func (gateway *SmsGateway) SendSmsOtp(req *VerihubsSmsOtpRequest) (response *VerihubsSmsOtpResponse, err error) + func (gateway *SmsGateway) SendWhatsAppOtp(req *VerihubsWhatsappOtpRequest) (response *VerihubsWhatsappOtpResponse, err error) + func (gateway *SmsGateway) VerifyOtp(req *VerihubsOtpVerifyRequest) (response *VerihubsOtpVerifyResponse, err error) + func (gateway *SmsGateway) VerifySmsOtp(req *VerihubsOtpVerifyRequest) (response *VerihubsOtpVerifyResponse, err error) + type VerihubsMisscallOtpRequest struct + Challenge string + MSISDN string + OTP string + TimeLimit string + type VerihubsMisscallOtpResponse struct + Code int + Data struct{ ... } + ErrorStatus bool + Message string + func (e VerihubsMisscallOtpResponse) Error() string + type VerihubsOtpVerifyRequest struct + Challenge string + MSISDN string + OTP string + type VerihubsOtpVerifyResponse struct + Code int + ErrorStatus bool + Message string + func (e VerihubsOtpVerifyResponse) Error() string + type VerihubsSmsOtpRequest struct + Challenge string + MSISDN string + OTP string + Template string + TimeLimit string + type VerihubsSmsOtpResponse struct + Code int + ErrorStatus bool + MSISDN string + Message string + OTP string + SegmentCount int + SessionId string + TryCount int + func (e VerihubsSmsOtpResponse) Error() string + type VerihubsWhatsappOtpRequest struct + Challenge string + LangCode string + MSISDN string + OTP string + TemplateName string + TimeLimit string + type VerihubsWhatsappOtpResponse struct + Code int + ErrorStatus bool + MSISDN string + Message string + OTP string + SessionId string + TryCount int + func (e VerihubsWhatsappOtpResponse) Error() string Other modules containing this package github.com/grosenia/verihubs-client/v2