
言語 🇯🇵 日本語
ドキュメント
はじめに
APIリファレンス
使用方法
集計
監査ログ
認証
コメントによるブロック
ブロック済みコメントの確認
コメント
ユーザー向けコメント
ドメイン設定
メールテンプレート
イベントログ
フィード投稿
コメント通報
GIF
ハッシュタグ
モデレーション
モデレーター
通知カウント
通知
ページリアクション
ページ
保留中のWebhookイベント
質問設定
質問結果
質問結果の集計
SSOユーザー
サブスクリプション
テナント日次使用量
テナントパッケージ
テナントユーザー
テナント
チケット
翻訳
画像アップロード
ユーザーバッジ進捗
ユーザーバッジ
ユーザー通知
ユーザープレゼンス状態
ユーザー検索
ユーザー
投票
FastComments Nim SDK
これは FastComments の公式 Nim SDK です。
FastComments API の公式 Nim SDK
Repository
インストール 
Nimble の使用
nimble install fastcomments
ソースからビルド
nimble build
ライブラリの内容
このライブラリには、生成された API クライアントと、API の使用を容易にする SSO ユーティリティが含まれています。
パブリック API とセキュア API
API クライアントには、api_default、api_public、api_moderation の 3 つの API モジュールがあります。api_default には API キーが必要なメソッドが含まれ、api_public には認証なしでブラウザやモバイルデバイス等から直接実行できる API 呼び出し
が含まれます。api_moderation モジュールにはモデレーターダッシュボード用のメソッドが含まれています。
api_moderation モジュールは、ライブおよび高速モデレーション API の幅広いスイートを提供します。すべての api_moderation メソッドは sso パラメータを受け取り、SSO または FastComments.com のセッションクッキーで認証できます。
クイックスタート 
認証済み API の使用 (DefaultAPI)
重要: 認証済みエンドポイントでは、API キーを x-api-key ヘッダーに設定する必要があります。
import httpclient
import fastcomments
import fastcomments/apis/api_default
import fastcomments/models/model_comment_data
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
# 認証済み API 呼び出しを行います。
# 必須パラメータ(およびリクエストボディ)は位置指定です;オプション
# パラメータは操作のオプションオブジェクトを介して渡されます。
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
options = GetCommentsOptions(
urlId: "your-url-id",
direction: SortDirections.DESC
)
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
パブリック API の使用 (PublicAPI)
パブリックエンドポイントは認証を必要としません:
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# パブリック API 呼び出しを行います。
# tenantId と urlId は必須(位置指定)です;それ以外はすべてオプションです。
let (response, httpResponse) = getCommentsPublic(
httpClient = client,
tenantId = "your-tenant-id",
urlId = "your-url-id",
options = GetCommentsPublicOptions(
direction: SortDirections.DESC
)
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
モデレーション API の使用 (ModerationAPI)
モデレーションエンドポイントはモデレーター ダッシュボードに機能し、アクティブなモデレーターの SSO トークンで認証されます:
import httpclient
import fastcomments
import fastcomments/apis/api_moderation
let client = newHttpClient()
# モデレーション ダッシュボードのコメントを一覧表示します。
# この操作には必須パラメータがないため、すべてオプションです。
let (response, httpResponse) = getApiComments(
httpClient = client,
options = GetApiCommentsOptions(
count: 30,
tenantId: "your-tenant-id",
sso: "your-sso-token"
)
)
if response.isSome:
let resp = response.get()
echo "Found ", resp.comments.len, " comments"
共通の問題
- 401 認証エラー: DefaultAPI リクエストを行う前に HttpClient の
x-api-keyヘッダーを設定してください:client.headers["x-api-key"] = "your-api-key" - 誤った API クラス: サーバー側の認証リクエストには
api_default、クライアント側/パブリックリクエストにはapi_public、モデレーター ダッシュボードのリクエストにはapi_moderationを使用してください。
API 呼び出し 
このSDKのすべてのAPIメソッドは (Option[ResponseType], Response) のタプルを返します。最初の要素には成功した場合に解析されたレスポンスが含まれ、二番目の要素は生のHTTPレスポンスです。
必須パラメータとリクエストボディは位置引数として渡されます。残りのオプションパラメータは単一の Api<Operation>Options オブジェクトにまとめられ、これが最後の引数となります。オプションパラメータがない操作はオプションオブジェクトを取らないことになります。
Example: Fetching Comments
import httpclient
import options
import fastcomments
import fastcomments/apis/api_default
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
options = GetCommentsOptions(
urlId: "your-url-id",
direction: SortDirections.DESC
)
)
if httpResponse.code == Http200:
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
注意事項 
ブロードキャストID
いくつかの API 呼び出しでは broadcastId を渡す必要があることがわかります。イベントを受け取ったときにこの ID が返されるので、クライアント側で楽観的に変更を適用するつもりなら、そのイベントを無視すべきかどうか判断できます
(これは最良の体験を提供するので、おそらくそうしたいでしょう)。ここには UUID を渡してください。ID はブラウザセッション中に二度発生しない程度に十分一意であるべきです。
SSO (シングルサインオン)
SSO の例は以下を参照してください。
SSO の使用方法 
シンプルな SSO
import fastcomments/sso
let user = newSimpleSSOUserData(
userId = "user-123",
email = "user@example.com",
avatar = "https://example.com/avatar.jpg"
)
let sso = newSimple(simpleUserData = user)
let token = sso.createToken()
echo "SSO Token: ", token
セキュアな SSO
import fastcomments/sso
let user = newSecureSSOUserData(
userId = "user-123",
email = "user@example.com",
username = "johndoe",
avatar = "https://example.com/avatar.jpg"
)
let apiKey = "your-api-key"
let sso = newSecure(apiKey = apiKey, secureUserData = user)
let token = sso.createToken()
echo "Secure SSO Token: ", token
fastcomments のドキュメント 
APIエンドポイントのドキュメント
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 | グループ化が提供されている場合はドキュメントをグループ化し、複数の演算を適用します。さまざまな演算 (例: 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} インデックスを afterName 以降に $gt でたどり、$skip コストはかからない。 |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | 現在ページを閲覧中のユーザー: 現在ページに WebSocket セッションでサブスクライブしているユーザー。anonCount + totalCount (部屋全体のサブスクライバー数、匿名ビューアーも含む) を返す。 |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | テナントのページ一覧。FChat デスクトップクライアントが部屋リストを埋めるために使用。各ページの解決済みカスタム設定で enableFChat が true である必要がある。SSO が必要なページは、リクエストユーザーのグループアクセスに対してフィルタリングされる。 |
| PublicApi | getTranslations | GET /translations/{namespace}/{component} | |
| PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
| PublicApi | getUserNotifications | GET /user-notifications | |
| PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
| PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
| PublicApi | getUsersInfo | GET /pages/{tenantId}/users/info | テナント全体のユーザー情報をバルク取得。userIds が与えられた場合、User / SSOUser から表示情報を返す。コメントウィジェットがプレゼンスイベントで新たに現れたユーザーを補強するために使用。ページコンテキストがないため、プライバシーは一様に適用され、プライベートプロファイルはマスクされる。 |
| PublicApi | getV1PageLikes | GET /page-reacts/v1/likes/{tenantId} | |
| PublicApi | getV2PageReactUsers | GET /page-reacts/v2/{tenantId}/list | |
| PublicApi | getV2PageReacts | GET /page-reacts/v2/{tenantId} | |
| PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| PublicApi | logoutPublic | PUT /auth/logout | |
| PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
| PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
| PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
| PublicApi | resetUserNotifications | POST /user-notifications/reset | |
| PublicApi | searchUsers | GET /user-search/{tenantId} | |
| PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
| PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
| PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
| PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
| PublicApi | updateFeedPostPublic | PUT /feed-posts/{tenantId}/{postId} | |
| PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | 特定のコメントに対する通知を有効化または無効化します。 |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | ページに対する通知を有効化または無効化します。ユーザーがページにサブスクライブすると、新しいルートコメントに対して通知が作成され、さらに |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | 画像をアップロードしてリサイズ |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
モデルのドキュメント
- APIAuditLog
- APIBanUserChangeLog
- APIBanUserChangedValues
- APIBannedUser
- APIBannedUserWithMultiMatchInfo
- APIComment
- APICommentBase
- APICommentBase_meta
- APICommentCommonBannedUser
- APICreateUserBadgeResponse
- APIDomainConfiguration
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIModerateGetUserBanPreferencesResponse
- APIModerateUserBanPreferences
- APIPage
- APISSOUser
- APISaveCommentResponse
- APIStatus
- APITenant
- APITenantDailyUsage
- APITicket
- APITicketDetail
- APITicketFile
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfigResponse
- AddDomainConfigResponse_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AdjustCommentVotesParams
- AdjustVotesResponse
- AggregateQuestionResultsResponse
- AggregateResponse
- AggregateTimeBucket
- AggregationAPIError
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- AwardUserBadgeResponse
- BanUserFromCommentResult
- BanUserUndoParams
- BannedUserMatch
- BannedUserMatchType
- BannedUserMatch_matchedOnValue
- BillingInfo
- BlockFromCommentParams
- BlockSuccess
- BuildModerationFilterParams
- BuildModerationFilterResponse
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkCreateHashTagsBody
- BulkCreateHashTagsBody_tags_inner
- BulkCreateHashTagsResponse
- BulkCreateHashTagsResponse_results_inner
- BulkPreBanParams
- BulkPreBanSummary
- ChangeCommentPinStatusResponse
- ChangeTicketStateBody
- ChangeTicketStateResponse
- CheckBlockedCommentsResponse
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CommentsByIdsParams
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateEmailTemplateBody
- CreateEmailTemplateResponse
- CreateFeedPostParams
- CreateFeedPostResponse
- CreateFeedPostsResponse
- CreateHashTagBody
- CreateHashTagResponse
- CreateModeratorBody
- CreateModeratorResponse
- CreateQuestionConfigBody
- CreateQuestionConfigResponse
- [CreateQuestionResultBody](https://github.com/FastComments/fastcomments-nim/blob
集計 
Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| aggregationRequest | AggregationRequest | No | |
| options | AggregateOptions | No |
Response
Returns: Option[AggregateResponse]
Example

監査ログを取得 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | GetAuditLogsOptions | No |
レスポンス
返却: Option[GetAuditLogsResponse]
例

パブリックログアウト 
レスポンス
例

コメントからブロック(公開) 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | No | |
| sso | string = "" | No |
レスポンス
返り値: Option[BlockSuccess]
例

コメントブロック解除(公開) 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | No | |
| sso | string = "" | No |
レスポンス
例

ブロック済みコメントの確認 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| commentIds | string | いいえ | |
| sso | string = "" | いいえ |
応答
戻り値: Option[CheckBlockedCommentsResponse]
例

コメントからユーザーをブロック 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| blockFromCommentParams | BlockFromCommentParams | No | |
| options | BlockUserFromCommentOptions | No |
レスポンス
戻り値: Option[BlockSuccess]
例

コメントを作成(公開) 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| broadcastId | string | No | |
| commentData | CommentData | No | |
| options | CreateCommentPublicOptions | No |
レスポンス
戻り値: Option[SaveCommentsResponseWithPresence]
例

コメントを削除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| options | DeleteCommentOptions | No |
レスポンス
返却: Option[DeleteCommentResult]
例

コメントを削除(公開) 
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| options | DeleteCommentPublicOptions | No |
Response
返却: Option[PublicAPIDeleteCommentResponse]
Example

コメント投票を削除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| voteId | string | No | |
| urlId | string | Yes | |
| broadcastId | string | No | |
| options | DeleteCommentVoteOptions | No |
レスポンス
戻り値: Option[VoteDeleteResponse]
例

コメントを通報 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| id | string | いいえ | |
| options | FlagCommentOptions | いいえ |
レスポンス
戻り値: Option[FlagCommentResponse]
例

コメントを取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| id | string | いいえ |
レスポンス
返却: Option[APIGetCommentResponse]
例

コメント一覧を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| options | GetCommentsOptions | いいえ |
レスポンス
戻り値: Option[APIGetCommentsResponse]
例

コメント一覧を取得(公開) 
req tenantId urlId
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| urlId | string | はい | |
| options | GetCommentsPublicOptions | いいえ |
応答
戻り値: Option[GetCommentsResponseWithPresencePublicComment]
例

コメント本文を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | GetCommentTextOptions | No |
レスポンス
戻り値: Option[PublicAPIGetCommentTextResponse]
例

コメント投票ユーザー名を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| commentId | string | はい | |
| dir | int | いいえ | |
| sso | string = "" | いいえ |
レスポンス
戻り値: Option[GetCommentVoteUserNamesSuccessResponse]
例

コメントをロック 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| sso | string = "" | No |
レスポンス
例

コメントをピン留め 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| sso | string = "" | No |
レスポンス
返却: Option[ChangeCommentPinStatusResponse]
例

コメントを保存 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | CreateCommentParams | No | |
| options | SaveCommentOptions | No |
応答
戻り値: Option[APISaveCommentResponse]
例

コメントを一括保存 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | seq[CreateCommentParams] | No | |
| options | SaveCommentsBulkOptions): (Option[seq[SaveCommentsBulkResponse]] | No | |
| id | string | No | |
| fromName | string | No |
応答
例

コメント本文を設定 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| commentId | string | はい | |
| broadcastId | string | いいえ | |
| commentTextUpdateRequest | CommentTextUpdateRequest | いいえ | |
| options | SetCommentTextOptions | いいえ |
レスポンス
返却: Option[PublicAPISetCommentTextResponse]
例

コメントからユーザーのブロックを解除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| id | string | いいえ | |
| unBlockFromCommentParams | UnBlockFromCommentParams | いいえ | |
| options | UnBlockUserFromCommentOptions | いいえ |
レスポンス
例

コメントの通報を取り下げ 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| options | UnFlagCommentOptions | No |
応答
戻り値: Option[FlagCommentResponse]
例

コメントのロックを解除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| sso | string = "" | No |
応答
例

コメントのピン留めを解除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| sso | string = "" | No |
レスポンス
返却: Option[ChangeCommentPinStatusResponse]
例

コメントを更新 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| updatableCommentParams | UpdatableCommentParams | No | |
| options | UpdateCommentOptions | No |
応答
例

コメントに投票 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| commentId | string | はい | |
| urlId | string | はい | |
| broadcastId | string | いいえ | |
| voteBodyParams | VoteBodyParams | いいえ | |
| options | VoteCommentOptions | いいえ |
レスポンス
例

ユーザーのコメントを取得 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| options | GetCommentsForUserOptions | いいえ |
応答
戻り値: Option[GetCommentsForUserResponse]
例

ドメイン設定を追加 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| addDomainConfigParams | AddDomainConfigParams | いいえ |
レスポンス
戻り値: Option[AddDomainConfigResponse]
例

ドメイン設定を削除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| domain | string | いいえ |
レスポンス
戻り値: Option[DeleteDomainConfigResponse]
例

ドメイン設定を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| domain | string | いいえ |
レスポンス
返却: Option[GetDomainConfigResponse]
例

ドメイン設定一覧を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい |
応答
返却: Option[GetDomainConfigsResponse]
例

ドメイン設定を部分更新 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | No | |
| patchDomainConfigParams | PatchDomainConfigParams | No |
レスポンス
戻り値: Option[PatchDomainConfigResponse]
例

ドメイン設定を置換 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | No | |
| updateDomainConfigParams | UpdateDomainConfigParams | No |
レスポンス
戻り値: Option[PutDomainConfigResponse]
例

メールテンプレートを作成 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| createEmailTemplateBody | CreateEmailTemplateBody | いいえ |
レスポンス
戻り値: Option[CreateEmailTemplateResponse]
例

メールテンプレートを削除 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No |
レスポンス
例

メールテンプレートレンダリングエラーを削除 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| errorId | string | No |
応答
例

メールテンプレートを取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| id | string | いいえ |
レスポンス
戻り値: Option[GetEmailTemplateResponse]
例

メールテンプレート定義を取得 
パラメータ
| Name | Type | Required | 説明 |
|---|---|---|---|
| tenantId | string | Yes |
レスポンス
戻り値: Option[GetEmailTemplateDefinitionsResponse]
例

メールテンプレートのレンダリングエラーを取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| skip | float64 | No |
レスポンス
返り値: Option[GetEmailTemplateRenderErrorsResponse]
例

メールテンプレート一覧を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | float64 | No |
応答
戻り値: Option[GetEmailTemplatesResponse]
例

メールテンプレートをレンダリング 
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| renderEmailTemplateBody | RenderEmailTemplateBody | いいえ | |
| locale | string = "" | いいえ |
レスポンス
戻り値: Option[RenderEmailTemplateResponse]
例

メールテンプレートを更新 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | No |
レスポンス
例

イベントログを取得 
req tenantId urlId userIdWS
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| urlId | string | はい | |
| userIdWS | string | いいえ | |
| startTime | int64 | いいえ | |
| endTime | int64 | いいえ |
レスポンス
返却: Option[GetEventLogResponse]
例

グローバルイベントログを取得 
req tenantId urlId userIdWS
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| userIdWS | string | No | |
| startTime | int64 | No | |
| endTime | int64 | No |
Response
Returns: Option[GetEventLogResponse]
Example

フィード投稿を作成 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| createFeedPostParams | CreateFeedPostParams | いいえ | |
| options | CreateFeedPostOptions | いいえ |
レスポンス
戻り値: Option[CreateFeedPostsResponse]
例

フィード投稿を作成(公開) 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| createFeedPostParams | CreateFeedPostParams | No | |
| options | CreateFeedPostPublicOptions | No |
レスポンス
戻り値: Option[CreateFeedPostResponse]
例

フィード投稿を削除(公開) 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| postId | string | いいえ | |
| options | DeleteFeedPostPublicOptions | いいえ |
レスポンス
戻り値: Option[DeleteFeedPostPublicResponse]
例

フィード投稿を取得 
req tenantId afterId
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | はい | |
| options | GetFeedPostsOptions | いいえ |
レスポンス
戻り値: Option[GetFeedPostsResponse]
例

フィード投稿を取得(公開) 
req tenantId afterId
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | Yes | |
| options | GetFeedPostsPublicOptions | No |
応答
戻り値: Option[PublicFeedPostsResponse]
例

フィード投稿の統計を取得 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenantId | string | はい | |
| postIds | seq[string] | いいえ | |
| sso | string = "" | いいえ |
レスポンス
戻り値: Option[FeedPostsStatsResponse]
例
