slack

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentField

type AttachmentField struct {
	Title string
	Value string
}

AttachmentField represents the field of Slack message attachment

type Client

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

Client represents the wrapper of Slack API client

func NewClient

func NewClient(token string) *Client

NewClient creates Client object

func (*Client) GetChannelID

func (c *Client) GetChannelID(channel string) (string, error)

GetChannelID retrieves internal ID of the given channel

func (*Client) PostMessageWithAttachment

func (c *Client) PostMessageWithAttachment(channelID, color, title, text string, fields []*AttachmentField) error

PostMessageWithAttachment posts message with attachment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL