1.0.5 • Published 1 year ago

jandi-hook v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

JANDI INCOMEHOOK

Install

npm install jandi-webhook

Hook Usage

잔디 메신저 안에서 사용하고자 하는 토빅방의 인컴훅을 생성한다.

import JandiHook from 'jandi-webhook'

JandiHook(
    "발급받은 웹훅URL",
    {
        body : "최상단에 노출할 메세지",
        connectInfo : [ // 메세지 하단 말풍선에 노출될 메세지들의 배열
            {
                title : "메세지 하단 말풍선 내 최상단 메세지",
                description : "메세지 하단 말풍선 내 중간 메세지",
                imageUrl : "메세지 하단 말풍선 내 노출될 Link의 URL"
            }
        ]
    },
    "error"
)

Params

fileddata typedescription
urlstring필수 잔디 메신저에서 발급받은 인컴훅의 URL 주소
dataObjext Array필수 잔디 메신저로 보낼 데이터
tpyeerror or success or warning선택 메세지 하단 바의 색상

data Filed

fileddata typedescription
bodystring필수 최상단에 노출될 메세지
connectInfoObjext Array선택 메세지 하단 말풍선에 노출될 메세지들의 배열

connectInfo Filed

fileddata typedescription
titlestring선택메세지 하단 말풍선 내 최상단 메세지
descriptionstring선택메세지 하단 말풍선 내 중간 메세지
imageUrlstring선택메세지 하단 말풍선 내 노출된 Link의 URL
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago