All Projects → ashwanthkumar → Slack Go Webhook

ashwanthkumar / Slack Go Webhook

Licence: apache-2.0
Go Library to send messages to Slack via Webhooks

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Slack Go Webhook

Slack Block Builder
Lightweight, no-dependency JavaScript library for creating Slack Block Kit UIs, with a builder syntax, inspired by SwiftUI.
Stars: ✭ 129 (-7.19%)
Mutual labels:  slack
Bolt Js
A framework to build Slack apps using JavaScript
Stars: ✭ 1,971 (+1317.99%)
Mutual labels:  slack
Slack Macos Swiftui Sample
Slack macOS Big Sur SwiftUI example app
Stars: ✭ 138 (-0.72%)
Mutual labels:  slack
Vscode Deploy Reloaded
Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
Stars: ✭ 129 (-7.19%)
Mutual labels:  slack
Aws Maintenance Lambda
A lambda function to send alerts (to Slack, HipChat) on AWS maintenance events.
Stars: ✭ 133 (-4.32%)
Mutual labels:  slack
Slackbotapi
node.js Slack RTM API module
Stars: ✭ 135 (-2.88%)
Mutual labels:  slack
Hanu
Golang Framework for writing Slack bots
Stars: ✭ 128 (-7.91%)
Mutual labels:  slack
React Slack Chat
[UPDATED] A Server-less Beautiful Gooey / Material Design Slack Chat Web Integrating Widget.
Stars: ✭ 139 (+0%)
Mutual labels:  slack
Norrisbot
a Slack bot that kicks asses (roundhouse-kicks to be accurate...)
Stars: ✭ 134 (-3.6%)
Mutual labels:  slack
Claudia Bot Builder
Create chat bots for Facebook Messenger, Slack, Amazon Alexa, Skype, Telegram, Viber, Line, GroupMe, Kik and Twilio and deploy to AWS Lambda in minutes
Stars: ✭ 1,717 (+1135.25%)
Mutual labels:  slack
Slacker
Full-featured Python interface for the Slack API
Stars: ✭ 1,615 (+1061.87%)
Mutual labels:  slack
Messaging Apis
Messaging APIs for multi-platform
Stars: ✭ 1,754 (+1161.87%)
Mutual labels:  slack
Tradingview Webhook Bot
⚙️ Send TradingView alerts to Telegram, Discord, Slack, Twitter and/or Email.
Stars: ✭ 135 (-2.88%)
Mutual labels:  slack
Slack Orb
Create custom Slack notifications for CircleCI job statuses
Stars: ✭ 129 (-7.19%)
Mutual labels:  slack
Lookerbot
Lookerbot lets you access all your Looker data from Slack! Super fun!
Stars: ✭ 138 (-0.72%)
Mutual labels:  slack
Rust Slack
A rust crate for sending messages to Slack via webhooks
Stars: ✭ 128 (-7.91%)
Mutual labels:  slack
Review Reporter
Bot for reporting Google Play Reviews on Slack with possibility to fast reply and creating Jira issues from low rating reviews.
Stars: ✭ 135 (-2.88%)
Mutual labels:  slack
Zabbix Notify
Notify alarms from Zabbix to Slack Hipchat and PagerDuty
Stars: ✭ 139 (+0%)
Mutual labels:  slack
Lita Slack
A Slack adapter for Lita.
Stars: ✭ 138 (-0.72%)
Mutual labels:  slack
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (-1.44%)
Mutual labels:  slack

GoDoc

slack-go-webhook

Go Lang library to send messages to Slack via Incoming Webhooks.

Usage

package main

import "github.com/ashwanthkumar/slack-go-webhook"
import "fmt"

func main() {
    webhookUrl := "https://hooks.slack.com/services/foo/bar/baz"

    attachment1 := slack.Attachment {}
    attachment1.AddField(slack.Field { Title: "Author", Value: "Ashwanth Kumar" }).AddField(slack.Field { Title: "Status", Value: "Completed" })
    attachment1.AddAction(slack.Action { Type: "button", Text: "Book flights 🛫", Url: "https://flights.example.com/book/r123456", Style: "primary" })
    attachment1.AddAction(slack.Action { Type: "button", Text: "Cancel", Url: "https://flights.example.com/abandon/r123456", Style: "danger" })
    payload := slack.Payload {
      Text: "Hello from <https://github.com/ashwanthkumar/slack-go-webhook|slack-go-webhook>, a Go-Lang library to send slack webhook messages.\n<https://golangschool.com/wp-content/uploads/golang-teach.jpg|golang-img>",
      Username: "robot",
      Channel: "#general",
      IconEmoji: "🐵",
      Attachments: []slack.Attachment{attachment1},
    }
    err := slack.Send(webhookUrl, "", payload)
    if len(err) > 0 {
      fmt.Printf("error: %s\n", err)
    }
}

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].