slack: github.com/lestrrat-go/slack Index | Examples | Files | Directories

package slack

import "github.com/lestrrat-go/slack"

Package slack implements a REST client for Slack services.

Index

Examples

Package Files

auth_gen.go bots_gen.go channels_gen.go chat_gen.go client.go dialog_gen.go emoji_gen.go groups_gen.go interface.go logger.go oauth_gen.go options.go reactions_gen.go reminders_gen.go rtm_gen.go scopes_gen.go sequence.go services.go slack.go usergroups_gen.go usergroups_users_gen.go users_gen.go users_profile_gen.go

Constants

const (
    ParseFull = "full"
    ParseNone = "none"
)
const (
    DefaultAPIEndpoint         = "https://slack.com/api/"
    DefaultOAuth2AuthEndpoint  = "https://slack.com/oauth/authorize"
    DefaultOAuth2TokenEndpoint = "https://slack.com/api/oauth.access"
)

DefaultSlackAPIEndpoint contains the prefix used for Slack REST API

const (
    ChannelsHistoryScope   = "channels:history"
    ChannelsReadScope      = "channels:read"
    ChannelsWriteScope     = "channels:write"
    ChatWriteBotScope      = "chat:write:bot"
    ChatWriteUserScope     = "chat:write:user"
    DndReadScope           = "dnd:read"
    DndWriteScope          = "dnd:write"
    EmojiReadScope         = "emoji:read"
    FilesReadScope         = "files:read"
    FilesWriteUserScope    = "files:write:user"
    GroupsHistoryScope     = "groups:history"
    GroupsReadScope        = "groups:read"
    GroupsWriteScope       = "groups:write"
    IdentityBasicScope     = "identity.basic"
    ImHistoryScope         = "im:history"
    ImReadScope            = "im:read"
    ImWriteScope           = "im:write"
    LinksWriteScope        = "links:write"
    MpimHistoryScope       = "mpim:history"
    MpimReadScope          = "mpim:read"
    MpimWriteScope         = "mpim:write"
    PinsReadScope          = "pins:read"
    PinsWriteScope         = "pins:write"
    ReactionsReadScope     = "reactions:read"
    ReactionsWriteScope    = "reactions:write"
    RemindersReadScope     = "reminders:read"
    RemindersWriteScope    = "reminders:write"
    SearchReadScope        = "search:read"
    StarsReadScope         = "stars:read"
    StarsWriteScope        = "stars:write"
    TeamReadScope          = "team:read"
    UsergroupsReadScope    = "usergroups:read"
    UsergroupsWriteScope   = "usergroups:write"
    UsersProfileReadScope  = "users.profile:read"
    UsersProfileWriteScope = "users.profile:write"
    UsersReadScope         = "users:read"
    UsersWriteScope        = "users:write"
)

These constants match the scopes provided by Slack API

Variables

var OAuth2Endpoint = oauth2.Endpoint{
    AuthURL:  DefaultOAuth2AuthEndpoint,
    TokenURL: DefaultOAuth2TokenEndpoint,
}

Oauth2Endpoint contains the Slack OAuth2 endpoint configuration

type AuthRevokeCall Uses

type AuthRevokeCall struct {
    // contains filtered or unexported fields
}

AuthRevokeCall is created by AuthService.Revoke method call

func (*AuthRevokeCall) Do Uses

func (c *AuthRevokeCall) Do(ctx context.Context) error

Do executes the call to access auth.revoke endpoint

func (*AuthRevokeCall) FromValues Uses

func (c *AuthRevokeCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*AuthRevokeCall) Test Uses

func (c *AuthRevokeCall) Test(test bool) *AuthRevokeCall

Test sets the value for optional test parameter

func (*AuthRevokeCall) ValidateArgs Uses

func (c *AuthRevokeCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the AuthRevokeCall object

func (*AuthRevokeCall) Values Uses

func (c *AuthRevokeCall) Values() (url.Values, error)

Values returns the AuthRevokeCall object as url.Values

type AuthService Uses

type AuthService struct {
    // contains filtered or unexported fields
}

AuthService handles Auth related endpoints

func (*AuthService) Revoke Uses

func (s *AuthService) Revoke() *AuthRevokeCall

Revoke creates a AuthRevokeCall object in preparation for accessing the auth.revoke endpoint

func (*AuthService) Test Uses

func (s *AuthService) Test() *AuthTestCall

Test creates a AuthTestCall object in preparation for accessing the auth.test endpoint

type AuthTestCall Uses

type AuthTestCall struct {
    // contains filtered or unexported fields
}

AuthTestCall is created by AuthService.Test method call

func (*AuthTestCall) Do Uses

func (c *AuthTestCall) Do(ctx context.Context) (*objects.AuthTestResponse, error)

Do executes the call to access auth.test endpoint

func (*AuthTestCall) FromValues Uses

func (c *AuthTestCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*AuthTestCall) ValidateArgs Uses

func (c *AuthTestCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the AuthTestCall object

func (*AuthTestCall) Values Uses

func (c *AuthTestCall) Values() (url.Values, error)

Values returns the AuthTestCall object as url.Values

type BotsInfoCall Uses

type BotsInfoCall struct {
    // contains filtered or unexported fields
}

BotsInfoCall is created by BotsService.Info method call

func (*BotsInfoCall) Do Uses

func (c *BotsInfoCall) Do(ctx context.Context) (*objects.Bot, error)

Do executes the call to access bots.info endpoint

func (*BotsInfoCall) FromValues Uses

func (c *BotsInfoCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*BotsInfoCall) ValidateArgs Uses

func (c *BotsInfoCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the BotsInfoCall object

func (*BotsInfoCall) Values Uses

func (c *BotsInfoCall) Values() (url.Values, error)

Values returns the BotsInfoCall object as url.Values

type BotsService Uses

type BotsService struct {
    // contains filtered or unexported fields
}

BotsService handles Bots related endpoints

func (*BotsService) Info Uses

func (s *BotsService) Info(bot string) *BotsInfoCall

Info creates a BotsInfoCall object in preparation for accessing the bots.info endpoint

type ChannelLink struct {
    ID      string
    Channel string
}

func (*ChannelLink) Data Uses

func (l *ChannelLink) Data() string

func (*ChannelLink) String Uses

func (l *ChannelLink) String() string

func (*ChannelLink) Surface Uses

func (l *ChannelLink) Surface() string

type ChannelsArchiveCall Uses

type ChannelsArchiveCall struct {
    // contains filtered or unexported fields
}

ChannelsArchiveCall is created by ChannelsService.Archive method call

func (*ChannelsArchiveCall) Do Uses

func (c *ChannelsArchiveCall) Do(ctx context.Context) error

Do executes the call to access channels.archive endpoint

func (*ChannelsArchiveCall) FromValues Uses

func (c *ChannelsArchiveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsArchiveCall) ValidateArgs Uses

func (c *ChannelsArchiveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsArchiveCall object

func (*ChannelsArchiveCall) Values Uses

func (c *ChannelsArchiveCall) Values() (url.Values, error)

Values returns the ChannelsArchiveCall object as url.Values

type ChannelsCreateCall Uses

type ChannelsCreateCall struct {
    // contains filtered or unexported fields
}

ChannelsCreateCall is created by ChannelsService.Create method call

func (*ChannelsCreateCall) Do Uses

func (c *ChannelsCreateCall) Do(ctx context.Context) error

Do executes the call to access channels.create endpoint

func (*ChannelsCreateCall) FromValues Uses

func (c *ChannelsCreateCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsCreateCall) Validate Uses

func (c *ChannelsCreateCall) Validate(validate bool) *ChannelsCreateCall

Validate sets the value for optional validate parameter

func (*ChannelsCreateCall) ValidateArgs Uses

func (c *ChannelsCreateCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsCreateCall object

func (*ChannelsCreateCall) Values Uses

func (c *ChannelsCreateCall) Values() (url.Values, error)

Values returns the ChannelsCreateCall object as url.Values

type ChannelsHistoryCall Uses

type ChannelsHistoryCall struct {
    // contains filtered or unexported fields
}

ChannelsHistoryCall is created by ChannelsService.History method call

func (*ChannelsHistoryCall) Count Uses

func (c *ChannelsHistoryCall) Count(count int) *ChannelsHistoryCall

Count sets the value for optional count parameter

func (*ChannelsHistoryCall) Do Uses

func (c *ChannelsHistoryCall) Do(ctx context.Context) (*objects.ChannelsHistoryResponse, error)

Do executes the call to access channels.history endpoint

func (*ChannelsHistoryCall) FromValues Uses

func (c *ChannelsHistoryCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsHistoryCall) Inclusive Uses

func (c *ChannelsHistoryCall) Inclusive(inclusive bool) *ChannelsHistoryCall

Inclusive sets the value for optional inclusive parameter

func (*ChannelsHistoryCall) Latest Uses

func (c *ChannelsHistoryCall) Latest(latest string) *ChannelsHistoryCall

Latest sets the value for optional latest parameter

func (*ChannelsHistoryCall) Oldest Uses

func (c *ChannelsHistoryCall) Oldest(oldest string) *ChannelsHistoryCall

Oldest sets the value for optional oldest parameter

func (*ChannelsHistoryCall) Timestamp Uses

func (c *ChannelsHistoryCall) Timestamp(timestamp string) *ChannelsHistoryCall

Timestamp sets the value for optional timestamp parameter

func (*ChannelsHistoryCall) Unreads Uses

func (c *ChannelsHistoryCall) Unreads(unreads bool) *ChannelsHistoryCall

Unreads sets the value for optional unreads parameter

func (*ChannelsHistoryCall) ValidateArgs Uses

func (c *ChannelsHistoryCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsHistoryCall object

func (*ChannelsHistoryCall) Values Uses

func (c *ChannelsHistoryCall) Values() (url.Values, error)

Values returns the ChannelsHistoryCall object as url.Values

type ChannelsInfoCall Uses

type ChannelsInfoCall struct {
    // contains filtered or unexported fields
}

ChannelsInfoCall is created by ChannelsService.Info method call

func (*ChannelsInfoCall) Do Uses

func (c *ChannelsInfoCall) Do(ctx context.Context) (*objects.Channel, error)

Do executes the call to access channels.info endpoint

func (*ChannelsInfoCall) FromValues Uses

func (c *ChannelsInfoCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsInfoCall) IncludeLocale Uses

func (c *ChannelsInfoCall) IncludeLocale(includeLocale bool) *ChannelsInfoCall

IncludeLocale sets the value for optional includeLocale parameter

func (*ChannelsInfoCall) ValidateArgs Uses

func (c *ChannelsInfoCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsInfoCall object

func (*ChannelsInfoCall) Values Uses

func (c *ChannelsInfoCall) Values() (url.Values, error)

Values returns the ChannelsInfoCall object as url.Values

type ChannelsInviteCall Uses

type ChannelsInviteCall struct {
    // contains filtered or unexported fields
}

ChannelsInviteCall is created by ChannelsService.Invite method call

func (*ChannelsInviteCall) Do Uses

func (c *ChannelsInviteCall) Do(ctx context.Context) (*objects.Channel, error)

Do executes the call to access channels.invite endpoint

func (*ChannelsInviteCall) FromValues Uses

func (c *ChannelsInviteCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsInviteCall) ValidateArgs Uses

func (c *ChannelsInviteCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsInviteCall object

func (*ChannelsInviteCall) Values Uses

func (c *ChannelsInviteCall) Values() (url.Values, error)

Values returns the ChannelsInviteCall object as url.Values

type ChannelsJoinCall Uses

type ChannelsJoinCall struct {
    // contains filtered or unexported fields
}

ChannelsJoinCall is created by ChannelsService.Join method call

func (*ChannelsJoinCall) Do Uses

func (c *ChannelsJoinCall) Do(ctx context.Context) (*objects.Channel, error)

Do executes the call to access channels.join endpoint

func (*ChannelsJoinCall) FromValues Uses

func (c *ChannelsJoinCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsJoinCall) Validate Uses

func (c *ChannelsJoinCall) Validate(validate bool) *ChannelsJoinCall

Validate sets the value for optional validate parameter

func (*ChannelsJoinCall) ValidateArgs Uses

func (c *ChannelsJoinCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsJoinCall object

func (*ChannelsJoinCall) Values Uses

func (c *ChannelsJoinCall) Values() (url.Values, error)

Values returns the ChannelsJoinCall object as url.Values

type ChannelsKickCall Uses

type ChannelsKickCall struct {
    // contains filtered or unexported fields
}

ChannelsKickCall is created by ChannelsService.Kick method call

func (*ChannelsKickCall) Do Uses

func (c *ChannelsKickCall) Do(ctx context.Context) error

Do executes the call to access channels.kick endpoint

func (*ChannelsKickCall) FromValues Uses

func (c *ChannelsKickCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsKickCall) ValidateArgs Uses

func (c *ChannelsKickCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsKickCall object

func (*ChannelsKickCall) Values Uses

func (c *ChannelsKickCall) Values() (url.Values, error)

Values returns the ChannelsKickCall object as url.Values

type ChannelsLeaveCall Uses

type ChannelsLeaveCall struct {
    // contains filtered or unexported fields
}

ChannelsLeaveCall is created by ChannelsService.Leave method call

func (*ChannelsLeaveCall) Do Uses

func (c *ChannelsLeaveCall) Do(ctx context.Context) error

Do executes the call to access channels.leave endpoint

func (*ChannelsLeaveCall) FromValues Uses

func (c *ChannelsLeaveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsLeaveCall) ValidateArgs Uses

func (c *ChannelsLeaveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsLeaveCall object

func (*ChannelsLeaveCall) Values Uses

func (c *ChannelsLeaveCall) Values() (url.Values, error)

Values returns the ChannelsLeaveCall object as url.Values

type ChannelsListCall Uses

type ChannelsListCall struct {
    // contains filtered or unexported fields
}

ChannelsListCall is created by ChannelsService.List method call

func (*ChannelsListCall) Do Uses

func (c *ChannelsListCall) Do(ctx context.Context) (objects.ChannelList, error)

Do executes the call to access channels.list endpoint

func (*ChannelsListCall) ExcludeArchive Uses

func (c *ChannelsListCall) ExcludeArchive(excludeArchive bool) *ChannelsListCall

ExcludeArchive sets the value for optional excludeArchive parameter

func (*ChannelsListCall) ExcludeMembers Uses

func (c *ChannelsListCall) ExcludeMembers(excludeMembers bool) *ChannelsListCall

ExcludeMembers sets the value for optional excludeMembers parameter

func (*ChannelsListCall) FromValues Uses

func (c *ChannelsListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsListCall) Limit Uses

func (c *ChannelsListCall) Limit(limit int) *ChannelsListCall

Limit sets the value for optional limit parameter

func (*ChannelsListCall) ValidateArgs Uses

func (c *ChannelsListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsListCall object

func (*ChannelsListCall) Values Uses

func (c *ChannelsListCall) Values() (url.Values, error)

Values returns the ChannelsListCall object as url.Values

type ChannelsMarkCall Uses

type ChannelsMarkCall struct {
    // contains filtered or unexported fields
}

ChannelsMarkCall is created by ChannelsService.Mark method call

func (*ChannelsMarkCall) Do Uses

func (c *ChannelsMarkCall) Do(ctx context.Context) error

Do executes the call to access channels.mark endpoint

func (*ChannelsMarkCall) FromValues Uses

func (c *ChannelsMarkCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsMarkCall) Timestamp Uses

func (c *ChannelsMarkCall) Timestamp(timestamp string) *ChannelsMarkCall

Timestamp sets the value for optional timestamp parameter

func (*ChannelsMarkCall) ValidateArgs Uses

func (c *ChannelsMarkCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsMarkCall object

func (*ChannelsMarkCall) Values Uses

func (c *ChannelsMarkCall) Values() (url.Values, error)

Values returns the ChannelsMarkCall object as url.Values

type ChannelsRenameCall Uses

type ChannelsRenameCall struct {
    // contains filtered or unexported fields
}

ChannelsRenameCall is created by ChannelsService.Rename method call

func (*ChannelsRenameCall) Do Uses

func (c *ChannelsRenameCall) Do(ctx context.Context) (*objects.Channel, error)

Do executes the call to access channels.rename endpoint

func (*ChannelsRenameCall) FromValues Uses

func (c *ChannelsRenameCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsRenameCall) Validate Uses

func (c *ChannelsRenameCall) Validate(validate bool) *ChannelsRenameCall

Validate sets the value for optional validate parameter

func (*ChannelsRenameCall) ValidateArgs Uses

func (c *ChannelsRenameCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsRenameCall object

func (*ChannelsRenameCall) Values Uses

func (c *ChannelsRenameCall) Values() (url.Values, error)

Values returns the ChannelsRenameCall object as url.Values

type ChannelsRepliesCall Uses

type ChannelsRepliesCall struct {
    // contains filtered or unexported fields
}

ChannelsRepliesCall is created by ChannelsService.Replies method call

func (*ChannelsRepliesCall) Do Uses

func (c *ChannelsRepliesCall) Do(ctx context.Context) (objects.MessageList, error)

Do executes the call to access channels.replies endpoint

func (*ChannelsRepliesCall) FromValues Uses

func (c *ChannelsRepliesCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsRepliesCall) ValidateArgs Uses

func (c *ChannelsRepliesCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsRepliesCall object

func (*ChannelsRepliesCall) Values Uses

func (c *ChannelsRepliesCall) Values() (url.Values, error)

Values returns the ChannelsRepliesCall object as url.Values

type ChannelsService Uses

type ChannelsService struct {
    // contains filtered or unexported fields
}

ChannelsService handles Channels related endpoints

func (*ChannelsService) Archive Uses

func (s *ChannelsService) Archive(channel string) *ChannelsArchiveCall

Archive creates a ChannelsArchiveCall object in preparation for accessing the channels.archive endpoint

func (*ChannelsService) Create Uses

func (s *ChannelsService) Create(name string) *ChannelsCreateCall

Create creates a ChannelsCreateCall object in preparation for accessing the channels.create endpoint

func (*ChannelsService) History Uses

func (s *ChannelsService) History(channel string) *ChannelsHistoryCall

History creates a ChannelsHistoryCall object in preparation for accessing the channels.history endpoint

func (*ChannelsService) Info Uses

func (s *ChannelsService) Info(channel string) *ChannelsInfoCall

Info creates a ChannelsInfoCall object in preparation for accessing the channels.info endpoint

func (*ChannelsService) Invite Uses

func (s *ChannelsService) Invite(channel string, user string) *ChannelsInviteCall

Invite creates a ChannelsInviteCall object in preparation for accessing the channels.invite endpoint

func (*ChannelsService) Join Uses

func (s *ChannelsService) Join(name string) *ChannelsJoinCall

Join creates a ChannelsJoinCall object in preparation for accessing the channels.join endpoint

func (*ChannelsService) Kick Uses

func (s *ChannelsService) Kick(channel string, user string) *ChannelsKickCall

Kick creates a ChannelsKickCall object in preparation for accessing the channels.kick endpoint

func (*ChannelsService) Leave Uses

func (s *ChannelsService) Leave(channel string) *ChannelsLeaveCall

Leave creates a ChannelsLeaveCall object in preparation for accessing the channels.leave endpoint

func (*ChannelsService) List Uses

func (s *ChannelsService) List() *ChannelsListCall

List creates a ChannelsListCall object in preparation for accessing the channels.list endpoint

func (*ChannelsService) Mark Uses

func (s *ChannelsService) Mark(channel string) *ChannelsMarkCall

Mark creates a ChannelsMarkCall object in preparation for accessing the channels.mark endpoint

func (*ChannelsService) Rename Uses

func (s *ChannelsService) Rename(channel string, name string) *ChannelsRenameCall

Rename creates a ChannelsRenameCall object in preparation for accessing the channels.rename endpoint

func (*ChannelsService) Replies Uses

func (s *ChannelsService) Replies(channel string, threadTimestamp string) *ChannelsRepliesCall

Replies creates a ChannelsRepliesCall object in preparation for accessing the channels.replies endpoint

func (*ChannelsService) SetPurpose Uses

func (s *ChannelsService) SetPurpose(channel string, purpose string) *ChannelsSetPurposeCall

SetPurpose creates a ChannelsSetPurposeCall object in preparation for accessing the channels.setPurpose endpoint

func (*ChannelsService) SetTopic Uses

func (s *ChannelsService) SetTopic(channel string, topic string) *ChannelsSetTopicCall

SetTopic creates a ChannelsSetTopicCall object in preparation for accessing the channels.setTopic endpoint

func (*ChannelsService) Unarchive Uses

func (s *ChannelsService) Unarchive(channel string) *ChannelsUnarchiveCall

Unarchive creates a ChannelsUnarchiveCall object in preparation for accessing the channels.unarchive endpoint

type ChannelsSetPurposeCall Uses

type ChannelsSetPurposeCall struct {
    // contains filtered or unexported fields
}

ChannelsSetPurposeCall is created by ChannelsService.SetPurpose method call

func (*ChannelsSetPurposeCall) Do Uses

func (c *ChannelsSetPurposeCall) Do(ctx context.Context) (string, error)

Do executes the call to access channels.setPurpose endpoint

func (*ChannelsSetPurposeCall) FromValues Uses

func (c *ChannelsSetPurposeCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsSetPurposeCall) ValidateArgs Uses

func (c *ChannelsSetPurposeCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsSetPurposeCall object

func (*ChannelsSetPurposeCall) Values Uses

func (c *ChannelsSetPurposeCall) Values() (url.Values, error)

Values returns the ChannelsSetPurposeCall object as url.Values

type ChannelsSetTopicCall Uses

type ChannelsSetTopicCall struct {
    // contains filtered or unexported fields
}

ChannelsSetTopicCall is created by ChannelsService.SetTopic method call

func (*ChannelsSetTopicCall) Do Uses

func (c *ChannelsSetTopicCall) Do(ctx context.Context) (string, error)

Do executes the call to access channels.setTopic endpoint

func (*ChannelsSetTopicCall) FromValues Uses

func (c *ChannelsSetTopicCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsSetTopicCall) ValidateArgs Uses

func (c *ChannelsSetTopicCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsSetTopicCall object

func (*ChannelsSetTopicCall) Values Uses

func (c *ChannelsSetTopicCall) Values() (url.Values, error)

Values returns the ChannelsSetTopicCall object as url.Values

type ChannelsUnarchiveCall Uses

type ChannelsUnarchiveCall struct {
    // contains filtered or unexported fields
}

ChannelsUnarchiveCall is created by ChannelsService.Unarchive method call

func (*ChannelsUnarchiveCall) Do Uses

func (c *ChannelsUnarchiveCall) Do(ctx context.Context) error

Do executes the call to access channels.unarchive endpoint

func (*ChannelsUnarchiveCall) FromValues Uses

func (c *ChannelsUnarchiveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChannelsUnarchiveCall) ValidateArgs Uses

func (c *ChannelsUnarchiveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChannelsUnarchiveCall object

func (*ChannelsUnarchiveCall) Values Uses

func (c *ChannelsUnarchiveCall) Values() (url.Values, error)

Values returns the ChannelsUnarchiveCall object as url.Values

type ChatDeleteCall Uses

type ChatDeleteCall struct {
    // contains filtered or unexported fields
}

ChatDeleteCall is created by ChatService.Delete method call

func (*ChatDeleteCall) AsUser Uses

func (c *ChatDeleteCall) AsUser(asUser bool) *ChatDeleteCall

AsUser sets the value for optional asUser parameter

func (*ChatDeleteCall) Do Uses

func (c *ChatDeleteCall) Do(ctx context.Context) (*objects.ChatResponse, error)

Do executes the call to access chat.delete endpoint

func (*ChatDeleteCall) FromValues Uses

func (c *ChatDeleteCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatDeleteCall) Timestamp Uses

func (c *ChatDeleteCall) Timestamp(timestamp string) *ChatDeleteCall

Timestamp sets the value for optional timestamp parameter

func (*ChatDeleteCall) ValidateArgs Uses

func (c *ChatDeleteCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatDeleteCall object

func (*ChatDeleteCall) Values Uses

func (c *ChatDeleteCall) Values() (url.Values, error)

Values returns the ChatDeleteCall object as url.Values

type ChatGetPermalinkCall Uses

type ChatGetPermalinkCall struct {
    // contains filtered or unexported fields
}

ChatGetPermalinkCall is created by ChatService.GetPermalink method call

func (*ChatGetPermalinkCall) Do Uses

func (c *ChatGetPermalinkCall) Do(ctx context.Context) (*objects.PermalinkResponse, error)

Do executes the call to access chat.getPermalink endpoint

func (*ChatGetPermalinkCall) FromValues Uses

func (c *ChatGetPermalinkCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatGetPermalinkCall) ValidateArgs Uses

func (c *ChatGetPermalinkCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatGetPermalinkCall object

func (*ChatGetPermalinkCall) Values Uses

func (c *ChatGetPermalinkCall) Values() (url.Values, error)

Values returns the ChatGetPermalinkCall object as url.Values

type ChatMeMessageCall Uses

type ChatMeMessageCall struct {
    // contains filtered or unexported fields
}

ChatMeMessageCall is created by ChatService.MeMessage method call

func (*ChatMeMessageCall) Do Uses

func (c *ChatMeMessageCall) Do(ctx context.Context) (*objects.ChatResponse, error)

Do executes the call to access chat.meMessage endpoint

func (*ChatMeMessageCall) FromValues Uses

func (c *ChatMeMessageCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatMeMessageCall) Text Uses

func (c *ChatMeMessageCall) Text(text string) *ChatMeMessageCall

Text sets the value for optional text parameter

func (*ChatMeMessageCall) ValidateArgs Uses

func (c *ChatMeMessageCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatMeMessageCall object

func (*ChatMeMessageCall) Values Uses

func (c *ChatMeMessageCall) Values() (url.Values, error)

Values returns the ChatMeMessageCall object as url.Values

type ChatPostEphemeralCall Uses

type ChatPostEphemeralCall struct {
    // contains filtered or unexported fields
}

ChatPostEphemeralCall is created by ChatService.PostEphemeral method call

func (*ChatPostEphemeralCall) AsUser Uses

func (c *ChatPostEphemeralCall) AsUser(asUser bool) *ChatPostEphemeralCall

AsUser sets the value for optional asUser parameter

func (*ChatPostEphemeralCall) Attachment Uses

func (c *ChatPostEphemeralCall) Attachment(attachment *objects.Attachment) *ChatPostEphemeralCall

Attachment appends to the attachments list

func (*ChatPostEphemeralCall) Do Uses

func (c *ChatPostEphemeralCall) Do(ctx context.Context) (*objects.EphemeralResponse, error)

Do executes the call to access chat.postEphemeral endpoint

func (*ChatPostEphemeralCall) FromValues Uses

func (c *ChatPostEphemeralCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatPostEphemeralCall) LinkNames Uses

func (c *ChatPostEphemeralCall) LinkNames(linkNames bool) *ChatPostEphemeralCall

LinkNames sets the value for optional linkNames parameter

func (*ChatPostEphemeralCall) Parse Uses

func (c *ChatPostEphemeralCall) Parse(parse string) *ChatPostEphemeralCall

Parse sets the value for optional parse parameter

func (*ChatPostEphemeralCall) SetAttachments Uses

func (c *ChatPostEphemeralCall) SetAttachments(attachments objects.AttachmentList) *ChatPostEphemeralCall

SetAttachments sets the attachments list

func (*ChatPostEphemeralCall) ValidateArgs Uses

func (c *ChatPostEphemeralCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatPostEphemeralCall object

func (*ChatPostEphemeralCall) Values Uses

func (c *ChatPostEphemeralCall) Values() (url.Values, error)

Values returns the ChatPostEphemeralCall object as url.Values

type ChatPostMessageCall Uses

type ChatPostMessageCall struct {
    // contains filtered or unexported fields
}

ChatPostMessageCall is created by ChatService.PostMessage method call

func (*ChatPostMessageCall) AsUser Uses

func (c *ChatPostMessageCall) AsUser(asUser bool) *ChatPostMessageCall

AsUser sets the value for optional asUser parameter

func (*ChatPostMessageCall) Attachment Uses

func (c *ChatPostMessageCall) Attachment(attachment *objects.Attachment) *ChatPostMessageCall

Attachment appends to the attachments list

func (*ChatPostMessageCall) Do Uses

func (c *ChatPostMessageCall) Do(ctx context.Context) (*objects.ChatResponse, error)

Do executes the call to access chat.postMessage endpoint

func (*ChatPostMessageCall) EscapeText Uses

func (c *ChatPostMessageCall) EscapeText(escapeText bool) *ChatPostMessageCall

EscapeText sets the value for optional escapeText parameter

func (*ChatPostMessageCall) FromValues Uses

func (c *ChatPostMessageCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatPostMessageCall) IconEmoji Uses

func (c *ChatPostMessageCall) IconEmoji(iconEmoji string) *ChatPostMessageCall

IconEmoji sets the value for optional iconEmoji parameter

func (*ChatPostMessageCall) IconURL Uses

func (c *ChatPostMessageCall) IconURL(iconURL string) *ChatPostMessageCall

IconURL sets the value for optional iconURL parameter

func (*ChatPostMessageCall) LinkNames Uses

func (c *ChatPostMessageCall) LinkNames(linkNames bool) *ChatPostMessageCall

LinkNames sets the value for optional linkNames parameter

func (*ChatPostMessageCall) Markdown Uses

func (c *ChatPostMessageCall) Markdown(markdown bool) *ChatPostMessageCall

Markdown sets the value for optional markdown parameter

func (*ChatPostMessageCall) Parse Uses

func (c *ChatPostMessageCall) Parse(parse string) *ChatPostMessageCall

Parse sets the value for optional parse parameter

func (*ChatPostMessageCall) SetAttachments Uses

func (c *ChatPostMessageCall) SetAttachments(attachments objects.AttachmentList) *ChatPostMessageCall

SetAttachments sets the attachments list

func (*ChatPostMessageCall) Text Uses

func (c *ChatPostMessageCall) Text(text string) *ChatPostMessageCall

Text sets the value for optional text parameter

func (c *ChatPostMessageCall) UnfurlLinks(unfurlLinks bool) *ChatPostMessageCall

UnfurlLinks sets the value for optional unfurlLinks parameter

func (*ChatPostMessageCall) UnfurlMedia Uses

func (c *ChatPostMessageCall) UnfurlMedia(unfurlMedia bool) *ChatPostMessageCall

UnfurlMedia sets the value for optional unfurlMedia parameter

func (*ChatPostMessageCall) Username Uses

func (c *ChatPostMessageCall) Username(username string) *ChatPostMessageCall

Username sets the value for optional username parameter

func (*ChatPostMessageCall) ValidateArgs Uses

func (c *ChatPostMessageCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatPostMessageCall object

func (*ChatPostMessageCall) Values Uses

func (c *ChatPostMessageCall) Values() (url.Values, error)

Values returns the ChatPostMessageCall object as url.Values

type ChatService Uses

type ChatService struct {
    // contains filtered or unexported fields
}

ChatService handles Chat related endpoints

func (*ChatService) Delete Uses

func (s *ChatService) Delete(channel string) *ChatDeleteCall

Delete creates a ChatDeleteCall object in preparation for accessing the chat.delete endpoint

func (s *ChatService) GetPermalink(channel string, messageTimestamp string) *ChatGetPermalinkCall

GetPermalink creates a ChatGetPermalinkCall object in preparation for accessing the chat.getPermalink endpoint

func (*ChatService) MeMessage Uses

func (s *ChatService) MeMessage(channel string) *ChatMeMessageCall

MeMessage creates a ChatMeMessageCall object in preparation for accessing the chat.meMessage endpoint

func (*ChatService) PostEphemeral Uses

func (s *ChatService) PostEphemeral(channel string, text string, user string) *ChatPostEphemeralCall

PostEphemeral creates a ChatPostEphemeralCall object in preparation for accessing the chat.postEphemeral endpoint

func (*ChatService) PostMessage Uses

func (s *ChatService) PostMessage(channel string) *ChatPostMessageCall

PostMessage creates a ChatPostMessageCall object in preparation for accessing the chat.postMessage endpoint

func (*ChatService) Unfurl Uses

func (s *ChatService) Unfurl(channel string, timestamp string, unfurls string) *ChatUnfurlCall

Unfurl creates a ChatUnfurlCall object in preparation for accessing the chat.unfurl endpoint

func (*ChatService) Update Uses

func (s *ChatService) Update(channel string) *ChatUpdateCall

Update creates a ChatUpdateCall object in preparation for accessing the chat.update endpoint

type ChatUnfurlCall Uses

type ChatUnfurlCall struct {
    // contains filtered or unexported fields
}

ChatUnfurlCall is created by ChatService.Unfurl method call

func (*ChatUnfurlCall) Do Uses

func (c *ChatUnfurlCall) Do(ctx context.Context) error

Do executes the call to access chat.unfurl endpoint

func (*ChatUnfurlCall) FromValues Uses

func (c *ChatUnfurlCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatUnfurlCall) UserAuthRequired Uses

func (c *ChatUnfurlCall) UserAuthRequired(userAuthRequired bool) *ChatUnfurlCall

UserAuthRequired sets the value for optional userAuthRequired parameter

func (*ChatUnfurlCall) ValidateArgs Uses

func (c *ChatUnfurlCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatUnfurlCall object

func (*ChatUnfurlCall) Values Uses

func (c *ChatUnfurlCall) Values() (url.Values, error)

Values returns the ChatUnfurlCall object as url.Values

type ChatUpdateCall Uses

type ChatUpdateCall struct {
    // contains filtered or unexported fields
}

ChatUpdateCall is created by ChatService.Update method call

func (*ChatUpdateCall) AsUser Uses

func (c *ChatUpdateCall) AsUser(asUser bool) *ChatUpdateCall

AsUser sets the value for optional asUser parameter

func (*ChatUpdateCall) Attachment Uses

func (c *ChatUpdateCall) Attachment(attachment *objects.Attachment) *ChatUpdateCall

Attachment appends to the attachments list

func (*ChatUpdateCall) Do Uses

func (c *ChatUpdateCall) Do(ctx context.Context) (*objects.ChatResponse, error)

Do executes the call to access chat.update endpoint

func (*ChatUpdateCall) FromValues Uses

func (c *ChatUpdateCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ChatUpdateCall) LinkNames Uses

func (c *ChatUpdateCall) LinkNames(linkNames bool) *ChatUpdateCall

LinkNames sets the value for optional linkNames parameter

func (*ChatUpdateCall) Parse Uses

func (c *ChatUpdateCall) Parse(parse string) *ChatUpdateCall

Parse sets the value for optional parse parameter

func (*ChatUpdateCall) SetAttachments Uses

func (c *ChatUpdateCall) SetAttachments(attachments objects.AttachmentList) *ChatUpdateCall

SetAttachments sets the attachments list

func (*ChatUpdateCall) Text Uses

func (c *ChatUpdateCall) Text(text string) *ChatUpdateCall

Text sets the value for optional text parameter

func (*ChatUpdateCall) Timestamp Uses

func (c *ChatUpdateCall) Timestamp(timestamp string) *ChatUpdateCall

Timestamp sets the value for optional timestamp parameter

func (*ChatUpdateCall) ValidateArgs Uses

func (c *ChatUpdateCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ChatUpdateCall object

func (*ChatUpdateCall) Values Uses

func (c *ChatUpdateCall) Values() (url.Values, error)

Values returns the ChatUpdateCall object as url.Values

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Code:

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

token := os.Getenv("SLACK_TOKEN")
cl := slack.New(token)

// check if we are connected
authres, err := cl.Auth().Test().Do(ctx)
if err != nil {
    fmt.Printf("failed to test authentication: %s\n", err)
    return
}
fmt.Printf("%#v\n", authres)

// simplest possible message
chatres, err := cl.Chat().PostMessage("@username").
    Text("Hello, World!").
    Do(ctx)
if err != nil {
    fmt.Printf("failed to post messsage: %s\n", err)
    return
}
fmt.Printf("%#v\n", chatres)

func New Uses

func New(token string, options ...Option) *Client

New creates a new REST Slack API client. The `token` is required. Other optional parameters can be passed using the various `WithXXXX` functions

func (*Client) Auth Uses

func (c *Client) Auth() *AuthService

Auth returns the Service object for `auth.*` endpoints

func (*Client) Bots Uses

func (c *Client) Bots() *BotsService

Bots returns the Service object for `bots.*` endpoints

func (*Client) Channels Uses

func (c *Client) Channels() *ChannelsService

Channels returns the Service object for `channels.*` endpoints

func (*Client) Chat Uses

func (c *Client) Chat() *ChatService

Chat returns the Service object for `chat.*` endpoints

func (*Client) Dialog Uses

func (c *Client) Dialog() *DialogService

Dialog returns the Service object for `dialog.*` endpoints

func (*Client) Emoji Uses

func (c *Client) Emoji() *EmojiService

Emoji returns the Service object for `emoji.*` endpoints

func (*Client) Groups Uses

func (c *Client) Groups() *GroupsService

Groups returns the Service object for `emoji.*` endpoints

func (*Client) OAuth Uses

func (c *Client) OAuth() *OAuthService

OAuth returns the Service object for `oauth.*` endpoints

func (*Client) RTM Uses

func (c *Client) RTM() *RTMService

RTM returns the Service object for `rtm.*` endpoints

func (*Client) Reactions Uses

func (c *Client) Reactions() *ReactionsService

Reactions returns the Service object for `reactions.*` endpoints

func (*Client) Reminders Uses

func (c *Client) Reminders() *RemindersService

Reminders returns the Service object for `reminders.*` endpoints

func (*Client) Usergroups Uses

func (c *Client) Usergroups() *UsergroupsService

Usergroups returns the Service object for `usergroups.*` endpoints

func (*Client) UsergroupsUsers Uses

func (c *Client) UsergroupsUsers() *UsergroupsUsersService

UsergroupsUsers returns the Service object for `usergroups.users.*` endpoints

func (*Client) Users Uses

func (c *Client) Users() *UsersService

Users returns the Service object for `users.*` endpoints

func (*Client) UsersProfile Uses

func (c *Client) UsersProfile() *UsersProfileService

UsersProfile returns the Service object for `users.profile.*` endpoints

type ControlSequence Uses

type ControlSequence interface {
    Data() string
    Surface() string
    String() string
}

func ExtractControlSequences Uses

func ExtractControlSequences(s string) ([]ControlSequence, error)

https://api.slack.com/docs/message-formatting#control_sequences

func ParseControlSequence Uses

func ParseControlSequence(s string) (ControlSequence, error)

type DialogOpenCall Uses

type DialogOpenCall struct {
    // contains filtered or unexported fields
}

DialogOpenCall is created by DialogService.Open method call

func (*DialogOpenCall) Do Uses

func (c *DialogOpenCall) Do(ctx context.Context) (*objects.DialogResponse, error)

Do executes the call to access dialog.open endpoint

func (*DialogOpenCall) FromValues Uses

func (c *DialogOpenCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*DialogOpenCall) ValidateArgs Uses

func (c *DialogOpenCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the DialogOpenCall object

func (*DialogOpenCall) Values Uses

func (c *DialogOpenCall) Values() (url.Values, error)

Values returns the DialogOpenCall object as url.Values

type DialogService Uses

type DialogService struct {
    // contains filtered or unexported fields
}

DialogService handles Dialog related endpoints

func (*DialogService) Open Uses

func (s *DialogService) Open(dialog *objects.Dialog, trigger_id string) *DialogOpenCall

Open creates a DialogOpenCall object in preparation for accessing the dialog.open endpoint

type EmojiListCall Uses

type EmojiListCall struct {
    // contains filtered or unexported fields
}

EmojiListCall is created by EmojiService.List method call

func (*EmojiListCall) Do Uses

func (c *EmojiListCall) Do(ctx context.Context) (*objects.EmojiListResponse, error)

Do executes the call to access emoji.list endpoint

func (*EmojiListCall) FromValues Uses

func (c *EmojiListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*EmojiListCall) ValidateArgs Uses

func (c *EmojiListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the EmojiListCall object

func (*EmojiListCall) Values Uses

func (c *EmojiListCall) Values() (url.Values, error)

Values returns the EmojiListCall object as url.Values

type EmojiService Uses

type EmojiService struct {
    // contains filtered or unexported fields
}

EmojiService handles Emoji related endpoints

func (*EmojiService) List Uses

func (s *EmojiService) List() *EmojiListCall

List creates a EmojiListCall object in preparation for accessing the emoji.list endpoint

type ExternalLink struct {
    URL  string
    Text string
}

func (*ExternalLink) Data Uses

func (l *ExternalLink) Data() string

func (*ExternalLink) String Uses

func (l *ExternalLink) String() string

func (*ExternalLink) Surface Uses

func (l *ExternalLink) Surface() string

type GroupsArchiveCall Uses

type GroupsArchiveCall struct {
    // contains filtered or unexported fields
}

GroupsArchiveCall is created by GroupsService.Archive method call

func (*GroupsArchiveCall) Do Uses

func (c *GroupsArchiveCall) Do(ctx context.Context) error

Do executes the call to access groups.archive endpoint

func (*GroupsArchiveCall) FromValues Uses

func (c *GroupsArchiveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsArchiveCall) ValidateArgs Uses

func (c *GroupsArchiveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsArchiveCall object

func (*GroupsArchiveCall) Values Uses

func (c *GroupsArchiveCall) Values() (url.Values, error)

Values returns the GroupsArchiveCall object as url.Values

type GroupsCreateCall Uses

type GroupsCreateCall struct {
    // contains filtered or unexported fields
}

GroupsCreateCall is created by GroupsService.Create method call

func (*GroupsCreateCall) Do Uses

func (c *GroupsCreateCall) Do(ctx context.Context) (*objects.Group, error)

Do executes the call to access groups.create endpoint

func (*GroupsCreateCall) FromValues Uses

func (c *GroupsCreateCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsCreateCall) Validate Uses

func (c *GroupsCreateCall) Validate(validate bool) *GroupsCreateCall

Validate sets the value for optional validate parameter

func (*GroupsCreateCall) ValidateArgs Uses

func (c *GroupsCreateCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsCreateCall object

func (*GroupsCreateCall) Values Uses

func (c *GroupsCreateCall) Values() (url.Values, error)

Values returns the GroupsCreateCall object as url.Values

type GroupsCreateChildCall Uses

type GroupsCreateChildCall struct {
    // contains filtered or unexported fields
}

GroupsCreateChildCall is created by GroupsService.CreateChild method call

func (*GroupsCreateChildCall) Do Uses

func (c *GroupsCreateChildCall) Do(ctx context.Context) (*objects.Group, error)

Do executes the call to access groups.createChild endpoint

func (*GroupsCreateChildCall) FromValues Uses

func (c *GroupsCreateChildCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsCreateChildCall) ValidateArgs Uses

func (c *GroupsCreateChildCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsCreateChildCall object

func (*GroupsCreateChildCall) Values Uses

func (c *GroupsCreateChildCall) Values() (url.Values, error)

Values returns the GroupsCreateChildCall object as url.Values

type GroupsHistoryCall Uses

type GroupsHistoryCall struct {
    // contains filtered or unexported fields
}

GroupsHistoryCall is created by GroupsService.History method call

func (*GroupsHistoryCall) Count Uses

func (c *GroupsHistoryCall) Count(count int) *GroupsHistoryCall

Count sets the value for optional count parameter

func (*GroupsHistoryCall) Do Uses

func (c *GroupsHistoryCall) Do(ctx context.Context) (string, objects.MessageList, error)

Do executes the call to access groups.history endpoint

func (*GroupsHistoryCall) FromValues Uses

func (c *GroupsHistoryCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsHistoryCall) Inclusive Uses

func (c *GroupsHistoryCall) Inclusive(inclusive bool) *GroupsHistoryCall

Inclusive sets the value for optional inclusive parameter

func (*GroupsHistoryCall) Latest Uses

func (c *GroupsHistoryCall) Latest(latest string) *GroupsHistoryCall

Latest sets the value for optional latest parameter

func (*GroupsHistoryCall) Oldest Uses

func (c *GroupsHistoryCall) Oldest(oldest string) *GroupsHistoryCall

Oldest sets the value for optional oldest parameter

func (*GroupsHistoryCall) Unreads Uses

func (c *GroupsHistoryCall) Unreads(unreads bool) *GroupsHistoryCall

Unreads sets the value for optional unreads parameter

func (*GroupsHistoryCall) ValidateArgs Uses

func (c *GroupsHistoryCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsHistoryCall object

func (*GroupsHistoryCall) Values Uses

func (c *GroupsHistoryCall) Values() (url.Values, error)

Values returns the GroupsHistoryCall object as url.Values

type GroupsInfoCall Uses

type GroupsInfoCall struct {
    // contains filtered or unexported fields
}

GroupsInfoCall is created by GroupsService.Info method call

func (*GroupsInfoCall) Do Uses

func (c *GroupsInfoCall) Do(ctx context.Context) (*objects.Group, error)

Do executes the call to access groups.info endpoint

func (*GroupsInfoCall) FromValues Uses

func (c *GroupsInfoCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsInfoCall) IncludeLocale Uses

func (c *GroupsInfoCall) IncludeLocale(includeLocale bool) *GroupsInfoCall

IncludeLocale sets the value for optional includeLocale parameter

func (*GroupsInfoCall) ValidateArgs Uses

func (c *GroupsInfoCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsInfoCall object

func (*GroupsInfoCall) Values Uses

func (c *GroupsInfoCall) Values() (url.Values, error)

Values returns the GroupsInfoCall object as url.Values

type GroupsInviteCall Uses

type GroupsInviteCall struct {
    // contains filtered or unexported fields
}

GroupsInviteCall is created by GroupsService.Invite method call

func (*GroupsInviteCall) Do Uses

func (c *GroupsInviteCall) Do(ctx context.Context) (*objects.Group, bool, error)

Do executes the call to access groups.invite endpoint

func (*GroupsInviteCall) FromValues Uses

func (c *GroupsInviteCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsInviteCall) ValidateArgs Uses

func (c *GroupsInviteCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsInviteCall object

func (*GroupsInviteCall) Values Uses

func (c *GroupsInviteCall) Values() (url.Values, error)

Values returns the GroupsInviteCall object as url.Values

type GroupsKickCall Uses

type GroupsKickCall struct {
    // contains filtered or unexported fields
}

GroupsKickCall is created by GroupsService.Kick method call

func (*GroupsKickCall) Do Uses

func (c *GroupsKickCall) Do(ctx context.Context) error

Do executes the call to access groups.kick endpoint

func (*GroupsKickCall) FromValues Uses

func (c *GroupsKickCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsKickCall) ValidateArgs Uses

func (c *GroupsKickCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsKickCall object

func (*GroupsKickCall) Values Uses

func (c *GroupsKickCall) Values() (url.Values, error)

Values returns the GroupsKickCall object as url.Values

type GroupsLeaveCall Uses

type GroupsLeaveCall struct {
    // contains filtered or unexported fields
}

GroupsLeaveCall is created by GroupsService.Leave method call

func (*GroupsLeaveCall) Do Uses

func (c *GroupsLeaveCall) Do(ctx context.Context) error

Do executes the call to access groups.leave endpoint

func (*GroupsLeaveCall) FromValues Uses

func (c *GroupsLeaveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsLeaveCall) ValidateArgs Uses

func (c *GroupsLeaveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsLeaveCall object

func (*GroupsLeaveCall) Values Uses

func (c *GroupsLeaveCall) Values() (url.Values, error)

Values returns the GroupsLeaveCall object as url.Values

type GroupsListCall Uses

type GroupsListCall struct {
    // contains filtered or unexported fields
}

GroupsListCall is created by GroupsService.List method call

func (*GroupsListCall) Do Uses

func (c *GroupsListCall) Do(ctx context.Context) (objects.GroupList, error)

Do executes the call to access groups.list endpoint

func (*GroupsListCall) ExcludeArchived Uses

func (c *GroupsListCall) ExcludeArchived(excludeArchived bool) *GroupsListCall

ExcludeArchived sets the value for optional excludeArchived parameter

func (*GroupsListCall) ExcludeMembers Uses

func (c *GroupsListCall) ExcludeMembers(excludeMembers bool) *GroupsListCall

ExcludeMembers sets the value for optional excludeMembers parameter

func (*GroupsListCall) FromValues Uses

func (c *GroupsListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsListCall) ValidateArgs Uses

func (c *GroupsListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsListCall object

func (*GroupsListCall) Values Uses

func (c *GroupsListCall) Values() (url.Values, error)

Values returns the GroupsListCall object as url.Values

type GroupsMarkCall Uses

type GroupsMarkCall struct {
    // contains filtered or unexported fields
}

GroupsMarkCall is created by GroupsService.Mark method call

func (*GroupsMarkCall) Do Uses

func (c *GroupsMarkCall) Do(ctx context.Context) error

Do executes the call to access groups.mark endpoint

func (*GroupsMarkCall) FromValues Uses

func (c *GroupsMarkCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsMarkCall) ValidateArgs Uses

func (c *GroupsMarkCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsMarkCall object

func (*GroupsMarkCall) Values Uses

func (c *GroupsMarkCall) Values() (url.Values, error)

Values returns the GroupsMarkCall object as url.Values

type GroupsOpenCall Uses

type GroupsOpenCall struct {
    // contains filtered or unexported fields
}

GroupsOpenCall is created by GroupsService.Open method call

func (*GroupsOpenCall) Do Uses

func (c *GroupsOpenCall) Do(ctx context.Context) error

Do executes the call to access groups.open endpoint

func (*GroupsOpenCall) FromValues Uses

func (c *GroupsOpenCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsOpenCall) ValidateArgs Uses

func (c *GroupsOpenCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsOpenCall object

func (*GroupsOpenCall) Values Uses

func (c *GroupsOpenCall) Values() (url.Values, error)

Values returns the GroupsOpenCall object as url.Values

type GroupsRenameCall Uses

type GroupsRenameCall struct {
    // contains filtered or unexported fields
}

GroupsRenameCall is created by GroupsService.Rename method call

func (*GroupsRenameCall) Do Uses

func (c *GroupsRenameCall) Do(ctx context.Context) (*objects.Group, error)

Do executes the call to access groups.rename endpoint

func (*GroupsRenameCall) FromValues Uses

func (c *GroupsRenameCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsRenameCall) Validate Uses

func (c *GroupsRenameCall) Validate(validate bool) *GroupsRenameCall

Validate sets the value for optional validate parameter

func (*GroupsRenameCall) ValidateArgs Uses

func (c *GroupsRenameCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsRenameCall object

func (*GroupsRenameCall) Values Uses

func (c *GroupsRenameCall) Values() (url.Values, error)

Values returns the GroupsRenameCall object as url.Values

type GroupsRepliesCall Uses

type GroupsRepliesCall struct {
    // contains filtered or unexported fields
}

GroupsRepliesCall is created by GroupsService.Replies method call

func (*GroupsRepliesCall) Do Uses

func (c *GroupsRepliesCall) Do(ctx context.Context) (objects.MessageList, *objects.ThreadInfo, error)

Do executes the call to access groups.replies endpoint

func (*GroupsRepliesCall) FromValues Uses

func (c *GroupsRepliesCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsRepliesCall) ValidateArgs Uses

func (c *GroupsRepliesCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsRepliesCall object

func (*GroupsRepliesCall) Values Uses

func (c *GroupsRepliesCall) Values() (url.Values, error)

Values returns the GroupsRepliesCall object as url.Values

type GroupsService Uses

type GroupsService struct {
    // contains filtered or unexported fields
}

GroupsService handles Groups related endpoints

func (*GroupsService) Archive Uses

func (s *GroupsService) Archive(channel string) *GroupsArchiveCall

Archive creates a GroupsArchiveCall object in preparation for accessing the groups.archive endpoint

func (*GroupsService) Create Uses

func (s *GroupsService) Create(name string) *GroupsCreateCall

Create creates a GroupsCreateCall object in preparation for accessing the groups.create endpoint

func (*GroupsService) CreateChild Uses

func (s *GroupsService) CreateChild(channel string) *GroupsCreateChildCall

CreateChild creates a GroupsCreateChildCall object in preparation for accessing the groups.createChild endpoint

func (*GroupsService) History Uses

func (s *GroupsService) History(channel string) *GroupsHistoryCall

History creates a GroupsHistoryCall object in preparation for accessing the groups.history endpoint

func (*GroupsService) Info Uses

func (s *GroupsService) Info(channel string) *GroupsInfoCall

Info creates a GroupsInfoCall object in preparation for accessing the groups.info endpoint

func (*GroupsService) Invite Uses

func (s *GroupsService) Invite(channel string, user string) *GroupsInviteCall

Invite creates a GroupsInviteCall object in preparation for accessing the groups.invite endpoint

func (*GroupsService) Kick Uses

func (s *GroupsService) Kick(channel string, user string) *GroupsKickCall

Kick creates a GroupsKickCall object in preparation for accessing the groups.kick endpoint

func (*GroupsService) Leave Uses

func (s *GroupsService) Leave(channel string) *GroupsLeaveCall

Leave creates a GroupsLeaveCall object in preparation for accessing the groups.leave endpoint

func (*GroupsService) List Uses

func (s *GroupsService) List() *GroupsListCall

List creates a GroupsListCall object in preparation for accessing the groups.list endpoint

func (*GroupsService) Mark Uses

func (s *GroupsService) Mark(channel string, timestamp string) *GroupsMarkCall

Mark creates a GroupsMarkCall object in preparation for accessing the groups.mark endpoint

func (*GroupsService) Open Uses

func (s *GroupsService) Open(channel string) *GroupsOpenCall

Open creates a GroupsOpenCall object in preparation for accessing the groups.open endpoint

func (*GroupsService) Rename Uses

func (s *GroupsService) Rename(channel string, name string) *GroupsRenameCall

Rename creates a GroupsRenameCall object in preparation for accessing the groups.rename endpoint

func (*GroupsService) Replies Uses

func (s *GroupsService) Replies(channel string, threadTimestamp string) *GroupsRepliesCall

Replies creates a GroupsRepliesCall object in preparation for accessing the groups.replies endpoint

func (*GroupsService) SetPurpose Uses

func (s *GroupsService) SetPurpose(channel string, purpose string) *GroupsSetPurposeCall

SetPurpose creates a GroupsSetPurposeCall object in preparation for accessing the groups.setPurpose endpoint

func (*GroupsService) SetTopic Uses

func (s *GroupsService) SetTopic(channel string, topic string) *GroupsSetTopicCall

SetTopic creates a GroupsSetTopicCall object in preparation for accessing the groups.setTopic endpoint

func (*GroupsService) Unarchive Uses

func (s *GroupsService) Unarchive(channel string) *GroupsUnarchiveCall

Unarchive creates a GroupsUnarchiveCall object in preparation for accessing the groups.unarchive endpoint

type GroupsSetPurposeCall Uses

type GroupsSetPurposeCall struct {
    // contains filtered or unexported fields
}

GroupsSetPurposeCall is created by GroupsService.SetPurpose method call

func (*GroupsSetPurposeCall) Do Uses

func (c *GroupsSetPurposeCall) Do(ctx context.Context) (string, error)

Do executes the call to access groups.setPurpose endpoint

func (*GroupsSetPurposeCall) FromValues Uses

func (c *GroupsSetPurposeCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsSetPurposeCall) ValidateArgs Uses

func (c *GroupsSetPurposeCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsSetPurposeCall object

func (*GroupsSetPurposeCall) Values Uses

func (c *GroupsSetPurposeCall) Values() (url.Values, error)

Values returns the GroupsSetPurposeCall object as url.Values

type GroupsSetTopicCall Uses

type GroupsSetTopicCall struct {
    // contains filtered or unexported fields
}

GroupsSetTopicCall is created by GroupsService.SetTopic method call

func (*GroupsSetTopicCall) Do Uses

func (c *GroupsSetTopicCall) Do(ctx context.Context) (string, error)

Do executes the call to access groups.setTopic endpoint

func (*GroupsSetTopicCall) FromValues Uses

func (c *GroupsSetTopicCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsSetTopicCall) ValidateArgs Uses

func (c *GroupsSetTopicCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsSetTopicCall object

func (*GroupsSetTopicCall) Values Uses

func (c *GroupsSetTopicCall) Values() (url.Values, error)

Values returns the GroupsSetTopicCall object as url.Values

type GroupsUnarchiveCall Uses

type GroupsUnarchiveCall struct {
    // contains filtered or unexported fields
}

GroupsUnarchiveCall is created by GroupsService.Unarchive method call

func (*GroupsUnarchiveCall) Do Uses

func (c *GroupsUnarchiveCall) Do(ctx context.Context) error

Do executes the call to access groups.unarchive endpoint

func (*GroupsUnarchiveCall) FromValues Uses

func (c *GroupsUnarchiveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*GroupsUnarchiveCall) ValidateArgs Uses

func (c *GroupsUnarchiveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the GroupsUnarchiveCall object

func (*GroupsUnarchiveCall) Values Uses

func (c *GroupsUnarchiveCall) Values() (url.Values, error)

Values returns the GroupsUnarchiveCall object as url.Values

type Logger Uses

type Logger interface {
    Debugf(context.Context, string, ...interface{})
    Infof(context.Context, string, ...interface{})
}

Logger is an interface for logging/tracing the client's execution.

In particular, `Debugf` will only be called if `WithDebug` is provided to the constructor.

type OAuthAccessCall Uses

type OAuthAccessCall struct {
    // contains filtered or unexported fields
}

OAuthAccessCall is created by OAuthService.Access method call

func (*OAuthAccessCall) Do Uses

func (c *OAuthAccessCall) Do(ctx context.Context) (*objects.OAuthAccessResponse, error)

Do executes the call to access oauth.access endpoint

func (*OAuthAccessCall) FromValues Uses

func (c *OAuthAccessCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*OAuthAccessCall) RedirectURI Uses

func (c *OAuthAccessCall) RedirectURI(redirectURI string) *OAuthAccessCall

RedirectURI sets the value for optional redirectURI parameter

func (*OAuthAccessCall) ValidateArgs Uses

func (c *OAuthAccessCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the OAuthAccessCall object

func (*OAuthAccessCall) Values Uses

func (c *OAuthAccessCall) Values() (url.Values, error)

Values returns the OAuthAccessCall object as url.Values

type OAuthService Uses

type OAuthService struct {
    // contains filtered or unexported fields
}

OAuthService handles OAuth related endpoints

func (*OAuthService) Access Uses

func (s *OAuthService) Access(clientID string, clientSecret string, code string) *OAuthAccessCall

Access creates a OAuthAccessCall object in preparation for accessing the oauth.access endpoint

type Option Uses

type Option interface {
    Name() string
    Value() interface{}
}

Option defines an interface of optional parameters to the `slack.New` constructor.

func WithAPIEndpoint Uses

func WithAPIEndpoint(s string) Option

WithAPIEndpoint allows you to specify an alternate API endpoint. The default is DefaultAPIEndpoint.

func WithClient Uses

func WithClient(cl *http.Client) Option

WithClient allows you to specify an net/http.Client object to use to communicate with the Slack endpoints. For example, if you need to use this in Google App Engine, you can pass it the result of `urlfetch.Client`

func WithDebug Uses

func WithDebug(b bool) Option

WithDebug specifies that we want to run in debugging mode. You can set this value manually to override any existing global defaults.

If one is not specified, the default value is false, or the value specified in SLACK_DEBUG environment variable

func WithLogger Uses

func WithLogger(l Logger) Option

WithLogger specifies the logger object to be used. If not specified and `WithDebug` is enabled, then a default logger which writes to os.Stderr

type RTMService Uses

type RTMService struct {
    // contains filtered or unexported fields
}

RTMService handles RTM related endpoints

func (*RTMService) Start Uses

func (s *RTMService) Start() *RTMStartCall

Start creates a RTMStartCall object in preparation for accessing the rtm.start endpoint

type RTMStartCall Uses

type RTMStartCall struct {
    // contains filtered or unexported fields
}

RTMStartCall is created by RTMService.Start method call

func (*RTMStartCall) Do Uses

func (c *RTMStartCall) Do(ctx context.Context) (*objects.RTMResponse, error)

Do executes the call to access rtm.start endpoint

func (*RTMStartCall) FromValues Uses

func (c *RTMStartCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*RTMStartCall) ValidateArgs Uses

func (c *RTMStartCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the RTMStartCall object

func (*RTMStartCall) Values Uses

func (c *RTMStartCall) Values() (url.Values, error)

Values returns the RTMStartCall object as url.Values

type ReactionsAddCall Uses

type ReactionsAddCall struct {
    // contains filtered or unexported fields
}

ReactionsAddCall is created by ReactionsService.Add method call

func (*ReactionsAddCall) Channel Uses

func (c *ReactionsAddCall) Channel(channel string) *ReactionsAddCall

Channel sets the value for optional channel parameter

func (*ReactionsAddCall) Do Uses

func (c *ReactionsAddCall) Do(ctx context.Context) error

Do executes the call to access reactions.add endpoint

func (*ReactionsAddCall) File Uses

func (c *ReactionsAddCall) File(file string) *ReactionsAddCall

File sets the value for optional file parameter

func (*ReactionsAddCall) FileComment Uses

func (c *ReactionsAddCall) FileComment(fileComment string) *ReactionsAddCall

FileComment sets the value for optional fileComment parameter

func (*ReactionsAddCall) FromValues Uses

func (c *ReactionsAddCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ReactionsAddCall) Timestamp Uses

func (c *ReactionsAddCall) Timestamp(timestamp string) *ReactionsAddCall

Timestamp sets the value for optional timestamp parameter

func (*ReactionsAddCall) ValidateArgs Uses

func (c *ReactionsAddCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ReactionsAddCall object

func (*ReactionsAddCall) Values Uses

func (c *ReactionsAddCall) Values() (url.Values, error)

Values returns the ReactionsAddCall object as url.Values

type ReactionsGetCall Uses

type ReactionsGetCall struct {
    // contains filtered or unexported fields
}

ReactionsGetCall is created by ReactionsService.Get method call

func (*ReactionsGetCall) Channel Uses

func (c *ReactionsGetCall) Channel(channel string) *ReactionsGetCall

Channel sets the value for optional channel parameter

func (*ReactionsGetCall) Do Uses

func (c *ReactionsGetCall) Do(ctx context.Context) (*objects.ReactionsGetResponse, error)

Do executes the call to access reactions.get endpoint

func (*ReactionsGetCall) File Uses

func (c *ReactionsGetCall) File(file string) *ReactionsGetCall

File sets the value for optional file parameter

func (*ReactionsGetCall) FileComment Uses

func (c *ReactionsGetCall) FileComment(fileComment string) *ReactionsGetCall

FileComment sets the value for optional fileComment parameter

func (*ReactionsGetCall) FromValues Uses

func (c *ReactionsGetCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ReactionsGetCall) Full Uses

func (c *ReactionsGetCall) Full(full bool) *ReactionsGetCall

Full sets the value for optional full parameter

func (*ReactionsGetCall) Timestamp Uses

func (c *ReactionsGetCall) Timestamp(timestamp string) *ReactionsGetCall

Timestamp sets the value for optional timestamp parameter

func (*ReactionsGetCall) ValidateArgs Uses

func (c *ReactionsGetCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ReactionsGetCall object

func (*ReactionsGetCall) Values Uses

func (c *ReactionsGetCall) Values() (url.Values, error)

Values returns the ReactionsGetCall object as url.Values

type ReactionsListCall Uses

type ReactionsListCall struct {
    // contains filtered or unexported fields
}

ReactionsListCall is created by ReactionsService.List method call

func (*ReactionsListCall) Count Uses

func (c *ReactionsListCall) Count(count int) *ReactionsListCall

Count sets the value for optional count parameter

func (*ReactionsListCall) Do Uses

func (c *ReactionsListCall) Do(ctx context.Context) (*objects.ReactionsListResponse, error)

Do executes the call to access reactions.list endpoint

func (*ReactionsListCall) FromValues Uses

func (c *ReactionsListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ReactionsListCall) Full Uses

func (c *ReactionsListCall) Full(full bool) *ReactionsListCall

Full sets the value for optional full parameter

func (*ReactionsListCall) Page Uses

func (c *ReactionsListCall) Page(page int) *ReactionsListCall

Page sets the value for optional page parameter

func (*ReactionsListCall) User Uses

func (c *ReactionsListCall) User(user string) *ReactionsListCall

User sets the value for optional user parameter

func (*ReactionsListCall) ValidateArgs Uses

func (c *ReactionsListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ReactionsListCall object

func (*ReactionsListCall) Values Uses

func (c *ReactionsListCall) Values() (url.Values, error)

Values returns the ReactionsListCall object as url.Values

type ReactionsRemoveCall Uses

type ReactionsRemoveCall struct {
    // contains filtered or unexported fields
}

ReactionsRemoveCall is created by ReactionsService.Remove method call

func (*ReactionsRemoveCall) Channel Uses

func (c *ReactionsRemoveCall) Channel(channel string) *ReactionsRemoveCall

Channel sets the value for optional channel parameter

func (*ReactionsRemoveCall) Do Uses

func (c *ReactionsRemoveCall) Do(ctx context.Context) error

Do executes the call to access reactions.remove endpoint

func (*ReactionsRemoveCall) File Uses

func (c *ReactionsRemoveCall) File(file string) *ReactionsRemoveCall

File sets the value for optional file parameter

func (*ReactionsRemoveCall) FileComment Uses

func (c *ReactionsRemoveCall) FileComment(fileComment string) *ReactionsRemoveCall

FileComment sets the value for optional fileComment parameter

func (*ReactionsRemoveCall) FromValues Uses

func (c *ReactionsRemoveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*ReactionsRemoveCall) Timestamp Uses

func (c *ReactionsRemoveCall) Timestamp(timestamp string) *ReactionsRemoveCall

Timestamp sets the value for optional timestamp parameter

func (*ReactionsRemoveCall) ValidateArgs Uses

func (c *ReactionsRemoveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the ReactionsRemoveCall object

func (*ReactionsRemoveCall) Values Uses

func (c *ReactionsRemoveCall) Values() (url.Values, error)

Values returns the ReactionsRemoveCall object as url.Values

type ReactionsService Uses

type ReactionsService struct {
    // contains filtered or unexported fields
}

ReactionsService handles Reactions related endpoints

func (*ReactionsService) Add Uses

func (s *ReactionsService) Add(name string) *ReactionsAddCall

Add creates a ReactionsAddCall object in preparation for accessing the reactions.add endpoint

func (*ReactionsService) Get Uses

func (s *ReactionsService) Get() *ReactionsGetCall

Get creates a ReactionsGetCall object in preparation for accessing the reactions.get endpoint

func (*ReactionsService) List Uses

func (s *ReactionsService) List() *ReactionsListCall

List creates a ReactionsListCall object in preparation for accessing the reactions.list endpoint

func (*ReactionsService) Remove Uses

func (s *ReactionsService) Remove(name string) *ReactionsRemoveCall

Remove creates a ReactionsRemoveCall object in preparation for accessing the reactions.remove endpoint

type RemindersAddCall Uses

type RemindersAddCall struct {
    // contains filtered or unexported fields
}

RemindersAddCall is created by RemindersService.Add method call

func (*RemindersAddCall) Do Uses

func (c *RemindersAddCall) Do(ctx context.Context) (*objects.Reminder, error)

Do executes the call to access reminders.add endpoint

func (*RemindersAddCall) FromValues Uses

func (c *RemindersAddCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*RemindersAddCall) User Uses

func (c *RemindersAddCall) User(user string) *RemindersAddCall

User sets the value for optional user parameter

func (*RemindersAddCall) ValidateArgs Uses

func (c *RemindersAddCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the RemindersAddCall object

func (*RemindersAddCall) Values Uses

func (c *RemindersAddCall) Values() (url.Values, error)

Values returns the RemindersAddCall object as url.Values

type RemindersCompleteCall Uses

type RemindersCompleteCall struct {
    // contains filtered or unexported fields
}

RemindersCompleteCall is created by RemindersService.Complete method call

func (*RemindersCompleteCall) Do Uses

func (c *RemindersCompleteCall) Do(ctx context.Context) error

Do executes the call to access reminders.complete endpoint

func (*RemindersCompleteCall) FromValues Uses

func (c *RemindersCompleteCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*RemindersCompleteCall) ValidateArgs Uses

func (c *RemindersCompleteCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the RemindersCompleteCall object

func (*RemindersCompleteCall) Values Uses

func (c *RemindersCompleteCall) Values() (url.Values, error)

Values returns the RemindersCompleteCall object as url.Values

type RemindersDeleteCall Uses

type RemindersDeleteCall struct {
    // contains filtered or unexported fields
}

RemindersDeleteCall is created by RemindersService.Delete method call

func (*RemindersDeleteCall) Do Uses

func (c *RemindersDeleteCall) Do(ctx context.Context) error

Do executes the call to access reminders.delete endpoint

func (*RemindersDeleteCall) FromValues Uses

func (c *RemindersDeleteCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*RemindersDeleteCall) ValidateArgs Uses

func (c *RemindersDeleteCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the RemindersDeleteCall object

func (*RemindersDeleteCall) Values Uses

func (c *RemindersDeleteCall) Values() (url.Values, error)

Values returns the RemindersDeleteCall object as url.Values

type RemindersInfoCall Uses

type RemindersInfoCall struct {
    // contains filtered or unexported fields
}

RemindersInfoCall is created by RemindersService.Info method call

func (*RemindersInfoCall) Do Uses

func (c *RemindersInfoCall) Do(ctx context.Context) (*objects.Reminder, error)

Do executes the call to access reminders.info endpoint

func (*RemindersInfoCall) FromValues Uses

func (c *RemindersInfoCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*RemindersInfoCall) ValidateArgs Uses

func (c *RemindersInfoCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the RemindersInfoCall object

func (*RemindersInfoCall) Values Uses

func (c *RemindersInfoCall) Values() (url.Values, error)

Values returns the RemindersInfoCall object as url.Values

type RemindersListCall Uses

type RemindersListCall struct {
    // contains filtered or unexported fields
}

RemindersListCall is created by RemindersService.List method call

func (*RemindersListCall) Do Uses

func (c *RemindersListCall) Do(ctx context.Context) (objects.ReminderList, error)

Do executes the call to access reminders.list endpoint

func (*RemindersListCall) FromValues Uses

func (c *RemindersListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*RemindersListCall) ValidateArgs Uses

func (c *RemindersListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the RemindersListCall object

func (*RemindersListCall) Values Uses

func (c *RemindersListCall) Values() (url.Values, error)

Values returns the RemindersListCall object as url.Values

type RemindersService Uses

type RemindersService struct {
    // contains filtered or unexported fields
}

RemindersService handles Reminders related endpoints

func (*RemindersService) Add Uses

func (s *RemindersService) Add(text string, time int) *RemindersAddCall

Add creates a RemindersAddCall object in preparation for accessing the reminders.add endpoint

func (*RemindersService) Complete Uses

func (s *RemindersService) Complete(reminder string) *RemindersCompleteCall

Complete creates a RemindersCompleteCall object in preparation for accessing the reminders.complete endpoint

func (*RemindersService) Delete Uses

func (s *RemindersService) Delete(reminder string) *RemindersDeleteCall

Delete creates a RemindersDeleteCall object in preparation for accessing the reminders.delete endpoint

func (*RemindersService) Info Uses

func (s *RemindersService) Info(reminder string) *RemindersInfoCall

Info creates a RemindersInfoCall object in preparation for accessing the reminders.info endpoint

func (*RemindersService) List Uses

func (s *RemindersService) List() *RemindersListCall

List creates a RemindersListCall object in preparation for accessing the reminders.list endpoint

type UserLink struct {
    ID       string
    Username string
}

func (*UserLink) Data Uses

func (l *UserLink) Data() string

func (*UserLink) String Uses

func (l *UserLink) String() string

func (*UserLink) Surface Uses

func (l *UserLink) Surface() string

type UsergroupsCreateCall Uses

type UsergroupsCreateCall struct {
    // contains filtered or unexported fields
}

UsergroupsCreateCall is created by UsergroupsService.Create method call

func (*UsergroupsCreateCall) Channels Uses

func (c *UsergroupsCreateCall) Channels(channels string) *UsergroupsCreateCall

Channels sets the value for optional channels parameter

func (*UsergroupsCreateCall) Description Uses

func (c *UsergroupsCreateCall) Description(description string) *UsergroupsCreateCall

Description sets the value for optional description parameter

func (*UsergroupsCreateCall) Do Uses

func (c *UsergroupsCreateCall) Do(ctx context.Context) (*objects.Usergroup, error)

Do executes the call to access usergroups.create endpoint

func (*UsergroupsCreateCall) FromValues Uses

func (c *UsergroupsCreateCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsCreateCall) Handle Uses

func (c *UsergroupsCreateCall) Handle(handle string) *UsergroupsCreateCall

Handle sets the value for optional handle parameter

func (*UsergroupsCreateCall) IncludeCount Uses

func (c *UsergroupsCreateCall) IncludeCount(includeCount bool) *UsergroupsCreateCall

IncludeCount sets the value for optional includeCount parameter

func (*UsergroupsCreateCall) ValidateArgs Uses

func (c *UsergroupsCreateCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsCreateCall object

func (*UsergroupsCreateCall) Values Uses

func (c *UsergroupsCreateCall) Values() (url.Values, error)

Values returns the UsergroupsCreateCall object as url.Values

type UsergroupsDisableCall Uses

type UsergroupsDisableCall struct {
    // contains filtered or unexported fields
}

UsergroupsDisableCall is created by UsergroupsService.Disable method call

func (*UsergroupsDisableCall) Do Uses

func (c *UsergroupsDisableCall) Do(ctx context.Context) (*objects.Usergroup, error)

Do executes the call to access usergroups.disable endpoint

func (*UsergroupsDisableCall) FromValues Uses

func (c *UsergroupsDisableCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsDisableCall) IncludeCount Uses

func (c *UsergroupsDisableCall) IncludeCount(includeCount bool) *UsergroupsDisableCall

IncludeCount sets the value for optional includeCount parameter

func (*UsergroupsDisableCall) ValidateArgs Uses

func (c *UsergroupsDisableCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsDisableCall object

func (*UsergroupsDisableCall) Values Uses

func (c *UsergroupsDisableCall) Values() (url.Values, error)

Values returns the UsergroupsDisableCall object as url.Values

type UsergroupsEnableCall Uses

type UsergroupsEnableCall struct {
    // contains filtered or unexported fields
}

UsergroupsEnableCall is created by UsergroupsService.Enable method call

func (*UsergroupsEnableCall) Do Uses

func (c *UsergroupsEnableCall) Do(ctx context.Context) (*objects.Usergroup, error)

Do executes the call to access usergroups.enable endpoint

func (*UsergroupsEnableCall) FromValues Uses

func (c *UsergroupsEnableCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsEnableCall) IncludeCount Uses

func (c *UsergroupsEnableCall) IncludeCount(includeCount bool) *UsergroupsEnableCall

IncludeCount sets the value for optional includeCount parameter

func (*UsergroupsEnableCall) ValidateArgs Uses

func (c *UsergroupsEnableCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsEnableCall object

func (*UsergroupsEnableCall) Values Uses

func (c *UsergroupsEnableCall) Values() (url.Values, error)

Values returns the UsergroupsEnableCall object as url.Values

type UsergroupsListCall Uses

type UsergroupsListCall struct {
    // contains filtered or unexported fields
}

UsergroupsListCall is created by UsergroupsService.List method call

func (*UsergroupsListCall) Do Uses

func (c *UsergroupsListCall) Do(ctx context.Context) (objects.UsergroupList, error)

Do executes the call to access usergroups.list endpoint

func (*UsergroupsListCall) FromValues Uses

func (c *UsergroupsListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsListCall) IncludeCount Uses

func (c *UsergroupsListCall) IncludeCount(includeCount bool) *UsergroupsListCall

IncludeCount sets the value for optional includeCount parameter

func (*UsergroupsListCall) IncludeDisabled Uses

func (c *UsergroupsListCall) IncludeDisabled(includeDisabled bool) *UsergroupsListCall

IncludeDisabled sets the value for optional includeDisabled parameter

func (*UsergroupsListCall) IncludeUsers Uses

func (c *UsergroupsListCall) IncludeUsers(includeUsers bool) *UsergroupsListCall

IncludeUsers sets the value for optional includeUsers parameter

func (*UsergroupsListCall) ValidateArgs Uses

func (c *UsergroupsListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsListCall object

func (*UsergroupsListCall) Values Uses

func (c *UsergroupsListCall) Values() (url.Values, error)

Values returns the UsergroupsListCall object as url.Values

type UsergroupsService Uses

type UsergroupsService struct {
    // contains filtered or unexported fields
}

UsergroupsService handles Usergroups related endpoints

func (*UsergroupsService) Create Uses

func (s *UsergroupsService) Create(name string) *UsergroupsCreateCall

Create creates a UsergroupsCreateCall object in preparation for accessing the usergroups.create endpoint

func (*UsergroupsService) Disable Uses

func (s *UsergroupsService) Disable(usergroup string) *UsergroupsDisableCall

Disable creates a UsergroupsDisableCall object in preparation for accessing the usergroups.disable endpoint

func (*UsergroupsService) Enable Uses

func (s *UsergroupsService) Enable(usergroup string) *UsergroupsEnableCall

Enable creates a UsergroupsEnableCall object in preparation for accessing the usergroups.enable endpoint

func (*UsergroupsService) List Uses

func (s *UsergroupsService) List() *UsergroupsListCall

List creates a UsergroupsListCall object in preparation for accessing the usergroups.list endpoint

func (*UsergroupsService) Update Uses

func (s *UsergroupsService) Update(usergroup string) *UsergroupsUpdateCall

Update creates a UsergroupsUpdateCall object in preparation for accessing the usergroups.update endpoint

type UsergroupsUpdateCall Uses

type UsergroupsUpdateCall struct {
    // contains filtered or unexported fields
}

UsergroupsUpdateCall is created by UsergroupsService.Update method call

func (*UsergroupsUpdateCall) Channels Uses

func (c *UsergroupsUpdateCall) Channels(channels string) *UsergroupsUpdateCall

Channels sets the value for optional channels parameter

func (*UsergroupsUpdateCall) Description Uses

func (c *UsergroupsUpdateCall) Description(description string) *UsergroupsUpdateCall

Description sets the value for optional description parameter

func (*UsergroupsUpdateCall) Do Uses

func (c *UsergroupsUpdateCall) Do(ctx context.Context) (*objects.Usergroup, error)

Do executes the call to access usergroups.update endpoint

func (*UsergroupsUpdateCall) FromValues Uses

func (c *UsergroupsUpdateCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsUpdateCall) Handle Uses

func (c *UsergroupsUpdateCall) Handle(handle string) *UsergroupsUpdateCall

Handle sets the value for optional handle parameter

func (*UsergroupsUpdateCall) IncludeCount Uses

func (c *UsergroupsUpdateCall) IncludeCount(includeCount bool) *UsergroupsUpdateCall

IncludeCount sets the value for optional includeCount parameter

func (*UsergroupsUpdateCall) Name Uses

func (c *UsergroupsUpdateCall) Name(name string) *UsergroupsUpdateCall

Name sets the value for optional name parameter

func (*UsergroupsUpdateCall) ValidateArgs Uses

func (c *UsergroupsUpdateCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsUpdateCall object

func (*UsergroupsUpdateCall) Values Uses

func (c *UsergroupsUpdateCall) Values() (url.Values, error)

Values returns the UsergroupsUpdateCall object as url.Values

type UsergroupsUsersListCall Uses

type UsergroupsUsersListCall struct {
    // contains filtered or unexported fields
}

UsergroupsUsersListCall is created by UsergroupsUsersService.List method call

func (*UsergroupsUsersListCall) Do Uses

func (c *UsergroupsUsersListCall) Do(ctx context.Context) (objects.UsergroupUsersList, error)

Do executes the call to access usergroups.users.list endpoint

func (*UsergroupsUsersListCall) FromValues Uses

func (c *UsergroupsUsersListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsUsersListCall) IncludeDisabled Uses

func (c *UsergroupsUsersListCall) IncludeDisabled(includeDisabled bool) *UsergroupsUsersListCall

IncludeDisabled sets the value for optional includeDisabled parameter

func (*UsergroupsUsersListCall) ValidateArgs Uses

func (c *UsergroupsUsersListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsUsersListCall object

func (*UsergroupsUsersListCall) Values Uses

func (c *UsergroupsUsersListCall) Values() (url.Values, error)

Values returns the UsergroupsUsersListCall object as url.Values

type UsergroupsUsersService Uses

type UsergroupsUsersService struct {
    // contains filtered or unexported fields
}

UsergroupsUsersService handles UsergroupsUsers related endpoints

func (*UsergroupsUsersService) List Uses

func (s *UsergroupsUsersService) List(usergroup string) *UsergroupsUsersListCall

List creates a UsergroupsUsersListCall object in preparation for accessing the usergroups.users.list endpoint

func (*UsergroupsUsersService) Update Uses

func (s *UsergroupsUsersService) Update(usergroup string, users string) *UsergroupsUsersUpdateCall

Update creates a UsergroupsUsersUpdateCall object in preparation for accessing the usergroups.users.update endpoint

type UsergroupsUsersUpdateCall Uses

type UsergroupsUsersUpdateCall struct {
    // contains filtered or unexported fields
}

UsergroupsUsersUpdateCall is created by UsergroupsUsersService.Update method call

func (*UsergroupsUsersUpdateCall) Do Uses

func (c *UsergroupsUsersUpdateCall) Do(ctx context.Context) (*objects.Usergroup, error)

Do executes the call to access usergroups.users.update endpoint

func (*UsergroupsUsersUpdateCall) FromValues Uses

func (c *UsergroupsUsersUpdateCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsergroupsUsersUpdateCall) IncludeCount Uses

func (c *UsergroupsUsersUpdateCall) IncludeCount(includeCount bool) *UsergroupsUsersUpdateCall

IncludeCount sets the value for optional includeCount parameter

func (*UsergroupsUsersUpdateCall) ValidateArgs Uses

func (c *UsergroupsUsersUpdateCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsergroupsUsersUpdateCall object

func (*UsergroupsUsersUpdateCall) Values Uses

func (c *UsergroupsUsersUpdateCall) Values() (url.Values, error)

Values returns the UsergroupsUsersUpdateCall object as url.Values

type UsersDeletePhotoCall Uses

type UsersDeletePhotoCall struct {
    // contains filtered or unexported fields
}

UsersDeletePhotoCall is created by UsersService.DeletePhoto method call

func (*UsersDeletePhotoCall) Do Uses

func (c *UsersDeletePhotoCall) Do(ctx context.Context) error

Do executes the call to access users.deletePhoto endpoint

func (*UsersDeletePhotoCall) FromValues Uses

func (c *UsersDeletePhotoCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersDeletePhotoCall) ValidateArgs Uses

func (c *UsersDeletePhotoCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersDeletePhotoCall object

func (*UsersDeletePhotoCall) Values Uses

func (c *UsersDeletePhotoCall) Values() (url.Values, error)

Values returns the UsersDeletePhotoCall object as url.Values

type UsersGetPresenceCall Uses

type UsersGetPresenceCall struct {
    // contains filtered or unexported fields
}

UsersGetPresenceCall is created by UsersService.GetPresence method call

func (*UsersGetPresenceCall) Do Uses

func (c *UsersGetPresenceCall) Do(ctx context.Context) (*objects.UserPresence, error)

Do executes the call to access users.getPresence endpoint

func (*UsersGetPresenceCall) FromValues Uses

func (c *UsersGetPresenceCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersGetPresenceCall) ValidateArgs Uses

func (c *UsersGetPresenceCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersGetPresenceCall object

func (*UsersGetPresenceCall) Values Uses

func (c *UsersGetPresenceCall) Values() (url.Values, error)

Values returns the UsersGetPresenceCall object as url.Values

type UsersIdentityCall Uses

type UsersIdentityCall struct {
    // contains filtered or unexported fields
}

UsersIdentityCall is created by UsersService.Identity method call

func (*UsersIdentityCall) Do Uses

func (c *UsersIdentityCall) Do(ctx context.Context) (*objects.UserProfile, *objects.Team, error)

Do executes the call to access users.identity endpoint

func (*UsersIdentityCall) FromValues Uses

func (c *UsersIdentityCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersIdentityCall) ValidateArgs Uses

func (c *UsersIdentityCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersIdentityCall object

func (*UsersIdentityCall) Values Uses

func (c *UsersIdentityCall) Values() (url.Values, error)

Values returns the UsersIdentityCall object as url.Values

type UsersInfoCall Uses

type UsersInfoCall struct {
    // contains filtered or unexported fields
}

UsersInfoCall is created by UsersService.Info method call

func (*UsersInfoCall) Do Uses

func (c *UsersInfoCall) Do(ctx context.Context) (*objects.User, error)

Do executes the call to access users.info endpoint

func (*UsersInfoCall) FromValues Uses

func (c *UsersInfoCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersInfoCall) IncludeLocale Uses

func (c *UsersInfoCall) IncludeLocale(includeLocale bool) *UsersInfoCall

IncludeLocale sets the value for optional includeLocale parameter

func (*UsersInfoCall) ValidateArgs Uses

func (c *UsersInfoCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersInfoCall object

func (*UsersInfoCall) Values Uses

func (c *UsersInfoCall) Values() (url.Values, error)

Values returns the UsersInfoCall object as url.Values

type UsersListCall Uses

type UsersListCall struct {
    // contains filtered or unexported fields
}

UsersListCall is created by UsersService.List method call

func (*UsersListCall) Do Uses

func (c *UsersListCall) Do(ctx context.Context) (objects.UserList, error)

Do executes the call to access users.list endpoint

func (*UsersListCall) FromValues Uses

func (c *UsersListCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersListCall) IncludeLocale Uses

func (c *UsersListCall) IncludeLocale(includeLocale bool) *UsersListCall

IncludeLocale sets the value for optional includeLocale parameter

func (*UsersListCall) Limit Uses

func (c *UsersListCall) Limit(limit int) *UsersListCall

Limit sets the value for optional limit parameter

func (*UsersListCall) Presence Uses

func (c *UsersListCall) Presence(presence bool) *UsersListCall

Presence sets the value for optional presence parameter

func (*UsersListCall) ValidateArgs Uses

func (c *UsersListCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersListCall object

func (*UsersListCall) Values Uses

func (c *UsersListCall) Values() (url.Values, error)

Values returns the UsersListCall object as url.Values

type UsersLookupByEmailCall Uses

type UsersLookupByEmailCall struct {
    // contains filtered or unexported fields
}

UsersLookupByEmailCall is created by UsersService.LookupByEmail method call

func (*UsersLookupByEmailCall) Do Uses

func (c *UsersLookupByEmailCall) Do(ctx context.Context) (*objects.User, error)

Do executes the call to access users.lookupByEmail endpoint

func (*UsersLookupByEmailCall) FromValues Uses

func (c *UsersLookupByEmailCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersLookupByEmailCall) ValidateArgs Uses

func (c *UsersLookupByEmailCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersLookupByEmailCall object

func (*UsersLookupByEmailCall) Values Uses

func (c *UsersLookupByEmailCall) Values() (url.Values, error)

Values returns the UsersLookupByEmailCall object as url.Values

type UsersProfileGetCall Uses

type UsersProfileGetCall struct {
    // contains filtered or unexported fields
}

UsersProfileGetCall is created by UsersProfileService.Get method call

func (*UsersProfileGetCall) Do Uses

func (c *UsersProfileGetCall) Do(ctx context.Context) (*objects.UserProfile, error)

Do executes the call to access users.profile.get endpoint

func (*UsersProfileGetCall) FromValues Uses

func (c *UsersProfileGetCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersProfileGetCall) IncludeLabels Uses

func (c *UsersProfileGetCall) IncludeLabels(includeLabels bool) *UsersProfileGetCall

IncludeLabels sets the value for optional includeLabels parameter

func (*UsersProfileGetCall) User Uses

func (c *UsersProfileGetCall) User(user string) *UsersProfileGetCall

User sets the value for optional user parameter

func (*UsersProfileGetCall) ValidateArgs Uses

func (c *UsersProfileGetCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersProfileGetCall object

func (*UsersProfileGetCall) Values Uses

func (c *UsersProfileGetCall) Values() (url.Values, error)

Values returns the UsersProfileGetCall object as url.Values

type UsersProfileService Uses

type UsersProfileService struct {
    // contains filtered or unexported fields
}

UsersProfileService handles UsersProfile related endpoints

func (*UsersProfileService) Get Uses

func (s *UsersProfileService) Get() *UsersProfileGetCall

Get creates a UsersProfileGetCall object in preparation for accessing the users.profile.get endpoint

func (*UsersProfileService) Set Uses

func (s *UsersProfileService) Set() *UsersProfileSetCall

Set creates a UsersProfileSetCall object in preparation for accessing the users.profile.set endpoint

type UsersProfileSetCall Uses

type UsersProfileSetCall struct {
    // contains filtered or unexported fields
}

UsersProfileSetCall is created by UsersProfileService.Set method call

func (*UsersProfileSetCall) Do Uses

func (c *UsersProfileSetCall) Do(ctx context.Context) (*objects.UserProfile, error)

Do executes the call to access users.profile.set endpoint

func (*UsersProfileSetCall) FromValues Uses

func (c *UsersProfileSetCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersProfileSetCall) Name Uses

func (c *UsersProfileSetCall) Name(name string) *UsersProfileSetCall

Name sets the value for optional name parameter

func (*UsersProfileSetCall) Profile Uses

func (c *UsersProfileSetCall) Profile(profile *objects.UserProfile) *UsersProfileSetCall

Profile sets the value for optional profile parameter

func (*UsersProfileSetCall) User Uses

func (c *UsersProfileSetCall) User(user string) *UsersProfileSetCall

User sets the value for optional user parameter

func (*UsersProfileSetCall) ValidateArgs Uses

func (c *UsersProfileSetCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersProfileSetCall object

func (*UsersProfileSetCall) Value Uses

func (c *UsersProfileSetCall) Value(value string) *UsersProfileSetCall

Value sets the value for optional value parameter

func (*UsersProfileSetCall) Values Uses

func (c *UsersProfileSetCall) Values() (url.Values, error)

Values returns the UsersProfileSetCall object as url.Values

type UsersService Uses

type UsersService struct {
    // contains filtered or unexported fields
}

UsersService handles Users related endpoints

func (*UsersService) DeletePhoto Uses

func (s *UsersService) DeletePhoto() *UsersDeletePhotoCall

DeletePhoto creates a UsersDeletePhotoCall object in preparation for accessing the users.deletePhoto endpoint

func (*UsersService) GetPresence Uses

func (s *UsersService) GetPresence(user string) *UsersGetPresenceCall

GetPresence creates a UsersGetPresenceCall object in preparation for accessing the users.getPresence endpoint

func (*UsersService) Identity Uses

func (s *UsersService) Identity() *UsersIdentityCall

Identity creates a UsersIdentityCall object in preparation for accessing the users.identity endpoint

func (*UsersService) Info Uses

func (s *UsersService) Info(user string) *UsersInfoCall

Info creates a UsersInfoCall object in preparation for accessing the users.info endpoint

func (*UsersService) List Uses

func (s *UsersService) List() *UsersListCall

List creates a UsersListCall object in preparation for accessing the users.list endpoint

func (*UsersService) LookupByEmail Uses

func (s *UsersService) LookupByEmail(email string) *UsersLookupByEmailCall

LookupByEmail creates a UsersLookupByEmailCall object in preparation for accessing the users.lookupByEmail endpoint

func (*UsersService) SetActive Uses

func (s *UsersService) SetActive() *UsersSetActiveCall

SetActive creates a UsersSetActiveCall object in preparation for accessing the users.setActive endpoint

func (*UsersService) SetPresence Uses

func (s *UsersService) SetPresence(presence string) *UsersSetPresenceCall

SetPresence creates a UsersSetPresenceCall object in preparation for accessing the users.setPresence endpoint

type UsersSetActiveCall Uses

type UsersSetActiveCall struct {
    // contains filtered or unexported fields
}

UsersSetActiveCall is created by UsersService.SetActive method call

func (*UsersSetActiveCall) Do Uses

func (c *UsersSetActiveCall) Do(ctx context.Context) error

Do executes the call to access users.setActive endpoint

func (*UsersSetActiveCall) FromValues Uses

func (c *UsersSetActiveCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersSetActiveCall) ValidateArgs Uses

func (c *UsersSetActiveCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersSetActiveCall object

func (*UsersSetActiveCall) Values Uses

func (c *UsersSetActiveCall) Values() (url.Values, error)

Values returns the UsersSetActiveCall object as url.Values

type UsersSetPresenceCall Uses

type UsersSetPresenceCall struct {
    // contains filtered or unexported fields
}

UsersSetPresenceCall is created by UsersService.SetPresence method call

func (*UsersSetPresenceCall) Do Uses

func (c *UsersSetPresenceCall) Do(ctx context.Context) error

Do executes the call to access users.setPresence endpoint

func (*UsersSetPresenceCall) FromValues Uses

func (c *UsersSetPresenceCall) FromValues(v url.Values) error

FromValues parses the data in v and populates `c`

func (*UsersSetPresenceCall) ValidateArgs Uses

func (c *UsersSetPresenceCall) ValidateArgs() error

ValidateArgs checks that all required fields are set in the UsersSetPresenceCall object

func (*UsersSetPresenceCall) Values Uses

func (c *UsersSetPresenceCall) Values() (url.Values, error)

Values returns the UsersSetPresenceCall object as url.Values

Directories

PathSynopsis
events
internal/option
objects
rtm
server
server/mockserver
server/proxyserver

Package slack imports 15 packages (graph) and is imported by 4 packages. Updated 2019-01-16. Refresh now. Tools for package owners.