{"id":46005846,"url":"https://github.com/rbague/slack-webhook","last_synced_at":"2026-02-28T23:08:14.009Z","repository":{"id":57595864,"uuid":"158460712","full_name":"rbague/slack-webhook","owner":"rbague","description":"A minimal client for Slack's Incoming Webhooks API","archived":false,"fork":false,"pushed_at":"2018-12-01T19:47:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-07-27T22:34:30.035Z","etag":null,"topics":["go","golang","incoming-webhooks","library","slack"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rbague.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-20T22:44:15.000Z","updated_at":"2018-12-01T19:47:28.000Z","dependencies_parsed_at":"2022-09-12T08:50:20.318Z","dependency_job_id":null,"html_url":"https://github.com/rbague/slack-webhook","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/rbague/slack-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbague%2Fslack-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbague%2Fslack-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbague%2Fslack-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbague%2Fslack-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbague","download_url":"https://codeload.github.com/rbague/slack-webhook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbague%2Fslack-webhook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29954583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","incoming-webhooks","library","slack"],"created_at":"2026-02-28T23:08:13.515Z","updated_at":"2026-02-28T23:08:13.986Z","avatar_url":"https://github.com/rbague.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/rbague/slack-webhook?status.svg)](https://godoc.org/github.com/rbague/slack-webhook)\n[![Go Report Card](https://goreportcard.com/badge/github.com/rbague/slack-webhook)](https://goreportcard.com/report/github.com/rbague/slack-webhook)\n[![Build Status](https://travis-ci.org/rbague/slack-webhook.svg)](https://travis-ci.org/rbague/slack-webhook)\n\n# slack-webhook\nA minimal client for Slack's [Incoming Webhooks](https://api.slack.com/incoming-webhooks) API.\n\nBy default, uses http.DefaultClient to post the payload. This can be overridden by changing the Client variable in the Client struct\n\n[embedmd]:# (webhook.go /type Client.*/ /}/)\n```go\ntype Client struct {\n\turl    string\n\tClient Poster\n}\n```\n\n### Usage:\n[embedmd]:# (example/main.go)\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/rbague/slack-webhook\"\n)\n\nfunc main() {\n\tclient := webhook.NewClient(\"WEBHOOK_URL_HERE\")\n\n\terr := client.SendSimple(\"Hello, World!\")\n\tif err != nil {\n\t\tlog.Fatalf(\"could not send simple message: %v\", err)\n\t}\n}\n```\n\n### Configuration\nTo get your webhook URL:\n 1. go to [Incoming Webhooks](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) Slack app\n 2. choose your team and add a configuration\n 3. choose the default channel and add integration\n\nFurther configuration can be added in the integration settings. \nThe default configuration can also be overridden in the Payload struct\n\n[embedmd]:# (payload.go /type Payload.*/ /}/)\n```go\ntype Payload struct {\n\tText string `json:\"text\"`\n\n\t// The channel where to send the payload to, or the configured channel\n\t// Can be both a channel '#other-channel' or a direct message '@username'\n\tChannel     string        `json:\"channel,omitempty\"`\n\tUserName    string        `json:\"username,omitempty\"`\n\tIconURL     string        `json:\"icon_url,omitempty\"`\n\tIconEmoji   string        `json:\"icon_emoji,omitempty\"` // :ghost:\n\tUnfurlLinks bool          `json:\"unfurl_links,omitempty\"`\n\tAttachments []*Attachment `json:\"attachments,omitempty\"`\n\n\t// Markdown used to disable markdown formatting on the text field\n\tMarkdown *bool `json:\"mrkdwn,omitempty\"`\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbague%2Fslack-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbague%2Fslack-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbague%2Fslack-webhook/lists"}