Skip to content
kwmtPublic

About

slack chat post api

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

slack api

CircleCI GoDoc Usage

attachments := slack.NewAttachments(1)
attachments[0].SetFallback("Required plain-text summary of the attachment.").SetTitle("タイトル")

json, err := slack.JSON(attachments)
if err != nil {
	log.Println(err)
}

c := slack.NewClient()
c.SetToken("YOUR TOKEN").SetChannel("#general").SetText("こんにちは").SetAttachments(json).PostMessage()

You can check the token for test from here.

Install

go get github.com/kwmt/slack

About

slack chat post api

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages