FastComments.com
Here you can edit and run the code snippet from our documentation.
Example Code Snippet "WebhookComment 物件"
interface WebhookComment { /** 留言的 id。 **/ id: string /** 標識留言串的 id 或 URL。已標準化。 **/ urlId: string /** 指向留言所在位置的 URL。 **/ url: string | null /** 留言者的使用者 id。若為 SSO,則以租戶 id 為前綴。 **/ userId: string | null /** 留言者的電子郵件。 **/ commenterEmail: string | null /** 在留言小工具中顯示的使用者名稱。使用 SSO 時,可以是 displayName。 **/ commenterName: string /** 原始留言文字。 **/ comment: string /** 解析後的留言文字。 **/ commentHTML: string /** 留言的外部 id。 **/ externalId: string | null /** 父留言的 id。 **/ parentId: string | null /** 留言發表的 UTC 日期。 **/ date: UTC_ISO_DateString /** 投票的合計業力(讚 - 倒讚)。 **/ votes: number votesUp: number votesDown: number /** 若使用者在留言時已登入、或已驗證留言、或在留言時已驗證其工作階段,則為 true。 **/ verified: boolean /** 留言被驗證的 UTC 日期。 **/ verifiedDate: UTC_ISO_DateString | null /** 若版主已將留言標記為已審閱。 **/ reviewed: boolean /** 頭像的位置或 base64 編碼。僅在 SSO 傳入的值為 base64 時才會是 base64。 **/ avatarSrc: string | null /** 留言是被手動還是自動標記為垃圾訊息? **/ isSpam: boolean /** 留言是否被自動標記為垃圾訊息? **/ aiDeterminedSpam: boolean /** 留言中是否有圖片? **/ hasImages: boolean /** 留言在「最相關」排序方向下所在的頁碼。 **/ pageNumber: number | null /** 留言在「最舊優先」排序方向下所在的頁碼。 **/ pageNumberOF: number | null /** 留言在「最新優先」排序方向下所在的頁碼。 **/ pageNumberNF: number | null /** 留言是被自動還是手動核准? **/ approved: boolean /** 撰寫留言時使用者的語系代碼(格式:en_us)。 **/ locale: string | null /** 留言中成功解析出的 @mentions。若無則為空。 **/ mentions: CommentUserMention[] /** 留言所屬的網域。 **/ domain: string | null /** 與此留言相關聯的審核群組 id。若無則為空。 **/ moderationGroupIds: string[] /** 此留言中留言者名稱旁顯示的徽章,以事件建立當下為準。若無則為空。 **/ badges: CommentUserBadgeInfo[] }
Result