Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct {
Success bool `json:"success"`
Error struct {
Code int `json:"code"`
Errors struct {
Name string `json:"name"`
Reason string `json:"reason"`
} `json:"errors,omitempty"`
}
}
"{\"error\":{\"code\":120,\"errors\":{\"name\":\"payload\",\"reason\":\"required\"}},\"success\":false}"
func NewApiResponseFromHttpResponse ¶
func NewApiResponseFromHttpResponse(resp *http.Response) (*ApiResponse, error)
Creates an ApiResponse from an http.Response object
type ChatMessage ¶
type ChatMessage struct {
Text string `json:"text"`
}
type Client ¶
func NewCustomClient ¶
func (*Client) SendMessage ¶
func (c *Client) SendMessage(msg *ChatMessage, token string) error
type ClientOpts ¶
Click to show internal directories.
Click to hide internal directories.