• This repository has been archived on 20/Mar/2021
  • Stars
    star
    185
  • Rank 208,271 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Golang client for the Slack API. **NOTE: This project is already archived, so we recommend that you use https://github.com/slack-go/slack instead.**

Slack GoDoc

Golang client for the Slack API. Include the example code using each slack api.

Currently supports:

Method Description Example
channels.history Fetches history of messages and events from a channel. #link
channels.join Joins a channel, creating it if needed. #link
channels.list Lists all channels in a Slack team. #link
chat.postMessage Sends a message to a channel. #link
files.upload Upload an image/file #link
files.info Retrieves the information about an uploaded file #link
groups.invite Invites a user to a private group. #link
groups.create Creates a private group. #link
groups.list Lists private groups that the calling user has access to. #link
users.info Gets information about a channel. #link
users.list Lists all users in a Slack team. #link

Example

package main

import (
  "github.com/bluele/slack"
)

const (
  token       = "your-api-token"
  channelName = "general"
)

func main() {
  api := slack.New(token)
  err := api.ChatPostMessage(channelName, "Hello, world!", nil)
  if err != nil {
    panic(err)
  }
}

Command line tool

If you are looking for slack commandline utility, vektorlab/slackcat probably suits you.

Author

Jun Kimura

More Repositories

1

gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
Go
2,439
star
2

factory-go

A library for setting up Golang objects inspired by factory_bot.
Go
356
star
3

gforms

A flexible forms validation and rendering library for golang web development.Inspired by django-forms and wtforms.
Go
124
star
4

mecab-golang

A golang wrapper for mecab.
Go
36
star
5

redis-semaphore

A distributed semaphore and mutex built on Redis.
Python
35
star
6

react-go

Go wrapper around the React and JSX.
Go
31
star
7

adblock

Golang parser for Adblock Plus filters
Go
19
star
8

Flask-request-params

Flask-request-params provides Rails-like interface to HTTP Request Parameters for Flask.
Python
10
star
9

go-flow

go-flow is a Golang library that helps you to create a complex flow of batch jobs.
Go
6
star
10

zapslack

Slack Hook for zap
Go
6
star
11

gsignal

Golang library for monitoring asynchronously signals.
Go
4
star
12

gosem

gosem provides multiple semaphore functions. Currently supports inmemory, redis implementation.
Go
4
star
13

go-v7

Go binding to javascript engine v7.
C
4
star
14

Flask-jsonrpc-over-websocket-example

Example flask code to implement jsonrpc over websocket.
Python
3
star
15

randutil

Random variable utility library for golang. Inspired by python random module.
Go
3
star
16

psort

Partial sorting for golang
Go
2
star
17

logrus_slack

Slack Hooks for Logrus
Go
2
star
18

Gistpy

Command line client for gist.
Python
2
star
19

go-subprocess

[WIP] A convenience wrapper around the `os/exec` module.
Go
2
star
20

cetd

Content Extraction via Text Density (CETD) program provides algorithms to detect and remove the additional content
C++
2
star
21

Twister

Twitter Streaming Server.
Python
1
star
22

vermouth

Go
1
star
23

dynamodb

Golang dynamodb library.
Go
1
star
24

gcoding

An encoding library for golang.
Go
1
star
25

greq

Yet another HTTP client library for golang.
Go
1
star
26

rkvs

simple raft-based kvs
Go
1
star
27

Dym

Show the candidate string such as "Did you mean this?" on git.
Python
1
star
28

gen-validator

Go
1
star
29

DM

Data mining library.
C++
1
star
30

golang-swig-example

swig example codes for golang.
C++
1
star
31

pystol

Python
1
star
32

gocache

[Deprecated] Cache module for golang. See https://github.com/bluele/gcache
Go
1
star
33

FileTransaction

File transaction for python2.x
Python
1
star
34

go-semaphore

Implements basic semaphore and time limited semaphore on go language.
Go
1
star
35

ExtractWord

Python
1
star
36

fsobserve

Yet another file system observer. Supports Linux, OSX, Windows, and etc.
Go
1
star
37

ngram

Rust
1
star
38

interchain-simple-packet

Go
1
star
39

Lamia

Cache Module for Python2.x
Python
1
star
40

forge-tx-replay

A small library for Forge that makes it easy to replay transactions and inspect the contract code and state
Solidity
1
star
41

interchain-packet-router

A very experimental project to define a packet router on interchain
Go
1
star
42

StringMatching

Approximate string matching
1
star
43

PyCliper

Python Tkinter-GUI Application
Python
1
star