Versions in this module Expand all Collapse all v0 v0.6.0 Jul 5, 2019 v0.5.0 May 26, 2017 v0.4.0 Jul 27, 2016 Changes in this version + const CardStyleApplication + const CardStyleFile + const CardStyleImage + const CardStyleLink + const CardStyleMedia + const ScopeAdminGroup + const ScopeAdminRoom + const ScopeImportData + const ScopeManageRooms + const ScopeSendMessage + const ScopeSendNotification + const ScopeViewGroup + const ScopeViewMessages + const ScopeViewRoom + var AuthTest = false + var AuthTestResponse = map[string]interface{} + type Activity struct + HTML string + Icon *Icon + type Attribute struct + Label string + Value AttributeValue + type AttributeValue struct + Icon *Icon + Label string + Style string + URL string + type Card struct + Activity *Activity + Attributes []Attribute + Description CardDescription + Format string + ID string + Icon *Icon + Style string + Thumbnail *Icon + Title string + URL string + func (c *Card) AddAttribute(mainLabel, subLabel, url, iconURL string) + type CardDescription struct + Format string + Value string + func (c *CardDescription) UnmarshalJSON(data []byte) error + func (c CardDescription) MarshalJSON() ([]byte, error) type Client + func (c *Client) GenerateToken(credentials ClientCredentials, scopes []string) (*OAuthAccessToken, *http.Response, error) + func (c *Client) SetHTTPClient(httpClient *http.Client) + type ClientCredentials struct + ClientID string + ClientSecret string type Emoticon + URL string + type EmoticonsListOptions struct + Type string + type HistoryOptions struct + Date string + Reverse bool + Timezone string + type Icon struct + URL string + URL2x string + type LatestHistoryOptions struct + MaxResults int + NotBefore string + Timezone string + type ListOptions struct + MaxResults int + StartIndex int + type ListWebhooksOptions struct type Message + ID string type NotificationRequest + Card *Card + From string + type OAuthAccessToken struct + AccessToken string + ExpiresIn uint32 + GroupID uint32 + GroupName string + Scope string + TokenType string + func (t *OAuthAccessToken) CreateClient() *Client type RoomService + func (r *RoomService) Latest(id string, opt *LatestHistoryOptions) (*History, *http.Response, error) + type Thumbnail struct + Height uint + URL string + URL2x string + Width uint type User + PhotoURL string + type UserListOptions struct + IncludeDeleted bool + IncludeGuests bool type Webhook + Links Links v0.3.3 Jan 4, 2016 v0.3.2 Jul 27, 2015 v0.3.1 Jun 16, 2015 Changes in this version + type Client struct + BaseURL *url.URL + Emoticon *EmoticonService + Room *RoomService + User *UserService + func NewClient(authToken string) *Client + func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewFileUploadRequest(method, urlStr string, v interface{}) (*http.Request, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type CreateRoomRequest struct + GuestAccess bool + Name string + OwnerUserID string + Privacy string + Topic string + type CreateWebhookRequest struct + Event string + Name string + Pattern string + URL string + type Emoticon struct + ID int + Links Links + Shortcut string + Url string + type EmoticonService struct + func (e *EmoticonService) List(start, max int, type_ string) (*Emoticons, *http.Response, error) + type Emoticons struct + Items []Emoticon + Links PageLinks + MaxResults int + StartIndex int + type History struct + Items []Message + Links PageLinks + MaxResults int + StartIndex int + type HistoryRequest struct + Date string + MaxResults int + Reverse bool + StartIndex int + Timezone string + type ID struct + ID string + type InviteRequest struct + Reason string + type Links struct + Self string + type ListWebhooksRequest struct + MaxResults int + StartIndex int + type Message struct + Date string + From interface{} + Id string + Mentions []User + Message string + MessageFormat string + Type string + type MessageRequest struct + Message string + MessageFormat string + Notify bool + type NotificationRequest struct + Color string + Message string + MessageFormat string + Notify bool + type PageLinks struct + Next string + Prev string + type Room struct + Created string + GuestAccessURL string + ID int + IsArchived bool + IsGuestAccessible bool + Links RoomLinks + Name string + Owner User + Participants []User + Privacy string + Statistics RoomStatistics + Topic string + XmppJid string + type RoomLinks struct + Members string + Participants string + Webhooks string + type RoomService struct + func (r *RoomService) Create(roomReq *CreateRoomRequest) (*Room, *http.Response, error) + func (r *RoomService) CreateWebhook(id interface{}, roomReq *CreateWebhookRequest) (*Webhook, *http.Response, error) + func (r *RoomService) Delete(id string) (*http.Response, error) + func (r *RoomService) DeleteWebhook(id interface{}, webhookId interface{}) (*http.Response, error) + func (r *RoomService) Get(id string) (*Room, *http.Response, error) + func (r *RoomService) History(id string, roomReq *HistoryRequest) (*History, *http.Response, error) + func (r *RoomService) Invite(room string, user string, reason string) (*http.Response, error) + func (r *RoomService) List() (*Rooms, *http.Response, error) + func (r *RoomService) ListWebhooks(id interface{}, roomReq *ListWebhooksRequest) (*WebhookList, *http.Response, error) + func (r *RoomService) Notification(id string, notifReq *NotificationRequest) (*http.Response, error) + func (r *RoomService) SetTopic(id string, topic string) (*http.Response, error) + func (r *RoomService) ShareFile(id string, shareFileReq *ShareFileRequest) (*http.Response, error) + func (r *RoomService) Update(id string, roomReq *UpdateRoomRequest) (*http.Response, error) + type RoomStatistics struct + Links Links + type Rooms struct + Items []Room + Links PageLinks + MaxResults int + StartIndex int + type SetTopicRequest struct + Topic string + type ShareFileRequest struct + Filename string + Message string + Path string + type UpdateRoomRequest struct + IsArchived bool + IsGuestAccess bool + Name string + Owner ID + Privacy string + Topic string + type User struct + Created string + Email string + ID int + IsDeleted bool + IsGroupAdmin bool + IsGuest bool + LastActive string + Links Links + MentionName string + Name string + PhotoUrl string + Presence UserPresence + Timezone string + Title string + XmppJid string + type UserPresence struct + Idle int + IsOnline bool + Show string + Status string + type UserService struct + func (r *UserService) Message(id string, msgReq *MessageRequest) (*http.Response, error) + func (u *UserService) List(start, max int, guests, deleted bool) ([]User, *http.Response, error) + func (u *UserService) ShareFile(id string, shareFileReq *ShareFileRequest) (*http.Response, error) + func (u *UserService) View(id string) (*User, *http.Response, error) + type Users struct + Items []User + Links Links + MaxResults int + StartIndex int + type Webhook struct + Event string + ID int + Name string + Pattern string + URL string + WebhookLinks WebhookLinks + type WebhookLinks struct + type WebhookList struct + Links PageLinks + MaxResults int + StartIndex int + Webhooks []Webhook