• This repository has been archived on 16/May/2023
  • Stars
    star
    182
  • Rank 211,154 (Top 5 %)
  • Language
    Java
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

Slack WebHook Integration for Java

slack-webhook

Slack WebHook Integration for Java

Basic Examples

// Send simple message
SlackApi api = new SlackApi("https://hooks.slack.com/services/id_1/id_2/token");
api.call(new SlackMessage("my message"));

// Send simple message with custom name
SlackApi api = new SlackApi("https://hooks.slack.com/services/id_1/id_2/token");
api.call(new SlackMessage("Mafagafo", "my message"));

// Send simple message in different room
SlackApi api = new SlackApi("https://hooks.slack.com/services/id_1/id_2/token");
api.call(new SlackMessage("#general", null, "my message"));

// Send simple message in different room with custom name
SlackApi api = new SlackApi("https://hooks.slack.com/services/id_1/id_2/token");
api.call(new SlackMessage("#general", "Mafagafo", "my message"));

// Send simple message in different room with custom name and tag someone in the message so he will get notified
SlackApi api = new SlackApi("https://hooks.slack.com/services/id_1/id_2/token");
api.call(new SlackMessage("#general", "Mafagafo", "Hi @gpedro : your API rocks").setLinkNames(true));

Installation

Add the following dependency in pom.xml

<dependency>
  <groupId>net.gpedro.integrations.slack</groupId>
  <artifactId>slack-webhook</artifactId>
  <version>1.4.0</version>
</dependency>

Configuration

  1. Go to your_team.slack.com/services/new
  2. Search for Incoming WebHook and click in Add
  3. Choose Channel to Post and press Add Incoming WebHooks Integration
  4. Into Setup Instructions, you've a WebHook URL. He is the argument you must pass the constructor. Then, copy it.

Change Log

  • 1.4.0
    • Added footer, footer-icon, ts (#24) and link_names (#25) attributes
  • 1.3.0
    • Added Slack Actions (thanks @galimru)
  • 1.2.1
    • Improved MatterMost Compatibility
  • 1.2.0
    • Added Support for Proxy
  • 1.1.2
    • Added Support for Markdown in SlackAttachment
  • 1.1.1
    • General Improvements
  • 1.0.0
    • Init (:

More Repositories

1

CodeIgniter-Assets-Helper

Helper to load assets in Codeigniter.
PHP
34
star
2

facebook-mass-publisher

(NOT WORKING) Simple script to publish to multiple Facebook Groups
JavaScript
31
star
3

node-vagalume

Módulo Node do Vagalume API. Crie suas aplicações e integre com o Vagalume! Ofereça conteúdo de qualidade para seus usuários!
JavaScript
25
star
4

clipboard-app

Aplicativo para eu colar na prova. HUSAHUSAHUSAHUSAHUSA
JavaScript
24
star
5

slack-portuguese-jokes

Envie piadinhas hueheubrbr no Slack
JavaScript
17
star
6

dojo.js

Coding Dojo Boilerplate for JavaScript
JavaScript
15
star
7

geopattern-generator

generate custom geopatterns
HTML
11
star
8

pixelarizator

( ;
JavaScript
10
star
9

slack-whatthecommit

A commit message generator for Slack!
JavaScript
7
star
10

node-wikia

Wikia API Client written in node.js
JavaScript
6
star
11

grpc-google-io-extended-cuiaba-demo

Python
6
star
12

my-zsh-theme

MOoX theme based - oh-my-zsh
6
star
13

express-file-upload-demo

Basic Example of File Upload using Multer and Express
JavaScript
6
star
14

hasher-firefox

Firefox extension. Calculates MD5, SHA-1, SHA-2, IP/Subnet, URL decode, Base64 and more.
JavaScript
5
star
15

hackacity-cuiaba

eunseionomedoprojeto-ajudaluciano
JavaScript
5
star
16

CodeIgniter-PagSeguro

Pagseguro Library with some fixes to work in Codeigniter
PHP
5
star
17

dojo-guideline

4
star
18

facebook-random-comment

Simple script to get a random comment into specific post
CSS
3
star
19

vagalume-api

JavaScript
3
star
20

standalone-tibia12-login-dot-php

PHP
3
star
21

example-java-corba

Java
3
star
22

potions-shop

Aplicativo que vende Potions
JavaScript
3
star
23

arena-rpg.java

Arena-RPG feito em Java!
Java
2
star
24

otbm-metadata

JavaScript
2
star
25

github-streak

JavaScript
2
star
26

dojo-s01e01-cheque-por-extenso.js

DevMT Dojo S01E01 (versão NodeJS)
JavaScript
2
star
27

arena-rpg.js

https://github.com/yodojo/arena-rpg-s05e01 Fork in JavaScript
JavaScript
2
star
28

nodejs-presentation-demo

JavaScript
2
star
29

sinesp-watcher

seja notificado pelo discord sempre que houver uma atualização do aplicativo SINESP Cidadão
JavaScript
1
star
30

faculdade

Alguns protótipos e projetos solicitados pela Universidade.
1
star
31

wfdojo-backup

Just a coding dojo task
JavaScript
1
star
32

dannyx-loot-naming

HTML
1
star
33

projecteuler-init

JavaScript
1
star
34

padrinho.com.br

1
star
35

yui-blog.docpad

CSS
1
star
36

we-send-email

We.js email sender machine! With node nodemailer and email-templates for we.js and sails.js
JavaScript
1
star
37

filinha

Projeto de Gerenciamento de Filas e Senhas com Agendamento para Universidades
Java
1
star
38

dojo.--resources

Arquivos utilizados nas artes dos dojo.*
1
star
39

pokemons

Sistema de Gerenciamento de Treinadores de Pokemons
1
star
40

example-chat-tcp

Java
1
star
41

example-vaadin-navigator

Java
1
star
42

dojo-s01e02-escrevendo-no-celular.php

Implementação em PHP do problema proposto no dojo S01E02 do DevMT
PHP
1
star
43

PPN

Repositório para conteudos da PPN
JavaScript
1
star
44

dojo-s01e01-cheque-por-extenso.java

DevMT Dojo S01E01 (versão Java)
Java
1
star
45

myaac_snow_december

This plugin adds a snow effect when it reaches December
Twig
1
star
46

we-theme-accounts-perfis

We.js accounts default theme
CSS
1
star
47

dojo-s01e03-nuvem-cinza.js

Implementação em NodeJS do problema proposto no dojo S01E03 do DevMT
JavaScript
1
star
48

facebook

Consulta de ID ou Usuário do Facebook
PHP
1
star
49

Harveu-AAC

The best web application for Open Tibia Servers
PHP
1
star
50

perfis.atencaobasica.org.br

Servidor de Oauth da Comunidade de Práticas
JavaScript
1
star
51

calculadora

Trabalho de Teste de Sistemas: Calculadora com testes unitários
JavaScript
1
star
52

meetup-devmt

1
star
53

MATE-iTerm-colors

1
star
54

bundle-webserver

1
star
55

hugames-app

Example App to sell Games
JavaScript
1
star
56

felquis.com

My personal website.
CSS
1
star
57

dojo-s01e02-escrevendo-no-celular.js

Implementação em NodeJS do problema proposto no dojo S01E02 do DevMT
JavaScript
1
star
58

dojo-s01e02-escrevendo-no-celular.angular

Implementação em Diretiva do AngularJS do problema proposto no dojo S01E02 do DevMT
JavaScript
1
star
59

milligram-customizer

Generate a Custom Milligram CSS
CSS
1
star
60

tutorials

My collection of tutorials.
1
star
61

example-java-rmi

Java
1
star
62

presentation-git-github

HTML
1
star
63

frontjobs-site

Site Front Jobs
JavaScript
1
star
64

cloudflare-zerotrust-service-token

demo repository
HTML
1
star
65

Tibia-ME.net

Tibia-ME.net internalization files
1
star
66

ghost-tips-n-tricks

1
star
67

xd

1
star
68

seacomp-laravel-demo

PHP
1
star
69

generator-dojo-js

Generator to DojoJS
JavaScript
1
star
70

minicurso-devweb

JavaScript
1
star
71

tfs-diff-3-4

C++
1
star