Add some docs to groups
Norberto Lopes
8 years ago
4 | 4 |
calls, as well as the Real-Time Messaging protocol over websocket, in
|
5 | 5 |
a fully managed way.
|
6 | 6 |
|
7 | |
This fork breaks many things `github.com/nlopes/slack`, and improves
|
8 | |
the RTM a lot.
|
|
7 |
|
|
8 |
Note: If you just updated from master and it broke your implementation, please check [0.0.1](https://github.com/nlopes/slack/releases/tag/v0.0.1)
|
9 | 9 |
|
10 | 10 |
## Installing
|
11 | 11 |
|
38 | 38 |
return response, nil
|
39 | 39 |
}
|
40 | 40 |
|
|
41 |
// ArchiveGroup archives a private group
|
41 | 42 |
func (api *Client) ArchiveGroup(group string) error {
|
42 | 43 |
values := url.Values{
|
43 | 44 |
"token": {api.config.token},
|
|
94 | 95 |
return &response.Group, nil
|
95 | 96 |
}
|
96 | 97 |
|
|
98 |
// CloseGroup closes a private group
|
97 | 99 |
func (api *Client) CloseGroup(group string) (bool, bool, error) {
|
98 | 100 |
values := url.Values{
|
99 | 101 |
"token": {api.config.token},
|
|
106 | 108 |
return response.NoOp, response.AlreadyClosed, nil
|
107 | 109 |
}
|
108 | 110 |
|
|
111 |
// GetGroupHistory fetches all the history for a private group
|
109 | 112 |
func (api *Client) GetGroupHistory(group string, params HistoryParameters) (*History, error) {
|
110 | 113 |
values := url.Values{
|
111 | 114 |
"token": {api.config.token},
|
|
134 | 137 |
return &response.History, nil
|
135 | 138 |
}
|
136 | 139 |
|
|
140 |
// InviteUserToGroup invites a specific user to a private group
|
137 | 141 |
func (api *Client) InviteUserToGroup(group, user string) (*Group, bool, error) {
|
138 | 142 |
values := url.Values{
|
139 | 143 |
"token": {api.config.token},
|