Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInitialEvent ¶
GetInitialEvent gets the first event id
func ListenAndAct ¶
func ListenAndAct(actionFunc actFunc)
ListenAndAct listens for incoming text messages and reacts with a function
Types ¶
type AuthResponse ¶
type AuthResponse struct {
AccessToken string `json:"access_token"`
DeviceID string `json:"device_id"`
HomeServer string `json:"home_server"`
UserID string `json:"user_id"`
}
AuthResponse is a struct that holds authentication information
func GetTokenJSON ¶
func GetTokenJSON(server string, username string, passwd string) AuthResponse
GetTokenJSON gets a session json object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.