
語言 🇹🇼 繁體中文
文件
快速開始
API 參考
使用方式
彙總
稽核日誌
身份驗證
從評論封鎖
檢查被封鎖的評論
評論
使用者的評論
網域設定
電子郵件範本
事件日誌
動態貼文
檢舉評論
動圖
標籤
審核
管理者
通知計數
通知
頁面反應
頁面
待處理 Webhook 事件
問卷設定
問卷結果
問卷結果彙總
SSO 使用者
訂閱
租戶每日使用量
租戶套件
租戶使用者
租戶
工單
翻譯
上傳圖片
使用者徽章進度
使用者徽章
使用者通知
使用者在線狀態
使用者搜尋
使用者
投票
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
對於 API 客戶端,有三個類別,DefaultApi、PublicApi 與 ModerationApi。DefaultApi 包含需要您的 API 金鑰的方法,PublicApi 包含可直接從瀏覽器/行動裝置等無需驗證即可呼叫的方法。ModerationApi 提供大量即時且快速的審核 API。每個 ModerationApi 方法都接受 sso 參數,並可透過 SSO 或 FastComments.com 的會話 Cookie 進行驗證。
快速入門 
使用已驗證的 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")); // US
// OR: config->setBaseUrl(utility::conversions::to_string_t("https://eu.fastcomments.com")); // EU
// 必填:設定您的 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;
}
使用審核 API(ModerationApi)
ModerationApi 為審核員儀表板提供功能。每個方法都接受 sso 參數,使呼叫以已透過 SSO 驗證的審核員身分執行(請參閱下方 SSO 章節了解如何建立 token):
#include <iostream>
#include "FastCommentsClient/api/ModerationApi.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::ModerationApi moderationApi(apiClient);
// 傳遞審核員的 SSO token 以驗證此呼叫
auto ssoToken = utility::conversions::to_string_t("YOUR_MODERATOR_SSO_TOKEN");
org::openapitools::client::api::GetCountOptions options;
options.sso = ssoToken;
auto response = moderationApi.getCount(options).get();
return 0;
}
常見問題
- 「URI 必須包含主機名稱」錯誤:確保在建立 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,對於審核員儀表板請求(以審核員 SSO token 驗證)使用ModerationApi。
呼叫 API:同步 vs 非同步 
All API methods in this SDK return pplx::task<std::shared_ptr<ResponseType>> from the C++ REST SDK. This gives you flexibility in how you handle API responses.
使用 .get() 的同步呼叫
Use .get() to block the calling thread until the request completes and retrieve the result synchronously:
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);
// Required parameters are positional; optional ones go in the options struct
org::openapitools::client::api::GetCommentsOptions options;
options.urlId = utility::conversions::to_string_t("your-url-id");
// Call .get() to block and get the result synchronously
auto response = api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
options
).get(); // Blocks until the HTTP request completes
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
使用 .then() 的非同步呼叫
Use .then() for non-blocking asynchronous execution with callbacks:
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);
// Required parameters are positional; optional ones go in the options struct
org::openapitools::client::api::GetCommentsOptions options;
options.urlId = utility::conversions::to_string_t("your-url-id");
// Use .then() for asynchronous callback-based execution
api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
options
).then([](std::shared_ptr<GetComments_200_response> response) {
// This runs asynchronously when the request completes
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
});
// Execution continues immediately without blocking
std::cout << "Request sent, continuing..." << std::endl;
在同步與非同步之間的選擇
The choice depends on your runtime environment and application architecture:
.get()(同步阻塞)
- 阻塞呼叫執行緒,直到 HTTP 請求完成
- 程式流程較簡單,較易理解
- 適用於專用工作執行緒、批次處理或命令列工具
- 不適合 用於事件迴圈、GUI 執行緒或單執行緒伺服器
.then()(非同步非阻塞)
- 立即返回,回呼在請求完成時執行
- 不會阻塞呼叫執行緒
- 在事件驅動架構、GUI 應用程式或單執行緒事件迴圈中是必需的
- 允許串接多個操作
- 較為複雜的控制流程
The SDK's test suite uses .get() exclusively, but this is appropriate for the test environment where blocking is acceptable.
備註 
廣播 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 端點文件
All URIs are relative to https://fastcomments.com
| 類別 | 方法 | HTTP 請求 | 說明 |
|---|---|---|---|
| DefaultApi | addDomainConfig | POST /api/v1/domain-configs | |
| DefaultApi | addHashTag | POST /api/v1/hash-tags | |
| DefaultApi | addHashTagsBulk | POST /api/v1/hash-tags/bulk | |
| DefaultApi | addPage | POST /api/v1/pages | |
| DefaultApi | addSSOUser | POST /api/v1/sso-users | |
| DefaultApi | aggregate | POST /api/v1/aggregate | 通過分組(若提供 groupBy)並套用多種操作來彙總文件。支援不同的操作(例如 sum、countDistinct、avg 等)。 |
| DefaultApi | aggregateQuestionResults | GET /api/v1/question-results-aggregation | |
| DefaultApi | blockUserFromComment | POST /api/v1/comments/{id}/block | |
| DefaultApi | bulkAggregateQuestionResults | POST /api/v1/question-results-aggregation/bulk | |
| DefaultApi | changeTicketState | PATCH /api/v1/tickets/{id}/state | |
| DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
| DefaultApi | createEmailTemplate | POST /api/v1/email-templates | |
| DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
| DefaultApi | createModerator | POST /api/v1/moderators | |
| DefaultApi | createQuestionConfig | POST /api/v1/question-configs | |
| DefaultApi | createQuestionResult | POST /api/v1/question-results | |
| DefaultApi | createSubscription | POST /api/v1/subscriptions | |
| DefaultApi | createTenant | POST /api/v1/tenants | |
| DefaultApi | createTenantPackage | POST /api/v1/tenant-packages | |
| DefaultApi | createTenantUser | POST /api/v1/tenant-users | |
| DefaultApi | createTicket | POST /api/v1/tickets | |
| DefaultApi | createUserBadge | POST /api/v1/user-badges | |
| DefaultApi | createVote | POST /api/v1/votes | |
| DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
| DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
| DefaultApi | deleteEmailTemplate | DELETE /api/v1/email-templates/{id} | |
| DefaultApi | deleteEmailTemplateRenderError | DELETE /api/v1/email-templates/{id}/render-errors/{errorId} | |
| DefaultApi | deleteHashTag | DELETE /api/v1/hash-tags/{tag} | |
| DefaultApi | deleteModerator | DELETE /api/v1/moderators/{id} | |
| DefaultApi | deleteNotificationCount | DELETE /api/v1/notification-count/{id} | |
| DefaultApi | deletePage | DELETE /api/v1/pages/{id} | |
| DefaultApi | deletePendingWebhookEvent | DELETE /api/v1/pending-webhook-events/{id} | |
| DefaultApi | deleteQuestionConfig | DELETE /api/v1/question-configs/{id} | |
| DefaultApi | deleteQuestionResult | DELETE /api/v1/question-results/{id} | |
| DefaultApi | deleteSSOUser | DELETE /api/v1/sso-users/{id} | |
| DefaultApi | deleteSubscription | DELETE /api/v1/subscriptions/{id} | |
| DefaultApi | deleteTenant | DELETE /api/v1/tenants/{id} | |
| DefaultApi | deleteTenantPackage | DELETE /api/v1/tenant-packages/{id} | |
| DefaultApi | deleteTenantUser | DELETE /api/v1/tenant-users/{id} | |
| DefaultApi | deleteUserBadge | DELETE /api/v1/user-badges/{id} | |
| DefaultApi | deleteVote | DELETE /api/v1/votes/{id} | |
| DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
| DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
| DefaultApi | getCachedNotificationCount | GET /api/v1/notification-count/{id} | |
| DefaultApi | getComment | GET /api/v1/comments/{id} | |
| DefaultApi | getComments | GET /api/v1/comments | |
| DefaultApi | getDomainConfig | GET /api/v1/domain-configs/{domain} | |
| DefaultApi | getDomainConfigs | GET /api/v1/domain-configs | |
| DefaultApi | getEmailTemplate | GET /api/v1/email-templates/{id} | |
| DefaultApi | getEmailTemplateDefinitions | GET /api/v1/email-templates/definitions | |
| DefaultApi | getEmailTemplateRenderErrors | GET /api/v1/email-templates/{id}/render-errors | |
| DefaultApi | getEmailTemplates | GET /api/v1/email-templates | |
| DefaultApi | getFeedPosts | GET /api/v1/feed-posts | req tenantId afterId |
| DefaultApi | getHashTags | GET /api/v1/hash-tags | |
| DefaultApi | getModerator | GET /api/v1/moderators/{id} | |
| DefaultApi | getModerators | GET /api/v1/moderators | |
| DefaultApi | getNotificationCount | GET /api/v1/notifications/count | |
| DefaultApi | getNotifications | GET /api/v1/notifications | |
| DefaultApi | getPageByURLId | GET /api/v1/pages/by-url-id | |
| DefaultApi | getPages | GET /api/v1/pages | |
| DefaultApi | getPendingWebhookEventCount | GET /api/v1/pending-webhook-events/count | |
| DefaultApi | getPendingWebhookEvents | GET /api/v1/pending-webhook-events | |
| DefaultApi | getQuestionConfig | GET /api/v1/question-configs/{id} | |
| DefaultApi | getQuestionConfigs | GET /api/v1/question-configs | |
| DefaultApi | getQuestionResult | GET /api/v1/question-results/{id} | |
| DefaultApi | getQuestionResults | GET /api/v1/question-results | |
| DefaultApi | getSSOUserByEmail | GET /api/v1/sso-users/by-email/{email} | |
| DefaultApi | getSSOUserById | GET /api/v1/sso-users/by-id/{id} | |
| DefaultApi | getSSOUsers | GET /api/v1/sso-users | |
| DefaultApi | getSubscriptions | GET /api/v1/subscriptions | |
| DefaultApi | getTenant | GET /api/v1/tenants/{id} | |
| DefaultApi | getTenantDailyUsages | GET /api/v1/tenant-daily-usage | |
| DefaultApi | getTenantPackage | GET /api/v1/tenant-packages/{id} | |
| DefaultApi | getTenantPackages | GET /api/v1/tenant-packages | |
| DefaultApi | getTenantUser | GET /api/v1/tenant-users/{id} | |
| DefaultApi | getTenantUsers | GET /api/v1/tenant-users | |
| DefaultApi | getTenants | GET /api/v1/tenants | |
| DefaultApi | getTicket | GET /api/v1/tickets/{id} | |
| DefaultApi | getTickets | GET /api/v1/tickets | |
| DefaultApi | getUser | GET /api/v1/users/{id} | |
| DefaultApi | getUserBadge | GET /api/v1/user-badges/{id} | |
| DefaultApi | getUserBadgeProgressById | GET /api/v1/user-badge-progress/{id} | |
| DefaultApi | getUserBadgeProgressByUserId | GET /api/v1/user-badge-progress/user/{userId} | |
| DefaultApi | getUserBadgeProgressList | GET /api/v1/user-badge-progress | |
| DefaultApi | getUserBadges | GET /api/v1/user-badges | |
| DefaultApi | getVotes | GET /api/v1/votes | |
| DefaultApi | getVotesForUser | GET /api/v1/votes/for-user | |
| DefaultApi | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | patchHashTag | PATCH /api/v1/hash-tags/{tag} | |
| DefaultApi | patchPage | PATCH /api/v1/pages/{id} | |
| DefaultApi | patchSSOUser | PATCH /api/v1/sso-users/{id} | |
| DefaultApi | putDomainConfig | PUT /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | putSSOUser | PUT /api/v1/sso-users/{id} | |
| DefaultApi | renderEmailTemplate | POST /api/v1/email-templates/render | |
| DefaultApi | replaceTenantPackage | PUT /api/v1/tenant-packages/{id} | |
| DefaultApi | replaceTenantUser | PUT /api/v1/tenant-users/{id} | |
| DefaultApi | saveComment | POST /api/v1/comments | |
| DefaultApi | saveCommentsBulk | POST /api/v1/comments/bulk | |
| DefaultApi | sendInvite | POST /api/v1/moderators/{id}/send-invite | |
| DefaultApi | sendLoginLink | POST /api/v1/tenant-users/{id}/send-login-link | |
| DefaultApi | unBlockUserFromComment | POST /api/v1/comments/{id}/un-block | |
| DefaultApi | unFlagComment | POST /api/v1/comments/{id}/un-flag | |
| DefaultApi | updateComment | PATCH /api/v1/comments/{id} | |
| DefaultApi | updateEmailTemplate | PATCH /api/v1/email-templates/{id} | |
| DefaultApi | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
| DefaultApi | updateModerator | PATCH /api/v1/moderators/{id} | |
| DefaultApi | updateNotification | PATCH /api/v1/notifications/{id} | |
| DefaultApi | updateQuestionConfig | PATCH /api/v1/question-configs/{id} | |
| DefaultApi | updateQuestionResult | PATCH /api/v1/question-results/{id} | |
| DefaultApi | updateSubscription | PATCH /api/v1/subscriptions/{id} | |
| DefaultApi | updateTenant | PATCH /api/v1/tenants/{id} | |
| DefaultApi | updateTenantPackage | PATCH /api/v1/tenant-packages/{id} | |
| DefaultApi | updateTenantUser | PATCH /api/v1/tenant-users/{id} | |
| DefaultApi | updateUserBadge | PUT /api/v1/user-badges/{id} | |
| ModerationApi | deleteModerationVote | DELETE /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | |
| ModerationApi | getApiComments | GET /auth/my-account/moderate-comments/mod_api/api/comments | |
| ModerationApi | getApiExportStatus | GET /auth/my-account/moderate-comments/mod_api/api/export/status | |
| ModerationApi | getApiIds | GET /auth/my-account/moderate-comments/mod_api/api/ids | |
| ModerationApi | getBanUsersFromComment | GET /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | |
| ModerationApi | getCommentBanStatus | GET /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | |
| ModerationApi | getCommentChildren | GET /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | |
| ModerationApi | getCount | GET /auth/my-account/moderate-comments/mod_api/count | |
| ModerationApi | getCounts | GET /auth/my-account/moderate-comments/banned-users/mod_api/counts | |
| ModerationApi | getLogs | GET /auth/my-account/moderate-comments/mod_api/logs/{commentId} | |
| ModerationApi | getManualBadges | GET /auth/my-account/moderate-comments/mod_api/get-manual-badges | |
| ModerationApi | getManualBadgesForUser | GET /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | |
| ModerationApi | getModerationComment | GET /auth/my-account/moderate-comments/mod_api/comment/{commentId} | |
| ModerationApi | getModerationCommentText | GET /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | |
| ModerationApi | getPreBanSummary | GET /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | |
| ModerationApi | getSearchCommentsSummary | GET /auth/my-account/moderate-comments/mod_api/search/comments/summary | |
| ModerationApi | getSearchPages | GET /auth/my-account/moderate-comments/mod_api/search/pages | |
| ModerationApi | getSearchSites | GET /auth/my-account/moderate-comments/mod_api/search/sites | |
| ModerationApi | getSearchSuggest | GET /auth/my-account/moderate-comments/mod_api/search/suggest | |
| ModerationApi | getSearchUsers | GET /auth/my-account/moderate-comments/mod_api/search/users | |
| ModerationApi | getTrustFactor | GET /auth/my-account/moderate-comments/mod_api/get-trust-factor | |
| ModerationApi | getUserBanPreference | GET /auth/my-account/moderate-comments/mod_api/user-ban-preference | |
| ModerationApi | getUserInternalProfile | GET /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | |
| ModerationApi | postAdjustCommentVotes | POST /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | |
| ModerationApi | postApiExport | POST /auth/my-account/moderate-comments/mod_api/api/export | |
| ModerationApi | postBanUserFromComment | POST /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | |
| ModerationApi | postBanUserUndo | POST /auth/my-account/moderate-comments/mod_api/ban-user/undo | |
| ModerationApi | postBulkPreBanSummary | POST /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | |
| ModerationApi | postCommentsByIds | POST /auth/my-account/moderate-comments/mod_api/comments-by-ids | |
| ModerationApi | postFlagComment | POST /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | |
| ModerationApi | postRemoveComment | POST /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | |
| ModerationApi | postRestoreDeletedComment | POST /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | |
| ModerationApi | postSetCommentApprovalStatus | POST /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | |
| ModerationApi | postSetCommentReviewStatus | POST /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | |
| ModerationApi | postSetCommentSpamStatus | POST /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | |
| ModerationApi | postSetCommentText | POST /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | |
| ModerationApi | postUnFlagComment | POST /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | |
| ModerationApi | postVote | POST /auth/my-account/moderate-comments/mod_api/vote/{commentId} | |
| ModerationApi | putAwardBadge | PUT /auth/my-account/moderate-comments/mod_api/award-badge | |
| ModerationApi | putCloseThread | PUT /auth/my-account/moderate-comments/mod_api/close-thread | |
| ModerationApi | putRemoveBadge | PUT /auth/my-account/moderate-comments/mod_api/remove-badge | |
| ModerationApi | putReopenThread | PUT /auth/my-account/moderate-comments/mod_api/reopen-thread | |
| ModerationApi | setTrustFactor | PUT /auth/my-account/moderate-comments/mod_api/set-trust-factor | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | createV1PageReact | POST /page-reacts/v1/likes/{tenantId} | |
| PublicApi | createV2PageReact | POST /page-reacts/v2/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | deleteV1PageReact | DELETE /page-reacts/v1/likes/{tenantId} | |
| PublicApi | deleteV2PageReact | DELETE /page-reacts/v2/{tenantId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsForUser | GET /comments-for-user | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | req tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | req tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | req tenantId afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGifLarge | GET /gifs/get-large/{tenantId} | |
| PublicApi | getGifsSearch | GET /gifs/search/{tenantId} | |
| PublicApi | getGifsTrending | GET /gifs/trending/{tenantId} | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | req tenantId urlId userIdWS |
| PublicApi | getOfflineUsers | GET /pages/{tenantId}/users/offline | 已發表過評論但目前不在線的使用者。依 displayName 排序。請在使用 /users/online 完成後,用此端點呈現「成員」區塊。對 commenterName 進行游標分頁:伺服器會從 {tenantId, urlId, commenterName} 的部分索引開始,使用 $gt 前進,不會產生 $skip 成本。 |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | 目前在線於頁面的觀眾:其 websocket 工作階段正訂閱此頁面。回傳 anonCount + totalCount(整個房間的訂閱者數,包括未列舉的匿名觀看者)。 |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | 列出該租戶的頁面。由 FChat 桌面客戶端用於填充房間列表。需要在每個頁面的自訂設定中將 enableFChat 設為 true。需要 SSO 的頁面會根據請求使用者的群組存取權限進行過濾。 |
| PublicApi | getTranslations | GET /translations/{namespace}/{component} | |
| PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
| PublicApi | getUserNotifications | GET /user-notifications | |
| PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
| PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
| PublicApi | getUsersInfo | GET /pages/{tenantId}/users/info | 為租戶提供批次使用者資訊。傳入 userIds,會回傳 User / SSOUser 的顯示資訊。供評論小工具在使用者透過 presence 事件首次出現時補充資訊。沒有頁面上下文:隱私政策會一致地被強制執行(私密個人檔案會被遮蔽)。 |
| PublicApi | getV1PageLikes | GET /page-reacts/v1/likes/{tenantId} | |
| PublicApi | getV2PageReactUsers | GET /page-reacts/v2/{tenantId}/list | |
| PublicApi | getV2PageReacts | GET /page-reacts/v2/{tenantId} | |
| PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| PublicApi | logoutPublic | PUT /auth/logout | |
| PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
| PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
| PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
| PublicApi | resetUserNotifications | POST /user-notifications/reset | |
| PublicApi | searchUsers | GET /user-search/{tenantId} | |
| PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
| PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
| PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
| PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
| PublicApi | updateFeedPostPublic | PUT /feed-posts/{tenantId}/{postId} | |
| PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | 為特定評論啟用或停用通知。 |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | 為頁面啟用或停用通知。當使用者訂閱頁面時,會為新的根評論產生通知,也會… |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | 上傳並調整圖片大小 |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
模型文件
- APIAuditLog
- APIBanUserChangeLog
- APIBanUserChangedValues
- APIBannedUser
- APIBannedUserWithMultiMatchInfo
- APIComment
- APICommentBase
- APICommentBase_meta
- APICommentCommonBannedUser
- APICreateUserBadgeResponse
- APIDomainConfiguration
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIModerateGetUserBanPreferencesResponse
- APIModerateUserBanPreferences
- APIPage
- APISSOUser
- APISaveCommentResponse
- APIStatus
- APITenant
- APITenantDailyUsage
- APITicket
- APITicketDetail
- APITicketFile
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfigResponse
- AddDomainConfigResponse_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AdjustCommentVotesParams
- AdjustVotesResponse
- AggregateQuestionResultsResponse
- AggregateResponse
- AggregateTimeBucket
- AggregationAPIError
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- AwardUserBadgeResponse
- BanUserFromCommentResult
- BanUserUndoParams
- BannedUserMatch
- BannedUserMatchType
- BannedUserMatch_matchedOnValue
- BillingInfo
- BlockFromCommentParams
- BlockSuccess
- BuildModerationFilterParams
- BuildModerationFilterResponse
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkCreateHashTagsBody
- BulkCreateHashTagsBody_tags_inner
- BulkCreateHashTagsResponse
- BulkCreateHashTagsResponse_results_inner
- BulkPreBanParams
- BulkPreBanSummary
- ChangeCommentPinStatusResponse
- ChangeTicketStateBody
- ChangeTicketStateResponse
- CheckBlockedCommentsResponse
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CommentsByIdsParams
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateEmailTemplateBody
彙總 
Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| aggregationRequest | AggregationRequest | Yes | |
| options | const AggregateOptions& | Yes |
回應
範例

取得稽核日誌 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetAuditLogsOptions& | Yes |
回應
Returns: GetAuditLogsResponse
範例

公開登出 
回應
範例

從評論封鎖 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Yes | |
| sso | string | No |
回應
Returns: BlockSuccess
範例

解除評論封鎖(公開) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | 是 | |
| sso | string | 否 |
回應
範例

檢查被封鎖的評論 
Parameters
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentIds | string | 是 | |
| sso | string | 否 |
Response
返回: CheckBlockedCommentsResponse
Example

從評論封鎖使用者 
參數
| 名稱 | 類型 | 必須 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| blockFromCommentParams | BlockFromCommentParams | 是 | |
| options | const BlockUserFromCommentOptions& | 是 |
回應
返回:BlockSuccess
範例

公開建立評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 是 | |
| commentData | CommentData | 是 | |
| options | const CreateCommentPublicOptions& | 是 |
回應
返回: SaveCommentsResponseWithPresence
範例

刪除評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| options | const DeleteCommentOptions& | 是 |
回應
範例

公開刪除評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| options | const DeleteCommentPublicOptions& | Yes |
回應
回傳:PublicAPIDeleteCommentResponse
範例

刪除評論投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| voteId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 是 | |
| options | const DeleteCommentVoteOptions& | 是 |
回應
Returns: VoteDeleteResponse
範例

檢舉評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| options | const FlagCommentOptions& | 是 |
回應
範例

取得評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
範例

取得多則評論 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetCommentsOptions& | 是 |
回應
Returns: APIGetCommentsResponse
範例

公開取得評論 
請求 tenantId urlId
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetCommentsPublicOptions& | Yes |
回應
Returns: GetCommentsResponseWithPresence_PublicComment_
範例

取得評論文字 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const GetCommentTextOptions& | Yes |
回應
返回:PublicAPIGetCommentTextResponse
範例

取得評論投票使用者名稱 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| dir | int32_t | 是 | |
| sso | string | 否 |
回應
返回: GetCommentVoteUserNamesSuccessResponse
範例

鎖定評論 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
回應
範例

置頂評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
回應
返回:ChangeCommentPinStatusResponse
範例

儲存評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | CreateCommentParams | Yes | |
| options | const SaveCommentOptions& | Yes |
回應
Returns: APISaveCommentResponse
範例

設定評論文字 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Yes | |
| options | const SetCommentTextOptions& | Yes |
回應
回傳: PublicAPISetCommentTextResponse
範例

解除封鎖使用者(評論) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Yes | |
| options | const UnBlockUserFromCommentOptions& | Yes |
回應
返回: UnblockSuccess
範例

取消檢舉評論 
參數
| 名稱 | 類型 | Required | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const UnFlagCommentOptions& | Yes |
回應
範例

解除鎖定評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 是 | |
| sso | string | 否 |
回應
返回: APIEmptyResponse
範例

取消置頂評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
回應
返回:ChangeCommentPinStatusResponse
範例

更新評論 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updatableCommentParams | UpdatableCommentParams | 是 | |
| options | const UpdateCommentOptions& | 是 |
回應
返回: APIEmptyResponse
範例

對評論投票 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 是 | |
| voteBodyParams | VoteBodyParams | 是 | |
| options | const VoteCommentOptions& | 是 |
回應
返回:VoteResponse
範例

取得使用者的評論 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| options | const GetCommentsForUserOptions& | 是 |
回應
範例

新增網域設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| addDomainConfigParams | AddDomainConfigParams | 是 |
回應
範例

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

取得網域設定 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| domain | string | Yes |
回應
範例

取得網域設定列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes |
回應
範例

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

替換網域設定 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| updateDomainConfigParams | UpdateDomainConfigParams | Yes |
回應
範例

建立電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createEmailTemplateBody | CreateEmailTemplateBody | 是 |
回應
返回:CreateEmailTemplateResponse
示例

刪除電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
返回: APIEmptyResponse
範例

刪除電子郵件範本渲染錯誤 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| errorId | string | Yes |
回應
返回: APIEmptyResponse
範例

取得電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

取得電子郵件範本定義 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | Yes |
回應
返回: GetEmailTemplateDefinitionsResponse
範例

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

取得電子郵件範本列表 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | double | No |
Response
Returns: GetEmailTemplatesResponse
Example

渲染電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Yes | |
| locale | string | No |
回應
返回: RenderEmailTemplateResponse
範例

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

取得事件日誌 
req tenantId urlId userIdWS
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 是 | |
| startTime | int64_t | 是 | |
| endTime | int64_t | 否 |
回應
範例

取得全域事件日誌 
req tenantId urlId userIdWS
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 是 | |
| startTime | int64_t | 是 | |
| endTime | int64_t | 否 |
回應
範例

建立動態貼文 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createFeedPostParams | CreateFeedPostParams | Yes | |
| options | const CreateFeedPostOptions& | Yes |
回應
範例

公開建立動態貼文 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 是 | |
| options | const CreateFeedPostPublicOptions& | 是 |
回應
Returns: CreateFeedPostResponse
範例

公開刪除動態貼文 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| options | const DeleteFeedPostPublicOptions& | Yes |
回應
返回: DeleteFeedPostPublicResponse
範例

取得動態貼文 
req tenantId afterId
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetFeedPostsOptions& | Yes |
回應
範例

公開取得動態貼文 
req tenantId afterId
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetFeedPostsPublicOptions& | Yes |
回應
範例

取得動態貼文統計 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| postIds | vector<string | Yes | |
| sso | string | No |
回應
範例

公開取得使用者反應 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetUserReactsPublicOptions& | 是 |
回應
範例

公開對動態貼文反應 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| reactBodyParams | ReactBodyParams | 是 | |
| options | const ReactFeedPostPublicOptions& | 是 |
回應
範例

更新動態貼文 
參數
| 名稱 | 類型 | 必要 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| feedPost | FeedPost | 是 |
回應
範例

公開更新動態貼文 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| postId | string | 是 | |
| updateFeedPostParams | UpdateFeedPostParams | 是 | |
| options | const UpdateFeedPostPublicOptions& | 是 |
回應
範例

公開檢舉評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| isFlagged | bool | Yes | |
| sso | string | No |
回應
返回: APIEmptyResponse
範例

取得大型 Gif 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| largeInternalURLSanitized | string | 是 |
回應
範例

搜尋動圖 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| search | string | 是 | |
| options | const GetGifsSearchOptions& | 是 |
回應
Returns: GetGifsSearchResponse
範例

取得熱門動圖 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetGifsTrendingOptions& | 是 |
回應
範例

新增標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createHashTagBody | CreateHashTagBody | Yes |
回應
範例

批次新增標籤 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Yes |
回應
範例

刪除標籤 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| tag | string | 是 | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | 是 |
回應
返回: APIEmptyResponse
範例

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

部分更新標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| tag | string | 是 | |
| updateHashTagBody | UpdateHashTagBody | 是 |
回應
範例

刪除審核投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| voteId | string | Yes | |
| options | const DeleteModerationVoteOptions& | Yes |
回應
範例

取得 API 評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetApiCommentsOptions& | Yes |
回應
返回:ModerationAPIGetCommentsResponse
範例

取得 API 匯出狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetApiExportStatusOptions& | Yes |
回應
回傳: ModerationExportStatusResponse
範例

取得 API IDs 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetApiIdsOptions& | 是 |
回應
返回:ModerationAPIGetCommentIdsResponse
範例

取得評論封鎖使用者列表 
參數
| 名稱 | 類型 | 必須 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| sso | string | 否 |
回應
返回: GetBannedUsersFromCommentResponse
範例

取得評論封鎖狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| sso | string | 否 |
回應
返回: GetCommentBanStatusResponse
範例

取得評論子項 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
回應
返回:ModerationAPIChildCommentsResponse
範例

取得計數 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetCountOptions& | Yes |
回傳
回傳: ModerationAPICountCommentsResponse
範例

取得多個計數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
回應
返回: GetBannedUsersCountResponse
範例

取得日誌 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| sso | string | 否 |
回應
返回:ModerationAPIGetLogsResponse
範例

取得人工徽章 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
回應
返回:GetTenantManualBadgesResponse
範例

取得使用者的人工徽章 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetManualBadgesForUserOptions& | 是 |
回應
返回:GetUserManualBadgesResponse
範例

取得審核評論 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| options | const GetModerationCommentOptions& | 是 |
回應
返回:ModerationAPICommentResponse
範例

取得審核評論文字 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
回應
範例

取得預先封鎖摘要 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const GetPreBanSummaryOptions& | Yes |
回應
範例

取得搜尋評論摘要 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetSearchCommentsSummaryOptions& | 是 |
回應
返回:ModerationCommentSearchResponse
範例

取得搜尋頁面 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetSearchPagesOptions& | Yes |
回應
Returns: ModerationPageSearchResponse
範例

取得搜尋網站 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetSearchSitesOptions& | Yes |
回應
返回:ModerationSiteSearchResponse
範例

取得搜尋建議 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetSearchSuggestOptions& | 是 |
回應
範例

取得搜尋使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetSearchUsersOptions& | 是 |
回應
返回: ModerationUserSearchResponse
範例

取得信任係數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetTrustFactorOptions& | 是 |
回應
Returns: GetUserTrustFactorResponse
範例

取得使用者封鎖偏好 
參數
| 名稱 | 類型 | 必須 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
回應
返回:APIModerateGetUserBanPreferencesResponse
範例

取得使用者內部資料 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserInternalProfileOptions& | Yes |
回應
返回:GetUserInternalProfileResponse
範例

調整評論投票 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| adjustCommentVotesParams | AdjustCommentVotesParams | 是 | |
| options | const PostAdjustCommentVotesOptions& | 是 |
回應
範例

API 匯出 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const PostApiExportOptions& | Yes |
回應
範例

封鎖使用者(針對評論) 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostBanUserFromCommentOptions& | Yes |
Response
Example

解除封鎖使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| banUserUndoParams | BanUserUndoParams | Yes | |
| sso | string | No |
回應
返回: APIEmptyResponse
範例

批次預先封鎖摘要 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| bulkPreBanParams | BulkPreBanParams | 是 | |
| options | const PostBulkPreBanSummaryOptions& | 是 |
回應
範例

依 ID 取得評論 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentsByIdsParams | CommentsByIdsParams | 是 | |
| sso | string | 否 |
回應
返回:ModerationAPIChildCommentsResponse
範例

檢舉評論(審核) 
參數
| 名稱 | 類型 | 必須 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| options | const PostFlagCommentOptions& | 是 |
回應
返回: APIEmptyResponse
範例

移除評論(審核) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| options | const PostRemoveCommentOptions& | 是 |
回應
Returns: PostRemoveCommentApiResponse
範例

還原已刪除的評論 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostRestoreDeletedCommentOptions& | Yes |
回應
範例

設定評論審核狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentApprovalStatusOptions& | Yes |
回應
範例

設定評論審查狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentReviewStatusOptions& | Yes |
回應
範例

設定評論為垃圾狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentSpamStatusOptions& | Yes |
回應
Returns: APIEmptyResponse
範例

設定評論文字(審核) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| setCommentTextParams | SetCommentTextParams | 是 | |
| options | const PostSetCommentTextOptions& | 是 |
回應
範例

取消檢舉評論(審核) 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| options | const PostUnFlagCommentOptions& | 是 |
回應
範例

新增投票(審核) 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostVoteOptions& | Yes |
回應
返回: VoteResponse
範例

授予徽章 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| badgeId | string | 是 | |
| options | const PutAwardBadgeOptions& | 是 |
回應
範例

關閉討論串 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| sso | string | 否 |
回應
範例

移除徽章 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| badgeId | string | Yes | |
| options | const PutRemoveBadgeOptions& | Yes |
回應
範例

重新開啟討論串 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| sso | string | 否 |
回應
範例

設定信任係數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const SetTrustFactorOptions& | 是 |
回應
範例

建立管理者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| createModeratorBody | CreateModeratorBody | Yes |
回應
範例

刪除管理者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| sendEmail | string | 否 |
回應
返回: APIEmptyResponse
範例

取得管理者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
範例

取得管理者列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
示例

發送邀請 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| fromName | string | 是 |
回應
返回: APIEmptyResponse
範例

更新管理者 
參數
| 名稱 | 類型 | 必須 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| updateModeratorBody | UpdateModeratorBody | 是 |
回應
回傳: APIEmptyResponse
範例

刪除通知計數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
Returns: APIEmptyResponse
範例

取得快取的通知計數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
返回:GetCachedNotificationCountResponse
範例

取得通知計數 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetNotificationCountOptions& | Yes |
回應
返回: GetNotificationCountResponse
範例

取得通知 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetNotificationsOptions& | 是 |
回應
範例

更新通知 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateNotificationBody | UpdateNotificationBody | Yes | |
| userId | string | No |
回應
返回: APIEmptyResponse
範例

建立 V1 頁面反應 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| title | string | 否 |
回應
範例

建立 V2 頁面反應 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes | |
| title | string | No |
回應
範例

刪除 V1 頁面反應 
參數
| 名稱 | 類型 | 必須 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
回應
範例

刪除 V2 頁面反應 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| id | string | 是 |
回應
範例

取得 V1 頁面按讚數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
回應
回傳: GetV1PageLikes
範例

取得 V2 頁面反應 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
回應
範例

取得 V2 頁面反應使用者 
Parameters
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes |
Response
返回:GetV2PageReactUsersResponse
Example

新增頁面 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIPageData | CreateAPIPageData | 是 |
回應
範例

刪除頁面 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

取得離線使用者 
Past commenters on the page who are NOT currently online. Sorted by displayName.
Use this after exhausting /users/online to render a "Members" section.
Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}
index from afterName forward via $gt, no $skip cost.
Parameters
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetOfflineUsersOptions& | Yes |
Response
Returns: PageUsersOfflineResponse
Example

取得線上使用者 
目前線上觀看頁面的使用者:目前其 websocket session 已訂閱該頁面的使用者。
返回 anonCount + totalCount(全域訂閱者,包含我們未列舉的匿名觀看者)。
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| options | const GetOnlineUsersOptions& | 是 |
回應
範例

以 URL ID 取得頁面 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
回應
範例

取得頁面列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes |
回應
Returns: GetPagesAPIResponse
範例

公開取得頁面 
List pages for a tenant. Used by the FChat desktop client to populate its room list.
Requires enableFChat to be true on the resolved custom config for each page.
Pages that require SSO are filtered against the requesting user's group access.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetPagesPublicOptions& | Yes |
Response
Returns: GetPublicPagesResponse
Example

取得使用者資訊 
Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.
Used by the comment widget to enrich users that just appeared via a presence event.
No page context: privacy is enforced uniformly (private profiles are masked).
Parameters
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| ids | string | Yes |
Response
Returns: PageUsersInfoResponse
範例

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

刪除待處理的 Webhook 事件 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
範例

取得待處理 Webhook 事件計數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetPendingWebhookEventCountOptions& | Yes |
回應
Returns: GetPendingWebhookEventCountResponse
範例

取得待處理的 Webhook 事件列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetPendingWebhookEventsOptions& | 是 |
回應
返回:GetPendingWebhookEventsResponse
範例

建立問卷設定 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createQuestionConfigBody | CreateQuestionConfigBody | Yes |
回應
返回:CreateQuestionConfigResponse
範例

刪除問卷設定 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
Returns: APIEmptyResponse
範例

取得問卷設定 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 |
回應
範例

取得問卷設定列表 
參數
| 名稱 | 類型 | 必要 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
範例

更新問卷設定 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Yes |
回應
回傳: APIEmptyResponse
範例

建立問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionResultBody | CreateQuestionResultBody | 是 |
回應
返回:CreateQuestionResultResponse
範例

刪除問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
範例

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

取得問卷結果列表 
參數
| 名稱 | 類型 | 必須 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetQuestionResultsOptions& | Yes |
回應
返回: GetQuestionResultsResponse
範例

更新問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateQuestionResultBody | UpdateQuestionResultBody | Yes |
回應
返回: APIEmptyResponse
範例

彙總問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const AggregateQuestionResultsOptions& | 是 |
回應
返回:AggregateQuestionResultsResponse
範例

批次彙總問卷結果 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Yes | |
| forceRecalculate | bool | No |
回應
Returns: BulkAggregateQuestionResultsResponse
範例

合併評論與問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const CombineCommentsWithQuestionResultsOptions& | 是 |
回應
返回:CombineQuestionResultsWithCommentsResponse
範例

新增 SSO 使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createAPISSOUserData | CreateAPISSOUserData | Yes |
回應
範例

刪除 SSO 使用者 
參數
| 名稱 | 類型 | 必須 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| options | const DeleteSSOUserOptions& | 是 |
回應
範例

以電子郵件取得 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 | Yes | |
| id | string | Yes | |
| updateAPISSOUserData | UpdateAPISSOUserData | Yes | |
| updateComments | bool | No |
回應
範例

建立訂閱 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | 是 |
回應
回傳:CreateSubscriptionAPIResponse
範例

刪除訂閱 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| userId | string | No |
回應
返回: DeleteSubscriptionAPIResponse
範例

取得訂閱 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No |
回應
回傳: GetSubscriptionsAPIResponse
範例

更新訂閱 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | Yes | |
| userId | string | No |
回應
返回: UpdateSubscriptionAPIResponse
範例

取得租戶每日使用量 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetTenantDailyUsagesOptions& | 是 |
回應
Returns: GetTenantDailyUsagesResponse
範例

建立租戶套件 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createTenantPackageBody | CreateTenantPackageBody | Yes |
回應
返回:CreateTenantPackageResponse
範例

刪除租戶套件 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
返回: APIEmptyResponse
範例

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

取得租戶套件列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
範例

替換租戶套件 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Yes |
回應
返回: APIEmptyResponse
範例

更新租戶套件 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantPackageBody | UpdateTenantPackageBody | Yes |
回應
範例

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

刪除租戶使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| options | const DeleteTenantUserOptions& | 是 |
回應
範例

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

取得租戶使用者列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | double | 否 |
回應
範例

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

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

更新租戶使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantUserBody | UpdateTenantUserBody | Yes | |
| updateComments | string | No |
回應
Returns: APIEmptyResponse
範例

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

刪除租戶 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| sure | string | 否 |
回應
範例

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

取得租戶列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetTenantsOptions& | 是 |
回應
範例

更新租戶 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantBody | UpdateTenantBody | Yes |
回應
返回: APIEmptyResponse
範例

變更工單狀態 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 是 | |
| id | string | 是 | |
| changeTicketStateBody | ChangeTicketStateBody | 是 |
回應
範例

建立工單 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | Yes | |
| createTicketBody | CreateTicketBody | Yes |
回應
範例

取得工單 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| userId | string | 否 |
回應
範例

取得工單列表 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetTicketsOptions& | 是 |
回應
範例

取得翻譯 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| r_namespace | string | 是 | |
| component | string | 是 | |
| options | const GetTranslationsOptions& | 是 |
回應
範例

上傳圖片 
上傳與調整圖像大小
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| file | HttpContent | Yes | |
| options | const UploadImageOptions& | Yes |
回應
範例

以 ID 取得使用者徽章進度 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
返回: APIGetUserBadgeProgressResponse
範例

以使用者 ID 取得徽章進度 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | Yes |
回應
返回: APIGetUserBadgeProgressResponse
範例

取得使用者徽章進度列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetUserBadgeProgressListOptions& | 是 |
回應
返回:APIGetUserBadgeProgressListResponse
範例

建立使用者徽章 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createUserBadgeParams | CreateUserBadgeParams | Yes |
回應
返回: APICreateUserBadgeResponse
範例

刪除使用者徽章 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
回應
範例

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

取得使用者徽章列表 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetUserBadgesOptions& | 是 |
回應
範例

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

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

取得使用者通知 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| options | const GetUserNotificationsOptions& | 是 |
回應
Returns: GetMyNotificationsResponse
範例

重設使用者通知計數 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
回應
返回: ResetUserNotificationsResponse
範例

重設使用者通知 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const ResetUserNotificationsOptions& | Yes |
回應
返回: ResetUserNotificationsResponse
範例

更新使用者評論通知訂閱狀態 
為特定評論啟用或停用通知。
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | Yes | |
| optedInOrOut | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
回應
返回:UpdateUserNotificationCommentSubscriptionStatusResponse
範例

更新使用者頁面通知訂閱狀態 
Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
Parameters
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| url | string | Yes | |
| pageTitle | string | Yes | |
| subscribedOrUnsubscribed | string | Yes | |
| sso | string | No |
Response
返回: UpdateUserNotificationPageSubscriptionStatusResponse
Example

更新使用者通知狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | Yes | |
| newStatus | string | Yes | |
| sso | string | No |
回應
返回:UpdateUserNotificationStatusResponse
範例

取得使用者在線狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlIdWS | string | 是 | |
| userIds | string | 是 |
回應
返回:GetUserPresenceStatusesResponse
範例

搜尋使用者 
Parameters
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const SearchUsersOptions& | Yes |
Response
Returns: SearchUsersResult
Example

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

建立投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| direction | string | 是 | |
| options | const CreateVoteOptions& | 是 |
回應
返回:VoteResponse
範例

刪除投票 
參數
| 名稱 | 類型 | 必需 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 是 | |
| editKey | string | 否 |
回應
範例

取得投票 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
回應
範例

取得使用者的投票 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetVotesForUserOptions& | Yes |
回應
範例

需要幫助?
如果您在使用 C++ SDK 時遇到任何問題或有任何疑問,請:
貢獻
歡迎各種貢獻!請造訪 GitHub 儲存庫 以取得貢獻指南。