Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default credentials extracted from webinterface (yes they are constant and are still sent) DefaultUsername = "sendRUF" DefaultPasswordHash = "38ec3d06496c26288290e5cd129c9cda3be82c4ce327618c573f70fae74c7370" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequest ¶
type APIRequest interface {
// contains filtered or unexported methods
}
type APIResponse ¶
type APIResponse struct { ApiStatusCode int `json:"apiStatusCode"` Data APIResponseData `json:"data"` }
type APIResponseData ¶
type APIResponseData interface {
// contains filtered or unexported methods
}
type ErrStatusCode ¶
type ErrStatusCode struct {
// contains filtered or unexported fields
}
func (*ErrStatusCode) Error ¶
func (s *ErrStatusCode) Error() string
func (*ErrStatusCode) StatusCode ¶
func (s *ErrStatusCode) StatusCode() int
type Login2Request ¶
type Login2Request struct { Username string `json:"username"` PasswordHash string `json:"passwordHash"` }
func (*Login2Request) Send ¶
func (s *Login2Request) Send() (res *Login2Response, err error)
type Login2Response ¶
type RecipientStatus ¶
type SendRufRequest ¶
type SendRufRequest struct { JWT string `json:"-"` Identifier string `json:"identifier"` MessageText string `json:"messageText"` }
func (*SendRufRequest) Send ¶
func (s *SendRufRequest) Send() (res *SendRufResponse, err error)
type SendRufResponse ¶
type SendRufResponse struct { Status string `json:"status"` TrackingID string `json:"trackingId"` Recipients []RecipientStatus `json:"recipients"` }
func SendMessage ¶
func SendMessage(identifier, messageText string) (*SendRufResponse, error)
SendMessage is a simple wrapper function that sends a message to one identifier
Click to show internal directories.
Click to hide internal directories.