
語言 🇹🇼 繁體中文
文件
快速開始
API 參考
使用
聚合
稽核日誌
從留言封鎖
檢查被封鎖的留言
留言
網域設定
電子郵件範本
事件記錄
動態貼文
舉報留言
標籤
管理員
通知計數
通知
頁面
待處理的 Webhook 事件
問題設定
問題結果
問題結果彙總
單一登入使用者
訂閱
租戶每日使用量
租戶方案
租戶使用者
租戶
上傳圖片
使用者徽章進度
使用者徽章
使用者通知
使用者在線狀態
使用者搜尋
使用者
投票
FastComments C++ SDK
這是 FastComments 的官方 C++ SDK。
FastComments API 的官方 C++ SDK
Repository
安裝 
安裝相依套件
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)
重要:
- 您必須設定 base URL(cpp-restsdk generator 不會從 OpenAPI spec 中讀取它)
- 您必須在 ApiClient 上設定您的 API key 才能進行已驗證的請求。如果不這麼做,請求會以 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>();
// 必須:設定 base URL(選擇您的區域)
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com")); // US
// 或: config->setBaseUrl(utility::conversions::to_string_t("https://eu.fastcomments.com")); // EU
// 必須:設定您的 API key
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>();
// 必須:設定 base 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" error:請確保在建立 ApiClient 之前呼叫
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"))。cpp-restsdk generator 不會自動從 OpenAPI spec 中讀取伺服器 URL。 - 401 "missing-api-key" error:請確保在建立 DefaultAPI 實例之前呼叫
config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_KEY"))。 - Wrong API class:對於伺服端已驗證的請求,請使用
DefaultAPI;對於用戶端/公開請求,請使用PublicAPI。
呼叫 API:同步 vs 非同步 
此 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);
// Call .get() to block and get the result synchronously
auto response = 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"), // 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);
// Use .then() for asynchronous callback-based execution
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 作為相對路徑
| Class | Method | HTTP request | Description |
|---|---|---|---|
| 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
- [
聚合 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| aggregationRequest | AggregationRequest | 是 | |
| parentTenantId | string | 否 | |
| includeStats | bool | 否 |
回應
範例

取得稽核日誌 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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
範例

檢查被封鎖的留言 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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
範例

刪除留言 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| 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 | 是 |
回應
範例

取得留言列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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
範例

取得留言內容 
參數
| 名稱 | Type | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| editKey | string | 否 | |
| sso | string | 否 |
回應
回傳: GetCommentText_200_response
範例

取得留言投票使用者名稱 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| dir | int32_t | 是 | |
| sso | string | 否 |
回應
回傳: GetCommentVoteUserNames_200_response
範例

鎖定留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 是 | |
| sso | string | 否 |
回應
範例

置頂留言 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 是 | |
| sso | string | 否 |
回應
範例

儲存留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createCommentParams | CreateCommentParams | 是 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| sendEmails | bool | 否 | |
| populateNotifications | bool | 否 |
回應
範例

設定留言內容 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 是 | |
| commentTextUpdateRequest | CommentTextUpdateRequest | 是 | |
| editKey | string | 否 | |
| sso | string | 否 |
回應
回傳:SetCommentText_200_response
範例

取消從留言封鎖使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| unBlockFromCommentParams | UnBlockFromCommentParams | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳: UnBlockCommentPublic_200_response
範例

取消舉報留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
範例

解鎖留言 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| 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 | 否 |
回應
範例

新增網域設定 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| addDomainConfigParams | AddDomainConfigParams | 是 |
Response
回傳: AddDomainConfig_200_response
範例

刪除網域設定 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| domain | string | 是 |
回應
回傳: DeleteDomainConfig_200_response
範例

取得網域設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| domain | string | Yes |
回傳
Returns: GetDomainConfig_200_response
範例

取得網域設定列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 |
回應
回傳: GetDomainConfigs_200_response
範例

部分更新網域設定 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| patchDomainConfigParams | PatchDomainConfigParams | Yes |
回應
回傳: GetDomainConfig_200_response
範例

放置/覆寫網域設定 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| domainToUpdate | string | 是 | |
| updateDomainConfigParams | UpdateDomainConfigParams | 是 |
回應
回傳:GetDomainConfig_200_response
範例

建立電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createEmailTemplateBody | CreateEmailTemplateBody | 是 |
回應
回傳: CreateEmailTemplate_200_response
範例

刪除電子郵件範本 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
回傳: FlagCommentPublic_200_response
範例

刪除電子郵件範本渲染錯誤 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| errorId | string | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

取得電子郵件範本 
參數
| 名稱 | 類型 | 必要 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
回傳: GetEmailTemplate_200_response
範例

取得電子郵件範本定義 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 |
回應
回傳: GetEmailTemplateDefinitions_200_response
範例

取得電子郵件範本渲染錯誤 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| skip | double | 否 |
回應
回傳: GetEmailTemplateRenderErrors_200_response
範例

取得電子郵件範本列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
回傳:GetEmailTemplates_200_response
範例

渲染電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| renderEmailTemplateBody | RenderEmailTemplateBody | 是 | |
| locale | string | 否 |
回應
回傳: RenderEmailTemplate_200_response
範例

更新電子郵件範本 
參數
| 名稱 | 類型 | 是否必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

取得事件記錄 
必填 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
範例

建立公開動態貼文 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳:CreateFeedPostPublic_200_response
範例

刪除公開動態貼文 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳: DeleteFeedPostPublic_200_response
範例

取得動態貼文 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int32_t | 否 | |
| tags | vector<string | 否 |
回應
範例

取得公開動態貼文 
req tenantId afterId
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int32_t | 否 | |
| tags | vector<string | 否 | |
| sso | string | 否 | |
| isCrawler | bool | 否 | |
| includeUserInfo | bool | 否 |
回應
回傳: GetFeedPostsPublic_200_response
範例

取得動態貼文統計 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | vector<string | 是 | |
| sso | string | 否 |
回應
回傳: GetFeedPostsStats_200_response
範例

取得使用者回應(公開) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| 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
範例

更新動態貼文 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| feedPost | FeedPost | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

更新公開動態貼文 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| updateFeedPostParams | UpdateFeedPostParams | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳: CreateFeedPostPublic_200_response
範例

公開舉報留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| isFlagged | bool | 是 | |
| sso | string | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

新增標籤 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 否 | |
| createHashTagBody | CreateHashTagBody | 否 |
回應
範例

批次新增標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 否 | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | 否 |
回應
回傳: AddHashTagsBulk_200_response
範例

刪除標籤 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tag | string | 是 | |
| tenantId | string | 否 | |
| deleteHashTagRequest | DeleteHashTag_request | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

取得標籤列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| page | double | No |
回應
範例

部分更新標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| 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
範例

取得管理員 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

取得管理員列表 
參數
| 名稱 | Type | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
回傳: GetModerators_200_response
範例

發送邀請 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| fromName | string | 是 |
回應
回傳:FlagCommentPublic_200_response
範例

更新管理員 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateModeratorBody | UpdateModeratorBody | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

刪除通知計數 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
回傳: FlagCommentPublic_200_response
範例

取得快取的通知計數 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: GetCachedNotificationCount_200_response
範例

取得通知計數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| urlId | string | 否 | |
| fromCommentId | string | 否 | |
| viewed | bool | 否 | |
| type | string | 否 |
回應
回傳:GetNotificationCount_200_response
範例

取得通知 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| urlId | string | 否 | |
| fromCommentId | string | 否 | |
| viewed | bool | 否 | |
| type | string | 否 | |
| skip | double | 否 |
回傳
回傳: GetNotifications_200_response
範例

更新通知 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateNotificationBody | UpdateNotificationBody | 是 | |
| userId | string | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

新增頁面 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIPageData | CreateAPIPageData | 是 |
回應
範例

刪除頁面 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
範例

依 URLId 取得頁面 
參數
| Name | Type | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
回應
範例

取得頁面列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 |
回傳
範例

部分更新頁面 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPIPageData | UpdateAPIPageData | Yes |
回應
範例

刪除待處理的 Webhook 事件 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳:FlagCommentPublic_200_response
範例

取得待處理 Webhook 事件計數 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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
範例

建立問題設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionConfigBody | CreateQuestionConfigBody | 是 |
回應
回傳: CreateQuestionConfig_200_response
範例

刪除問題設定 
參數
| 名稱 | 類型 | 必要 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

取得問題設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: GetQuestionConfig_200_response
範例

取得問題設定列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
回傳: GetQuestionConfigs_200_response
範例

更新問題設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

建立問題結果 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionResultBody | CreateQuestionResultBody | 是 |
回應
回傳: CreateQuestionResult_200_response
範例

刪除問題結果 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

取得問題結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: GetQuestionResult_200_response
範例

取得問題結果列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 否 | |
| userId | string | 否 | |
| startDate | string | 否 | |
| questionId | string | 否 | |
| questionIds | string | 否 | |
| skip | double | 否 |
回應
回傳: GetQuestionResults_200_response
範例

更新問題結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateQuestionResultBody | UpdateQuestionResultBody | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

彙總問題結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| 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
範例

將留言與問題結果合併 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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 使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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 使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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
範例

刪除訂閱 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| userId | string | 否 |
回應
回傳: DeleteSubscriptionAPIResponse
範例

取得訂閱列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 |
回應
回傳: GetSubscriptionsAPIResponse
範例

取得租戶每日使用量 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| 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 | 是 | |
| id | string | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

取得租戶方案 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳:GetTenantPackage_200_response
範例

取得租戶方案列表 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
回傳: GetTenantPackages_200_response
範例

替換租戶方案 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | 是 |
回應
回傳:FlagCommentPublic_200_response
範例

更新租戶方案 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateTenantPackageBody | UpdateTenantPackageBody | 是 |
回傳
回傳: FlagCommentPublic_200_response
範例

建立租戶使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantUserBody | CreateTenantUserBody | 是 |
回應
回傳: CreateTenantUser_200_response
範例

刪除租戶使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| deleteComments | string | 否 | |
| commentDeleteMode | string | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

取得租戶使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
回傳: GetTenantUser_200_response
範例

取得租戶使用者列表 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
回傳: GetTenantUsers_200_response
範例

替換租戶使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| replaceTenantUserBody | ReplaceTenantUserBody | 是 | |
| updateComments | string | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

發送登入連結 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| redirectURL | string | 否 |
回應
回傳:FlagCommentPublic_200_response
範例

更新租戶使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateTenantUserBody | UpdateTenantUserBody | 是 | |
| updateComments | string | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

建立租戶 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantBody | CreateTenantBody | 是 |
回應
範例

刪除租戶 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| sure | string | 否 |
回應
回傳: FlagCommentPublic_200_response
範例

取得租戶 
參數
| 名稱 | 型別 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

取得租戶列表 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| meta | string | 否 | |
| skip | double | 否 |
回應
範例

更新租戶 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateTenantBody | UpdateTenantBody | 是 |
回應
回傳: FlagCommentPublic_200_response
範例

上傳圖片 
上傳並調整圖片大小
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| file | HttpContent | 是 | |
| sizePreset | SizePreset | 否 | |
| urlId | string | 否 |
回應
範例

依 Id 取得使用者徽章進度 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: GetUserBadgeProgressById_200_response
範例

依使用者 Id 取得使用者徽章進度 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| 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
範例

刪除使用者徽章 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
回傳: UpdateUserBadge_200_response
範例

取得使用者徽章 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

取得使用者徽章列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| badgeId | string | 否 | |
| type | double | 否 | |
| displayedOnComments | bool | 否 | |
| limit | double | 否 | |
| skip | double | 否 |
回應
傳回: GetUserBadges_200_response
範例

更新使用者徽章 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateUserBadgeParams | UpdateUserBadgeParams | 是 |
回應
回傳:UpdateUserBadge_200_response
範例

取得使用者通知計數 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
回應
回傳: GetUserNotificationCount_200_response
範例

取得使用者通知 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| pageSize | int32_t | No | |
| afterId | string | No | |
| includeContext | bool | No | |
| afterCreatedAt | int64_t | No | |
| unreadOnly | bool | No | |
| dmOnly | bool | No | |
| noDm | bool | No | |
| includeTranslations | bool | No | |
| sso | string | No |
回應
回傳: 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
範例

更新使用者留言訂閱通知狀態 
啟用或停用特定留言的通知。
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| 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
範例

取得使用者在線狀態列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlIdWS | string | 是 | |
| userIds | string | 是 |
回應
回傳: GetUserPresenceStatuses_200_response
範例

搜尋使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| usernameStartsWith | string | 否 | |
| mentionGroupIds | vector<string | 否 | |
| sso | string | 否 |
回應
範例

取得使用者 
參數
| 名稱 | Type | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

建立投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| 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 儲存庫 以取得貢獻指南。