FastComments.com
Here you can edit and run the code snippet from our documentation.
Example Code Snippet "Het WebhookComment-object"
interface WebhookComment { /** The id of the comment. **/ id: string /** The id or URL that identifies the comment thread. Normalized. **/ urlId: string /** The URL that points to where the comment was left. **/ url: string | null /** The user id that left the comment. If SSO, prefixed with tenant id. **/ userId: string | null /** The email of the user left the comment. **/ commenterEmail: string | null /** The name of the user that shows in the comment widget. With SSO, can be displayName. **/ commenterName: string /** Raw comment text. **/ comment: string /** Comment text after parsing. **/ commentHTML: string /** Comment external id. **/ externalId: string | null /** The id of the parent comment. **/ parentId: string | null /** The UTC date when the comment was left. **/ date: UTC_ISO_DateString /** Combined karma (up - down) of votes. **/ votes: number votesUp: number votesDown: number /** True if the user was logged in when they commented, or their verified the comment, or if they verified their session when the comment was left. **/ verified: boolean /** The UTC date when the comment was verified. **/ verifiedDate: UTC_ISO_DateString | null /** If a moderator marked the comment reviewed. **/ reviewed: boolean /** The location, or base64 encoding, of the avatar. Will only be base64 if that was the value passed with SSO. **/ avatarSrc: string | null /** Was the comment manually or automatically marked as spam? **/ isSpam: boolean /** Was the comment automatically marked as spam? **/ aiDeterminedSpam: boolean /** Are there images in the comment? **/ hasImages: boolean /** The page number the comment is on for the "Most Relevant" sort direction. **/ pageNumber: number | null /** The page number the comment is on for the "Oldest First" sort direction. **/ pageNumberOF: number | null /** The page number the comment is on for the "Newest First" sort direction. **/ pageNumberNF: number | null /** Was the comment approved automatically or manually? **/ approved: boolean /** The locale code (format: en_us) of the user when the comment was written. **/ locale: string | null /** The @mentions written in the comment that were successfully parsed. Empty when there are none. **/ mentions: CommentUserMention[] /** The domain the comment is from. **/ domain: string | null /** The moderation group ids associated with this comment. Empty when there are none. **/ moderationGroupIds: string[] }
Result