
語言 🇹🇼 繁體中文
文件
快速開始
API 參考
使用方式
彙總
稽核記錄
留言封鎖
檢查被封鎖留言
留言
網域設定
電子郵件範本
事件記錄
動態貼文
檢舉留言
標籤
版主
通知數量
通知
頁面
待處理 Webhook 事件
問卷設定
問卷結果
問卷結果彙總
SSO 使用者
訂閱
租戶每日使用量
租戶方案
租戶使用者
租戶
上傳圖片
使用者徽章進度
使用者徽章
使用者通知
使用者在線狀態
使用者搜尋
使用者
投票
FastComments Nim SDK
這是 FastComments 的官方 Nim SDK。
FastComments API 的官方 Nim SDK
儲存庫
安裝 
使用 Nimble
nimble install fastcomments
從原始碼建置
nimble build
函式庫內容
此函式庫包含產生的 API 用戶端以及 SSO 工具,以便更輕鬆地使用 API。
公開與受保護的 API
For the API client, there are two API modules, api_default and api_public. The api_default contains methods that require your API key, and api_public contains api calls
而 api_public 則包含 API 呼叫
可直接從瀏覽器/行動裝置等進行,且無需驗證。
快速上手 
使用已驗證的 API (DefaultAPI)
重要: 已驗證的端點需要您將 API 金鑰設為 x-api-key 標頭。
import httpclient
import fastcomments
import fastcomments/apis/api_default
import fastcomments/models/model_comment_data
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
# 執行已驗證的 API 呼叫
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
使用公開 API (PublicAPI)
公開端點不需要驗證:
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# 執行公開 API 呼叫
let (response, httpResponse) = getCommentsPublic(
httpClient = client,
tenantId = "your-tenant-id",
urlId = "your-url-id",
page = 0,
direction = SortDirections.DESC,
sso = "",
skip = 0,
skipChildren = 0,
limit = 0,
limitChildren = 0,
countChildren = false,
fetchPageForCommentId = "",
includeConfig = false,
countAll = false,
includei10n = false,
locale = "",
modules = "",
isCrawler = false,
includeNotificationCount = false,
asTree = false,
maxTreeDepth = 0,
useFullTranslationIds = false,
parentId = "",
searchText = "",
hashTags = @[],
userId = "",
customConfigStr = "",
afterCommentId = "",
beforeCommentId = ""
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
常見問題
- 401 認證錯誤:在發出 DefaultAPI 請求之前,請確認已在 HttpClient 上設定
x-api-key標頭:client.headers["x-api-key"] = "your-api-key" - 錯誤的 API 類別:伺服器端的已驗證請求請使用
api_default,用於客戶端/公開的請求請使用api_public。
進行 API 呼叫 
本 SDK 中的所有 API 方法都回傳 (Option[ResponseType], Response) 的元組。第一個元素在成功時包含解析後的回應,第二個元素則是原始的 HTTP 回應。
範例:擷取評論
import httpclient
import options
import fastcomments
import fastcomments/apis/api_default
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if httpResponse.code == Http200:
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
備註 
廣播 ID
你會看到在某些 API 呼叫中需要傳入一個 broadcastId。當你接收到事件時,你會拿回這個 ID,因此如果你打算在用戶端採用樂觀更新(在用戶端樂觀地套用變更),你就可以據此忽略該事件(你可能會想這樣做,因為它提供了最佳的使用體驗)。在這裡傳入一個 UUID。這個 ID 應該夠獨特,以免在同一個瀏覽器會話中出現兩次。
SSO (單一登入)
關於 SSO 的範例,請見下方。
SSO 使用方式 
簡易 SSO
import fastcomments/sso
let user = newSimpleSSOUserData(
userId = "user-123",
email = "user@example.com",
avatar = "https://example.com/avatar.jpg"
)
let sso = newSimple(simpleUserData = user)
let token = sso.createToken()
echo "SSO Token: ", token
安全 SSO
import fastcomments/sso
let user = newSecureSSOUserData(
userId = "user-123",
email = "user@example.com",
username = "johndoe",
avatar = "https://example.com/avatar.jpg"
)
let apiKey = "your-api-key"
let sso = newSecure(apiKey = apiKey, secureUserData = user)
let token = sso.createToken()
echo "Secure SSO Token: ", token
fastcomments 文件 
fastcomments 文件
API 端點 文件
所有 URI 相對於 https://fastcomments.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | addDomainConfig | POST /api/v1/domain-configs | |
| DefaultApi | addPage | POST /api/v1/pages | |
| DefaultApi | addSSOUser | POST /api/v1/sso-users | |
| DefaultApi | aggregate | POST /api/v1/aggregate | 將文件透過群組(如果提供了 groupBy)彙總並套用多個運算。支援不同的運算(例如 sum、countDistinct、avg 等)。 |
| DefaultApi | aggregateQuestionResults | GET /api/v1/question-results-aggregation | |
| DefaultApi | blockUserFromComment | POST /api/v1/comments/{id}/block | |
| DefaultApi | bulkAggregateQuestionResults | POST /api/v1/question-results-aggregation/bulk | |
| DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
| DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
| DefaultApi | createSubscription | POST /api/v1/subscriptions | |
| DefaultApi | createUserBadge | POST /api/v1/user-badges | |
| DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
| DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
| DefaultApi | deletePage | DELETE /api/v1/pages/{id} | |
| DefaultApi | deleteSSOUser | DELETE /api/v1/sso-users/{id} | |
| DefaultApi | deleteSubscription | DELETE /api/v1/subscriptions/{id} | |
| DefaultApi | deleteUserBadge | DELETE /api/v1/user-badges/{id} | |
| DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
| DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
| 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 | getFeedPosts | GET /api/v1/feed-posts | 需要 tenantId、afterId |
| DefaultApi | getPageByURLId | GET /api/v1/pages/by-url-id | |
| DefaultApi | getPages | GET /api/v1/pages | |
| 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 | 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 | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
| 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 | saveComment | POST /api/v1/comments | |
| DefaultApi | saveCommentsBulk | POST /api/v1/comments/bulk | |
| 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 | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
| DefaultApi | updateUserBadge | PUT /api/v1/user-badges/{id} | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | 需要 tenantId、urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | 需要 tenantId、urlId、userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | 需要 tenantId、afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | 需要 tenantId、urlId、userIdWS |
| PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
| PublicApi | getUserNotifications | GET /user-notifications | |
| PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
| PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
| PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
| PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
| PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
| PublicApi | resetUserNotifications | POST /user-notifications/reset | |
| PublicApi | searchUsers | GET /user-search/{tenantId} | |
| PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
| PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
| PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
| PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
| PublicApi | updateFeedPostPublic | PUT /feed-posts/{tenantId}/{postId} | |
| PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | 啟用或停用特定留言的通知。 |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | 啟用或停用頁面的通知。當使用者訂閱某個頁面時,會為新的根留言建立通知,並且還會 |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | 上傳並調整圖像大小 |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
模型 文件
- APIAuditLog
- APIComment
- APICommentBase
- APICreateUserBadgeResponse
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIPage
- APISSOUser
- APIStatus
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfig_200_response
- AddDomainConfig_200_response_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AggregateQuestionResultsResponse
- AggregateQuestionResults_200_response
- AggregateTimeBucket
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- BlockFromCommentParams
- BlockFromCommentPublic_200_response
- BlockSuccess
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkAggregateQuestionResults_200_response
- ChangeCommentPinStatusResponse
- CheckBlockedCommentsResponse
- CheckedCommentsForBlocked_200_response
- CombineCommentsWithQuestionResults_200_response
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateCommentPublic_200_response
- CreateFeedPostParams
- CreateFeedPostPublic_200_response
- CreateFeedPostResponse
- CreateFeedPost_200_response
- CreateFeedPostsResponse
- CreateSubscriptionAPIResponse
- CreateUserBadgeParams
- CreateUserBadge_200_response
- CustomConfigParameters
- DeleteCommentAction
- DeleteCommentPublic_200_response
- DeleteCommentResult
- DeleteCommentVote_200_response
- DeleteComment_200_response
- DeleteDomainConfig_200_response
- DeleteFeedPostPublic_200_response
- DeleteFeedPostPublic_200_response_anyOf
- DeletePageAPIResponse
- DeleteSSOUserAPIResponse
- DeleteSubscriptionAPIResponse
- DeletedCommentResultComment
- EventLogEntry
- FComment
- FComment_meta
- FeedPost
- FeedPostLink
- FeedPostMediaItem
- FeedPostMediaItemAsset
- FeedPostStats
- FeedPostsStatsResponse
- FindCommentsByRangeItem
- FindCommentsByRangeResponse
- FlagCommentPublic_200_response
- FlagCommentResponse
- FlagComment_200_response
- GetAuditLogsResponse
- GetAuditLogs_200_response
- GetCommentText_200_response
- GetCommentVoteUserNamesSuccessResponse
- GetCommentVoteUserNames_200_response
- GetComment_200_response
- GetCommentsPublic_200_response
- GetCommentsResponseWithPresence_PublicComment_
- GetCommentsResponse_PublicComment_
- GetComments_200_response
- GetDomainConfig_200_response
- GetDomainConfigs_200_response
- GetDomainConfigs_200_response_anyOf
- GetDomainConfigs_200_response_anyOf_1
- GetEventLogResponse
- GetEventLog_200_response
- GetFeedPostsPublic_200_response
- GetFeedPostsResponse
- GetFeedPostsStats_200_response
- GetFeedPosts_200_response
- GetMyNotificationsResponse
- GetPageByURLIdAPIResponse
- GetPagesAPIResponse
- GetPublicFeedPostsResponse
- PutSSOUserAPIResponse
- QueryPredicate
- QueryPredicate_value
- QuestionDatum
- QuestionRenderingType
- QuestionResult
- QuestionResultAggregationOverall
- QuestionSubQuestionVisibility
- QuestionWhenSave
- ReactBodyParams
- ReactFeedPostPublic_200_response
- ReactFeedPostResponse
- Record_string__before_string_or_null__after_string_or_null___value
- Record_string_string_or_number__value
- RenderableUserNotification
- RepeatCommentCheckIgnoredReason
- RepeatCommentHandlingAction
- ResetUserNotificationsResponse
- ResetUserNotifications_200_response
- SORT_DIR
- SSOSecurityLevel
- SaveCommentResponse
- SaveCommentResponseOptimized
- SaveComment_200_response
- SaveCommentsResponseWithPresence
- SearchUsersResponse
- SearchUsers_200_response
- SetCommentTextResult
- SetCommentText_200_response
- SizePreset
- SortDirections
- SpamRule
- UnBlockCommentPublic_200_response
- UnBlockFromCommentParams
- UnblockSuccess
- UpdatableCommentParams
- UpdateAPIPageData
- UpdateAPISSOUserData
- UpdateDomainConfigParams
- UpdateFeedPostParams
- UpdateUserBadgeParams
- UpdateUserBadge_200_response
- UpdateUserNotificationStatus_200_response
- UploadImageResponse
- UserBadge
- UserBadgeProgress
- UserNotification
- UserNotificationWriteResponse
- UserPresenceData
- UserReactsResponse
- UserSearchResult
- UserSessionInfo
- VoteBodyParams
- VoteComment_200_response
- VoteDeleteResponse
- VoteResponse
- VoteResponseUser
- VoteStyle
授權 文件
api_key
- 類型: API key
- API key 參數名稱: x-api-key
- 位置: HTTP 標頭
彙總 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| aggregationRequest | AggregationRequest | 否 | |
| parentTenantId | string | 否 | |
| includeStats | bool | 否 |
回應
回傳: Option[AggregationResponse]
範例

取得稽核記錄 
參數
| 名稱 | 類型 | 必需 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| limit | float64 | 否 | |
| skip | float64 | 否 | |
| order | SORTDIR | 否 | |
| after | float64 | 否 | |
| before | float64 | 否 |
回應
回傳: Option[GetAuditLogs_200_response]
範例

從留言封鎖(公開) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | 否 | |
| sso | string | 否 |
回應
回傳:Option[BlockFromCommentPublic_200_response]
範例

取消封鎖留言(公開) 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | 否 | |
| sso | string | 否 |
回應
回傳: Option[UnBlockCommentPublic_200_response]
範例

檢查被封鎖的留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentIds | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[CheckedCommentsForBlocked_200_response]
範例

從留言封鎖使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| blockFromCommentParams | BlockFromCommentParams | No | |
| userId | string | No | |
| anonUserId | string | No |
回應
回傳: Option[BlockFromCommentPublic_200_response]
範例

建立留言(公開) 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 否 | |
| commentData | CommentData | 否 | |
| sessionId | string | 否 | |
| sso | string | 否 |
回應
回傳:Option[CreateCommentPublic_200_response]
範例

刪除留言 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| contextUserId | string | 否 | |
| isLive | bool | 否 |
回應
回傳: Option[DeleteComment_200_response]
範例

刪除留言(公開) 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| editKey | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[DeleteCommentPublic_200_response]
範例

刪除留言投票 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| voteId | string | 否 | |
| urlId | string | 是 | |
| broadcastId | string | 否 | |
| editKey | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[DeleteCommentVote_200_response]
範例

檢舉留言 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳: Option[FlagComment_200_response]
範例

取得留言 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetComment_200_response]
範例

取得留言列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| page | int | 否 | |
| limit | int | 否 | |
| skip | int | 否 | |
| asTree | bool | 否 | |
| skipChildren | int | 否 | |
| limitChildren | int | 否 | |
| maxTreeDepth | int | 否 | |
| urlId | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 | |
| contextUserId | string | 否 | |
| hashTag | string | 否 | |
| parentId | string | 否 | |
| direction | SortDirections | 否 |
回應
回傳: Option[GetComments_200_response]
範例

取得留言(公開) 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| page | int | 否 | |
| direction | SortDirections | 否 | |
| sso | string | 否 | |
| skip | int | 否 | |
| skipChildren | int | 否 | |
| limit | int | 否 | |
| limitChildren | int | 否 | |
| countChildren | bool | 否 | |
| fetchPageForCommentId | string | 否 | |
| includeConfig | bool | 否 | |
| countAll | bool | 否 | |
| includei10n | bool | 否 | |
| locale | string | 否 | |
| modules | string | 否 | |
| isCrawler | bool | 否 | |
| includeNotificationCount | bool | 否 | |
| asTree | bool | 否 | |
| maxTreeDepth | int | 否 | |
| useFullTranslationIds | bool | 否 | |
| parentId | string | 否 | |
| searchText | string | 否 | |
| hashTags | seq[string] | 否 | |
| userId | string | 否 | |
| customConfigStr | string | 否 | |
| afterCommentId | string | 否 | |
| beforeCommentId | string | 否 |
回應
回傳: Option[GetCommentsPublic_200_response]
範例

取得留言文字 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| editKey | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[GetCommentText_200_response]
範例

取得留言投票使用者名稱 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| dir | int | 否 | |
| sso | string | 否 |
回應
回傳:Option[GetCommentVoteUserNames_200_response]
範例

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

置頂留言 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[PinComment_200_response]
範例

儲存留言 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | CreateCommentParams | No | |
| isLive | bool | No | |
| doSpamCheck | bool | No | |
| sendEmails | bool | No | |
| populateNotifications | bool | No |
回應
回傳: Option[SaveComment_200_response]
範例

批次儲存留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createCommentParams | seq[CreateCommentParams] | 否 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| sendEmails | bool | 否 | |
| populateNotifications | bool): (Option[seq[SaveComment_200_response]] | 否 | |
| id | string | 否 | |
| unBlockFromCommentParams | UnBlockFromCommentParams | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳:Option[UnBlockCommentPublic_200_response]
範例

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

取消從留言封鎖使用者 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| unBlockFromCommentParams | UnBlockFromCommentParams | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳: Option[UnBlockCommentPublic_200_response]
範例

取消檢舉留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳: Option[FlagComment_200_response]
範例

解鎖留言 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[LockComment_200_response]
範例

取消置頂留言 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[PinComment_200_response]
範例

更新留言 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updatableCommentParams | UpdatableCommentParams | 否 | |
| contextUserId | string | 否 | |
| doSpamCheck | bool | 否 | |
| isLive | bool | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

對留言投票 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| urlId | string | 是 | |
| broadcastId | string | 否 | |
| voteBodyParams | VoteBodyParams | 否 | |
| sessionId | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[VoteComment_200_response]
範例

新增網域設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| addDomainConfigParams | AddDomainConfigParams | 否 |
回傳
回傳: Option[AddDomainConfig_200_response]
範例

刪除網域設定 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| domain | string | 否 |
回應
回傳: Option[DeleteDomainConfig_200_response]
範例

取得網域設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| domain | string | 否 |
回應
回傳: Option[GetDomainConfig_200_response]
範例

取得網域設定列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 |
回應
回傳: Option[GetDomainConfigs_200_response]
範例

部分更新網域設定 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| domainToUpdate | string | 否 | |
| patchDomainConfigParams | PatchDomainConfigParams | 否 |
回應
回傳: Option[GetDomainConfig_200_response]
範例

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

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

刪除電子郵件範本 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

刪除電子郵件範本渲染錯誤 
參數
| 名稱 | 型別 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| errorId | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

取得電子郵件範本 
參數
| Name | Type | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetEmailTemplate_200_response]
範例

取得電子郵件範本定義 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes |
回應
回傳: Option[GetEmailTemplateDefinitions_200_response]
範例

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

取得電子郵件範本列表 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
回傳
回傳:Option[GetEmailTemplates_200_response]
範例

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

更新電子郵件範本 
參數
| 名稱 | 類型 | 必要 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

取得事件記錄 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 否 | |
| startTime | int64 | 否 | |
| endTime | int64 | 否 |
回應
回傳: Option[GetEventLog_200_response]
範例

取得全域事件記錄 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userIdWS | string | 否 | |
| startTime | int64 | 否 | |
| endTime | int64 | 否 |
回應
回傳: Option[GetEventLog_200_response]
範例

建立動態貼文 
參數
| 名稱 | 類型 | 是否必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 否 | |
| broadcastId | string | 否 | |
| isLive | bool | 否 | |
| doSpamCheck | bool | 否 | |
| skipDupCheck | bool | 否 |
回應
回傳: Option[CreateFeedPost_200_response]
範例

建立公開動態貼文 
參數
| Name | Type | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createFeedPostParams | CreateFeedPostParams | 否 | |
| broadcastId | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[CreateFeedPostPublic_200_response]
範例

刪除公開動態貼文 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | No | |
| broadcastId | string | No | |
| sso | string | No |
回應
回傳: Option[DeleteFeedPostPublic_200_response]
範例

取得動態貼文 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int | 否 | |
| tags | seq[string] | 否 |
回應
回傳: Option[GetFeedPosts_200_response]
範例

取得公開動態貼文 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| limit | int | 否 | |
| tags | seq[string] | 否 | |
| sso | string | 否 | |
| isCrawler | bool | 否 | |
| includeUserInfo | bool | 否 |
回應
回傳: Option[GetFeedPostsPublic_200_response]
範例

取得動態貼文統計 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | seq[string] | 否 | |
| sso | string | 否 |
回應
回傳: Option[GetFeedPostsStats_200_response]
範例

取得使用者回應(公開) 
參數
| Name | Type | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| postIds | seq[string] | 否 | |
| sso | string | 否 |
Response
回傳: Option[GetUserReactsPublic_200_response]
範例

對公開動態貼文回應 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | No | |
| reactBodyParams | ReactBodyParams | No | |
| isUndo | bool | No | |
| broadcastId | string | No | |
| sso | string | No |
回應
回傳: Option[ReactFeedPostPublic_200_response]
範例

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

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

檢舉留言(公開) 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| isFlagged | bool | 否 | |
| sso | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

新增標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createHashTagBody | CreateHashTagBody | 否 |
回應
回傳: Option[AddHashTag_200_response]
範例

批次新增標籤 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | No |
回應
回傳: Option[AddHashTagsBulk_200_response]
範例

刪除標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tag | string | 否 | |
| tenantId | string | 是 | |
| deleteHashTagRequest | DeleteHashTagRequest | 否 |
回應
回傳:Option[FlagCommentPublic_200_response]
範例

取得標籤 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| page | float64 | 否 |
回應
回傳: Option[GetHashTags_200_response]
範例

部分更新標籤 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tag | string | 否 | |
| tenantId | string | 是 | |
| updateHashTagBody | UpdateHashTagBody | 否 |
回應
回傳: Option[PatchHashTag_200_response]
範例

建立版主 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createModeratorBody | CreateModeratorBody | 否 |
回應
回傳: Option[CreateModerator_200_response]
範例

刪除版主 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| sendEmail | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

取得版主 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetModerator_200_response]
範例

取得版主列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
回應
回傳: Option[GetModerators_200_response]
範例

更新版主 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateModeratorBody | UpdateModeratorBody | 否 |
回應
回傳:Option[FlagCommentPublic_200_response]
範例

刪除通知計數 
參數
| 名稱 | 型別 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

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

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

取得通知 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| urlId | string | 是 | |
| fromCommentId | string | 否 | |
| viewed | bool | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetNotifications_200_response]
範例

更新通知 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateNotificationBody | UpdateNotificationBody | 否 | |
| userId | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

新增頁面 
參數
| 名稱 | 類型 | 是否必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIPageData | CreateAPIPageData | 否 |
回應
回傳: Option[AddPageAPIResponse]
範例

刪除頁面 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[DeletePageAPIResponse]
範例

以 URL ID 取得頁面 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
回應
回傳: Option[GetPageByURLIdAPIResponse]
範例

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

部分更新頁面 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPIPageData | UpdateAPIPageData | 否 |
回應
回傳: Option[PatchPageAPIResponse]
範例

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

取得待處理 Webhook 事件數量 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| externalId | string | No | |
| eventType | string | No | |
| domain | string | No | |
| attemptCountGT | float64 | No |
回應
回傳: Option[GetPendingWebhookEventCount_200_response]
範例

取得待處理 Webhook 事件 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| externalId | string | 否 | |
| eventType | string | 否 | |
| domain | string | 否 | |
| attemptCountGT | float64 | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetPendingWebhookEvents_200_response]
範例

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

刪除問卷設定 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

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

取得問卷設定列表 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
回應
回傳: Option[GetQuestionConfigs_200_response]
範例

更新問卷設定 
參數
| 名稱 | Type | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

建立問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createQuestionResultBody | CreateQuestionResultBody | 否 |
回應
回傳:Option[CreateQuestionResult_200_response]
範例

刪除問卷結果 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

取得問卷結果 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetQuestionResult_200_response]
範例

取得問卷結果列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userId | string | 否 | |
| startDate | string | 否 | |
| questionId | string | 否 | |
| questionIds | string | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetQuestionResults_200_response]
範例

更新問卷結果 
參數
| 名稱 | 類型 | 必要 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateQuestionResultBody | UpdateQuestionResultBody | 否 |
回應
回傳:Option[FlagCommentPublic_200_response]
範例

彙總問卷結果 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| questionId | string | 否 | |
| questionIds | seq[string] | 否 | |
| urlId | string | 是 | |
| timeBucket | AggregateTimeBucket | 否 | |
| startDate | string | 否 | |
| forceRecalculate | bool | 否 |
回應
回傳: Option[AggregateQuestionResults_200_response]
範例

批次彙總問卷結果 
參數
| 名稱 | 型別 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | 否 | |
| forceRecalculate | bool | 否 |
回應
回傳:Option[BulkAggregateQuestionResults_200_response]
範例

結合留言與問卷結果 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| questionId | string | 否 | |
| questionIds | seq[string] | 否 | |
| urlId | string | 是 | |
| startDate | string | 否 | |
| forceRecalculate | bool | 否 | |
| minValue | float64 | 否 | |
| maxValue | float64 | 否 | |
| limit | float64 | 否 |
回應
回傳: Option[CombineCommentsWithQuestionResults_200_response]
範例

新增 SSO 使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPISSOUserData | CreateAPISSOUserData | 否 |
回應
回傳:Option[AddSSOUserAPIResponse]
範例

刪除 SSO 使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| deleteComments | bool | 否 | |
| commentDeleteMode | string | 否 |
回應
回傳: Option[DeleteSSOUserAPIResponse]
範例

以電子郵件取得 SSO 使用者 
參數
| 名稱 | 類型 | 是否必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| string | 否 |
回應
回傳: Option[GetSSOUserByEmailAPIResponse]
範例

以 Id 取得 SSO 使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetSSOUserByIdAPIResponse]
範例

取得 SSO 使用者列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | int | 否 |
回應
回傳: Option[GetSSOUsers_200_response]
範例

部分更新 SSO 使用者 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPISSOUserData | UpdateAPISSOUserData | 否 | |
| updateComments | bool | 否 |
回應
回傳:Option[PatchSSOUserAPIResponse]
範例

覆寫 SSO 使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateAPISSOUserData | UpdateAPISSOUserData | 否 | |
| updateComments | bool | 否 |
回應
回傳: Option[PutSSOUserAPIResponse]
範例

建立訂閱 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | 否 |
回應
回傳: Option[CreateSubscriptionAPIResponse]
範例

刪除訂閱 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| userId | string | No |
回應
回傳: Option[DeleteSubscriptionAPIResponse]
範例

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

取得租戶每日使用量 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| yearNumber | float64 | 否 | |
| monthNumber | float64 | 否 | |
| dayNumber | float64 | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetTenantDailyUsages_200_response]
範例

建立租戶方案 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantPackageBody | CreateTenantPackageBody | 否 |
回應
回傳: Option[CreateTenantPackage_200_response]
範例

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

取得租戶方案 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
返回: Option[GetTenantPackage_200_response]
範例

取得租戶方案列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
回應
回傳: Option[GetTenantPackages_200_response]
範例

取代租戶方案 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

更新租戶方案 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateTenantPackageBody | UpdateTenantPackageBody | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

建立租戶使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantUserBody | CreateTenantUserBody | 否 |
回應
回傳: Option[CreateTenantUser_200_response]
範例

刪除租戶使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| deleteComments | string | 否 | |
| commentDeleteMode | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

取得租戶使用者 
參數
| 名稱 | 類型 | 必要 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳:Option[GetTenantUser_200_response]
範例

取得租戶使用者列表 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| skip | float64 | 否 |
回應
回傳: Option[GetTenantUsers_200_response]
範例

取代租戶使用者 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| replaceTenantUserBody | ReplaceTenantUserBody | 否 | |
| updateComments | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

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

更新租戶使用者 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateTenantUserBody | UpdateTenantUserBody | 否 | |
| updateComments | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

建立租戶 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| createTenantBody | CreateTenantBody | 否 |
回應
回傳: Option[CreateTenant_200_response]
範例

刪除租戶 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| sure | string | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

取得租戶 
參數
| 名稱 | 類型 | 是否必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetTenant_200_response]
範例

取得租戶列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| meta | string | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetTenants_200_response]
範例

更新租戶 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| updateTenantBody | UpdateTenantBody | 否 |
回應
回傳: Option[FlagCommentPublic_200_response]
範例

上傳圖片 
參數
| Name | Type | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| file | string | 否 | |
| sizePreset | SizePreset | 否 | |
| urlId | string | 是 |
回應
回傳: Option[UploadImageResponse]
範例

以 Id 取得使用者徽章進度 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetUserBadgeProgressById_200_response]
範例

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

取得使用者徽章進度列表 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| limit | float64 | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetUserBadgeProgressList_200_response]
範例

建立使用者徽章 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| createUserBadgeParams | CreateUserBadgeParams | 否 |
回傳
回傳: Option[CreateUserBadge_200_response]
範例

刪除使用者徽章 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳:Option[UpdateUserBadge_200_response]
範例

取得使用者徽章 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳:Option[GetUserBadge_200_response]
範例

取得使用者徽章列表 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| userId | string | 否 | |
| badgeId | string | 否 | |
| displayedOnComments | bool | 否 | |
| limit | float64 | 否 | |
| skip | float64 | 否 |
回應
回傳: Option[GetUserBadges_200_response]
範例

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

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

取得使用者通知 
參數
| Name | Type | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| pageSize | int | 否 | |
| afterId | string | 否 | |
| includeContext | bool | 否 | |
| afterCreatedAt | int64 | 否 | |
| unreadOnly | bool | 否 | |
| dmOnly | bool | 否 | |
| noDm | bool | 否 | |
| includeTranslations | bool | 否 | |
| sso | string | 否 |
回應
回傳:Option[GetUserNotifications_200_response]
範例

重設使用者通知計數 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| sso | string | 否 |
回應
回傳: Option[ResetUserNotifications_200_response]
範例

重設使用者通知 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| afterId | string | 否 | |
| afterCreatedAt | int64 | 否 | |
| unreadOnly | bool | 否 | |
| dmOnly | bool | 否 | |
| noDm | bool | 否 | |
| sso | string | 否 |
回應
回傳: Option[ResetUserNotifications_200_response]
範例

更新使用者對留言通知訂閱狀態 
參數
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | 是 | |
| notificationId | string | 否 | |
| optedInOrOut | string | 否 | |
| commentId | string | 是 | |
| sso | string | 否 |
回應
回傳: Option[UpdateUserNotificationStatus_200_response]
範例

更新使用者對頁面通知訂閱狀態 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| url | string | 否 | |
| pageTitle | string | 否 | |
| subscribedOrUnsubscribed | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[UpdateUserNotificationStatus_200_response]
範例

更新使用者通知狀態 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| notificationId | string | 否 | |
| newStatus | string | 否 | |
| sso | string | 否 |
回應
回傳: Option[UpdateUserNotificationStatus_200_response]
範例

取得使用者在線狀態 
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlIdWS | string | 否 | |
| userIds | string | 否 |
回應
回傳: Option[GetUserPresenceStatuses_200_response]
範例

搜尋使用者 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| usernameStartsWith | string | 否 | |
| mentionGroupIds | seq[string] | 否 | |
| sso | string | 否 |
回應
回傳: Option[SearchUsers_200_response]
範例

取得使用者 
參數
| 名稱 | 類型 | 必需 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 |
回應
回傳: Option[GetUser_200_response]
範例

建立投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| commentId | string | 是 | |
| direction | string | 否 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳: Option[VoteComment_200_response]
範例

刪除投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| id | string | 否 | |
| editKey | string | 否 |
回應
回傳:Option[DeleteCommentVote_200_response]
範例

取得投票 
參數
| 名稱 | 類型 | 必填 | 描述 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 |
回應
回傳:Option[GetVotes_200_response]
範例

取得使用者的投票 
參數
| 名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| tenantId | string | 是 | |
| urlId | string | 是 | |
| userId | string | 否 | |
| anonUserId | string | 否 |
回應
回傳: Option[GetVotesForUser_200_response]
範例

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