
Język 🇵🇱 Polski
Dokumentacja
Pierwsze kroki
Referencja API
Użycie
Agregacja
Dzienniki audytu
Uwierzytelnianie
Blokowanie z komentarza
Sprawdź zablokowane komentarze
Komentarze
Komentarze użytkownika
Konfiguracje domen
Szablony e-mail
Dziennik zdarzeń
Posty
Zgłaszanie komentarza
GIFy
Hashtagi
Moderacja
Moderatorzy
Liczba powiadomień
Powiadomienia
Reakcje strony
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
Zgłoszenia
Tłumaczenia
Przesyłanie obrazu
Postęp odznak użytkownika
Odznaki użytkownika
Powiadomienia użytkownika
Status obecności użytkownika
Wyszukiwanie użytkowników
Użytkownicy
Głosy
FastComments SDK dla Nim
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, aby ułatwić pracę z API.
API publiczne vs zabezpieczone
W kliencie API znajdują się trzy moduły API: api_default, api_public oraz api_moderation. 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. Moduł api_moderation zawiera metody dla panelu moderatora.
Metody api_moderation obejmują listowanie, zliczanie, wyszukiwanie i eksportowanie komentarzy oraz ich logów; akcje moderacyjne takie jak usuwanie/przywracanie komentarzy, zgłaszanie, ustawianie statusu do przeglądu/spamu/akceptacji, dostosowywanie głosów oraz ponowne otwieranie/zamykanie wątków; bany (zablokowanie użytkownika od komentowania, cofanie bana, podsumowania przed banem, status i preferencje bana oraz liczba zbanowanych użytkowników); oraz odznaki i zaufanie (przyznawanie/usuwanie odznaki, listowanie odznak ręcznych, pobieranie/ustawianie współczynnika zaufania użytkownika oraz pobieranie wewnętrznego profilu użytkownika). Każda metoda api_moderation przyjmuje parametr sso, dzięki czemu wywołanie jest uwierzytelnione jako moderator SSO.
Szybki start 
Korzystanie z uwierzytelnionych API (DefaultAPI)
Ważne: Uwierzytelnione końcówki wymagają ustawienia Twojego klucza API w nagłówku 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"
Korzystanie z publicznych API (PublicAPI)
Publiczne końcówki 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"
Korzystanie z API moderacji (ModerationAPI)
Końcówki moderacyjne zasilają panel moderatora i są uwierzytelniane tokenem SSO dla działającego moderatora:
import httpclient
import fastcomments
import fastcomments/apis/api_moderation
let client = newHttpClient()
# Wyświetl komentarze w panelu moderacji
let (response, httpResponse) = getApiComments(
httpClient = client,
page = 0,
count = 30,
textSearch = "",
byIPFromComment = "",
filters = "",
searchFilters = "",
sorts = "",
demo = false,
sso = "your-sso-token"
)
if response.isSome:
let resp = response.get()
echo "Found ", resp.comments.len, " comments"
Częste problemy
- 401 authentication error: Upewnij się, że ustawiłeś nagłówek
x-api-keyw swoim HttpClient przed wykonywaniem żądań DefaultAPI:client.headers["x-api-key"] = "your-api-key" - Wrong API class: Używaj
api_defaultdla uwierzytelnionych żądań po stronie serwera,api_publicdla żądań po stronie klienta/publicznych orazapi_moderationdla żądań panelu moderatora.
Making API Calls 
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"
Notatki 
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 końcowych punktów API
Wszystkie URI są względne względem https://fastcomments.com
| Klasa | Metoda | Zapytanie HTTP | Opis |
|---|---|---|---|
| DefaultApi | addDomainConfig | POST /api/v1/domain-configs | |
| DefaultApi | addHashTag | POST /api/v1/hash-tags | |
| DefaultApi | addHashTagsBulk | POST /api/v1/hash-tags/bulk | |
| DefaultApi | addPage | POST /api/v1/pages | |
| DefaultApi | addSSOUser | POST /api/v1/sso-users | |
| DefaultApi | aggregate | POST /api/v1/aggregate | Agreguje dokumenty poprzez grupowanie ich (jeśli podano groupBy) i stosowanie wielu operacji. Wspierane są różne operacje (np. sum, countDistinct, avg itd.). |
| DefaultApi | aggregateQuestionResults | GET /api/v1/question-results-aggregation | |
| DefaultApi | blockUserFromComment | POST /api/v1/comments/{id}/block | |
| DefaultApi | bulkAggregateQuestionResults | POST /api/v1/question-results-aggregation/bulk | |
| DefaultApi | changeTicketState | PATCH /api/v1/tickets/{id}/state | |
| DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
| DefaultApi | createEmailTemplate | POST /api/v1/email-templates | |
| DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
| DefaultApi | createModerator | POST /api/v1/moderators | |
| DefaultApi | createQuestionConfig | POST /api/v1/question-configs | |
| DefaultApi | createQuestionResult | POST /api/v1/question-results | |
| DefaultApi | createSubscription | POST /api/v1/subscriptions | |
| DefaultApi | createTenant | POST /api/v1/tenants | |
| DefaultApi | createTenantPackage | POST /api/v1/tenant-packages | |
| DefaultApi | createTenantUser | POST /api/v1/tenant-users | |
| DefaultApi | createTicket | POST /api/v1/tickets | |
| DefaultApi | createUserBadge | POST /api/v1/user-badges | |
| DefaultApi | createVote | POST /api/v1/votes | |
| DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
| DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
| DefaultApi | deleteEmailTemplate | DELETE /api/v1/email-templates/{id} | |
| DefaultApi | deleteEmailTemplateRenderError | DELETE /api/v1/email-templates/{id}/render-errors/{errorId} | |
| DefaultApi | deleteHashTag | DELETE /api/v1/hash-tags/{tag} | |
| DefaultApi | deleteModerator | DELETE /api/v1/moderators/{id} | |
| DefaultApi | deleteNotificationCount | DELETE /api/v1/notification-count/{id} | |
| DefaultApi | deletePage | DELETE /api/v1/pages/{id} | |
| DefaultApi | deletePendingWebhookEvent | DELETE /api/v1/pending-webhook-events/{id} | |
| DefaultApi | deleteQuestionConfig | DELETE /api/v1/question-configs/{id} | |
| DefaultApi | deleteQuestionResult | DELETE /api/v1/question-results/{id} | |
| DefaultApi | deleteSSOUser | DELETE /api/v1/sso-users/{id} | |
| DefaultApi | deleteSubscription | DELETE /api/v1/subscriptions/{id} | |
| DefaultApi | deleteTenant | DELETE /api/v1/tenants/{id} | |
| DefaultApi | deleteTenantPackage | DELETE /api/v1/tenant-packages/{id} | |
| DefaultApi | deleteTenantUser | DELETE /api/v1/tenant-users/{id} | |
| DefaultApi | deleteUserBadge | DELETE /api/v1/user-badges/{id} | |
| DefaultApi | deleteVote | DELETE /api/v1/votes/{id} | |
| DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
| DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
| DefaultApi | getCachedNotificationCount | GET /api/v1/notification-count/{id} | |
| DefaultApi | getComment | GET /api/v1/comments/{id} | |
| DefaultApi | getComments | GET /api/v1/comments | |
| DefaultApi | getDomainConfig | GET /api/v1/domain-configs/{domain} | |
| DefaultApi | getDomainConfigs | GET /api/v1/domain-configs | |
| DefaultApi | getEmailTemplate | GET /api/v1/email-templates/{id} | |
| DefaultApi | getEmailTemplateDefinitions | GET /api/v1/email-templates/definitions | |
| DefaultApi | getEmailTemplateRenderErrors | GET /api/v1/email-templates/{id}/render-errors | |
| DefaultApi | getEmailTemplates | GET /api/v1/email-templates | |
| DefaultApi | getFeedPosts | GET /api/v1/feed-posts | wymagane tenantId afterId |
| DefaultApi | getHashTags | GET /api/v1/hash-tags | |
| DefaultApi | getModerator | GET /api/v1/moderators/{id} | |
| DefaultApi | getModerators | GET /api/v1/moderators | |
| DefaultApi | getNotificationCount | GET /api/v1/notifications/count | |
| DefaultApi | getNotifications | GET /api/v1/notifications | |
| DefaultApi | getPageByURLId | GET /api/v1/pages/by-url-id | |
| DefaultApi | getPages | GET /api/v1/pages | |
| DefaultApi | getPendingWebhookEventCount | GET /api/v1/pending-webhook-events/count | |
| DefaultApi | getPendingWebhookEvents | GET /api/v1/pending-webhook-events | |
| DefaultApi | getQuestionConfig | GET /api/v1/question-configs/{id} | |
| DefaultApi | getQuestionConfigs | GET /api/v1/question-configs | |
| DefaultApi | getQuestionResult | GET /api/v1/question-results/{id} | |
| DefaultApi | getQuestionResults | GET /api/v1/question-results | |
| DefaultApi | getSSOUserByEmail | GET /api/v1/sso-users/by-email/{email} | |
| DefaultApi | getSSOUserById | GET /api/v1/sso-users/by-id/{id} | |
| DefaultApi | getSSOUsers | GET /api/v1/sso-users | |
| DefaultApi | getSubscriptions | GET /api/v1/subscriptions | |
| DefaultApi | getTenant | GET /api/v1/tenants/{id} | |
| DefaultApi | getTenantDailyUsages | GET /api/v1/tenant-daily-usage | |
| DefaultApi | getTenantPackage | GET /api/v1/tenant-packages/{id} | |
| DefaultApi | getTenantPackages | GET /api/v1/tenant-packages | |
| DefaultApi | getTenantUser | GET /api/v1/tenant-users/{id} | |
| DefaultApi | getTenantUsers | GET /api/v1/tenant-users | |
| DefaultApi | getTenants | GET /api/v1/tenants | |
| DefaultApi | getTicket | GET /api/v1/tickets/{id} | |
| DefaultApi | getTickets | GET /api/v1/tickets | |
| DefaultApi | getUser | GET /api/v1/users/{id} | |
| DefaultApi | getUserBadge | GET /api/v1/user-badges/{id} | |
| DefaultApi | getUserBadgeProgressById | GET /api/v1/user-badge-progress/{id} | |
| DefaultApi | getUserBadgeProgressByUserId | GET /api/v1/user-badge-progress/user/{userId} | |
| DefaultApi | getUserBadgeProgressList | GET /api/v1/user-badge-progress | |
| DefaultApi | getUserBadges | GET /api/v1/user-badges | |
| DefaultApi | getVotes | GET /api/v1/votes | |
| DefaultApi | getVotesForUser | GET /api/v1/votes/for-user | |
| DefaultApi | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | patchHashTag | PATCH /api/v1/hash-tags/{tag} | |
| DefaultApi | patchPage | PATCH /api/v1/pages/{id} | |
| DefaultApi | patchSSOUser | PATCH /api/v1/sso-users/{id} | |
| DefaultApi | putDomainConfig | PUT /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | putSSOUser | PUT /api/v1/sso-users/{id} | |
| DefaultApi | renderEmailTemplate | POST /api/v1/email-templates/render | |
| DefaultApi | replaceTenantPackage | PUT /api/v1/tenant-packages/{id} | |
| DefaultApi | replaceTenantUser | PUT /api/v1/tenant-users/{id} | |
| DefaultApi | saveComment | POST /api/v1/comments | |
| DefaultApi | saveCommentsBulk | POST /api/v1/comments/bulk | |
| DefaultApi | sendInvite | POST /api/v1/moderators/{id}/send-invite | |
| DefaultApi | sendLoginLink | POST /api/v1/tenant-users/{id}/send-login-link | |
| DefaultApi | unBlockUserFromComment | POST /api/v1/comments/{id}/un-block | |
| DefaultApi | unFlagComment | POST /api/v1/comments/{id}/un-flag | |
| DefaultApi | updateComment | PATCH /api/v1/comments/{id} | |
| DefaultApi | updateEmailTemplate | PATCH /api/v1/email-templates/{id} | |
| DefaultApi | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
| DefaultApi | updateModerator | PATCH /api/v1/moderators/{id} | |
| DefaultApi | updateNotification | PATCH /api/v1/notifications/{id} | |
| DefaultApi | updateQuestionConfig | PATCH /api/v1/question-configs/{id} | |
| DefaultApi | updateQuestionResult | PATCH /api/v1/question-results/{id} | |
| DefaultApi | updateSubscription | PATCH /api/v1/subscriptions/{id} | |
| DefaultApi | updateTenant | PATCH /api/v1/tenants/{id} | |
| DefaultApi | updateTenantPackage | PATCH /api/v1/tenant-packages/{id} | |
| DefaultApi | updateTenantUser | PATCH /api/v1/tenant-users/{id} | |
| DefaultApi | updateUserBadge | PUT /api/v1/user-badges/{id} | |
| ModerationApi | deleteModerationVote | DELETE /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | |
| ModerationApi | getApiComments | GET /auth/my-account/moderate-comments/api/comments | |
| ModerationApi | getApiExportStatus | GET /auth/my-account/moderate-comments/api/export/status | |
| ModerationApi | getApiIds | GET /auth/my-account/moderate-comments/api/ids | |
| ModerationApi | getBanUsersFromComment | GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | |
| ModerationApi | getCommentBanStatus | GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | |
| ModerationApi | getCommentChildren | GET /auth/my-account/moderate-comments/comment-children/{commentId} | |
| ModerationApi | getCount | GET /auth/my-account/moderate-comments/count | |
| ModerationApi | getCounts | GET /auth/my-account/moderate-comments/banned-users/counts | |
| ModerationApi | getLogs | GET /auth/my-account/moderate-comments/logs/{commentId} | |
| ModerationApi | getManualBadges | GET /auth/my-account/moderate-comments/get-manual-badges | |
| ModerationApi | getManualBadgesForUser | GET /auth/my-account/moderate-comments/get-manual-badges-for-user | |
| ModerationApi | getModerationComment | GET /auth/my-account/moderate-comments/comment/{commentId} | |
| ModerationApi | getModerationCommentText | GET /auth/my-account/moderate-comments/get-comment-text/{commentId} | |
| ModerationApi | getPreBanSummary | GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | |
| ModerationApi | getSearchCommentsSummary | GET /auth/my-account/moderate-comments/search/comments/summary | |
| ModerationApi | getSearchPages | GET /auth/my-account/moderate-comments/search/pages | |
| ModerationApi | getSearchSites | GET /auth/my-account/moderate-comments/search/sites | |
| ModerationApi | getSearchSuggest | GET /auth/my-account/moderate-comments/search/suggest | |
| ModerationApi | getSearchUsers | GET /auth/my-account/moderate-comments/search/users | |
| ModerationApi | getTrustFactor | GET /auth/my-account/moderate-comments/get-trust-factor | |
| ModerationApi | getUserBanPreference | GET /auth/my-account/moderate-comments/user-ban-preference | |
| ModerationApi | getUserInternalProfile | GET /auth/my-account/moderate-comments/get-user-internal-profile | |
| ModerationApi | postAdjustCommentVotes | POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | |
| ModerationApi | postApiExport | POST /auth/my-account/moderate-comments/api/export | |
| ModerationApi | postBanUserFromComment | POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | |
| ModerationApi | postBanUserUndo | POST /auth/my-account/moderate-comments/ban-user/undo | |
| ModerationApi | postBulkPreBanSummary | POST /auth/my-account/moderate-comments/bulk-pre-ban-summary | |
| ModerationApi | postCommentsByIds | POST /auth/my-account/moderate-comments/comments-by-ids | |
| ModerationApi | postFlagComment | POST /auth/my-account/moderate-comments/flag-comment/{commentId} | |
| ModerationApi | postRemoveComment | POST /auth/my-account/moderate-comments/remove-comment/{commentId} | |
| ModerationApi | postRestoreDeletedComment | POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | |
| ModerationApi | postSetCommentApprovalStatus | POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | |
| ModerationApi | postSetCommentReviewStatus | POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | |
| ModerationApi | postSetCommentSpamStatus | POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | |
| ModerationApi | postSetCommentText | POST /auth/my-account/moderate-comments/set-comment-text/{commentId} | |
| ModerationApi | postUnFlagComment | POST /auth/my-account/moderate-comments/un-flag-comment/{commentId} | |
| ModerationApi | postVote | POST /auth/my-account/moderate-comments/vote/{commentId} | |
| ModerationApi | putAwardBadge | PUT /auth/my-account/moderate-comments/award-badge | |
| ModerationApi | putCloseThread | PUT /auth/my-account/moderate-comments/close-thread | |
| ModerationApi | putRemoveBadge | PUT /auth/my-account/moderate-comments/remove-badge | |
| ModerationApi | putReopenThread | PUT /auth/my-account/moderate-comments/reopen-thread | |
| ModerationApi | setTrustFactor | PUT /auth/my-account/moderate-comments/set-trust-factor | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | createV1PageReact | POST /page-reacts/v1/likes/{tenantId} | |
| PublicApi | createV2PageReact | POST /page-reacts/v2/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | deleteV1PageReact | DELETE /page-reacts/v1/likes/{tenantId} | |
| PublicApi | deleteV2PageReact | DELETE /page-reacts/v2/{tenantId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsForUser | GET /comments-for-user | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | wymagane tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | wymagane tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | wymagane tenantId afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGifLarge | GET /gifs/get-large/{tenantId} | |
| PublicApi | getGifsSearch | GET /gifs/search/{tenantId} | |
| PublicApi | getGifsTrending | GET /gifs/trending/{tenantId} | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | wymagane tenantId urlId userIdWS |
| PublicApi | getOfflineUsers | GET /pages/{tenantId}/users/offline | Użytkownicy, którzy komentowali na stronie w przeszłości i NIE są obecnie online. Posortowani według displayName. Użyj tego po wyczerpaniu /users/online, aby wyświetlić sekcję „Członkowie”. Paginacja kursorowa po commenterName: serwer przechodzi po indeksie {tenantId, urlId, commenterName} od afterName (poprzez $gt), brak kosztu $skip. |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | Aktualnie zalogowani widzowie strony: osoby, których sesja websocket jest obecnie subskrybowana do strony. Zwraca anonCount + totalCount (wszystkich subskrybentów pokoju, w tym anonimowych użytkowników, których nie wylistujemy). |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | Lista stron dla tenant. Używane przez klienta FChat desktop do zapełnienia listy pokoi. Wymaga, by enableFChat było ustawione na true w rozstrzygniętej konfiguracji niestandardowej dla każdej strony. Strony wymagające SSO są filtrowane względem dostępu użytkownika żądającego. |
| PublicApi | getTranslations | GET /translations/{namespace}/{component} | |
| PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
| PublicApi | getUserNotifications | GET /user-notifications | |
| PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
| PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
| PublicApi | getUsersInfo | GET /pages/{tenantId}/users/info | Bulkowe informacje o użytkownikach dla tenant. Podając userIds, zwraca informacje wyświetlane z User / SSOUser. Używane przez widżet komentarzy do wzbogacania użytkowników pojawiających się na stronie na podstawie zdarzenia obecności. Brak kontekstu strony: prywatność egzekwowana zawsze (prywatne profile są maskowane). |
| PublicApi | getV1PageLikes | GET /page-reacts/v1/likes/{tenantId} | |
| PublicApi | getV2PageReactUsers | GET /page-reacts/v2/{tenantId}/list | |
| PublicApi | getV2PageReacts | GET /page-reacts/v2/{tenantId} | |
| PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| PublicApi | logoutPublic | PUT /auth/logout | |
| PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
| PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
| PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
| PublicApi | resetUserNotifications | POST /user-notifications/reset | |
| PublicApi | searchUsers | GET /user-search/{tenantId} | |
| PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
| PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
| PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
| PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
| PublicApi | updateFeedPostPublic | PUT /feed-posts/{tenantId}/{postId} | |
| PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | Włącz lub wyłącz powiadomienia dla konkretnego komentarza. |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Włącza lub wyłącza powiadomienia dla strony. Gdy użytkownicy są zapisani do strony, powiadomienia są tworzone dla nowych głównych komentarzy, 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
- APIBanUserChangeLog
- APIBanUserChangedValues
- APIBannedUser
- APIBannedUserWithMultiMatchInfo
- APIComment
- APICommentBase
- APICommentBase_meta
- APICommentCommonBannedUser
- APICreateUserBadgeResponse
- APIDomainConfiguration
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIModerateGetUserBanPreferencesResponse
- APIModerateUserBanPreferences
- APIPage
- APISSOUser
- APISaveCommentResponse
- APIStatus
- APITenant
- APITenantDailyUsage
- APITicket
- APITicketDetail
- APITicketFile
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfigResponse
- AddDomainConfigResponse_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AdjustCommentVotesParams
- AdjustVotesResponse
- AggregateQuestionResultsResponse
- AggregateResponse
- AggregateTimeBucket
- AggregationAPIError
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- AwardUserBadgeResponse
- BanUserFromCommentResult
- BanUserUndoParams
- BannedUserMatch
- BannedUserMatchType
- BannedUserMatch_matchedOnValue
- BillingInfo
- BlockFromCommentParams
- BlockSuccess
- BuildModerationFilterParams
- BuildModerationFilterResponse
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkCreateHashTagsBody
- BulkCreateHashTagsBody_tags_inner
- BulkCreateHashTagsResponse
- BulkCreateHashTagsResponse_results_inner
- BulkPreBanParams
- BulkPreBanSummary
- ChangeCommentPinStatusResponse
- ChangeTicketStateBody
- ChangeTicketStateResponse
- CheckBlockedCommentsResponse
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CommentsByIdsParams
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateEmailTemplateBody
- CreateEmailTemplateResponse
- CreateFeedPostParams
- CreateFeedPostResponse
- CreateFeedPostsResponse
- CreateHashTagBody
- CreateHashTagResponse
- CreateModeratorBody
- CreateModeratorResponse
- CreateQuestionConfigBody
- CreateQuestionConfigResponse
- CreateQuestionResultBody
- CreateQuestionResultResponse
- CreateSubscriptionAPIResponse
- CreateTenantBody
- CreateTenantPackageBody
- CreateTenantPackageResponse
- CreateTenantResponse
- CreateTenantUserBody
- CreateTenantUserResponse
- CreateTicketBody
- CreateTicketResponse
- CreateUserBadgeParams
- CreateV1PageReact
- CustomConfigParameters
- CustomEmailTemplate
- DeleteCommentAction
- DeleteCommentResult
- DeleteDomainConfigResponse
- DeleteFeedPostPublicResponse
- DeleteHashTagRequestBody
- DeletePageAPIResponse
- DeleteSSOUserAPIResponse
- [DeleteSubscriptionAPIResponse](https://github.com/FastComments/fastcomments-n
aggregate 
Agreguje dokumenty grupując je (jeśli podano groupBy) i stosując wiele operacji. Obsługiwane są różne operacje (np. sum, countDistinct, avg itd.).
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| aggregationRequest | AggregationRequest | Nie | |
| parentTenantId | string | Nie | |
| includeStats | bool | Nie |
Odpowiedź
Zwraca: Option[AggregateResponse]
Przykład

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

logoutPublic 
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

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

unBlockCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Nie | |
| sso | string | Nie |
Response
Zwraca: Option[UnblockSuccess]
Przykład

checkedCommentsForBlocked 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentIds | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[CheckBlockedCommentsResponse]
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[BlockSuccess]
Przykład

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

deleteComment 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| contextUserId | string | Nie | |
| isLive | bool | Nie |
Odpowiedź
Zwraca: Option[DeleteCommentResult]
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[PublicAPIDeleteCommentResponse]
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[VoteDeleteResponse]
Przykład

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

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

getComments 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| 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 | |
| fromDate | int64 | Nie | |
| toDate | int64 | Nie |
Odpowiedź
Zwraca: Option[APIGetCommentsResponse]
Przykład

getCommentsPublic 
req tenantId urlId
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[GetCommentsResponseWithPresencePublicComment]
Przykład

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

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

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

pinComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ChangeCommentPinStatusResponse]
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[APISaveCommentResponse]
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[SaveCommentsBulkResponse]] | Nie | |
| id | string | Nie | |
| fromName | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
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[PublicAPISetCommentTextResponse]
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[UnblockSuccess]
Przykład

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

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

unPinComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| sso | string | No |
Odpowiedź
Zwraca: Option[ChangeCommentPinStatusResponse]
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[APIEmptyResponse]
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[VoteResponse]
Przykład

getCommentsForUser 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| userId | string | Nie | |
| direction | SortDirections | Nie | |
| repliesToUserId | string | Nie | |
| page | float64 | Nie | |
| includei10n | bool | Nie | |
| locale | string | Nie | |
| isCrawler | bool | Nie |
Odpowiedź
Zwraca: Option[GetCommentsForUserResponse]
Przykład

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

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

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

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

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

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

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

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

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

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

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

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

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

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

updateEmailTemplate 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

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

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

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

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

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

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

getFeedPostsPublic 
req tenantId afterId
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[PublicFeedPostsResponse]
Przykład

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

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

reactFeedPostPublic 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| postId | string | Nie | |
| reactBodyParams | ReactBodyParams | Nie | |
| isUndo | bool | Nie | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ReactFeedPostResponse]
Przykład

updateFeedPost 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| feedPost | FeedPost | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
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[CreateFeedPostResponse]
Przykład

flagCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| isFlagged | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

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

getGifsSearch 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| search | string | Nie | |
| locale | string | Nie | |
| rating | string | Nie | |
| page | float64 | Nie |
Odpowiedź
Zwraca: Option[GetGifsSearchResponse]
Przykład

getGifsTrending 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| locale | string | Nie | |
| rating | string | Nie | |
| page | float64 | Nie |
Odpowiedź
Zwraca: Option[GetGifsTrendingResponse]
Przykład

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

addHashTagsBulk 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Nie |
Odpowiedź
Zwraca: Option[BulkCreateHashTagsResponse]
Przykład

deleteHashTag 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tag | string | Nie | |
| tenantId | string | Tak | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

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

patchHashTag 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tag | string | Nie | |
| tenantId | string | Tak | |
| updateHashTagBody | UpdateHashTagBody | Nie |
Odpowiedź
Zwraca: Option[UpdateHashTagResponse]
Przykład

deleteModerationVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| voteId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[VoteDeleteResponse]
Przykład

getApiComments 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| page | float64 | Nie | |
| count | float64 | Nie | |
| textSearch | string | Nie | |
| byIPFromComment | string | Nie | |
| filters | string | Nie | |
| searchFilters | string | Nie | |
| sorts | string | Nie | |
| demo | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationAPIGetCommentsResponse]
Przykład

getApiExportStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| batchJobId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationExportStatusResponse]
Przykład

getApiIds 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| textSearch | string | Nie | |
| byIPFromComment | string | Nie | |
| filters | string | Nie | |
| searchFilters | string | Nie | |
| afterId | string | Nie | |
| demo | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationAPIGetCommentIdsResponse]
Przykład

getBanUsersFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetBannedUsersFromCommentResponse]
Przykład

getCommentBanStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Zwraca
Zwraca: Option[GetCommentBanStatusResponse]
Przykład

getCommentChildren 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationAPIChildCommentsResponse]
Przykład

getCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| textSearch | string | Nie | |
| byIPFromComment | string | Nie | |
| filter | string | Nie | |
| searchFilters | string | Nie | |
| demo | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationAPICountCommentsResponse]
Przykład

getCounts 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetBannedUsersCountResponse]
Przykład

getLogs 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationAPIGetLogsResponse]
Przykład

getManualBadges 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetTenantManualBadgesResponse]
Przykład

getManualBadgesForUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| badgesUserId | string | Nie | |
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetUserManualBadgesResponse]
Przykład

getModerationComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| includeEmail | bool | Nie | |
| includeIP | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationAPICommentResponse]
Przykład

getModerationCommentText 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: Option[GetCommentTextResponse]
Przykład

getPreBanSummary 
Parametry
| Name | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| includeByUserIdAndEmail | bool | Nie | |
| includeByIP | bool | Nie | |
| includeByEmailDomain | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[PreBanSummary]
Przykład

getSearchCommentsSummary 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| value | string | Nie | |
| filters | string | Nie | |
| searchFilters | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationCommentSearchResponse]
Przykład

getSearchPages 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| value | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationPageSearchResponse]
Przykład

getSearchSites 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| value | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationSiteSearchResponse]
Przykład

getSearchSuggest 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| textSearch | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationSuggestResponse]
Przykład

getSearchUsers 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| value | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationUserSearchResponse]
Przykład

getTrustFactor 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| userId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetUserTrustFactorResponse]
Przykład

getUserBanPreference 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIModerateGetUserBanPreferencesResponse]
Przykład

getUserInternalProfile 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetUserInternalProfileResponse]
Przykład

postAdjustCommentVotes 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| adjustCommentVotesParams | AdjustCommentVotesParams | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[AdjustVotesResponse]
Przykład

postApiExport 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| textSearch | string | Nie | |
| byIPFromComment | string | Nie | |
| filters | string | Nie | |
| searchFilters | string | Nie | |
| sorts | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ModerationExportResponse]
Przykład

postBanUserFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| banEmail | bool | Nie | |
| banEmailDomain | bool | Nie | |
| banIP | bool | Nie | |
| deleteAllUsersComments | bool | Nie | |
| bannedUntil | string | Nie | |
| isShadowBan | bool | Nie | |
| updateId | string | Nie | |
| banReason | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[BanUserFromCommentResult]
Przykład

postBanUserUndo 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| banUserUndoParams | BanUserUndoParams | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

postBulkPreBanSummary 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| bulkPreBanParams | BulkPreBanParams | Nie | |
| includeByUserIdAndEmail | bool | Nie | |
| includeByIP | bool | Nie | |
| includeByEmailDomain | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[BulkPreBanSummary]
Przykład

postCommentsByIds 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentsByIdsParams | CommentsByIdsParams | Nie | |
| sso | string | Nie |
Response
Zwraca: Option[ModerationAPIChildCommentsResponse]
Przykład

postFlagComment 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

postRemoveComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[PostRemoveCommentResponse]
Przykład

postRestoreDeletedComment 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Response
Zwraca: Option[APIEmptyResponse]
Przykład

postSetCommentApprovalStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| approved | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[SetCommentApprovedResponse]
Przykład

postSetCommentReviewStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| reviewed | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

postSetCommentSpamStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| spam | bool | Nie | |
| permNotSpam | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

postSetCommentText 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| setCommentTextParams | SetCommentTextParams | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[SetCommentTextResponse]
Przykład

postUnFlagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

postVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| commentId | string | Tak | |
| direction | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[VoteResponse]
Przykład

putAwardBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| badgeId | string | Nie | |
| userId | string | Nie | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[AwardUserBadgeResponse]
Przykład

putCloseThread 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| urlId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

putRemoveBadge 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| badgeId | string | Nie | |
| userId | string | Nie | |
| commentId | string | Tak | |
| broadcastId | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[RemoveUserBadgeResponse]
Przykład

putReopenThread 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| urlId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

setTrustFactor 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| userId | string | Nie | |
| trustFactor | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[SetUserTrustFactorResponse]
Przykład

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

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

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

getModerators 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetModeratorsResponse]
Przykład

updateModerator 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateModeratorBody | UpdateModeratorBody | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

deleteNotificationCount 
Parametry
| Name | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

getCachedNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetCachedNotificationCountResponse]
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[GetNotificationCountResponse]
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[GetNotificationsResponse]
Przykład

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

createV1PageReact 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| title | string | Nie |
Odpowiedź
Zwraca: Option[CreateV1PageReact]
Przykład

createV2PageReact 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| id | string | Nie | |
| title | string | Nie |
Odpowiedź
Zwraca: Option[CreateV1PageReact]
Przykład

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

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

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

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

getV2PageReactUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[GetV2PageReactUsersResponse]
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

getOfflineUsers 
Poprzedni komentujący na stronie, którzy NIE są obecnie online. Posortowane według displayName. Użyj tego po wyczerpaniu /users/online, aby wyświetlić sekcję "Członkowie". Paginacja kursorowa po commenterName: serwer przeszukuje częściowy {tenantId, urlId, commenterName} indeks od afterName w przód przy użyciu $gt, bez kosztu $skip.
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| afterName | string | Nie | |
| afterUserId | string | Nie |
Odpowiedź
Zwraca: Option[PageUsersOfflineResponse]
Przykład

getOnlineUsers 
Obecnie online widzowie strony: osoby, których sesja websocket jest obecnie zasubskrybowana do tej strony. Zwraca anonCount + totalCount (subskrybenci w całym pokoju, w tym anonimowi widzowie, których nie wymieniamy).
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| afterName | string | Nie | |
| afterUserId | string | Nie |
Odpowiedź
Zwraca: Option[PageUsersOnlineResponse]
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

getPagesPublic 
Wyświetla listę stron dla najemcy. Używane przez klienta desktopowego FChat do wypełniania jego listy pokoi. Wymaga, aby enableFChat było ustawione na true w rozstrzygniętej konfiguracji niestandardowej dla każdej strony. Strony, które wymagają SSO, są filtrowane względem uprawnień grupowych użytkownika wykonującego żądanie.
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| cursor | string | Nie | |
| limit | int | Nie | |
| q | string | Nie | |
| sortBy | PagesSortBy | Nie | |
| hasComments | bool | Nie |
Odpowiedź
Zwraca: Option[GetPublicPagesResponse]
Przykład

getUsersInfo 
Zbiorcze informacje o użytkownikach dla najemcy. Dla podanych userIds zwraca informacje wyświetlane z User / SSOUser. Wykorzystywane przez widżet komentarzy do wzbogacenia użytkowników, którzy właśnie pojawili się w wyniku zdarzenia obecności. Brak kontekstu strony: prywatność jest egzekwowana jednolicie (prywatne profile są maskowane).
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| ids | string | No |
Odpowiedź
Zwraca: Option[PageUsersInfoResponse]
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
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
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[GetPendingWebhookEventCountResponse]
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[GetPendingWebhookEventsResponse]
Przykład

createQuestionConfig 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| createQuestionConfigBody | CreateQuestionConfigBody | Nie |
Odpowiedź
Zwraca: Option[CreateQuestionConfigResponse]
Przykład

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

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

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

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

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

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

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

getQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userId | string | Nie | |
| startDate | string | Nie | |
| questionId | string | Nie | |
| questionIds | string | Nie | |
| skip | float64 | Nie |
Odpowiedź
Zwraca: Option[GetQuestionResultsResponse]
Przykład

updateQuestionResult 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateQuestionResultBody | UpdateQuestionResultBody | Nie |
Response
Zwraca: Option[APIEmptyResponse]
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[AggregateQuestionResultsResponse]
Przykład

bulkAggregateQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Nie | |
| forceRecalculate | bool | Nie |
Odpowiedź
Zwraca: Option[BulkAggregateQuestionResultsResponse]
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[CombineQuestionResultsWithCommentsResponse]
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[GetSSOUsersResponse]
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

updateSubscription 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | Nie | |
| userId | string | Nie |
Odpowiedź
Zwraca: Option[UpdateSubscriptionAPIResponse]
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[GetTenantDailyUsagesResponse]
Przykład

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

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

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

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

replaceTenantPackage 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

updateTenantPackage 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| updateTenantPackageBody | UpdateTenantPackageBody | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

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

deleteTenantUser 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie | |
| deleteComments | string | Nie | |
| commentDeleteMode | string | Nie |
Odpowiedź
Zwraca: Option[APIEmptyResponse]
Przykład

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

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

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

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

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

createTenant 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| createTenantBody | CreateTenantBody | Nie |
Odpowiedź
Zwraca: Option[CreateTenantResponse]
Przykład

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

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

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

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

changeTicketState 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie | |
| id | string | Nie | |
| changeTicketStateBody | ChangeTicketStateBody | Nie |
Odpowiedź
Zwraca: Option[ChangeTicketStateResponse]
Przykład

createTicket 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| userId | string | Nie | |
| createTicketBody | CreateTicketBody | Nie |
Odpowiedź
Zwraca: Option[CreateTicketResponse]
Przykład

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

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

getTranslations 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| namespace | string | Nie | |
| component | string | Nie | |
| locale | string | Nie | |
| useFullTranslationIds | bool | Nie |
Odpowiedź
Zwraca: Option[GetTranslationsResponse]
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[APIGetUserBadgeProgressResponse]
Przykład

getUserBadgeProgressByUserId 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No |
Odpowiedź
Zwraca: Option[APIGetUserBadgeProgressResponse]
Przykład

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

createUserBadge 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| createUserBadgeParams | CreateUserBadgeParams | Nie |
Odpowiedź
Zwraca: Option[APICreateUserBadgeResponse]
Przykład

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

getUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Nie |
Odpowiedź
Zwraca: Option[APIGetUserBadgeResponse]
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[APIGetUserBadgesResponse]
Przykład

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

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

getUserNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | 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 | |
| includeTenantNotifications | bool | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[GetMyNotificationsResponse]
Przykład

resetUserNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[ResetUserNotificationsResponse]
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[ResetUserNotificationsResponse]
Przykład

updateUserNotificationCommentSubscriptionStatus 
Włącz lub wyłącz powiadomienia dla konkretnego komentarza.
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| notificationId | string | Nie | |
| optedInOrOut | string | Nie | |
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[UpdateUserNotificationCommentSubscriptionStatusResponse]
Przykład

updateUserNotificationPageSubscriptionStatus 
Włącz lub wyłącz powiadomienia dla strony. Gdy użytkownicy subskrybują stronę, tworzone są powiadomienia o nowych komentarzach głównych, oraz także
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| url | string | Nie | |
| pageTitle | string | Nie | |
| subscribedOrUnsubscribed | string | Nie | |
| sso | string | Nie |
Odpowiedź
Zwraca: Option[UpdateUserNotificationPageSubscriptionStatusResponse]
Przykład

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

getUserPresenceStatuses 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| urlIdWS | string | Nie | |
| userIds | string | Nie |
Response
Zwraca: Option[GetUserPresenceStatusesResponse]
Example

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

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

createVote 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| direction | string | Nie | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[VoteResponse]
Przykład

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

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

getVotesForUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userId | string | Nie | |
| anonUserId | string | Nie |
Odpowiedź
Zwraca: Option[GetVotesForUserResponse]
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.