
Język 🇵🇱 Polski
Dokumentacja
Pierwsze kroki
Referencja API
Użycie
Agregacja
Dzienniki audytu
Blokowanie z komentarza
Sprawdzanie zablokowanych komentarzy
Komentarze
Konfiguracje domen
Szablony e-mail
Dziennik zdarzeń
Posty
Zgłoś komentarz
Hashtagi
Moderatorzy
Liczba powiadomień
Powiadomienia
Strony
Oczekujące zdarzenia webhook
Konfiguracje pytań
Wyniki pytań
Agregacja wyników pytań
Użytkownicy SSO
Subskrypcje
Dzienne użycie najemcy
Pakiety najemcy
Użytkownicy najemcy
Najemcy
Przesyłanie obrazu
Postęp odznaki użytkownika
Odznaki użytkownika
Powiadomienia użytkownika
Status obecności użytkownika
Wyszukiwanie użytkowników
Użytkownicy
Głosy
FastComments Nim SDK
To jest oficjalny SDK Nim dla FastComments.
Oficjalny SDK Nim dla API FastComments
Repozytorium
Instalacja 
Korzystanie z Nimble
nimble install fastcomments
Budowanie ze źródeł
nimble build
Zawartość biblioteki
Ta biblioteka zawiera wygenerowanego klienta API oraz narzędzia SSO, które ułatwiają pracę z API.
Publiczne vs Zabezpieczone API
Dla klienta API istnieją dwa moduły API, api_default i api_public. api_default zawiera metody, które wymagają Twojego klucza API, a api_public zawiera wywołania API, które można wykonywać bezpośrednio z przeglądarki/urządzenia mobilnego itp. bez uwierzytelniania.
Szybki start 
Używanie uwierzytelnionych API (DefaultAPI)
Ważne: Uwierzytelnione endpointy wymagają ustawienia klucza API jako nagłówka 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"
# Wykonaj uwierzytelnione wywołania 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"
Używanie publicznych API (PublicAPI)
Publiczne endpointy nie wymagają uwierzytelnienia:
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# Wykonaj publiczne wywołania 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"
Typowe problemy
- 401 authentication error: Upewnij się, że ustawiłeś nagłówek
x-api-keyna swoim HttpClient przed wykonywaniem żądań DefaultAPI:client.headers["x-api-key"] = "your-api-key" - Wrong API class: Użyj
api_defaultdla uwierzytelnionych żądań po stronie serwera,api_publicdla żądań po stronie klienta/publicznych.
Wykonywanie wywołań API 
Wszystkie metody API w tym SDK zwracają krotki (Option[ResponseType], Response). Pierwszy element zawiera sparsowaną odpowiedź w przypadku powodzenia, a drugi element to surowa odpowiedź HTTP.
Przykład: Pobieranie komentarzy
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"
Uwagi 
Identyfikatory Broadcast
Zauważysz, że w niektórych wywołaniach API należy przekazać broadcastId. Gdy otrzymasz zdarzenia, otrzymasz ten identyfikator z powrotem, dzięki czemu będziesz wiedzieć, aby zignorować zdarzenie, jeśli planujesz optymistycznie zastosować zmiany po stronie klienta
(co prawdopodobnie zechcesz zrobić, ponieważ zapewnia to najlepsze wrażenia). Przekaż tutaj UUID. Identyfikator powinien być na tyle unikalny, by nie wystąpić dwukrotnie w sesji przeglądarki.
SSO (Logowanie jednokrotne)
Przykłady SSO znajdują się poniżej.
Użycie SSO 
Proste 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
Bezpieczne 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
Dokumentacja fastcomments 
Dokumentacja fastcomments
Dokumentacja punktów końcowych API
Wszystkie URI są względne względem 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 | Agreguje dokumenty przez grupowanie ich (jeśli podano groupBy) i zastosowanie wielu operacji. Obsługiwane są różne operacje (np. sum, countDistinct, avg itp.). |
| 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 | wymaga 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} | wymaga tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | wymaga tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | wymaga tenantId afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | wymaga 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} | Włącz lub wyłącz powiadomienia dla konkretnego komentarza. |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Włącz lub wyłącz powiadomienia dla strony. Gdy użytkownicy są subskrybowani do strony, powiadomienia są tworzone dla nowych komentarzy głównych, a także |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | Prześlij i zmień rozmiar obrazu |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
Dokumentacja modeli
- 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
- GetSSOUserByEmailAPIResponse
- GetSSOUserByIdAPIResponse
- GetSSOUsers_200_response
- GetSubscriptionsAPIResponse
- GetUserBadgeProgressById_200_response
- GetUserBadgeProgressList_200_response
- GetUserBadge_200_response
- GetUserBadges_200_response
- GetUserNotificationCountResponse
- GetUserNotificationCount_200_response
- GetUserNotifications_200_response
- GetUserPresenceStatusesResponse
- GetUserPresenceStatuses_200_response
- GetUserReactsPublic_200_response
- GifRating
- HeaderState
- IgnoredResponse
- ImageContentProfanityLevel
- LiveEvent
- LiveEventType
- LiveEvent_extraInfo
- LockComment_200_response
- MediaAsset
- MetaItem
- NotificationAndCount
- NotificationObjectType
- NotificationType
- PatchDomainConfigParams
- PatchPageAPIResponse
- PatchSSOUserAPIResponse
- PinComment_200_response
- PubSubComment
- PubSubCommentBase
- PubSubVote
- PublicAPIDeleteCommentResponse
- PublicAPIGetCommentTextResponse
- PublicAPISetCommentTextResponse
- PublicBlockFromCommentParams
- PublicComment
- PublicCommentBase
- PublicFeedPostsResponse
- 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
Dokumentacja autoryzacji
api_key
- Type: Typ
- API key parameter name: x-api-key
- Location: Lokalizacja: nagłówek HTTP
aggregate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| aggregationRequest | AggregationRequest | Nie | |
| parentTenantId | string | Nie | |
| includeStats | bool | Nie |
Odpowiedź
Zwraca: Option[AggregationResponse]
Przykład

getAuditLogs 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| limit | float64 | Nie | |
| skip | float64 | Nie | |
| order | SORTDIR | Nie | |
| after | float64 | Nie | |
| before | float64 | Nie |
Odpowiedź
Zwraca: Option[GetAuditLogs_200_response]
Przykład

blockFromCommentPublic 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[BlockFromCommentPublic_200_response]
Przykład

unBlockCommentPublic 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[UnBlockCommentPublic_200_response]
Przykład

checkedCommentsForBlocked 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentIds | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[CheckedCommentsForBlocked_200_response]
Przykład

blockUserFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| blockFromCommentParams | BlockFromCommentParams | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[BlockFromCommentPublic_200_response]
Przykład

createCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| broadcastId | string | Nie | |
| commentData | CommentData | Nie | |
| sessionId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[CreateCommentPublic_200_response]
Przykład

deleteComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| contextUserId | string | Nie | |
| isLive | bool | Nie |
Odpowiedź
Zwraca: Option[DeleteComment_200_response]
Przykład

deleteCommentPublic 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| editKey | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[DeleteCommentPublic_200_response]
Przykład

deleteCommentVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| voteId | string | Nie | |
| urlId | string | Tak | |
| broadcastId | string | Nie | |
| editKey | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[DeleteCommentVote_200_response]
Przykład

flagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[FlagComment_200_response]
Przykład

getComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetComment_200_response]
Przykład

getComments 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| page | int | Nie | |
| limit | int | Nie | |
| skip | int | Nie | |
| asTree | bool | Nie | |
| skipChildren | int | Nie | |
| limitChildren | int | Nie | |
| maxTreeDepth | int | Nie | |
| urlId | string | Tak | |
| userId | string | Nie | |
| anonUserId | string | Nie | |
| contextUserId | string | Nie | |
| hashTag | string | Nie | |
| parentId | string | Nie | |
| direction | SortDirections | Nie |
Odpowiedź
Zwraca: Option[GetComments_200_response]
Przykład

getCommentsPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| page | int | Nie | |
| direction | SortDirections | Nie | |
| sso | string | Nie | |
| skip | int | Nie | |
| skipChildren | int | Nie | |
| limit | int | Nie | |
| limitChildren | int | Nie | |
| countChildren | bool | Nie | |
| fetchPageForCommentId | string | Nie | |
| includeConfig | bool | Nie | |
| countAll | bool | Nie | |
| includei10n | bool | Nie | |
| locale | string | Nie | |
| modules | string | Nie | |
| isCrawler | bool | Nie | |
| includeNotificationCount | bool | Nie | |
| asTree | bool | Nie | |
| maxTreeDepth | int | Nie | |
| useFullTranslationIds | bool | Nie | |
| parentId | string | Nie | |
| searchText | string | Nie | |
| hashTags | seq[string] | Nie | |
| userId | string | Nie | |
| customConfigStr | string | Nie | |
| afterCommentId | string | Nie | |
| beforeCommentId | string | Nie |
Odpowiedź
Zwraca: Option[GetCommentsPublic_200_response]
Przykład

getCommentText 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| editKey | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetCommentText_200_response]
Przykład

getCommentVoteUserNames 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| dir | int | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetCommentVoteUserNames_200_response]
Przykład

lockComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[LockComment_200_response]
Przykład

pinComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[PinComment_200_response]
Przykład

saveComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createCommentParams | CreateCommentParams | Nie | |
| isLive | bool | Nie | |
| doSpamCheck | bool | Nie | |
| sendEmails | bool | Nie | |
| populateNotifications | bool | Nie |
Odpowiedź
Zwraca: Option[SaveComment_200_response]
Przykład

saveCommentsBulk 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createCommentParams | seq[CreateCommentParams] | Nie | |
| isLive | bool | Nie | |
| doSpamCheck | bool | Nie | |
| sendEmails | bool | Nie | |
| populateNotifications | bool): (Option[seq[SaveComment_200_response]] | Nie | |
| id | string | Nie | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[UnBlockCommentPublic_200_response]
Przykład

setCommentText 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Nie | |
| editKey | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[SetCommentText_200_response]
Przykład

unBlockUserFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[UnBlockCommentPublic_200_response]
Przykład

unFlagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[FlagComment_200_response]
Przykład

unLockComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[LockComment_200_response]
Przykład

unPinComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[PinComment_200_response]
Przykład

updateComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updatableCommentParams | UpdatableCommentParams | Nie | |
| contextUserId | string | Nie | |
| doSpamCheck | bool | Nie | |
| isLive | bool | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

voteComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| urlId | string | Tak | |
| broadcastId | string | Nie | |
| voteBodyParams | VoteBodyParams | Nie | |
| sessionId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[VoteComment_200_response]
Przykład

addDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| addDomainConfigParams | AddDomainConfigParams | Nie |
Odpowiedź
Zwraca: Option[AddDomainConfig_200_response]
Przykład

deleteDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| domain | string | Nie |
Odpowiedź
Zwraca: Option[DeleteDomainConfig_200_response]
Przykład

getDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| domain | string | Nie |
Odpowiedź
Zwraca: Option[GetDomainConfig_200_response]
Przykład

getDomainConfigs 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak |
Odpowiedź
Zwraca: Option[GetDomainConfigs_200_response]
Przykład

patchDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| domainToUpdate | string | Nie | |
| patchDomainConfigParams | PatchDomainConfigParams | Nie |
Odpowiedź
Zwraca: Option[GetDomainConfig_200_response]
Przykład

putDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| domainToUpdate | string | Nie | |
| updateDomainConfigParams | UpdateDomainConfigParams | Nie |
Odpowiedź
Zwraca: Option[GetDomainConfig_200_response]
Przykład

createEmailTemplate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createEmailTemplateBody | CreateEmailTemplateBody | Nie |
Odpowiedź
Zwraca: Option[CreateEmailTemplate_200_response]
Przykład

deleteEmailTemplate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

deleteEmailTemplateRenderError 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| errorId | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getEmailTemplate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetEmailTemplate_200_response]
Przykład

getEmailTemplateDefinitions 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak |
Odpowiedź
Zwraca: Option[GetEmailTemplateDefinitions_200_response]
Przykład

getEmailTemplateRenderErrors 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetEmailTemplateRenderErrors_200_response]
Przykład

getEmailTemplates 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetEmailTemplates_200_response]
Przykład

renderEmailTemplate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Nie | |
| locale | string | Nie |
Odpowiedź
Zwraca: Option[RenderEmailTemplate_200_response]
Przykład

updateEmailTemplate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getEventLog 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userIdWS | string | Nie | |
| startTime | int64 | Nie | |
| endTime | int64 | Nie |
Odpowiedź
Zwraca: Option[GetEventLog_200_response]
Przykład

getGlobalEventLog 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userIdWS | string | Nie | |
| startTime | int64 | Nie | |
| endTime | int64 | Nie |
Odpowiedź
Zwraca: Option[GetEventLog_200_response]
Przykład

createFeedPost 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createFeedPostParams | CreateFeedPostParams | Nie | |
| broadcastId | string | Nie | |
| isLive | bool | Nie | |
| doSpamCheck | bool | Nie | |
| skipDupCheck | bool | Nie |
Odpowiedź
Zwraca: Option[CreateFeedPost_200_response]
Przykład

createFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createFeedPostParams | CreateFeedPostParams | Nie | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[CreateFeedPostPublic_200_response]
Przykład

deleteFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postId | string | Nie | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[DeleteFeedPostPublic_200_response]
Przykład

getFeedPosts 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| afterId | string | Nie | |
| limit | int | Nie | |
| tags | seq[string] | Nie |
Odpowiedź
Zwraca: Option[GetFeedPosts_200_response]
Przykład

getFeedPostsPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| afterId | string | Nie | |
| limit | int | Nie | |
| tags | seq[string] | Nie | |
| sso | string | Nie | |
| isCrawler | bool | Nie | |
| includeUserInfo | bool | Nie |
Odpowiedź
Zwraca: Option[GetFeedPostsPublic_200_response]
Przykład

getFeedPostsStats 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postIds | seq[string] | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetFeedPostsStats_200_response]
Przykład

getUserReactsPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postIds | seq[string] | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetUserReactsPublic_200_response]
Przykład

reactFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postId | string | Nie | |
| reactBodyParams | ReactBodyParams | Nie | |
| isUndo | bool | Nie | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ReactFeedPostPublic_200_response]
Przykład

updateFeedPost 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| feedPost | FeedPost | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

updateFeedPostPublic 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| postId | string | Nie | |
| updateFeedPostParams | UpdateFeedPostParams | Nie | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[CreateFeedPostPublic_200_response]
Przykład

flagCommentPublic 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| isFlagged | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

addHashTag 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createHashTagBody | CreateHashTagBody | Nie |
Odpowiedź
Zwraca: Option[AddHashTag_200_response]
Przykład

addHashTagsBulk 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Nie |
Odpowiedź
Zwraca: Option[AddHashTagsBulk_200_response]
Przykład

deleteHashTag 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tag | string | Nie | |
| tenantId | string | Tak | |
| deleteHashTagRequest | DeleteHashTagRequest | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getHashTags 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| page | float64 | Nie |
Odpowiedź
Zwraca: Option[GetHashTags_200_response]
Przykład

patchHashTag 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tag | string | Nie | |
| tenantId | string | Tak | |
| updateHashTagBody | UpdateHashTagBody | Nie |
Odpowiedź
Zwraca: Option[PatchHashTag_200_response]
Przykład

createModerator 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createModeratorBody | CreateModeratorBody | Nie |
Odpowiedź
Zwraca: Option[CreateModerator_200_response]
Przykład

deleteModerator 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| sendEmail | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getModerator 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetModerator_200_response]
Przykład

getModerators 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetModerators_200_response]
Przykład

updateModerator 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateModeratorBody | UpdateModeratorBody | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

deleteNotificationCount 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getCachedNotificationCount 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetCachedNotificationCount_200_response]
Przykład

getNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie | |
| urlId | string | Tak | |
| fromCommentId | string | Nie | |
| viewed | bool | Nie |
Odpowiedź
Zwraca: Option[GetNotificationCount_200_response]
Przykład

getNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie | |
| urlId | string | Tak | |
| fromCommentId | string | Nie | |
| viewed | bool | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetNotifications_200_response]
Przykład

updateNotification 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateNotificationBody | UpdateNotificationBody | Nie | |
| userId | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

addPage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createAPIPageData | CreateAPIPageData | Nie |
Odpowiedź
Zwraca: Option[AddPageAPIResponse]
Przykład

deletePage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[DeletePageAPIResponse]
Przykład

getPageByURLId 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak |
Odpowiedź
Zwraca: Option[GetPageByURLIdAPIResponse]
Przykład

getPages 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak |
Odpowiedź
Zwraca: Option[GetPagesAPIResponse]
Przykład

patchPage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateAPIPageData | UpdateAPIPageData | Nie |
Odpowiedź
Zwraca: Option[PatchPageAPIResponse]
Przykład

deletePendingWebhookEvent 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getPendingWebhookEventCount 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| externalId | string | Nie | |
| eventType | string | Nie | |
| domain | string | Nie | |
| attemptCountGT | float64 | Nie |
Odpowiedź
Zwraca: Option[GetPendingWebhookEventCount_200_response]
Przykład

getPendingWebhookEvents 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| externalId | string | Nie | |
| eventType | string | Nie | |
| domain | string | Nie | |
| attemptCountGT | float64 | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetPendingWebhookEvents_200_response]
Przykład

createQuestionConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createQuestionConfigBody | CreateQuestionConfigBody | Nie |
Odpowiedź
Zwraca: Option[CreateQuestionConfig_200_response]
Przykład

deleteQuestionConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getQuestionConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetQuestionConfig_200_response]
Przykład

getQuestionConfigs 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetQuestionConfigs_200_response]
Przykład

updateQuestionConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

createQuestionResult 
Parametry
| Name | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createQuestionResultBody | CreateQuestionResultBody | Nie |
Odpowiedź
Zwraca: Option[CreateQuestionResult_200_response]
Przykład

deleteQuestionResult 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getQuestionResult 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetQuestionResult_200_response]
Przykład

getQuestionResults 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userId | string | Nie | |
| startDate | string | Nie | |
| questionId | string | Nie | |
| questionIds | string | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetQuestionResults_200_response]
Przykład

updateQuestionResult 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateQuestionResultBody | UpdateQuestionResultBody | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

aggregateQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| questionId | string | Nie | |
| questionIds | seq[string] | Nie | |
| urlId | string | Tak | |
| timeBucket | AggregateTimeBucket | Nie | |
| startDate | string | Nie | |
| forceRecalculate | bool | Nie |
Odpowiedź
Zwraca: Option[AggregateQuestionResults_200_response]
Przykład

bulkAggregateQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Nie | |
| forceRecalculate | bool | Nie |
Odpowiedź
Zwraca: Option[BulkAggregateQuestionResults_200_response]
Przykład

combineCommentsWithQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| questionId | string | Nie | |
| questionIds | seq[string] | Nie | |
| urlId | string | Tak | |
| startDate | string | Nie | |
| forceRecalculate | bool | Nie | |
| minValue | float64 | Nie | |
| maxValue | float64 | Nie | |
| limit | float64 | Nie |
Odpowiedź
Zwraca: Option[CombineCommentsWithQuestionResults_200_response]
Przykład

addSSOUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createAPISSOUserData | CreateAPISSOUserData | Nie |
Odpowiedź
Zwraca: Option[AddSSOUserAPIResponse]
Przykład

deleteSSOUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| deleteComments | bool | Nie | |
| commentDeleteMode | string | Nie |
Odpowiedź
Zwraca: Option[DeleteSSOUserAPIResponse]
Przykład

getSSOUserByEmail 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| string | Nie |
Odpowiedź
Zwraca: Option[GetSSOUserByEmailAPIResponse]
Przykład

getSSOUserById 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetSSOUserByIdAPIResponse]
Przykład

getSSOUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | int | Nie |
Odpowiedź
Zwraca: Option[GetSSOUsers_200_response]
Przykład

patchSSOUser 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateAPISSOUserData | UpdateAPISSOUserData | Nie | |
| updateComments | bool | Nie |
Odpowiedź
Zwraca: Option[PatchSSOUserAPIResponse]
Przykład

putSSOUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateAPISSOUserData | UpdateAPISSOUserData | Nie | |
| updateComments | bool | Nie |
Odpowiedź
Zwraca: Option[PutSSOUserAPIResponse]
Przykład

createSubscription 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Nie |
Odpowiedź
Zwraca: Option[CreateSubscriptionAPIResponse]
Przykład

deleteSubscription 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| userId | string | Nie |
Odpowiedź
Zwraca: Option[DeleteSubscriptionAPIResponse]
Przykład

getSubscriptions 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie |
Odpowiedź
Zwraca: Option[GetSubscriptionsAPIResponse]
Przykład

getTenantDailyUsages 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| yearNumber | float64 | Nie | |
| monthNumber | float64 | Nie | |
| dayNumber | float64 | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetTenantDailyUsages_200_response]
Przykład

createTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createTenantPackageBody | CreateTenantPackageBody | Nie |
Odpowiedź
Zwraca: Option[CreateTenantPackage_200_response]
Przykład

deleteTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetTenantPackage_200_response]
Przykład

getTenantPackages 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetTenantPackages_200_response]
Przykład

replaceTenantPackage 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Nie |
Response
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

updateTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateTenantPackageBody | UpdateTenantPackageBody | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

createTenantUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createTenantUserBody | CreateTenantUserBody | Nie |
Odpowiedź
Zwraca: Option[CreateTenantUser_200_response]
Przykład

deleteTenantUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| deleteComments | string | Nie | |
| commentDeleteMode | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getTenantUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetTenantUser_200_response]
Przykład

getTenantUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetTenantUsers_200_response]
Przykład

replaceTenantUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| replaceTenantUserBody | ReplaceTenantUserBody | Nie | |
| updateComments | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

sendLoginLink 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| redirectURL | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

updateTenantUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateTenantUserBody | UpdateTenantUserBody | Nie | |
| updateComments | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

createTenant 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createTenantBody | CreateTenantBody | Nie |
Odpowiedź
Zwraca: Option[CreateTenant_200_response]
Przykład

deleteTenant 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| sure | string | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

getTenant 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetTenant_200_response]
Przykład

getTenants 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| meta | string | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetTenants_200_response]
Przykład

updateTenant 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateTenantBody | UpdateTenantBody | Nie |
Odpowiedź
Zwraca: Option[FlagCommentPublic_200_response]
Przykład

uploadImage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| file | string | Nie | |
| sizePreset | SizePreset | Nie | |
| urlId | string | Tak |
Odpowiedź
Zwraca: Option[UploadImageResponse]
Przykład

getUserBadgeProgressById 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetUserBadgeProgressById_200_response]
Przykład

getUserBadgeProgressByUserId 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie |
Odpowiedź
Zwraca: Option[GetUserBadgeProgressById_200_response]
Przykład

getUserBadgeProgressList 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie | |
| limit | float64 | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetUserBadgeProgressList_200_response]
Przykład

createUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createUserBadgeParams | CreateUserBadgeParams | Nie |
Odpowiedź
Zwraca: Option[CreateUserBadge_200_response]
Przykład

deleteUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[UpdateUserBadge_200_response]
Przykład

getUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetUserBadge_200_response]
Przykład

getUserBadges 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie | |
| badgeId | string | Nie | |
| displayedOnComments | bool | Nie | |
| limit | float64 | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetUserBadges_200_response]
Przykład

updateUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateUserBadgeParams | UpdateUserBadgeParams | Nie |
Odpowiedź
Zwraca: Option[UpdateUserBadge_200_response]
Przykład

getUserNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: Option[GetUserNotificationCount_200_response]
Przykład

getUserNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| pageSize | int | Nie | |
| afterId | string | Nie | |
| includeContext | bool | Nie | |
| afterCreatedAt | int64 | Nie | |
| unreadOnly | bool | Nie | |
| dmOnly | bool | Nie | |
| noDm | bool | Nie | |
| includeTranslations | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetUserNotifications_200_response]
Przykład

resetUserNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ResetUserNotifications_200_response]
Przykład

resetUserNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| afterId | string | Nie | |
| afterCreatedAt | int64 | Nie | |
| unreadOnly | bool | Nie | |
| dmOnly | bool | Nie | |
| noDm | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ResetUserNotifications_200_response]
Przykład

updateUserNotificationCommentSubscriptionStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| notificationId | string | Nie | |
| optedInOrOut | string | Nie | |
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[UpdateUserNotificationStatus_200_response]
Przykład

updateUserNotificationPageSubscriptionStatus 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| url | string | No | |
| pageTitle | string | No | |
| subscribedOrUnsubscribed | string | No | |
| sso | string | No |
Odpowiedź
Zwraca: Option[UpdateUserNotificationStatus_200_response]
Przykład

updateUserNotificationStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| notificationId | string | Nie | |
| newStatus | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[UpdateUserNotificationStatus_200_response]
Przykład

getUserPresenceStatuses 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlIdWS | string | Nie | |
| userIds | string | Nie |
Odpowiedź
Zwraca: Option[GetUserPresenceStatuses_200_response]
Przykład

searchUsers 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| usernameStartsWith | string | Nie | |
| mentionGroupIds | seq[string] | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[SearchUsers_200_response]
Przykład

getUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetUser_200_response]
Przykład

createVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| direction | string | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[VoteComment_200_response]
Przykład

deleteVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| editKey | string | Nie |
Odpowiedź
Zwraca: Option[DeleteCommentVote_200_response]
Przykład

getVotes 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak |
Odpowiedź
Zwraca: Option[GetVotes_200_response]
Przykład

getVotesForUser 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[GetVotesForUser_200_response]
Przykład

Potrzebujesz pomocy?
Jeśli napotkasz jakiekolwiek problemy lub masz pytania dotyczące Nim SDK, prosimy:
Wkład
Wkład jest mile widziany! Odwiedź repozytorium GitHub w celu zapoznania się z wytycznymi dotyczącymi kontrybucji.