Skip to content

kwmt/slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages