
语言 🇨🇳 简体中文
文档
快速开始
API 参考
用法
聚合
审计日志
从评论封禁
检查已封禁的评论
评论
域配置
邮件模板
事件日志
动态帖子
标记评论
话题标签
版主
通知计数
通知
页面
待处理的 Webhook 事件
问题配置
问题结果
问题结果聚合
SSO 用户
订阅
租户每日使用
租户套餐
租户用户
租户
上传图片
用户徽章进度
用户徽章
用户通知
用户在线状态
用户搜索
用户
投票
FastComments C++ SDK
这是 FastComments 的官方 C++ SDK。
用于 FastComments API 的官方 C++ SDK
仓库
安装 
安装依赖
sudo apt install libcpprest-dev libboost-all-dev
从源码构建
mkdir build
cd build
cmake ..
make
安装
sudo make install
库内容
该库包含生成的 API 客户端和 SSO 实用工具,使与 API 的集成更简单。
公共与受保护的 API
对于 API 客户端,有两个类:DefaultAPI 和 PublicAPI。DefaultAPI 包含需要使用您 API 密钥的方法,PublicAPI 包含 API 调用
可以直接从浏览器/移动设备等发起且无需认证。
快速入门 
使用已认证的 API (DefaultAPI)
重要:
- 您必须设置基础 URL(cpp-restsdk 生成器不会从 OpenAPI 规范中读取它)
- 在发出已认证请求之前,您必须在 ApiClient 上设置您的 API 密钥。如果不设置,请求将以 401 错误失败。
#include <iostream>
#include "FastCommentsClient/api/DefaultApi.h"
#include "FastCommentsClient/ApiClient.h"
#include "FastCommentsClient/ApiConfiguration.h"
int main() {
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
// 必需:设置基础 URL(选择您的区域)
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com")); // 美国
// OR: config->setBaseUrl(utility::conversions::to_string_t("https://eu.fastcomments.com")); // 欧盟
// 必需:设置您的 API 密钥
config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_API_KEY_HERE"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::DefaultApi api(apiClient);
// 现在开始发出已认证的 API 调用
return 0;
}
使用公共 API (PublicAPI)
公共端点不需要身份验证:
#include <iostream>
#include "FastCommentsClient/api/PublicApi.h"
#include "FastCommentsClient/ApiClient.h"
#include "FastCommentsClient/ApiConfiguration.h"
int main() {
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
// 必需:设置基础 URL
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::PublicApi publicApi(apiClient);
// 发出公共 API 调用
return 0;
}
常见问题
- “URI must contain a hostname” 错误:确保在创建 ApiClient 之前调用
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"))。cpp-restsdk 生成器不会自动从 OpenAPI 规范中读取服务器 URL。 - 401 “missing-api-key” 错误:确保在创建 DefaultAPI 实例之前调用
config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_KEY"))。 - 使用了错误的 API 类:对服务器端的已认证请求使用
DefaultAPI,对客户端/公共请求使用PublicAPI。
发起 API 调用:同步与异步 
所有此 SDK 中的 API 方法都返回来自 C++ REST SDK 的 pplx::task<std::shared_ptr<ResponseType>>。这使您在处理 API 响应时具有更大的灵活性。
使用 .get() 的同步调用
使用 .get() 阻塞调用线程,直到请求完成并同步检索结果:
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
config->setApiKey(utility::conversions::to_string_t("api_key"),
utility::conversions::to_string_t("YOUR_API_KEY"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::DefaultApi api(apiClient);
// 调用 .get() 来阻塞并同步获取结果
auto response = api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
boost::none, // page
boost::none, // limit
boost::none, // skip
boost::none, // asTree
boost::none, // skipChildren
boost::none, // limitChildren
boost::none, // maxTreeDepth
utility::conversions::to_string_t("your-url-id"), // urlId
boost::none, // userId
boost::none, // anonUserId
boost::none, // contextUserId
boost::none, // hashTag
boost::none, // parentId
boost::none // direction
).get(); // 阻塞直到 HTTP 请求完成
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
使用 .then() 的异步调用
使用 .then() 进行非阻塞的异步执行并使用回调:
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
config->setApiKey(utility::conversions::to_string_t("api_key"),
utility::conversions::to_string_t("YOUR_API_KEY"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::DefaultApi api(apiClient);
// 使用 .then() 进行基于回调的异步执行
api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
boost::none, boost::none, boost::none, boost::none, boost::none,
boost::none, boost::none,
utility::conversions::to_string_t("your-url-id"),
boost::none, boost::none, boost::none, boost::none, boost::none, boost::none
).then([](std::shared_ptr<GetComments_200_response> response) {
// 当请求完成时异步运行此代码
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
});
// 执行会立即继续而不会阻塞
std::cout << "Request sent, continuing..." << std::endl;
在同步与异步之间进行选择
选择取决于您的运行时环境和应用程序架构:
.get() (同步阻塞)
- 阻塞调用线程直到 HTTP 请求完成
- 代码流程更简单,更易于理解
- 适用于专用工作线程、批处理或命令行工具
- 不适用于事件循环、GUI 线程或单线程服务器
.then() (异步非阻塞)
- 立即返回,回调在请求完成后执行
- 不会阻塞调用线程
- 适用于事件驱动架构、GUI 应用或单线程事件循环
- 允许链式执行多个操作
- 控制流更复杂
SDK 的测试套件仅使用 .get(),但这适用于测试环境,在该环境中阻塞是可以接受的。
注意事项 
广播 ID
你会看到在某些 API 调用中需要传递一个 broadcastId。当你收到事件时,你会收到这个 ID 作为返回,因此如果你打算在客户端乐观地应用更改,就可以忽略该事件
(你可能会希望这么做,因为它能提供最佳体验)。在此处传入一个 UUID。这个 ID 应该足够唯一,以确保在一次浏览器会话中不会出现两次。
SSO (单点登录)
有关 SSO 的示例,请参见下文。
SSO 使用 
简单的 SSO
#include <fastcomments/sso/fastcomments_sso.hpp>
#include <iostream>
using namespace fastcomments::sso;
int main() {
SimpleSSOUserData user("user-123", "user@example.com", "https://example.com/avatar.jpg");
FastCommentsSSO sso = FastCommentsSSO::newSimple(user);
std::string token = sso.createToken();
std::cout << "SSO Token: " << token << std::endl;
return 0;
}
安全的 SSO
#include <fastcomments/sso/fastcomments_sso.hpp>
#include <iostream>
using namespace fastcomments::sso;
int main() {
SecureSSOUserData user("user-123", "user@example.com", "johndoe", "https://example.com/avatar.jpg");
std::string apiKey = "your-api-key";
FastCommentsSSO sso = FastCommentsSSO::newSecure(apiKey, user);
std::string token = sso.createToken();
std::cout << "Secure SSO Token: " << token << std::endl;
return 0;
}
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 | 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 | 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 | 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 | 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} | |
| 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 | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| 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 | getGlobalEventLog | GET /event-log/global/{tenantId} | 需要 tenantId urlId userIdWS |
| 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 | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| 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
- APIComment
- APICommentBase
- APICreateUserBadgeResponse
- APIDomainConfiguration
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIPage
- APISSOUser
- APIStatus
- APITenant
- APITenantDailyUsage
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfig_200_response
- AddDomainConfig_200_response_anyOf
- AddHashTag_200_response
- AddHashTagsBulk_200_response
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AggregateQuestionResultsResponse
- AggregateQuestionResults_200_response
- AggregateTimeBucket
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- BillingInfo
- BlockFromCommentParams
- BlockFromCommentPublic_200_response
- BlockSuccess
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkAggregateQuestionResults_200_response
- BulkCreateHashTagsBody
- BulkCreateHashTagsBody_tags_inner
- BulkCreateHashTagsResponse
- ChangeCommentPinStatusResponse
- CheckBlockedCommentsResponse
- CheckedCommentsForBlocked_200_response
- CombineCommentsWithQuestionResults_200_response
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateCommentPublic_200_response
- CreateEmailTemplateBody
- CreateEmailTemplateResponse
- CreateEmailTemplate_200_response
- CreateFeedPostParams
- CreateFeedPostPublic_200_response
- CreateFeedPostResponse
- CreateFeedPost_200_response
- CreateFeedPostsResponse
- CreateHashTagBody
- CreateHashTagResponse
- CreateModeratorBody
- CreateModeratorResponse
- CreateModerator_200_response
- CreateQuestionConfigBody
- CreateQuestionConfigResponse
- CreateQuestionConfig_200_response
- CreateQuestionResultBody
- CreateQuestionResultResponse
- CreateQuestionResult_200_response
- CreateSubscriptionAPIResponse
- CreateTenantBody
- CreateTenantPackageBody
- CreateTenantPackageResponse
- CreateTenantPackage_200_response
- CreateTenantResponse
- CreateTenantUserBody
- CreateTenantUserResponse
- CreateTenantUser_200_response
- CreateTenant_200_response
- CreateUserBadgeParams
- CreateUserBadge_200_response
- CustomConfigParameters
- CustomEmailTemplate
- DeleteCommentAction
- DeleteCommentPublic_200_response
- DeleteCommentResult
- DeleteCommentVote_200_response
- DeleteComment_200_response
- DeleteDomainConfig_200_response
- DeleteFeedPostPublic_200_response
- DeleteFeedPostPublic_200_response_anyOf
- DeleteHashTag_request
- DeletePageAPIResponse
- DeleteSSOUserAPIResponse
- DeleteSubscriptionAPIResponse
- DeletedCommentResultComment
- DigestEmailFrequency
- EmailTemplateDefinition
- EmailTemplateRenderErrorResponse
- EventLogEntry
- FComment
- FComment_meta
- FeedPost
- FeedPostLink
- FeedPostMediaItem
- FeedPostMediaItemAsset
- FeedPostStats
- FeedPostsStatsResponse
- FindCommentsByRangeItem
- FindCommentsByRangeResponse
- FlagCommentPublic_200_response
- FlagCommentResponse
- FlagComment_200_response
- GetAuditLogsResponse
- GetAuditLogs_200_response
- GetCachedNotificationCountResponse
- GetCachedNotificationCount_200_response
- GetCommentText_200_response
- GetCommentVoteUserNamesSuccessResponse
- GetCommentVoteUserNames_200_response
- GetComment_200_response
- GetCommentsPublic_200_response
- GetCommentsResponseWithPresence_PublicComment_
- GetCommentsResponse_PublicComment_
- GetComments_200_response
- GetDomainConfig_200_response
- GetDomainConfigs_200_response
- GetDomainConfigs_200_response_anyOf
- GetDomainConfigs_200_response_anyOf_1
- GetEmailTemplateDefinitionsResponse
- GetEmailTemplateDefinitions_200_response
- GetEmailTemplateRenderErrorsResponse
- GetEmailTemplateRenderErrors_200_response
- GetEmailTemplateResponse
- GetEmailTemplate_200_response
- GetEmailTemplatesResponse
- GetEmailTemplates_200_response
- GetEventLogResponse
- GetEventLog_200_response
- GetFeedPostsPublic_200_response
- GetFeedPostsResponse
- GetFeedPostsStats_200_response
- GetFeedPosts_200_response
- GetHashTagsResponse
- GetHashTags_200_response
- GetModeratorResponse
- GetModerator_200_response
- GetModeratorsResponse
- GetModerators_200_response
- GetMyNotificationsResponse
- GetNotificationCountResponse
- GetNotificationCount_200_response
- GetNotificationsResponse
- GetNotifications_200_response
- GetPageByURLIdAPIResponse
- GetPagesAPIResponse
- GetPendingWebhookEventCountResponse
- GetPendingWebhookEventCount_200_response
- GetPendingWebhookEventsResponse
- GetPendingWebhookEvents_200_response
- GetPublicFeedPostsResponse
- GetQuestionConfigResponse
- GetQuestionConfig_200_response
- GetQuestionConfigsResponse
- GetQuestionConfigs_200_response
- GetQuestionResultResponse
- GetQuestionResult_200_response
- GetQuestionResultsResponse
- GetQuestionResults_200_response
- GetSSOUserByEmailAPIResponse
- GetSSOUserByIdAPIResponse
- GetSSOUsers_200_response
- GetSubscriptionsAPIResponse
- GetTenantDailyUsagesResponse
- GetTenantDailyUsages_200_response
- GetTenantPackageResponse
- GetTenantPackage_200_response
- GetTenantPackagesResponse
- GetTenantPackages_200_response
- GetTenantResponse
- GetTenantUserResponse
- GetTenantUser_200_response
- GetTenantUsersResponse
- GetTenantUsers_200_response
- GetTenant_200_response
- GetTenantsResponse
- GetTenants_200_response
- GetUserBadgeProgressById_200_response
- GetUserBadgeProgressList_200_response
- GetUserBadge_200_response
- GetUserBadges_200_response
- GetUserNotificationCountResponse
- GetUserNotificationCount_200_response
- GetUserNotifications_200_response
- GetUserPresenceStatusesResponse
- GetUserPresenceStatuses_200_response
- GetUserReactsPublic_200_response
- GetUserResponse
- GetUser_200_response
- GetVotesForUserResponse
- GetVotesForUser_200_response
- GetVotesResponse
- GetVotes_200_response
- GifRating
- HeaderState
- IgnoredResponse
- ImageContentProfanityLevel
- ImportedSiteType
- LiveEvent
- LiveEventType
- LiveEvent_extraInfo
- LockComment_200_response
- MediaAsset
- MetaItem
- Moderator
- NotificationAndCount
- NotificationObjectType
- NotificationType
- PatchDomainConfigParams
- PatchHashTag_200_response
- PatchPageAPIResponse
- PatchSSOUserAPIResponse
- PendingCommentToSyncOutbound
- PinComment_200_response
- PubSubComment
- PubSubCommentBase
- PubSubVote
- PublicAPIDeleteCommentResponse
- PublicAPIGetCommentTextResponse
- PublicAPISetCommentTextResponse
- PublicBlockFromCommentParams
- PublicComment
- [PublicCommentBase](https://github.com
聚合 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| aggregationRequest | AggregationRequest | 是 | |
| parentTenantId | string | 否 | |
| includeStats | bool | 否 |
响应
示例

获取审计日志 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| limit | double | 否 | |
| skip | double | 否 | |
| order | SORT_DIR | 否 | |
| after | double | 否 | |
| before | double | 否 |
响应
示例

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

公开:解除评论封禁 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | 是 | |
| sso | string | 否 |
响应
返回: UnBlockCommentPublic_200_response
示例

检查已封禁的评论 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentIds | string | 是 | |
| sso | string | 否 |
响应
返回: CheckedCommentsForBlocked_200_response
示例

基于评论封禁用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| blockFromCommentParams | BlockFromCommentParams | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
返回:BlockFromCommentPublic_200_response
示例

公开:创建评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 是 | |
| commentData | CommentData | 是 | |
| sessionId | string | 否 | |
| sso | string | 否 |
响应
返回: CreateCommentPublic_200_response
示例

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

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

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

标记评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
示例

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

获取评论列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| page | int32_t | 否 | |
| limit | int32_t | 否 | |
| skip | int32_t | 否 | |
| asTree | bool | 否 | |
| skipChildren | int32_t | 否 | |
| limitChildren | int32_t | 否 | |
| maxTreeDepth | int32_t | 否 | |
| urlId | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 | |
| contextUserId | string | 否 | |
| hashTag | string | 否 | |
| parentId | string | 否 | |
| direction | SortDirections | 否 |
响应
示例

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

获取评论文本 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| editKey | string | 否 | |
| sso | string | 否 |
响应
返回: GetCommentText_200_response
示例

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

锁定评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 是 | |
| sso | string | 否 |
响应
示例

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

保存评论 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createCommentParams | CreateCommentParams | 是 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| sendEmails | bool | 否 | |
| populateNotifications | bool | 否 |
响应
示例

设置评论文本 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Yes | |
| editKey | string | No | |
| sso | string | No |
响应
返回: SetCommentText_200_response
示例

解除基于评论的用户封禁 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| unBlockFromCommentParams | UnBlockFromCommentParams | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
返回: UnBlockCommentPublic_200_response
示例

取消标记评论 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
响应
示例

解锁评论 
参数
| Name | Type | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 是 | |
| sso | string | 否 |
返回
示例

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

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

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

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

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

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

获取域配置列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 |
响应
返回:GetDomainConfigs_200_response
示例

部分更新域配置 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| domainToUpdate | string | 是 | |
| patchDomainConfigParams | PatchDomainConfigParams | 是 |
返回
返回: GetDomainConfig_200_response
示例

替换域配置 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| domainToUpdate | string | 是 | |
| updateDomainConfigParams | UpdateDomainConfigParams | 是 |
响应
返回: GetDomainConfig_200_response
示例

创建邮件模板 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| createEmailTemplateBody | CreateEmailTemplateBody | Yes |
响应
返回: CreateEmailTemplate_200_response
示例

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

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

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

获取邮件模板定义 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 |
响应
返回: GetEmailTemplateDefinitions_200_response
示例

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

获取邮件模板列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
响应
返回: GetEmailTemplates_200_response
示例

渲染邮件模板 
参数
| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| renderEmailTemplateBody | RenderEmailTemplateBody | 是 | |
| locale | string | 否 |
响应
返回: RenderEmailTemplate_200_response
示例

更新邮件模板 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | 是 |
响应
返回: FlagCommentPublic_200_response
示例

获取事件日志 
req tenantId urlId userIdWS
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 是 | |
| startTime | int64_t | 是 | |
| endTime | int64_t | 是 |
响应
示例

获取全局事件日志 
req tenantId urlId userIdWS
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 是 | |
| startTime | int64_t | 是 | |
| endTime | int64_t | 是 |
响应
示例

创建动态帖子 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 是 | |
| broadcastId | string | 否 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| skipDupCheck | bool | 否 |
响应
返回: CreateFeedPost_200_response
示例

公开:创建动态帖子 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: CreateFeedPostPublic_200_response
示例

公开:删除动态帖子 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
Response
返回: DeleteFeedPostPublic_200_response
示例

获取动态帖子 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int32_t | 否 | |
| tags | vector<string | 否 |
响应
示例

公开:获取动态帖子 
req tenantId afterId
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int32_t | 否 | |
| tags | vector<string | 否 | |
| sso | string | 否 | |
| isCrawler | bool | 否 | |
| includeUserInfo | bool | 否 |
响应
返回: GetFeedPostsPublic_200_response
示例

获取动态帖子统计 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | vector<string | 是 | |
| sso | string | 否 |
响应
返回: GetFeedPostsStats_200_response
示例

公开:获取用户反应 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | vector<string | 否 | |
| sso | string | 否 |
响应
返回:GetUserReactsPublic_200_response
示例

公开:对动态帖子做出反应 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| reactBodyParams | ReactBodyParams | 是 | |
| isUndo | bool | 否 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: ReactFeedPostPublic_200_response
示例

更新动态帖子 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| feedPost | FeedPost | 是 |
响应
返回: FlagCommentPublic_200_response
示例

公开:更新动态帖子 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| updateFeedPostParams | UpdateFeedPostParams | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
响应
返回: CreateFeedPostPublic_200_response
示例

公开:标记评论 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| isFlagged | bool | 是 | |
| sso | string | 否 |
响应
返回:FlagCommentPublic_200_response
示例

添加话题标签 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 否 | |
| createHashTagBody | CreateHashTagBody | 否 |
响应
示例

批量添加话题标签 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 否 | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | 否 |
响应
返回: AddHashTagsBulk_200_response
示例

删除话题标签 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tag | string | 是 | |
| tenantId | string | 否 | |
| deleteHashTagRequest | DeleteHashTag_request | 否 |
返回
返回: FlagCommentPublic_200_response
示例

获取话题标签 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| page | double | 否 |
响应
示例

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

创建版主 
参数
| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createModeratorBody | CreateModeratorBody | 是 |
响应
返回:CreateModerator_200_response
示例

删除版主 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| sendEmail | string | 否 |
响应
返回: FlagCommentPublic_200_response
示例

获取版主 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
响应
示例

获取版主列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
响应
返回: GetModerators_200_response
示例

发送邀请 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| fromName | string | Yes |
响应
返回: FlagCommentPublic_200_response
示例

更新版主 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateModeratorBody | UpdateModeratorBody | 是 |
响应
返回:FlagCommentPublic_200_response
示例

删除通知计数 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
返回: FlagCommentPublic_200_response
示例

获取缓存的通知计数 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
返回: GetCachedNotificationCount_200_response
示例

获取通知计数 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| urlId | string | 否 | |
| fromCommentId | string | 否 | |
| viewed | bool | 否 | |
| type | string | 否 |
响应
返回: GetNotificationCount_200_response
示例

获取通知 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No | |
| urlId | string | No | |
| fromCommentId | string | No | |
| viewed | bool | No | |
| type | string | No | |
| skip | double | No |
响应
返回: GetNotifications_200_response
示例

更新通知 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateNotificationBody | UpdateNotificationBody | 是 | |
| userId | string | 否 |
响应
返回: FlagCommentPublic_200_response
示例

添加页面 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIPageData | CreateAPIPageData | 是 |
响应
示例

删除页面 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
示例

通过 URL ID 获取页面 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
示例

获取页面列表 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 |
响应
示例

部分更新页面 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateAPIPageData | UpdateAPIPageData | 是 |
响应
示例

删除待处理的 Webhook 事件 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
返回: FlagCommentPublic_200_response
示例

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

获取待处理的 Webhook 事件 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 否 | |
| externalId | string | 否 | |
| eventType | string | 否 | |
| type | string | 否 | |
| domain | string | 否 | |
| attemptCountGT | double | 否 | |
| skip | double | 否 |
响应
返回: GetPendingWebhookEvents_200_response
示例

创建问题配置 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| createQuestionConfigBody | CreateQuestionConfigBody | Yes |
响应
返回: CreateQuestionConfig_200_response
示例

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

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

获取问题配置列表 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
响应
返回: GetQuestionConfigs_200_response
示例

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

创建问题结果 
参数
| 名称 | Type | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionResultBody | CreateQuestionResultBody | 是 |
响应
返回: CreateQuestionResult_200_response
示例

删除问题结果 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
返回: FlagCommentPublic_200_response
示例

获取问题结果 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
返回: GetQuestionResult_200_response
示例

获取问题结果列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 否 | |
| userId | string | 否 | |
| startDate | string | 否 | |
| questionId | string | 否 | |
| questionIds | string | 否 | |
| skip | double | 否 |
响应
返回: GetQuestionResults_200_response
示例

更新问题结果 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateQuestionResultBody | UpdateQuestionResultBody | 是 |
响应
返回:FlagCommentPublic_200_response
示例

聚合问题结果 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| questionId | string | 否 | |
| questionIds | vector<string | 否 | |
| urlId | string | 否 | |
| timeBucket | AggregateTimeBucket | 否 | |
| startDate | datetime | 否 | |
| forceRecalculate | bool | 否 |
响应
返回: AggregateQuestionResults_200_response
示例

批量聚合问题结果 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | 是 | |
| forceRecalculate | bool | 否 |
响应
返回:BulkAggregateQuestionResults_200_response
示例

将评论与问题结果合并 
参数
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| questionId | string | 否 | |
| questionIds | vector<string | 否 | |
| urlId | string | 否 | |
| startDate | datetime | 否 | |
| forceRecalculate | bool | 否 | |
| minValue | double | 否 | |
| maxValue | double | 否 | |
| limit | double | 否 |
响应
返回:CombineCommentsWithQuestionResults_200_response
示例

添加 SSO 用户 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPISSOUserData | CreateAPISSOUserData | 是 |
响应
示例

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

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

通过 ID 获取 SSO 用户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
示例

获取 SSO 用户列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | int32_t | 否 |
响应
示例

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

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

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

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

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

获取租户每日使用情况 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| yearNumber | double | 否 | |
| monthNumber | double | 否 | |
| dayNumber | double | 否 | |
| skip | double | 否 |
响应
返回: GetTenantDailyUsages_200_response
示例

创建租户套餐 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantPackageBody | CreateTenantPackageBody | 是 |
响应
返回: CreateTenantPackage_200_response
示例

删除租户套餐 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
响应
返回: FlagCommentPublic_200_response
示例

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

获取租户套餐列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | double | No |
响应
返回:GetTenantPackages_200_response
示例

替换租户套餐 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | 是 |
响应
返回: FlagCommentPublic_200_response
示例

更新租户套餐 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantPackageBody | UpdateTenantPackageBody | Yes |
响应
返回: FlagCommentPublic_200_response
示例

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

删除租户用户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| deleteComments | string | 否 | |
| commentDeleteMode | string | 否 |
响应
返回: FlagCommentPublic_200_response
示例

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

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

替换租户用户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| replaceTenantUserBody | ReplaceTenantUserBody | 是 | |
| updateComments | string | 否 |
响应
返回: FlagCommentPublic_200_response
示例

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

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

创建租户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantBody | CreateTenantBody | 是 |
响应
示例

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

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

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

更新租户 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateTenantBody | UpdateTenantBody | 是 |
响应
返回: FlagCommentPublic_200_response
示例

上传图片 
上传并调整图像大小
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| file | HttpContent | 是 | |
| sizePreset | SizePreset | 否 | |
| urlId | string | 否 |
响应
示例

通过 ID 获取用户徽章进度 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
响应
返回: GetUserBadgeProgressById_200_response
示例

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

获取用户徽章进度列表 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| limit | double | 否 | |
| skip | double | 否 |
响应
返回: GetUserBadgeProgressList_200_response
示例

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

删除用户徽章 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
响应
返回: UpdateUserBadge_200_response
示例

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

获取用户徽章列表 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| badgeId | string | 否 | |
| type | double | 否 | |
| displayedOnComments | bool | 否 | |
| limit | double | 否 | |
| skip | double | 否 |
响应
返回: GetUserBadges_200_response
示例

更新用户徽章 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateUserBadgeParams | UpdateUserBadgeParams | 是 |
响应
返回: UpdateUserBadge_200_response
示例

获取用户通知计数 
参数
| Name | Type | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
响应
返回: GetUserNotificationCount_200_response
示例

获取用户通知 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| pageSize | int32_t | 否 | |
| afterId | string | 否 | |
| includeContext | bool | 否 | |
| afterCreatedAt | int64_t | 否 | |
| unreadOnly | bool | 否 | |
| dmOnly | bool | 否 | |
| noDm | bool | 否 | |
| includeTranslations | bool | 否 | |
| sso | string | 否 |
响应
返回:GetUserNotifications_200_response
示例

重置用户通知计数 
参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
响应
返回: ResetUserNotifications_200_response
示例

重置用户通知 
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| afterCreatedAt | int64_t | 否 | |
| unreadOnly | bool | 否 | |
| dmOnly | bool | 否 | |
| noDm | bool | 否 | |
| sso | string | 否 |
响应
返回: ResetUserNotifications_200_response
示例

更新用户对评论的通知订阅状态 
为特定评论启用或禁用通知。
参数
| Name | Type | 必需 | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| notificationId | string | 是 | |
| optedInOrOut | string | 是 | |
| commentId | string | 是 | |
| sso | string | 否 |
响应
返回: UpdateUserNotificationStatus_200_response
示例

更新用户对页面的通知订阅状态 
启用或禁用页面的通知。当用户订阅页面时,会为新的根评论创建通知,并且
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| url | string | 是 | |
| pageTitle | string | 是 | |
| subscribedOrUnsubscribed | string | 是 | |
| sso | string | 否 |
响应
返回:UpdateUserNotificationStatus_200_response
示例

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

获取用户在线状态 
参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlIdWS | string | 是 | |
| userIds | string | 是 |
响应
返回:GetUserPresenceStatuses_200_response
示例

搜索用户 
参数
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| usernameStartsWith | string | 否 | |
| mentionGroupIds | vector<string | 否 | |
| sso | string | 否 |
响应
示例

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

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

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

获取投票 
参数
| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
响应
示例

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

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