안녕하세요.
토픽 생성 이벤트가 발생했을 때 webbook의 payload 값을 사용자 정의하고 싶습니다.
예를 들어…
현재 상태 (AS-IS)
{
"post": {
"id": 19,
"name": "user",
"username": "user",
"avatar_template": "/letter_avatar_proxy/v2/letter/u/c0e974/{size}.png",
"created_at": "2018-07-20T06:24:33.205Z",
"cooked": "<p>Cool, now i have you, haha</p>",
"post_number": 6,
"post_type": 1,
"updated_at": "2018-07-20T06:24:33.205Z",
"reply_count": 0,
"reply_to_post_number": null,
"quote_count": 0,
"avg_time": null,
"incoming_link_count": 0,
"reads": 0,
"score": 0,
"topic_id": 11,
"topic_slug": "this-is-new-topic",
"topic_title": "This is new topic",
"display_username": "user",
"primary_group_name": null,
"version": 1,
"user_title": null,
"moderator": false,
"admin": true,
"staff": true,
"user_id": 1,
"hidden": false,
"trust_level": 1,
"deleted_at": null,
"user_deleted": false,
"edit_reason": null,
"wiki": false,
"topic_posts_count": 6
}
}
목표 상태 (TO-BE)
{
"topic_title": "This is new topic"
}
어떻게 해야 하는지 알려 주실 수 있나요?