Versions in this module Expand all Collapse all v0 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