티스토리 뷰

slack을 통해서 여러가지 알림들을 받는게 기본이 된 시대.

의식적으로 채널에 알림연동을 하고, 실제 workin의 결과를 통해서 연동이 잘 되어 있음을 확인 하곤 했었다.
그러다, 최근 실제 working이 되기 전에 어떻게 Test 할 수 있나 라는 뒤늦은 생각이 들었다.

그래서. 기록으로 남겨둔다... 

slack webhook URL test

POST https://hooks.slack.com/services/xxxxxx
Content-type: application/json
{
    "text": "Hello, world."
}

curl

curl --request POST \
  --url https://hooks.slack.com/services/xxxxxx \
  --header 'Content-type: application/json' \
  --data '{"text":"Hello, world."}'

httpie

// style1
echo '{"text":"Hello, world."}' |  \
http POST https://hooks.slack.com/services/xxxxxx \
Content-type:application/json

// style2
http --json -v POST https://hooks.slack.com/services/xxxxxx  "text"="Hello, world."

 

 

 

 

'emotional developer > detect-Web' 카테고리의 다른 글

API Architectural Styles  (0) 2023.09.20
Spring Actuator Health Probe  (0) 2023.07.31
Synchronous, Asynchronous, Blocking, Non-Blocking  (0) 2023.07.04
공지사항