Documentation ¶
Index ¶
- Constants
- func NewConnector() (*sdk.ConnectorPlugin, error)
- type SendDirectMessageOperation
- type SendDirectMessageOperationProps
- type SendPrivateChannelMessage
- type SendPublicChannelMessage
- type SlackChannel
- type SlackChannelResponse
- type SlackChannelsListResponse
- type SlackGenericRespose
- type SlackListUsersResponse
- type SlackMessage
- type SlackMetadataResponse
- type SlackPostMessageResponse
- type SlackUser
- type SlackUserResponse
Constants ¶
View Source
const SlackAPIURL = "https://slack.com/api"
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
func NewConnector() (*sdk.ConnectorPlugin, error)
Types ¶
type SendDirectMessageOperation ¶
type SendDirectMessageOperation struct {
// contains filtered or unexported fields
}
func NewSendDirectMessageOperation ¶
func NewSendDirectMessageOperation() *SendDirectMessageOperation
func (SendDirectMessageOperation) GetInfo ¶
func (c SendDirectMessageOperation) GetInfo() *sdk.OperationInfo
func (SendDirectMessageOperation) Run ¶
func (c SendDirectMessageOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)
func (SendDirectMessageOperation) Test ¶
func (c SendDirectMessageOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)
type SendPrivateChannelMessage ¶
type SendPrivateChannelMessage struct {
// contains filtered or unexported fields
}
func NewSendPrivateChannelMessageOperation ¶
func NewSendPrivateChannelMessageOperation() *SendPrivateChannelMessage
func (SendPrivateChannelMessage) GetInfo ¶
func (c SendPrivateChannelMessage) GetInfo() *sdk.OperationInfo
func (SendPrivateChannelMessage) Run ¶
func (c SendPrivateChannelMessage) Run(ctx *sdk.RunContext) (sdk.JSON, error)
func (SendPrivateChannelMessage) Test ¶
func (c SendPrivateChannelMessage) Test(ctx *sdk.RunContext) (sdk.JSON, error)
type SendPublicChannelMessage ¶
type SendPublicChannelMessage struct {
// contains filtered or unexported fields
}
func NewSendPublicChannelMessageOperation ¶
func NewSendPublicChannelMessageOperation() *SendPublicChannelMessage
func (SendPublicChannelMessage) GetInfo ¶
func (c SendPublicChannelMessage) GetInfo() *sdk.OperationInfo
func (SendPublicChannelMessage) Run ¶
func (c SendPublicChannelMessage) Run(ctx *sdk.RunContext) (sdk.JSON, error)
func (SendPublicChannelMessage) Test ¶
func (c SendPublicChannelMessage) Test(ctx *sdk.RunContext) (sdk.JSON, error)
type SlackChannel ¶
type SlackChannelResponse ¶
type SlackChannelResponse struct { ID string `json:"id"` Name string `json:"name"` IsChannel bool `json:"is_channel"` IsGroup bool `json:"is_group"` IsMpim bool `json:"is_mpim"` IsIM bool `json:"is_im"` IsPrivate bool `json:"is_private"` IsMember bool `json:"is_member"` IsArchived bool `json:"is_archived"` }
type SlackChannelsListResponse ¶
type SlackChannelsListResponse struct { Ok bool `json:"ok"` Error string `json:"error"` Channels []SlackChannelResponse `json:"channels"` Metadata SlackMetadataResponse `json:"response_metadata"` }
type SlackGenericRespose ¶
type SlackListUsersResponse ¶
type SlackListUsersResponse struct { Ok bool `json:"ok"` Error string `json:"error"` // Has value when Ok is false Members []SlackUserResponse `json:"members"` Timestamp int64 `json:"cache_ts"` // Confirm if timestamp (seconds) is int64 Metadata SlackMetadataResponse `json:"response_metadata"` }
type SlackMessage ¶
type SlackMetadataResponse ¶
type SlackMetadataResponse struct {
NextCursor string `json:"next_cursor"`
}
type SlackPostMessageResponse ¶
type SlackPostMessageResponse struct { Ok bool `json:"ok"` Error string `json:"error"` Channel string `json:"channel"` Timestamp string `json:"ts"` Message SlackMessage `json:"message"` }
Click to show internal directories.
Click to hide internal directories.