
语言 🇨🇳 简体中文
文档
入门
API 参考
用法
聚合
审计日志
认证
基于评论的封禁
检查被封禁的评论
评论
用户的评论
域名配置
邮件模板
事件日志
动态帖子
举报评论
动图
话题标签
审核
审核员
通知计数
通知
页面互动
页面
待处理 Webhook 事件
问题配置
问题结果
问题结果汇总
SSO 用户
订阅
租户每日使用
租户套餐
租户用户
租户
工单
翻译
上传图片
用户徽章进度
用户徽章
用户通知
用户在线状态
用户搜索
用户
投票
FastComments 的 Nim SDK
这是 FastComments 的官方 Nim SDK。
FastComments API 的官方 Nim SDK
仓库
安装 
使用 Nimble
nimble install fastcomments
从源码构建
nimble build
库内容
此库包含生成的 API 客户端和 SSO 实用工具,以便更容易地使用该 API。
公开与受保护的 API
对于 API 客户端,有三个 API 模块:api_default、api_public 和 api_moderation。api_default 包含需要您的 API 密钥的方法,api_public 包含可直接从浏览器/移动设备等发出的无需认证的 API 调用。api_moderation 模块包含供版主面板使用的方法。
api_moderation 方法涵盖列出、计数、搜索和导出评论及其日志;管理操作,如删除/恢复评论、标记、设置审核/垃圾/批准状态、调整投票以及重新打开/关闭主题;封禁(针对评论封禁用户、撤销封禁、封禁前摘要、封禁状态和偏好,以及被封禁用户计数);以及徽章与信任(授予/移除徽章、列出手动徽章、获取/设置用户的信任系数,以及获取用户的内部档案)。每个 api_moderation 方法都接受一个 sso 参数,以便该调用以 SSO 版主身份进行身份验证。
快速开始 
使用已认证的 API (DefaultAPI)
重要: 已认证的端点需要将您的 API 密钥设置为 x-api-key 头。
import httpclient
import fastcomments
import fastcomments/apis/api_default
import fastcomments/models/model_comment_data
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
# 发起已认证的 API 调用
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
使用公共 API (PublicAPI)
公共端点不需要认证:
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# 发起公共 API 调用
let (response, httpResponse) = getCommentsPublic(
httpClient = client,
tenantId = "your-tenant-id",
urlId = "your-url-id",
page = 0,
direction = SortDirections.DESC,
sso = "",
skip = 0,
skipChildren = 0,
limit = 0,
limitChildren = 0,
countChildren = false,
fetchPageForCommentId = "",
includeConfig = false,
countAll = false,
includei10n = false,
locale = "",
modules = "",
isCrawler = false,
includeNotificationCount = false,
asTree = false,
maxTreeDepth = 0,
useFullTranslationIds = false,
parentId = "",
searchText = "",
hashTags = @[],
userId = "",
customConfigStr = "",
afterCommentId = "",
beforeCommentId = ""
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
使用审核 API (ModerationAPI)
审核端点为版主仪表板提供支持,并使用代表版主的 SSO 令牌进行认证:
import httpclient
import fastcomments
import fastcomments/apis/api_moderation
let client = newHttpClient()
# 在审核仪表板中列出评论
let (response, httpResponse) = getApiComments(
httpClient = client,
page = 0,
count = 30,
textSearch = "",
byIPFromComment = "",
filters = "",
searchFilters = "",
sorts = "",
demo = false,
sso = "your-sso-token"
)
if response.isSome:
let resp = response.get()
echo "Found ", resp.comments.len, " comments"
常见问题
- 401 authentication error:在发起 DefaultAPI 请求之前,确保在您的 HttpClient 上设置了
x-api-key头:client.headers["x-api-key"] = "your-api-key" - Wrong API class:服务器端已认证请求使用
api_default,客户端/公共请求使用api_public,版主仪表板请求使用api_moderation。
发起 API 调用 
此 SDK 中的所有 API 方法都返回元组 (Option[ResponseType], Response)。第一个元素在成功时包含解析后的响应,第二个元素是原始的 HTTP 响应。
示例:获取评论
import httpclient
import options
import fastcomments
import fastcomments/apis/api_default
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if httpResponse.code == Http200:
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
注意事项 
广播 ID
在某些 API 调用中,你会看到需要传入 broadcastId。当你接收到事件时,会返回这个 ID,这样如果你计划在客户端乐观地应用更改,就可以据此忽略该事件
(你可能会想这样做,因为它能提供最佳体验)。在此传入一个 UUID。该 ID 应足够唯一,在一次浏览器会话中不会出现两次。
SSO (单点登录)
有关 SSO 示例,请见下文。
SSO 使用 
简单 SSO
import fastcomments/sso
let user = newSimpleSSOUserData(
userId = "user-123",
email = "user@example.com",
avatar = "https://example.com/avatar.jpg"
)
let sso = newSimple(simpleUserData = user)
let token = sso.createToken()
echo "SSO Token: ", token
安全 SSO
import fastcomments/sso
let user = newSecureSSOUserData(
userId = "user-123",
email = "user@example.com",
username = "johndoe",
avatar = "https://example.com/avatar.jpg"
)
let apiKey = "your-api-key"
let sso = newSecure(apiKey = apiKey, secureUserData = user)
let token = sso.createToken()
echo "Secure SSO Token: ", token
fastcomments 文档 
API 端点文档
所有 URI 均相对于 https://fastcomments.com
| 类 | 方法 | HTTP 请求 | 描述 |
|---|---|---|---|
| DefaultApi | addDomainConfig | POST /api/v1/domain-configs | |
| DefaultApi | addHashTag | POST /api/v1/hash-tags | |
| DefaultApi | addHashTagsBulk | POST /api/v1/hash-tags/bulk | |
| DefaultApi | addPage | POST /api/v1/pages | |
| DefaultApi | addSSOUser | POST /api/v1/sso-users | |
| DefaultApi | aggregate | POST /api/v1/aggregate | 通过分组(如果提供了 groupBy)和执行多个操作,对文档进行聚合。支持多种操作(如 sum,countDistinct,avg 等)。 |
| DefaultApi | aggregateQuestionResults | GET /api/v1/question-results-aggregation | |
| DefaultApi | blockUserFromComment | POST /api/v1/comments/{id}/block | |
| DefaultApi | bulkAggregateQuestionResults | POST /api/v1/question-results-aggregation/bulk | |
| DefaultApi | changeTicketState | PATCH /api/v1/tickets/{id}/state | |
| DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
| DefaultApi | createEmailTemplate | POST /api/v1/email-templates | |
| DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
| DefaultApi | createModerator | POST /api/v1/moderators | |
| DefaultApi | createQuestionConfig | POST /api/v1/question-configs | |
| DefaultApi | createQuestionResult | POST /api/v1/question-results | |
| DefaultApi | createSubscription | POST /api/v1/subscriptions | |
| DefaultApi | createTenant | POST /api/v1/tenants | |
| DefaultApi | createTenantPackage | POST /api/v1/tenant-packages | |
| DefaultApi | createTenantUser | POST /api/v1/tenant-users | |
| DefaultApi | createTicket | POST /api/v1/tickets | |
| DefaultApi | createUserBadge | POST /api/v1/user-badges | |
| DefaultApi | createVote | POST /api/v1/votes | |
| DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
| DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
| DefaultApi | deleteEmailTemplate | DELETE /api/v1/email-templates/{id} | |
| DefaultApi | deleteEmailTemplateRenderError | DELETE /api/v1/email-templates/{id}/render-errors/{errorId} | |
| DefaultApi | deleteHashTag | DELETE /api/v1/hash-tags/{tag} | |
| DefaultApi | deleteModerator | DELETE /api/v1/moderators/{id} | |
| DefaultApi | deleteNotificationCount | DELETE /api/v1/notification-count/{id} | |
| DefaultApi | deletePage | DELETE /api/v1/pages/{id} | |
| DefaultApi | deletePendingWebhookEvent | DELETE /api/v1/pending-webhook-events/{id} | |
| DefaultApi | deleteQuestionConfig | DELETE /api/v1/question-configs/{id} | |
| DefaultApi | deleteQuestionResult | DELETE /api/v1/question-results/{id} | |
| DefaultApi | deleteSSOUser | DELETE /api/v1/sso-users/{id} | |
| DefaultApi | deleteSubscription | DELETE /api/v1/subscriptions/{id} | |
| DefaultApi | deleteTenant | DELETE /api/v1/tenants/{id} | |
| DefaultApi | deleteTenantPackage | DELETE /api/v1/tenant-packages/{id} | |
| DefaultApi | deleteTenantUser | DELETE /api/v1/tenant-users/{id} | |
| DefaultApi | deleteUserBadge | DELETE /api/v1/user-badges/{id} | |
| DefaultApi | deleteVote | DELETE /api/v1/votes/{id} | |
| DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
| DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
| DefaultApi | getCachedNotificationCount | GET /api/v1/notification-count/{id} | |
| DefaultApi | getComment | GET /api/v1/comments/{id} | |
| DefaultApi | getComments | GET /api/v1/comments | |
| DefaultApi | getDomainConfig | GET /api/v1/domain-configs/{domain} | |
| DefaultApi | getDomainConfigs | GET /api/v1/domain-configs | |
| DefaultApi | getEmailTemplate | GET /api/v1/email-templates/{id} | |
| DefaultApi | getEmailTemplateDefinitions | GET /api/v1/email-templates/definitions | |
| DefaultApi | getEmailTemplateRenderErrors | GET /api/v1/email-templates/{id}/render-errors | |
| DefaultApi | getEmailTemplates | GET /api/v1/email-templates | |
| DefaultApi | getFeedPosts | GET /api/v1/feed-posts | 需提供 tenantId afterId |
| DefaultApi | getHashTags | GET /api/v1/hash-tags | |
| DefaultApi | getModerator | GET /api/v1/moderators/{id} | |
| DefaultApi | getModerators | GET /api/v1/moderators | |
| DefaultApi | getNotificationCount | GET /api/v1/notifications/count | |
| DefaultApi | getNotifications | GET /api/v1/notifications | |
| DefaultApi | getPageByURLId | GET /api/v1/pages/by-url-id | |
| DefaultApi | getPages | GET /api/v1/pages | |
| DefaultApi | getPendingWebhookEventCount | GET /api/v1/pending-webhook-events/count | |
| DefaultApi | getPendingWebhookEvents | GET /api/v1/pending-webhook-events | |
| DefaultApi | getQuestionConfig | GET /api/v1/question-configs/{id} | |
| DefaultApi | getQuestionConfigs | GET /api/v1/question-configs | |
| DefaultApi | getQuestionResult | GET /api/v1/question-results/{id} | |
| DefaultApi | getQuestionResults | GET /api/v1/question-results | |
| DefaultApi | getSSOUserByEmail | GET /api/v1/sso-users/by-email/{email} | |
| DefaultApi | getSSOUserById | GET /api/v1/sso-users/by-id/{id} | |
| DefaultApi | getSSOUsers | GET /api/v1/sso-users | |
| DefaultApi | getSubscriptions | GET /api/v1/subscriptions | |
| DefaultApi | getTenant | GET /api/v1/tenants/{id} | |
| DefaultApi | getTenantDailyUsages | GET /api/v1/tenant-daily-usage | |
| DefaultApi | getTenantPackage | GET /api/v1/tenant-packages/{id} | |
| DefaultApi | getTenantPackages | GET /api/v1/tenant-packages | |
| DefaultApi | getTenantUser | GET /api/v1/tenant-users/{id} | |
| DefaultApi | getTenantUsers | GET /api/v1/tenant-users | |
| DefaultApi | getTenants | GET /api/v1/tenants | |
| DefaultApi | getTicket | GET /api/v1/tickets/{id} | |
| DefaultApi | getTickets | GET /api/v1/tickets | |
| DefaultApi | getUser | GET /api/v1/users/{id} | |
| DefaultApi | getUserBadge | GET /api/v1/user-badges/{id} | |
| DefaultApi | getUserBadgeProgressById | GET /api/v1/user-badge-progress/{id} | |
| DefaultApi | getUserBadgeProgressByUserId | GET /api/v1/user-badge-progress/user/{userId} | |
| DefaultApi | getUserBadgeProgressList | GET /api/v1/user-badge-progress | |
| DefaultApi | getUserBadges | GET /api/v1/user-badges | |
| DefaultApi | getVotes | GET /api/v1/votes | |
| DefaultApi | getVotesForUser | GET /api/v1/votes/for-user | |
| DefaultApi | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | patchHashTag | PATCH /api/v1/hash-tags/{tag} | |
| DefaultApi | patchPage | PATCH /api/v1/pages/{id} | |
| DefaultApi | patchSSOUser | PATCH /api/v1/sso-users/{id} | |
| DefaultApi | putDomainConfig | PUT /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | putSSOUser | PUT /api/v1/sso-users/{id} | |
| DefaultApi | renderEmailTemplate | POST /api/v1/email-templates/render | |
| DefaultApi | replaceTenantPackage | PUT /api/v1/tenant-packages/{id} | |
| DefaultApi | replaceTenantUser | PUT /api/v1/tenant-users/{id} | |
| DefaultApi | saveComment | POST /api/v1/comments | |
| DefaultApi | saveCommentsBulk | POST /api/v1/comments/bulk | |
| DefaultApi | sendInvite | POST /api/v1/moderators/{id}/send-invite | |
| DefaultApi | sendLoginLink | POST /api/v1/tenant-users/{id}/send-login-link | |
| DefaultApi | unBlockUserFromComment | POST /api/v1/comments/{id}/un-block | |
| DefaultApi | unFlagComment | POST /api/v1/comments/{id}/un-flag | |
| DefaultApi | updateComment | PATCH /api/v1/comments/{id} | |
| DefaultApi | updateEmailTemplate | PATCH /api/v1/email-templates/{id} | |
| DefaultApi | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
| DefaultApi | updateModerator | PATCH /api/v1/moderators/{id} | |
| DefaultApi | updateNotification | PATCH /api/v1/notifications/{id} | |
| DefaultApi | updateQuestionConfig | PATCH /api/v1/question-configs/{id} | |
| DefaultApi | updateQuestionResult | PATCH /api/v1/question-results/{id} | |
| DefaultApi | updateSubscription | PATCH /api/v1/subscriptions/{id} | |
| DefaultApi | updateTenant | PATCH /api/v1/tenants/{id} | |
| DefaultApi | updateTenantPackage | PATCH /api/v1/tenant-packages/{id} | |
| DefaultApi | updateTenantUser | PATCH /api/v1/tenant-users/{id} | |
| DefaultApi | updateUserBadge | PUT /api/v1/user-badges/{id} | |
| ModerationApi | deleteModerationVote | DELETE /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | |
| ModerationApi | getApiComments | GET /auth/my-account/moderate-comments/api/comments | |
| ModerationApi | getApiExportStatus | GET /auth/my-account/moderate-comments/api/export/status | |
| ModerationApi | getApiIds | GET /auth/my-account/moderate-comments/api/ids | |
| ModerationApi | getBanUsersFromComment | GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | |
| ModerationApi | getCommentBanStatus | GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | |
| ModerationApi | getCommentChildren | GET /auth/my-account/moderate-comments/comment-children/{commentId} | |
| ModerationApi | getCount | GET /auth/my-account/moderate-comments/count | |
| ModerationApi | getCounts | GET /auth/my-account/moderate-comments/banned-users/counts | |
| ModerationApi | getLogs | GET /auth/my-account/moderate-comments/logs/{commentId} | |
| ModerationApi | getManualBadges | GET /auth/my-account/moderate-comments/get-manual-badges | |
| ModerationApi | getManualBadgesForUser | GET /auth/my-account/moderate-comments/get-manual-badges-for-user | |
| ModerationApi | getModerationComment | GET /auth/my-account/moderate-comments/comment/{commentId} | |
| ModerationApi | getModerationCommentText | GET /auth/my-account/moderate-comments/get-comment-text/{commentId} | |
| ModerationApi | getPreBanSummary | GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | |
| ModerationApi | getSearchCommentsSummary | GET /auth/my-account/moderate-comments/search/comments/summary | |
| ModerationApi | getSearchPages | GET /auth/my-account/moderate-comments/search/pages | |
| ModerationApi | getSearchSites | GET /auth/my-account/moderate-comments/search/sites | |
| ModerationApi | getSearchSuggest | GET /auth/my-account/moderate-comments/search/suggest | |
| ModerationApi | getSearchUsers | GET /auth/my-account/moderate-comments/search/users | |
| ModerationApi | getTrustFactor | GET /auth/my-account/moderate-comments/get-trust-factor | |
| ModerationApi | getUserBanPreference | GET /auth/my-account/moderate-comments/user-ban-preference | |
| ModerationApi | getUserInternalProfile | GET /auth/my-account/moderate-comments/get-user-internal-profile | |
| ModerationApi | postAdjustCommentVotes | POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | |
| ModerationApi | postApiExport | POST /auth/my-account/moderate-comments/api/export | |
| ModerationApi | postBanUserFromComment | POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | |
| ModerationApi | postBanUserUndo | POST /auth/my-account/moderate-comments/ban-user/undo | |
| ModerationApi | postBulkPreBanSummary | POST /auth/my-account/moderate-comments/bulk-pre-ban-summary | |
| ModerationApi | postCommentsByIds | POST /auth/my-account/moderate-comments/comments-by-ids | |
| ModerationApi | postFlagComment | POST /auth/my-account/moderate-comments/flag-comment/{commentId} | |
| ModerationApi | postRemoveComment | POST /auth/my-account/moderate-comments/remove-comment/{commentId} | |
| ModerationApi | postRestoreDeletedComment | POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | |
| ModerationApi | postSetCommentApprovalStatus | POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | |
| ModerationApi | postSetCommentReviewStatus | POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | |
| ModerationApi | postSetCommentSpamStatus | POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | |
| ModerationApi | postSetCommentText | POST /auth/my-account/moderate-comments/set-comment-text/{commentId} | |
| ModerationApi | postUnFlagComment | POST /auth/my-account/moderate-comments/un-flag-comment/{commentId} | |
| ModerationApi | postVote | POST /auth/my-account/moderate-comments/vote/{commentId} | |
| ModerationApi | putAwardBadge | PUT /auth/my-account/moderate-comments/award-badge | |
| ModerationApi | putCloseThread | PUT /auth/my-account/moderate-comments/close-thread | |
| ModerationApi | putRemoveBadge | PUT /auth/my-account/moderate-comments/remove-badge | |
| ModerationApi | putReopenThread | PUT /auth/my-account/moderate-comments/reopen-thread | |
| ModerationApi | setTrustFactor | PUT /auth/my-account/moderate-comments/set-trust-factor | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | createV1PageReact | POST /page-reacts/v1/likes/{tenantId} | |
| PublicApi | createV2PageReact | POST /page-reacts/v2/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | deleteV1PageReact | DELETE /page-reacts/v1/likes/{tenantId} | |
| PublicApi | deleteV2PageReact | DELETE /page-reacts/v2/{tenantId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsForUser | GET /comments-for-user | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | 需提供 tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | 需提供 tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | 需提供 tenantId afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGifLarge | GET /gifs/get-large/{tenantId} | |
| PublicApi | getGifsSearch | GET /gifs/search/{tenantId} | |
| PublicApi | getGifsTrending | GET /gifs/trending/{tenantId} | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | 需提供 tenantId urlId userIdWS |
| PublicApi | getOfflineUsers | GET /pages/{tenantId}/users/offline | 页面上过往发表过评论但当前不在线的用户。按 displayName 排序。先用 /users/online 完全遍历后再用本端点渲染“成员”分区。基于 commenterName 的游标分页:服务端基于 {tenantId, urlId, commenterName} 局部索引按 afterName 向前遍历,基于 $gt,而非 $skip 没有性能损耗。 |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | 当前页面在线用户:即其 websocket 会话现在订阅本页面的用户。返回 anonCount + totalCount(整个房间的订阅者,包括无法枚举的匿名用户)。 |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | 获取某租户的页面列表。FChat 桌面客户端用来填充房间列表。要求每个页面自定义配置解析后 enableFChat 为 true。需要 SSO 的页面将会基于请求用户分组权限过滤。 |
| PublicApi | getTranslations | GET /translations/{namespace}/{component} | |
| PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
| PublicApi | getUserNotifications | GET /user-notifications | |
| PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
| PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
| PublicApi | getUsersInfo | GET /pages/{tenantId}/users/info | 批量获取某租户用户信息。通过 userIds,返回 User / SSOUser 的展示信息。用于评论组件在出现 presence 事件后丰富新出现用户信息。无页面上下文:隐私策略统一执行(私有用户资料会被隐藏)。 |
| PublicApi | getV1PageLikes | GET /page-reacts/v1/likes/{tenantId} | |
| PublicApi | getV2PageReactUsers | GET /page-reacts/v2/{tenantId}/list | |
| PublicApi | getV2PageReacts | GET /page-reacts/v2/{tenantId} | |
| PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| PublicApi | logoutPublic | PUT /auth/logout | |
| PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
| PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
| PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
| PublicApi | resetUserNotifications | POST /user-notifications/reset | |
| PublicApi | searchUsers | GET /user-search/{tenantId} | |
| PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
| PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
| PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
| PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
| PublicApi | updateFeedPostPublic | PUT /feed-posts/{tenantId}/{postId} | |
| PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | 启用或停用某条评论的通知。 |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | 启用或停用页面的通知。当用户订阅页面时,将为新根评论创建通知,并且 |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | 上传并缩放图片 |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
模型文档
- APIAuditLog
- APIBanUserChangeLog
- APIBanUserChangedValues
- APIBannedUser
- APIBannedUserWithMultiMatchInfo
- APIComment
- APICommentBase
- APICommentBase_meta
- APICommentCommonBannedUser
- APICreateUserBadgeResponse
- APIDomainConfiguration
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIModerateGetUserBanPreferencesResponse
- APIModerateUserBanPreferences
- APIPage
- APISSOUser
- APISaveCommentResponse
- APIStatus
- APITenant
- APITenantDailyUsage
- APITicket
- APITicketDetail
- APITicketFile
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfigResponse
- AddDomainConfigResponse_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AdjustCommentVotesParams
- AdjustVotesResponse
- AggregateQuestionResultsResponse
- AggregateResponse
- AggregateTimeBucket
- AggregationAPIError
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- AwardUserBadgeResponse
- BanUserFromCommentResult
- BanUserUndoParams
- BannedUserMatch
- BannedUserMatchType
- BannedUserMatch_matchedOnValue
- BillingInfo
- BlockFromCommentParams
- BlockSuccess
- BuildModerationFilterParams
- BuildModerationFilterResponse
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkCreateHashTagsBody
- BulkCreateHashTagsBody_tags_inner
- BulkCreateHashTagsResponse
- BulkCreateHashTagsResponse_results_inner
- BulkPreBanParams
- BulkPreBanSummary
- ChangeCommentPinStatusResponse
- ChangeTicketStateBody
- ChangeTicketStateResponse
- CheckBlockedCommentsResponse
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CommentsByIdsParams
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateEmailTemplateBody
- CreateEmailTemplateResponse
- CreateFeedPostParams
- CreateFeedPostResponse
- CreateFeedPostsResponse
- CreateHashTagBody
- CreateHashTagResponse
- CreateModeratorBody
- CreateModeratorResponse
- CreateQuestionConfigBody
- CreateQuestionConfigResponse
- CreateQuestionResultBody
- CreateQuestionResultResponse
- CreateSubscriptionAPIResponse
- CreateTenantBody
- CreateTenantPackageBody
- CreateTenantPackageResponse
- CreateTenantResponse
- CreateTenantUserBody
- CreateTenantUserResponse
- CreateTicketBody
- CreateTicketResponse
- CreateUserBadgeParams
- CreateV1PageReact
- CustomConfigParameters
- CustomEmailTemplate
- DeleteCommentAction
- DeleteCommentResult
- DeleteDomainConfigResponse
- DeleteFeedPostPublicResponse
- DeleteHashTagRequestBody
- DeletePageAPIResponse
- DeleteSSOUserAPIResponse
- DeleteSubscriptionAPIResponse
- DeletedCommentResultComment
- DigestEmailFrequency
- EmailTemplateDefinition
- [EmailTemplateRenderErrorResponse](https://github.com/FastComments/fastcomments-nim/blob/master/docs
聚合 
通过对文档进行分组(如果提供了 groupBy)并应用多个操作来聚合文档。 支持不同的操作(例如 sum、countDistinct、avg 等)。
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| aggregationRequest | AggregationRequest | 否 | |
| parentTenantId | string | 否 | |
| includeStats | bool | 否 |
响应
示例

获取审计日志 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| limit | float64 | 否 | |
| skip | float64 | 否 | |
| order | SORTDIR | 否 | |
| after | float64 | 否 | |
| before | float64 | 否 |
响应
返回: Option[GetAuditLogsResponse]
示例

登出(公开) 
响应
示例

从评论封禁(公开) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | 否 | |
| sso | string | 否 |
响应
示例

取消封禁评论(公开) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | 否 | |
| sso | string | 否 |
响应
示例

检查被封禁的评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentIds | string | 否 | |
| sso | string | 否 |
响应
返回: Option[CheckBlockedCommentsResponse]
示例

从评论封禁用户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| blockFromCommentParams | BlockFromCommentParams | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
示例

创建评论(公开) 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 否 | |
| commentData | CommentData | 否 | |
| sessionId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[SaveCommentsResponseWithPresence]
示例

删除评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| contextUserId | string | 否 | |
| isLive | bool | 否 |
响应
返回: Option[DeleteCommentResult]
示例

删除评论(公开) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| editKey | string | 否 | |
| sso | string | 否 |
响应
返回:Option[PublicAPIDeleteCommentResponse]
示例

删除评论投票 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| voteId | string | 否 | |
| urlId | string | 是 | |
| broadcastId | string | 否 | |
| editKey | string | 否 | |
| sso | string | 否 |
响应
返回: Option[VoteDeleteResponse]
示例

举报评论 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
Response
返回: Option[FlagCommentResponse]
示例

获取评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[APIGetCommentResponse]
示例

获取评论列表 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| page | int | 否 | |
| limit | int | 否 | |
| skip | int | 否 | |
| asTree | bool | 否 | |
| skipChildren | int | 否 | |
| limitChildren | int | 否 | |
| maxTreeDepth | int | 否 | |
| urlId | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 | |
| contextUserId | string | 否 | |
| hashTag | string | 否 | |
| parentId | string | 否 | |
| direction | SortDirections | 否 | |
| fromDate | int64 | 否 | |
| toDate | int64 | 否 |
响应
返回: Option[APIGetCommentsResponse]
示例

获取公开评论 
req tenantId urlId
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| page | int | 否 | |
| direction | SortDirections | 否 | |
| sso | string | 否 | |
| skip | int | 否 | |
| skipChildren | int | 否 | |
| limit | int | 否 | |
| limitChildren | int | 否 | |
| countChildren | bool | 否 | |
| fetchPageForCommentId | string | 否 | |
| includeConfig | bool | 否 | |
| countAll | bool | 否 | |
| includei10n | bool | 否 | |
| locale | string | 否 | |
| modules | string | 否 | |
| isCrawler | bool | 否 | |
| includeNotificationCount | bool | 否 | |
| asTree | bool | 否 | |
| maxTreeDepth | int | 否 | |
| useFullTranslationIds | bool | 否 | |
| parentId | string | 否 | |
| searchText | string | 否 | |
| hashTags | seq[string] | 否 | |
| userId | string | 否 | |
| customConfigStr | string | 否 | |
| afterCommentId | string | 否 | |
| beforeCommentId | string | 否 |
响应
返回: Option[GetCommentsResponseWithPresencePublicComment]
示例

获取评论文本 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| editKey | string | 否 | |
| sso | string | 否 |
响应
返回: Option[PublicAPIGetCommentTextResponse]
示例

获取评论投票用户名 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| dir | int | 否 | |
| sso | string | 否 |
响应
返回: Option[GetCommentVoteUserNamesSuccessResponse]
示例

锁定评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
示例

置顶评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ChangeCommentPinStatusResponse]
示例

保存评论 
参数
| Name | Type | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createCommentParams | CreateCommentParams | 否 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| sendEmails | bool | 否 | |
| populateNotifications | bool | 否 |
响应
返回: Option[APISaveCommentResponse]
示例

批量保存评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createCommentParams | seq[CreateCommentParams] | 否 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| sendEmails | bool | 否 | |
| populateNotifications | bool): (Option[seq[SaveCommentsBulkResponse]] | 否 | |
| id | string | 否 | |
| fromName | string | 否 |
响应
示例

设置评论文本 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| commentTextUpdateRequest | CommentTextUpdateRequest | 否 | |
| editKey | string | 否 | |
| sso | string | 否 |
响应
返回:Option[PublicAPISetCommentTextResponse]
示例

取消对用户的评论封禁 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| unBlockFromCommentParams | UnBlockFromCommentParams | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
示例

取消举报评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
返回: Option[FlagCommentResponse]
示例

解锁评论 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
示例

取消置顶评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ChangeCommentPinStatusResponse]
示例

更新评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updatableCommentParams | UpdatableCommentParams | 否 | |
| contextUserId | string | 否 | |
| doSpamCheck | bool | 否 | |
| isLive | bool | 否 |
响应
示例

为评论投票 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 否 | |
| voteBodyParams | VoteBodyParams | 否 | |
| sessionId | string | 否 | |
| sso | string | 否 |
响应
示例

获取用户的评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| userId | string | 否 | |
| direction | SortDirections | 否 | |
| repliesToUserId | string | 否 | |
| page | float64 | 否 | |
| includei10n | bool | 否 | |
| locale | string | 否 | |
| isCrawler | bool | 否 |
响应
返回: Option[GetCommentsForUserResponse]
示例

添加域名配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| addDomainConfigParams | AddDomainConfigParams | 否 |
响应
返回: Option[AddDomainConfigResponse]
示例

删除域名配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| domain | string | 否 |
响应
返回:Option[DeleteDomainConfigResponse]
示例

获取域名配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| domain | string | 否 |
响应
返回: Option[GetDomainConfigResponse]
示例

获取域名配置列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 |
响应
返回:Option[GetDomainConfigsResponse]
示例

部分更新域名配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| domainToUpdate | string | 否 | |
| patchDomainConfigParams | PatchDomainConfigParams | 否 |
响应
返回: Option[PatchDomainConfigResponse]
示例

替换域名配置 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| domainToUpdate | string | 否 | |
| updateDomainConfigParams | UpdateDomainConfigParams | 否 |
Response
返回: Option[PutDomainConfigResponse]
Example

创建邮件模板 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createEmailTemplateBody | CreateEmailTemplateBody | 否 |
响应
返回:Option[CreateEmailTemplateResponse]
示例

删除邮件模板 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

删除邮件模板渲染错误 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| errorId | string | 否 |
响应
示例

获取邮件模板 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回:Option[GetEmailTemplateResponse]
示例

获取邮件模板定义 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 |
响应
返回: Option[GetEmailTemplateDefinitionsResponse]
示例

获取邮件模板渲染错误 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| skip | float64 | 否 |
响应
返回: Option[GetEmailTemplateRenderErrorsResponse]
示例

获取邮件模板列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
响应
返回:Option[GetEmailTemplatesResponse]
示例

渲染邮件模板 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| renderEmailTemplateBody | RenderEmailTemplateBody | 否 | |
| locale | string | 否 |
响应
返回: Option[RenderEmailTemplateResponse]
示例

更新邮件模板 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | 否 |
响应
示例

获取事件日志 
req tenantId urlId userIdWS
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 否 | |
| startTime | int64 | 否 | |
| endTime | int64 | 否 |
响应
返回: Option[GetEventLogResponse]
示例

获取全局事件日志 
req tenantId urlId userIdWS
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 否 | |
| startTime | int64 | 否 | |
| endTime | int64 | 否 |
响应
返回: Option[GetEventLogResponse]
示例

创建动态帖子 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 否 | |
| broadcastId | string | 否 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| skipDupCheck | bool | 否 |
响应
返回:Option[CreateFeedPostsResponse]
示例

创建公开动态帖子 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 否 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[CreateFeedPostResponse]
示例

删除公开动态帖子 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 否 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[DeleteFeedPostPublicResponse]
示例

获取动态帖子 
req tenantId afterId
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int | 否 | |
| tags | seq[string] | 否 |
响应
返回: Option[GetFeedPostsResponse]
示例

获取公开动态帖子 
req tenantId afterId
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int | 否 | |
| tags | seq[string] | 否 | |
| sso | string | 否 | |
| isCrawler | bool | 否 | |
| includeUserInfo | bool | 否 |
响应
返回: Option[PublicFeedPostsResponse]
示例

获取动态帖子统计 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | seq[string] | 否 | |
| sso | string | 否 |
响应
返回: Option[FeedPostsStatsResponse]
示例

获取公开用户反应 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | seq[string] | 否 | |
| sso | string | 否 |
响应
返回: Option[UserReactsResponse]
示例

对动态帖子进行公开回应(React) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 否 | |
| reactBodyParams | ReactBodyParams | 否 | |
| isUndo | bool | 否 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ReactFeedPostResponse]
示例

更新动态帖子 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| feedPost | FeedPost | 否 |
响应
示例

公开更新动态帖子 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 否 | |
| updateFeedPostParams | UpdateFeedPostParams | 否 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[CreateFeedPostResponse]
示例

公开举报评论 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| isFlagged | bool | 否 | |
| sso | string | 否 |
响应
示例

获取大尺寸动图 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| largeInternalURLSanitized | string | 否 |
响应
返回: Option[GifGetLargeResponse]
示例

搜索动图 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| search | string | 否 | |
| locale | string | 否 | |
| rating | string | 否 | |
| page | float64 | 否 |
响应
返回: Option[GetGifsSearchResponse]
示例

获取热门动图 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| locale | string | 否 | |
| rating | string | 否 | |
| page | float64 | 否 |
响应
返回:Option[GetGifsTrendingResponse]
示例

添加话题标签 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createHashTagBody | CreateHashTagBody | 否 |
响应
返回: Option[CreateHashTagResponse]
示例

批量添加话题标签 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | 否 |
响应
返回:Option[BulkCreateHashTagsResponse]
示例

删除话题标签 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tag | string | 否 | |
| tenantId | string | 是 | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | 否 |
响应
示例

获取话题标签 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| page | float64 | 否 |
响应
返回: Option[GetHashTagsResponse]
示例

部分更新话题标签 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tag | string | 否 | |
| tenantId | string | 是 | |
| updateHashTagBody | UpdateHashTagBody | 否 |
响应
返回: Option[UpdateHashTagResponse]
示例

删除审核投票 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| voteId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[VoteDeleteResponse]
示例

获取 API 评论(审核) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| page | float64 | 否 | |
| count | float64 | 否 | |
| textSearch | string | 否 | |
| byIPFromComment | string | 否 | |
| filters | string | 否 | |
| searchFilters | string | 否 | |
| sorts | string | 否 | |
| demo | bool | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationAPIGetCommentsResponse]
示例

获取 API 导出状态 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| batchJobId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationExportStatusResponse]
示例

获取 API IDs 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| textSearch | string | 否 | |
| byIPFromComment | string | 否 | |
| filters | string | 否 | |
| searchFilters | string | 否 | |
| afterId | string | 否 | |
| demo | bool | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationAPIGetCommentIdsResponse]
示例

获取因评论被封禁的用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回: Option[GetBannedUsersFromCommentResponse]
示例

获取评论封禁状态 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回:Option[GetCommentBanStatusResponse]
示例

获取评论子项 
参数
| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回:Option[ModerationAPIChildCommentsResponse]
示例

获取计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| textSearch | string | 否 | |
| byIPFromComment | string | 否 | |
| filter | string | 否 | |
| searchFilters | string | 否 | |
| demo | bool | 否 | |
| sso | string | 否 |
返回
返回: Option[ModerationAPICountCommentsResponse]
示例

获取多个计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| sso | string | 否 |
响应
返回: Option[GetBannedUsersCountResponse]
示例

获取日志 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回: Option[ModerationAPIGetLogsResponse]
示例

获取手动徽章 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| sso | string | No |
响应
返回: Option[GetTenantManualBadgesResponse]
示例

获取某用户的手动徽章 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| badgesUserId | string | No | |
| commentId | string | Yes | |
| sso | string | No |
响应
返回: Option[GetUserManualBadgesResponse]
示例

获取审核评论 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| includeEmail | bool | 否 | |
| includeIP | bool | 否 | |
| sso | string | 否 |
响应
返回:Option[ModerationAPICommentResponse]
示例

获取审核评论文本 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回: Option[GetCommentTextResponse]
示例

获取预封禁摘要 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| includeByUserIdAndEmail | bool | 否 | |
| includeByIP | bool | 否 | |
| includeByEmailDomain | bool | 否 | |
| sso | string | 否 |
响应
示例

获取搜索评论摘要 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| value | string | 否 | |
| filters | string | 否 | |
| searchFilters | string | 否 | |
| sso | string | 否 |
响应
返回:Option[ModerationCommentSearchResponse]
示例

获取搜索页面 
参数
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| value | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationPageSearchResponse]
示例

获取搜索站点 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| value | string | 否 | |
| sso | string | 否 |
响应
返回:Option[ModerationSiteSearchResponse]
示例

获取搜索建议 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| textSearch | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationSuggestResponse]
示例

获取搜索用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| value | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationUserSearchResponse]
示例

获取信任因子 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| userId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[GetUserTrustFactorResponse]
示例

获取用户封禁偏好 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| sso | string | 否 |
响应
返回: Option[APIModerateGetUserBanPreferencesResponse]
示例

获取用户内部档案 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回: Option[GetUserInternalProfileResponse]
示例

调整评论投票 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| adjustCommentVotesParams | AdjustCommentVotesParams | 否 | |
| sso | string | 否 |
响应
返回:Option[AdjustVotesResponse]
示例

提交 API 导出 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| textSearch | string | 否 | |
| byIPFromComment | string | 否 | |
| filters | string | 否 | |
| searchFilters | string | 否 | |
| sorts | string | 否 | |
| sso | string | 否 |
响应
返回: Option[ModerationExportResponse]
示例

提交对用户的评论封禁 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| banEmail | bool | 否 | |
| banEmailDomain | bool | 否 | |
| banIP | bool | 否 | |
| deleteAllUsersComments | bool | 否 | |
| bannedUntil | string | 否 | |
| isShadowBan | bool | 否 | |
| updateId | string | 否 | |
| banReason | string | 否 | |
| sso | string | 否 |
响应
返回: Option[BanUserFromCommentResult]
示例

撤销用户封禁 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| banUserUndoParams | BanUserUndoParams | 否 | |
| sso | string | 否 |
响应
示例

批量提交预封禁摘要 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| bulkPreBanParams | BulkPreBanParams | 否 | |
| includeByUserIdAndEmail | bool | 否 | |
| includeByIP | bool | 否 | |
| includeByEmailDomain | bool | 否 | |
| sso | string | 否 |
响应
示例

按 ID 获取评论(批量) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentsByIdsParams | CommentsByIdsParams | 否 | |
| sso | string | 否 |
响应
返回:Option[ModerationAPIChildCommentsResponse]
示例

提交举报评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
示例

提交移除评论 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回: Option[PostRemoveCommentResponse]
示例

恢复已删除评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
示例

设置评论审批状态 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| approved | bool | 否 | |
| sso | string | 否 |
响应
返回: Option[SetCommentApprovedResponse]
示例

设置评论复核状态 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| reviewed | bool | 否 | |
| sso | string | 否 |
响应
示例

设置评论为垃圾状态 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| spam | bool | 否 | |
| permNotSpam | bool | 否 | |
| sso | string | 否 |
响应
示例

设置评论文本(审核) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| setCommentTextParams | SetCommentTextParams | 否 | |
| sso | string | 否 |
响应
返回: Option[SetCommentTextResponse]
示例

取消举报评论(审核) 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | 是 | |
| sso | string | 否 |
响应
示例

提交投票(审核) 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| commentId | string | 是 | |
| direction | string | 否 | |
| sso | string | 否 |
响应
示例

授予徽章 
参数
| Name | Type | 是否必需 | 描述 |
|---|---|---|---|
| badgeId | string | 否 | |
| userId | string | 否 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[AwardUserBadgeResponse]
示例

关闭主题 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| urlId | string | 是 | |
| sso | string | 否 |
响应
示例

移除徽章 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| badgeId | string | 否 | |
| userId | string | 否 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: Option[RemoveUserBadgeResponse]
示例

重新打开主题 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| urlId | string | 是 | |
| sso | string | 否 |
响应
示例

设置信任因子 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| userId | string | 否 | |
| trustFactor | string | 否 | |
| sso | string | 否 |
响应
返回: Option[SetUserTrustFactorResponse]
示例

创建审核员 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createModeratorBody | CreateModeratorBody | 否 |
响应
返回: Option[CreateModeratorResponse]
示例

删除审核员 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| sendEmail | string | 否 |
响应
示例

获取审核员 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[GetModeratorResponse]
示例

获取审核员列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
响应
返回: Option[GetModeratorsResponse]
示例

更新审核员 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateModeratorBody | UpdateModeratorBody | 否 |
响应
示例

删除通知计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

获取缓存的通知计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回:Option[GetCachedNotificationCountResponse]
示例

获取通知计数 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| urlId | string | 是 | |
| fromCommentId | string | 否 | |
| viewed | bool | 否 |
响应
返回:Option[GetNotificationCountResponse]
示例

获取通知 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| urlId | string | 是 | |
| fromCommentId | string | 否 | |
| viewed | bool | 否 | |
| skip | float64 | 否 |
响应
返回: Option[GetNotificationsResponse]
示例

更新通知 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateNotificationBody | UpdateNotificationBody | 否 | |
| userId | string | 否 |
响应
示例

创建 V1 页面反应 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| title | string | 否 |
响应
示例

创建 V2 页面反应 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | No | |
| title | string | No |
响应
示例

删除 V1 页面反应 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
示例

删除 V2 页面反应 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| id | string | 否 |
响应
示例

获取 V1 页面点赞 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
示例

获取 V2 页面反应 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
示例

获取 V2 页面反应用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| id | string | 否 |
响应
返回: Option[GetV2PageReactUsersResponse]
示例

添加页面 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIPageData | CreateAPIPageData | 否 |
响应
示例

删除页面 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[DeletePageAPIResponse]
示例

获取离线用户 
页面上之前发表评论但当前不在线的用户。按 displayName 排序。 在用尽 /users/online 后使用此方法以渲染“成员”部分。 对 commenterName 进行游标分页:服务器会遍历部分 {tenantId, urlId, commenterName} 索引从 afterName 向前通过 $gt, 无 $skip 成本。
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| afterName | string | 否 | |
| afterUserId | string | 否 |
响应
返回:Option[PageUsersOfflineResponse]
示例

获取在线用户 
页面当前在线的查看者:其 websocket 会话当前已订阅该页面的人。返回 anonCount + totalCount(房间范围的订阅者,包括我们不枚举的匿名查看者)。
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| afterName | string | 否 | |
| afterUserId | string | 否 |
响应
返回: Option[PageUsersOnlineResponse]
示例

通过 URLId 获取页面 
参数
| 名称 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
返回:Option[GetPageByURLIdAPIResponse]
示例

获取页面列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 |
响应
返回:Option[GetPagesAPIResponse]
示例

获取公开页面列表 
列出租户的页面。由 FChat 桌面客户端用于填充其房间列表。
要求在每个页面解析后的自定义配置中 enableFChat 为 true。
需要 SSO 的页面会根据请求用户的组访问权限进行过滤。
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| cursor | string | 否 | |
| limit | int | 否 | |
| q | string | 否 | |
| sortBy | PagesSortBy | 否 | |
| hasComments | bool | 否 |
响应
返回: Option[GetPublicPagesResponse]
示例

获取用户信息 
为租户批量获取用户信息。给定 userIds,返回来自 User / SSOUser 的显示信息。 由评论小部件使用,以丰富通过 presence 事件刚出现的用户信息。 无页面上下文:隐私统一强制(私人资料将被隐藏)。
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| ids | string | No |
响应
返回: Option[PageUsersInfoResponse]
示例

部分更新页面 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPIPageData | UpdateAPIPageData | 否 |
响应
返回:Option[PatchPageAPIResponse]
示例

删除待处理的 Webhook 事件 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

获取待处理 Webhook 事件计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| externalId | string | 否 | |
| eventType | string | 否 | |
| domain | string | 否 | |
| attemptCountGT | float64 | 否 |
响应
返回:Option[GetPendingWebhookEventCountResponse]
示例

获取待处理 Webhook 事件 
参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| externalId | string | 否 | |
| eventType | string | 否 | |
| domain | string | 否 | |
| attemptCountGT | float64 | 否 | |
| skip | float64 | 否 |
响应
返回:Option[GetPendingWebhookEventsResponse]
示例

创建问题配置 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionConfigBody | CreateQuestionConfigBody | 否 |
响应
返回: Option[CreateQuestionConfigResponse]
示例

删除问题配置 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

获取问题配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[GetQuestionConfigResponse]
示例

获取问题配置列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
响应
返回:Option[GetQuestionConfigsResponse]
示例

更新问题配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | 否 |
响应
示例

创建问题结果 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionResultBody | CreateQuestionResultBody | 否 |
响应
返回: Option[CreateQuestionResultResponse]
示例

删除问题结果 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

获取问题结果 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回:Option[GetQuestionResultResponse]
示例

获取问题结果列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userId | string | 否 | |
| startDate | string | 否 | |
| questionId | string | 否 | |
| questionIds | string | 否 | |
| skip | float64 | 否 |
响应
返回: Option[GetQuestionResultsResponse]
示例

更新问题结果 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateQuestionResultBody | UpdateQuestionResultBody | 否 |
响应
示例

汇总问题结果 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| questionId | string | 否 | |
| questionIds | seq[string] | 否 | |
| urlId | string | 是 | |
| timeBucket | AggregateTimeBucket | 否 | |
| startDate | string | 否 | |
| forceRecalculate | bool | 否 |
响应
返回:Option[AggregateQuestionResultsResponse]
示例

批量汇总问题结果 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | 否 | |
| forceRecalculate | bool | 否 |
响应
返回: Option[BulkAggregateQuestionResultsResponse]
示例

将评论与问题结果合并 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| questionId | string | 否 | |
| questionIds | seq[string] | 否 | |
| urlId | string | 是 | |
| startDate | string | 否 | |
| forceRecalculate | bool | 否 | |
| minValue | float64 | 否 | |
| maxValue | float64 | 否 | |
| limit | float64 | 否 |
响应
返回:Option[CombineQuestionResultsWithCommentsResponse]
示例

添加 SSO 用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPISSOUserData | CreateAPISSOUserData | 否 |
响应
返回: Option[AddSSOUserAPIResponse]
示例

删除 SSO 用户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| deleteComments | bool | 否 | |
| commentDeleteMode | string | 否 |
响应
返回:Option[DeleteSSOUserAPIResponse]
示例

通过邮箱获取 SSO 用户 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| string | 否 |
响应
返回: Option[GetSSOUserByEmailAPIResponse]
示例

通过 ID 获取 SSO 用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[GetSSOUserByIdAPIResponse]
示例

获取 SSO 用户列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | int | 否 |
响应
返回: Option[GetSSOUsersResponse]
示例

部分更新 SSO 用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPISSOUserData | UpdateAPISSOUserData | 否 | |
| updateComments | bool | 否 |
响应
返回值: Option[PatchSSOUserAPIResponse]
示例

替换 SSO 用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPISSOUserData | UpdateAPISSOUserData | 否 | |
| updateComments | bool | 否 |
响应
返回: Option[PutSSOUserAPIResponse]
示例

创建订阅 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | 否 |
响应
返回: Option[CreateSubscriptionAPIResponse]
示例

删除订阅 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| userId | string | 否 |
响应
返回: Option[DeleteSubscriptionAPIResponse]
示例

获取订阅列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 |
响应
返回: Option[GetSubscriptionsAPIResponse]
示例

更新订阅 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | 否 | |
| userId | string | 否 |
响应
返回:Option[UpdateSubscriptionAPIResponse]
示例

获取租户每日使用情况 
参数
| 名称 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| yearNumber | float64 | 否 | |
| monthNumber | float64 | 否 | |
| dayNumber | float64 | 否 | |
| skip | float64 | 否 |
响应
返回: Option[GetTenantDailyUsagesResponse]
示例

创建租户套餐 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantPackageBody | CreateTenantPackageBody | 否 |
响应
返回: Option[CreateTenantPackageResponse]
示例

删除租户套餐 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

获取租户套餐 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[GetTenantPackageResponse]
示例

获取租户套餐列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
响应
返回:Option[GetTenantPackagesResponse]
示例

替换租户套餐 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | 否 |
响应
示例

更新租户套餐 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateTenantPackageBody | UpdateTenantPackageBody | 否 |
响应
示例

创建租户用户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantUserBody | CreateTenantUserBody | 否 |
响应
返回:Option[CreateTenantUserResponse]
示例

删除租户用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| deleteComments | string | 否 | |
| commentDeleteMode | string | 否 |
响应
示例

获取租户用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[GetTenantUserResponse]
示例

获取租户用户列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
响应
返回: Option[GetTenantUsersResponse]
示例

替换租户用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| replaceTenantUserBody | ReplaceTenantUserBody | 否 | |
| updateComments | string | 否 |
响应
示例

发送登录链接 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| redirectURL | string | 否 |
响应
示例

更新租户用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateTenantUserBody | UpdateTenantUserBody | 否 | |
| updateComments | string | 否 |
响应
示例

创建租户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantBody | CreateTenantBody | 否 |
响应
返回:Option[CreateTenantResponse]
示例

删除租户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| sure | string | 否 |
响应
示例

获取租户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
示例

获取租户列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| meta | string | 否 | |
| skip | float64 | 否 |
响应
返回: Option[GetTenantsResponse]
示例

更新租户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateTenantBody | UpdateTenantBody | 否 |
响应
示例

更改工单状态 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| id | string | 否 | |
| changeTicketStateBody | ChangeTicketStateBody | 否 |
响应
返回: Option[ChangeTicketStateResponse]
示例

创建工单 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| createTicketBody | CreateTicketBody | 否 |
响应
返回: Option[CreateTicketResponse]
示例

获取工单 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| userId | string | 否 |
响应
示例

获取工单列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| state | float64 | 否 | |
| skip | float64 | 否 | |
| limit | float64 | 否 |
响应
返回: Option[GetTicketsResponse]
示例

获取翻译 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| namespace | string | 否 | |
| component | string | 否 | |
| locale | string | 否 | |
| useFullTranslationIds | bool | 否 |
响应
返回:Option[GetTranslationsResponse]
示例

上传图片 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| file | string | 否 | |
| sizePreset | SizePreset | 否 | |
| urlId | string | 是 |
响应
返回:Option[UploadImageResponse]
示例

通过 ID 获取用户徽章进度 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[APIGetUserBadgeProgressResponse]
示例

通过用户 ID 获取用户徽章进度 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 |
响应
返回: Option[APIGetUserBadgeProgressResponse]
示例

获取用户徽章进度列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| limit | float64 | 否 | |
| skip | float64 | 否 |
响应
返回: Option[APIGetUserBadgeProgressListResponse]
示例

创建用户徽章 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createUserBadgeParams | CreateUserBadgeParams | 否 |
响应
返回: Option[APICreateUserBadgeResponse]
示例

删除用户徽章 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回: Option[APIEmptySuccessResponse]
示例

获取用户徽章 
参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
响应
返回:Option[APIGetUserBadgeResponse]
示例

获取用户徽章列表 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| badgeId | string | 否 | |
| displayedOnComments | bool | 否 | |
| limit | float64 | 否 | |
| skip | float64 | 否 |
响应
返回: Option[APIGetUserBadgesResponse]
示例

更新用户徽章 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateUserBadgeParams | UpdateUserBadgeParams | 否 |
响应
返回: Option[APIEmptySuccessResponse]
示例

获取用户通知计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
响应
返回: Option[GetUserNotificationCountResponse]
示例

获取用户通知 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| pageSize | int | 否 | |
| afterId | string | 否 | |
| includeContext | bool | 否 | |
| afterCreatedAt | int64 | 否 | |
| unreadOnly | bool | 否 | |
| dmOnly | bool | 否 | |
| noDm | bool | 否 | |
| includeTranslations | bool | 否 | |
| includeTenantNotifications | bool | 否 | |
| sso | string | 否 |
响应
返回: Option[GetMyNotificationsResponse]
示例

重置用户通知计数 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
返回
返回: Option[ResetUserNotificationsResponse]
示例

重置用户通知 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| afterCreatedAt | int64 | 否 | |
| unreadOnly | bool | 否 | |
| dmOnly | bool | 否 | |
| noDm | bool | 否 | |
| sso | string | 否 |
响应
返回: Option[ResetUserNotificationsResponse]
示例

更新用户评论订阅状态(通知) 
启用或禁用针对特定评论的通知。
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | No | |
| optedInOrOut | string | No | |
| commentId | string | Yes | |
| sso | string | No |
响应
返回:Option[UpdateUserNotificationCommentSubscriptionStatusResponse]
示例

更新用户页面订阅状态(通知) 
启用或禁用页面的通知。当用户订阅一个页面时,会为新的根评论创建通知,并且还
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| url | string | 否 | |
| pageTitle | string | 否 | |
| subscribedOrUnsubscribed | string | 否 | |
| sso | string | 否 |
响应
返回:Option[UpdateUserNotificationPageSubscriptionStatusResponse]
示例

更新用户通知状态 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| notificationId | string | 否 | |
| newStatus | string | 否 | |
| sso | string | 否 |
响应
返回: Option[UpdateUserNotificationStatusResponse]
示例

获取用户在线状态列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlIdWS | string | 否 | |
| userIds | string | 否 |
响应
返回: Option[GetUserPresenceStatusesResponse]
示例

搜索用户 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| usernameStartsWith | string | 否 | |
| mentionGroupIds | seq[string] | 否 | |
| sso | string | 否 | |
| searchSection | string | 否 |
响应
示例

获取用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No |
响应
示例

创建投票 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| direction | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
示例

删除投票 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| editKey | string | 否 |
响应
返回: Option[VoteDeleteResponse]
示例

获取投票 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
示例

获取用户的投票 
参数
| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
返回: Option[GetVotesForUserResponse]
示例

需要帮助?
如果在使用 Nim SDK 时遇到任何问题或有任何疑问,请:
贡献
欢迎贡献!请访问 GitHub 仓库 以获取贡献指南。