Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 790 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 790 Bytes

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