Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func (*AuthService) Test ¶
func (s *AuthService) Test() (*Auth, error)
type GroupService ¶
type GroupService struct {
// contains filtered or unexported fields
}
func (*GroupService) List ¶
func (g *GroupService) List() (GroupList, error)
type OAuthClient ¶
type OAuthClient struct { ClientId string ClientSecret string TeamId string RedirectUri string // contains filtered or unexported fields }
func NewOAuthClient ¶
func NewOAuthClient(clientID, clientSecret, redirectUri string) *OAuthClient
func (*OAuthClient) RedeemCode ¶
func (cl *OAuthClient) RedeemCode(code string) (*AccessToken, error)
type SlackClient ¶
type SlackClient struct { BaseUrl *url.URL Token string Groups *GroupService Auth *AuthService // contains filtered or unexported fields }
func NewClient ¶
func NewClient(token string) *SlackClient
func (*SlackClient) Do ¶
func (s *SlackClient) Do(req *http.Request, v interface{}) (*Response, error)
func (*SlackClient) NewRequest ¶
func (s *SlackClient) NewRequest(method, path string, body interface{}) (*http.Request, error)
Click to show internal directories.
Click to hide internal directories.