External Notification Integration App
It is an app that sends notifications when users connect to or disconnect from the Space via Slack, Teams, or a custom-built server, among other events.
The messenger notification feature sends messages to a channel through Incoming Webhooks that can be installed in messengers like Slack, Teams, etc. Please proceed with the setup by referring to the guide below.
Go to the settings of the chat room where you want to send a message, run [Add App], search for Incoming Webhook, and execute the installation.
Click [Add to Slack] on the settings page, enter the chat room to send messages to, and then proceed to the next step.
Add the message settings you will use in the [Integrated App Settings] section on the detailed settings page. (bot name, image) Please copy the URL displayed in [Webhook URL]
Enter the url in the connection settings to complete the setup. (Once set up correctly, a test message will be sent via messenger and the settings will be saved.)
After selecting the app in the messenger, search for the incoming Webhook and execute it.
After clicking to add an app, select the team or channel to send the message to.
After clicking on Configure Incoming Webhook, add message settings (bot name, image).
When you press create, a URL will be issued.
Enter the URL in the connection settings to complete the setup. (A test message will be sent via messenger if the setup is done correctly, and the settings will be saved.)
If you wish to receive notifications that can be sent from ZEP by building your own server, please refer to the guide below.
How to Configure Environment
POST
method is used and the message sent is inJSON
FormThe protocol(port) is HTTPS(443).
The Content-Type of the request header is
Content-type: application/json
.Response for successful linkage must be set as
success
to be integrated properly.
Transmission Data Type
{"body" :
{
"map_hashID" : “맵HashID”
, ”userKey” : ”테스트유저키"
, "nickname" : "닉네임"
, "type" : "enter/exit"
, "date" : "2024-01-25 12:33:22"
}
}
Data description
Key | Value |
Date | Event Occurrence Time |
eventType | Event Types - enter: Connect (including movement between maps) - exit: Disconnect (including movement between maps) |
nickname | Name entered in customUrl upon access or user's nickname |
userKey | UserKey entered in customUrl upon access |
map_hashID | Connected Map ID |
userId | ID of connected user |
Please activate the [external notification app], select Connect API and include the URL address to send POST request. After that, activate notifications.
CustomData usage
When including
customData
(name, userKey, etc.) in the map address (url), they will be replaced/added with the specified values when making a POST request, and the data will be transmitted.e.g.)
https://zep.us/play/{mapHashId}?customData={"name":"ZEP", "userKey":"r1gJMA"}