
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 domeny
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
Prześlij obraz
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 C++ SDK
Oto oficjalne SDK C++ dla FastComments.
Oficjalne SDK C++ dla API FastComments
Repozytorium
Wymagania 
- C++17 lub nowszy
- CMake 3.14 lub nowszy
- OpenSSL
- C++ REST SDK (cpprestsdk)
- Boost
- Google Test (automatycznie pobierany do testów)
Instalacja 
Instalacja zależności
sudo apt install libcpprest-dev libboost-all-dev
Budowanie ze źródła
mkdir build
cd build
cmake ..
make
Instalacja
sudo make install
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ą trzy klasy: DefaultApi, PublicApi i ModerationApi. DefaultApi zawiera metody, które wymagają klucza API, a PublicApi zawiera
metody, które mogą być wywoływane bezpośrednio z przeglądarki/urządzenia mobilnego itp. bez uwierzytelnienia. ModerationApi oferuje rozbudowany zestaw szybkich i bieżących interfejsów moderacji. Każda metoda ModerationApi przyjmuje parametr sso i może uwierzytelnić się za pomocą SSO lub pliku cookie sesji FastComments.com.
Szybki start 
Using Authenticated APIs (DefaultAPI)
Ważne:
- Musisz ustawić podstawowy URL (generator cpp-restsdk nie odczytuje go z specyfikacji OpenAPI)
- Musisz ustawić swój klucz API w ApiClient przed wykonywaniem uwierzytelnionych żądań. Jeśli tego nie zrobisz, żądania zakończą się błędem 401.
#include <iostream>
#include "FastCommentsClient/api/DefaultApi.h"
#include "FastCommentsClient/ApiClient.h"
#include "FastCommentsClient/ApiConfiguration.h"
int main() {
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
// WYMAGANE: Ustaw podstawowy URL (wybierz swój region)
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com")); // US
// LUB: config->setBaseUrl(utility::conversions::to_string_t("https://eu.fastcomments.com")); // EU
// WYMAGANE: Ustaw swój klucz API
config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_API_KEY_HERE"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::DefaultApi api(apiClient);
// Teraz wykonaj uwierzytelnione wywołania API
return 0;
}
Using Public APIs (PublicAPI)
Publiczne endpointy nie wymagają uwierzytelnienia:
#include <iostream>
#include "FastCommentsClient/api/PublicApi.h"
#include "FastCommentsClient/ApiClient.h"
#include "FastCommentsClient/ApiConfiguration.h"
int main() {
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
// WYMAGANE: Ustaw podstawowy URL
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::PublicApi publicApi(apiClient);
// Wykonaj publiczne wywołania API
return 0;
}
Using Moderation APIs (ModerationApi)
API ModerationApi napędza panel moderatora. Każda metoda przyjmuje parametr sso, więc wywołanie jest wykonywane w imieniu moderatora uwierzytelnionego przez SSO (zobacz sekcję SSO poniżej, aby dowiedzieć się, jak utworzyć token):
#include <iostream>
#include "FastCommentsClient/api/ModerationApi.h"
#include "FastCommentsClient/ApiClient.h"
#include "FastCommentsClient/ApiConfiguration.h"
int main() {
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
// WYMAGANE: Ustaw podstawowy URL
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::ModerationApi moderationApi(apiClient);
// Przekaż token SSO moderatora, aby uwierzytelnić wywołanie
auto ssoToken = utility::conversions::to_string_t("YOUR_MODERATOR_SSO_TOKEN");
org::openapitools::client::api::GetCountOptions options;
options.sso = ssoToken;
auto response = moderationApi.getCount(options).get();
return 0;
}
Common Issues
- Błąd "URI must contain a hostname": Upewnij się, że wywołujesz
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"))przed utworzeniem ApiClient. Generator cpp-restsdk nie odczytuje automatycznie URL serwera z specyfikacji OpenAPI. - Błąd 401 "missing-api-key": Upewnij się, że wywołujesz
config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_KEY"))przed utworzeniem instancji DefaultAPI. - Nieprawidłowa klasa API: Użyj
DefaultApidla żądań uwierzytelnionych po stronie serwera,PublicApidla żądań po stronie klienta/publicznych, orazModerationApidla żądań panelu moderatora (uwierzytelnionych tokenem SSO moderatora).
Wywoływanie API: synchroniczne i asynchroniczne 
Wszystkie metody API w tym SDK zwracają pplx::task<std::shared_ptr<ResponseType>> z C++ REST SDK. Daje to elastyczność w tym, jak obsługujesz odpowiedzi API.
Wywołania synchroniczne przy użyciu .get()
Użyj .get(), aby zablokować wywołujący wątek aż żądanie zostanie zakończone i pobrać wynik synchronicznie:
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
config->setApiKey(utility::conversions::to_string_t("api_key"),
utility::conversions::to_string_t("YOUR_API_KEY"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::DefaultApi api(apiClient);
// Required parameters are positional; optional ones go in the options struct
org::openapitools::client::api::GetCommentsOptions options;
options.urlId = utility::conversions::to_string_t("your-url-id");
// Call .get() to block and get the result synchronously
auto response = api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
options
).get(); // Blokuje do momentu zakończenia żądania HTTP
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
Wywołania asynchroniczne przy użyciu .then()
Użyj .then(), aby wykonać nieblokujące asynchroniczne wywołanie z funkcjami zwrotnymi:
auto config = std::make_shared<org::openapitools::client::api::ApiConfiguration>();
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"));
config->setApiKey(utility::conversions::to_string_t("api_key"),
utility::conversions::to_string_t("YOUR_API_KEY"));
auto apiClient = std::make_shared<org::openapitools::client::api::ApiClient>(config);
org::openapitools::client::api::DefaultApi api(apiClient);
// Required parameters are positional; optional ones go in the options struct
org::openapitools::client::api::GetCommentsOptions options;
options.urlId = utility::conversions::to_string_t("your-url-id");
// Use .then() for asynchronous callback-based execution
api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
options
).then([](std::shared_ptr<GetComments_200_response> response) {
// To zostaje wykonane asynchronicznie po zakończeniu żądania
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
});
// Execution continues immediately without blocking
std::cout << "Request sent, continuing..." << std::endl; // Wykonanie kontynuuje się natychmiast bez blokowania
Wybór pomiędzy synchronicznym a asynchronicznym
Wybór zależy od środowiska uruchomieniowego i architektury aplikacji:
.get() (Synchronous blocking)
- Blokuje wywołujący wątek aż żądanie HTTP zostanie zakończone
- Prostszy przepływ kodu, łatwiejszy do zrozumienia
- Odpowiedni dla dedykowanych wątków roboczych, przetwarzania wsadowego lub narzędzi wiersza poleceń
- Nieodpowiedni dla pętli zdarzeń, wątków GUI lub serwerów jednowątkowych
.then() (Asynchronous non-blocking)
- Zwraca natychmiast, funkcja zwrotna jest wywoływana po zakończeniu żądania
- Nie blokuje wywołującego wątku
- Wymagany w architekturach zdarzeniowych, aplikacjach GUI lub jednowątkowych pętlach zdarzeń
- Umożliwia łączenie wielu operacji
- Bardziej złożony przepływ sterowania
Zestaw testów SDK używa wyłącznie .get(), ale jest to odpowiednie dla środowiska testowego, w którym blokowanie jest dopuszczalne.
Uwagi 
Identyfikatory Broadcast
Zauważysz, że w niektórych wywołaniach API trzeba przekazać broadcastId. Gdy otrzymasz zdarzenia, otrzymasz z powrotem ten identyfikator, dzięki czemu będziesz mógł zignorować zdarzenie, jeśli planujesz optymistycznie zastosować zmiany po stronie klienta
(na co prawdopodobnie zechcesz się zdecydować, ponieważ zapewnia to najlepsze doświadczenie). Przekaż tutaj UUID. Identyfikator powinien być na tyle unikalny, aby nie wystąpił dwukrotnie w sesji przeglądarki.
SSO (logowanie jednokrotne)
Przykłady SSO znajdziesz poniżej.
Korzystanie z SSO 
Proste SSO
#include <fastcomments/sso/fastcomments_sso.hpp>
#include <iostream>
using namespace fastcomments::sso;
int main() {
SimpleSSOUserData user("user-123", "user@example.com", "https://example.com/avatar.jpg");
FastCommentsSSO sso = FastCommentsSSO::newSimple(user);
std::string token = sso.createToken();
std::cout << "SSO Token: " << token << std::endl;
return 0;
}
Bezpieczne SSO
#include <fastcomments/sso/fastcomments_sso.hpp>
#include <iostream>
using namespace fastcomments::sso;
int main() {
SecureSSOUserData user("user-123", "user@example.com", "johndoe", "https://example.com/avatar.jpg");
std::string apiKey = "your-api-key";
FastCommentsSSO sso = FastCommentsSSO::newSecure(apiKey, user);
std::string token = sso.createToken();
std::cout << "Secure SSO Token: " << token << std::endl;
return 0;
}
Dokumentacja FastComments 
Dokumentacja punktów końcowych API
Wszystkie URI są względne do https://fastcomments.com
| Klasa | Metoda | Żądanie 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 przez grupowanie ich (jeśli podano groupBy) i stosowanie wielu operacji. Wspierane 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 | changeTicketState | PATCH /api/v1/tickets/{id}/state | |
| DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
| DefaultApi | createEmailTemplate | POST /api/v1/email-templates | |
| DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
| DefaultApi | createModerator | POST /api/v1/moderators | |
| DefaultApi | createQuestionConfig | POST /api/v1/question-configs | |
| DefaultApi | createQuestionResult | POST /api/v1/question-results | |
| DefaultApi | createSubscription | POST /api/v1/subscriptions | |
| DefaultApi | createTenant | POST /api/v1/tenants | |
| DefaultApi | createTenantPackage | POST /api/v1/tenant-packages | |
| DefaultApi | createTenantUser | POST /api/v1/tenant-users | |
| DefaultApi | createTicket | POST /api/v1/tickets | |
| DefaultApi | createUserBadge | POST /api/v1/user-badges | |
| DefaultApi | createVote | POST /api/v1/votes | |
| DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
| DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
| DefaultApi | deleteEmailTemplate | DELETE /api/v1/email-templates/{id} | |
| DefaultApi | deleteEmailTemplateRenderError | DELETE /api/v1/email-templates/{id}/render-errors/{errorId} | |
| DefaultApi | deleteHashTag | DELETE /api/v1/hash-tags/{tag} | |
| DefaultApi | deleteModerator | DELETE /api/v1/moderators/{id} | |
| DefaultApi | deleteNotificationCount | DELETE /api/v1/notification-count/{id} | |
| DefaultApi | deletePage | DELETE /api/v1/pages/{id} | |
| DefaultApi | deletePendingWebhookEvent | DELETE /api/v1/pending-webhook-events/{id} | |
| DefaultApi | deleteQuestionConfig | DELETE /api/v1/question-configs/{id} | |
| DefaultApi | deleteQuestionResult | DELETE /api/v1/question-results/{id} | |
| DefaultApi | deleteSSOUser | DELETE /api/v1/sso-users/{id} | |
| DefaultApi | deleteSubscription | DELETE /api/v1/subscriptions/{id} | |
| DefaultApi | deleteTenant | DELETE /api/v1/tenants/{id} | |
| DefaultApi | deleteTenantPackage | DELETE /api/v1/tenant-packages/{id} | |
| DefaultApi | deleteTenantUser | DELETE /api/v1/tenant-users/{id} | |
| DefaultApi | deleteUserBadge | DELETE /api/v1/user-badges/{id} | |
| DefaultApi | deleteVote | DELETE /api/v1/votes/{id} | |
| DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
| DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
| DefaultApi | getCachedNotificationCount | GET /api/v1/notification-count/{id} | |
| DefaultApi | getComment | GET /api/v1/comments/{id} | |
| DefaultApi | getComments | GET /api/v1/comments | |
| DefaultApi | getDomainConfig | GET /api/v1/domain-configs/{domain} | |
| DefaultApi | getDomainConfigs | GET /api/v1/domain-configs | |
| DefaultApi | getEmailTemplate | GET /api/v1/email-templates/{id} | |
| DefaultApi | getEmailTemplateDefinitions | GET /api/v1/email-templates/definitions | |
| DefaultApi | getEmailTemplateRenderErrors | GET /api/v1/email-templates/{id}/render-errors | |
| DefaultApi | getEmailTemplates | GET /api/v1/email-templates | |
| DefaultApi | getFeedPosts | GET /api/v1/feed-posts | req tenantId afterId |
| DefaultApi | getHashTags | GET /api/v1/hash-tags | |
| DefaultApi | getModerator | GET /api/v1/moderators/{id} | |
| DefaultApi | getModerators | GET /api/v1/moderators | |
| DefaultApi | getNotificationCount | GET /api/v1/notifications/count | |
| DefaultApi | getNotifications | GET /api/v1/notifications | |
| DefaultApi | getPageByURLId | GET /api/v1/pages/by-url-id | |
| DefaultApi | getPages | GET /api/v1/pages | |
| DefaultApi | getPendingWebhookEventCount | GET /api/v1/pending-webhook-events/count | |
| DefaultApi | getPendingWebhookEvents | GET /api/v1/pending-webhook-events | |
| DefaultApi | getQuestionConfig | GET /api/v1/question-configs/{id} | |
| DefaultApi | getQuestionConfigs | GET /api/v1/question-configs | |
| DefaultApi | getQuestionResult | GET /api/v1/question-results/{id} | |
| DefaultApi | getQuestionResults | GET /api/v1/question-results | |
| DefaultApi | getSSOUserByEmail | GET /api/v1/sso-users/by-email/{email} | |
| DefaultApi | getSSOUserById | GET /api/v1/sso-users/by-id/{id} | |
| DefaultApi | getSSOUsers | GET /api/v1/sso-users | |
| DefaultApi | getSubscriptions | GET /api/v1/subscriptions | |
| DefaultApi | getTenant | GET /api/v1/tenants/{id} | |
| DefaultApi | getTenantDailyUsages | GET /api/v1/tenant-daily-usage | |
| DefaultApi | getTenantPackage | GET /api/v1/tenant-packages/{id} | |
| DefaultApi | getTenantPackages | GET /api/v1/tenant-packages | |
| DefaultApi | getTenantUser | GET /api/v1/tenant-users/{id} | |
| DefaultApi | getTenantUsers | GET /api/v1/tenant-users | |
| DefaultApi | getTenants | GET /api/v1/tenants | |
| DefaultApi | getTicket | GET /api/v1/tickets/{id} | |
| DefaultApi | getTickets | GET /api/v1/tickets | |
| DefaultApi | getUser | GET /api/v1/users/{id} | |
| DefaultApi | getUserBadge | GET /api/v1/user-badges/{id} | |
| DefaultApi | getUserBadgeProgressById | GET /api/v1/user-badge-progress/{id} | |
| DefaultApi | getUserBadgeProgressByUserId | GET /api/v1/user-badge-progress/user/{userId} | |
| DefaultApi | getUserBadgeProgressList | GET /api/v1/user-badge-progress | |
| DefaultApi | getUserBadges | GET /api/v1/user-badges | |
| DefaultApi | getVotes | GET /api/v1/votes | |
| DefaultApi | getVotesForUser | GET /api/v1/votes/for-user | |
| DefaultApi | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | patchHashTag | PATCH /api/v1/hash-tags/{tag} | |
| DefaultApi | patchPage | PATCH /api/v1/pages/{id} | |
| DefaultApi | patchSSOUser | PATCH /api/v1/sso-users/{id} | |
| DefaultApi | putDomainConfig | PUT /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | putSSOUser | PUT /api/v1/sso-users/{id} | |
| DefaultApi | renderEmailTemplate | POST /api/v1/email-templates/render | |
| DefaultApi | replaceTenantPackage | PUT /api/v1/tenant-packages/{id} | |
| DefaultApi | replaceTenantUser | PUT /api/v1/tenant-users/{id} | |
| DefaultApi | saveComment | POST /api/v1/comments | |
| DefaultApi | saveCommentsBulk | POST /api/v1/comments/bulk | |
| DefaultApi | sendInvite | POST /api/v1/moderators/{id}/send-invite | |
| DefaultApi | sendLoginLink | POST /api/v1/tenant-users/{id}/send-login-link | |
| DefaultApi | unBlockUserFromComment | POST /api/v1/comments/{id}/un-block | |
| DefaultApi | unFlagComment | POST /api/v1/comments/{id}/un-flag | |
| DefaultApi | updateComment | PATCH /api/v1/comments/{id} | |
| DefaultApi | updateEmailTemplate | PATCH /api/v1/email-templates/{id} | |
| DefaultApi | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
| DefaultApi | updateModerator | PATCH /api/v1/moderators/{id} | |
| DefaultApi | updateNotification | PATCH /api/v1/notifications/{id} | |
| DefaultApi | updateQuestionConfig | PATCH /api/v1/question-configs/{id} | |
| DefaultApi | updateQuestionResult | PATCH /api/v1/question-results/{id} | |
| DefaultApi | updateSubscription | PATCH /api/v1/subscriptions/{id} | |
| DefaultApi | updateTenant | PATCH /api/v1/tenants/{id} | |
| DefaultApi | updateTenantPackage | PATCH /api/v1/tenant-packages/{id} | |
| DefaultApi | updateTenantUser | PATCH /api/v1/tenant-users/{id} | |
| DefaultApi | updateUserBadge | PUT /api/v1/user-badges/{id} | |
| ModerationApi | deleteModerationVote | DELETE /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | |
| ModerationApi | getApiComments | GET /auth/my-account/moderate-comments/mod_api/api/comments | |
| ModerationApi | getApiExportStatus | GET /auth/my-account/moderate-comments/mod_api/api/export/status | |
| ModerationApi | getApiIds | GET /auth/my-account/moderate-comments/mod_api/api/ids | |
| ModerationApi | getBanUsersFromComment | GET /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | |
| ModerationApi | getCommentBanStatus | GET /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | |
| ModerationApi | getCommentChildren | GET /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | |
| ModerationApi | getCount | GET /auth/my-account/moderate-comments/mod_api/count | |
| ModerationApi | getCounts | GET /auth/my-account/moderate-comments/banned-users/mod_api/counts | |
| ModerationApi | getLogs | GET /auth/my-account/moderate-comments/mod_api/logs/{commentId} | |
| ModerationApi | getManualBadges | GET /auth/my-account/moderate-comments/mod_api/get-manual-badges | |
| ModerationApi | getManualBadgesForUser | GET /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | |
| ModerationApi | getModerationComment | GET /auth/my-account/moderate-comments/mod_api/comment/{commentId} | |
| ModerationApi | getModerationCommentText | GET /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | |
| ModerationApi | getPreBanSummary | GET /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | |
| ModerationApi | getSearchCommentsSummary | GET /auth/my-account/moderate-comments/mod_api/search/comments/summary | |
| ModerationApi | getSearchPages | GET /auth/my-account/moderate-comments/mod_api/search/pages | |
| ModerationApi | getSearchSites | GET /auth/my-account/moderate-comments/mod_api/search/sites | |
| ModerationApi | getSearchSuggest | GET /auth/my-account/moderate-comments/mod_api/search/suggest | |
| ModerationApi | getSearchUsers | GET /auth/my-account/moderate-comments/mod_api/search/users | |
| ModerationApi | getTrustFactor | GET /auth/my-account/moderate-comments/mod_api/get-trust-factor | |
| ModerationApi | getUserBanPreference | GET /auth/my-account/moderate-comments/mod_api/user-ban-preference | |
| ModerationApi | getUserInternalProfile | GET /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | |
| ModerationApi | postAdjustCommentVotes | POST /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | |
| ModerationApi | postApiExport | POST /auth/my-account/moderate-comments/mod_api/api/export | |
| ModerationApi | postBanUserFromComment | POST /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | |
| ModerationApi | postBanUserUndo | POST /auth/my-account/moderate-comments/mod_api/ban-user/undo | |
| ModerationApi | postBulkPreBanSummary | POST /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | |
| ModerationApi | postCommentsByIds | POST /auth/my-account/moderate-comments/mod_api/comments-by-ids | |
| ModerationApi | postFlagComment | POST /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | |
| ModerationApi | postRemoveComment | POST /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | |
| ModerationApi | postRestoreDeletedComment | POST /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | |
| ModerationApi | postSetCommentApprovalStatus | POST /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | |
| ModerationApi | postSetCommentReviewStatus | POST /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | |
| ModerationApi | postSetCommentSpamStatus | POST /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | |
| ModerationApi | postSetCommentText | POST /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | |
| ModerationApi | postUnFlagComment | POST /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | |
| ModerationApi | postVote | POST /auth/my-account/moderate-comments/mod_api/vote/{commentId} | |
| ModerationApi | putAwardBadge | PUT /auth/my-account/moderate-comments/mod_api/award-badge | |
| ModerationApi | putCloseThread | PUT /auth/my-account/moderate-comments/mod_api/close-thread | |
| ModerationApi | putRemoveBadge | PUT /auth/my-account/moderate-comments/mod_api/remove-badge | |
| ModerationApi | putReopenThread | PUT /auth/my-account/moderate-comments/mod_api/reopen-thread | |
| ModerationApi | setTrustFactor | PUT /auth/my-account/moderate-comments/mod_api/set-trust-factor | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | createV1PageReact | POST /page-reacts/v1/likes/{tenantId} | |
| PublicApi | createV2PageReact | POST /page-reacts/v2/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | deleteV1PageReact | DELETE /page-reacts/v1/likes/{tenantId} | |
| PublicApi | deleteV2PageReact | DELETE /page-reacts/v2/{tenantId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsForUser | GET /comments-for-user | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | req tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | req tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | req tenantId afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGifLarge | GET /gifs/get-large/{tenantId} | |
| PublicApi | getGifsSearch | GET /gifs/search/{tenantId} | |
| PublicApi | getGifsTrending | GET /gifs/trending/{tenantId} | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | req tenantId urlId userIdWS |
| PublicApi | getOfflineUsers | GET /pages/{tenantId}/users/offline | Poprzedni komentujący na stronie, którzy NIE są aktualnie online. Posortowani według displayName. Użyj tego po wyczerpaniu /users/online, aby wyświetlić sekcję „Members”. Stronicowanie kursorem po commenterName: serwer przechodzi po częściowym indeksie {tenantId, urlId, commenterName} od afterName do przodu przy użyciu $gt, bez kosztu $skip. |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | Obecnie online oglądający stronę: osoby, które mają aktywną sesję websocket subskrybowaną do tej strony. Zwraca anonCount + totalCount (całkowita liczba subskrybentów pokoju, włącznie z anonimowymi widzami, których nie wyliczamy). |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | Lista stron dla najemcy. Używana przez klienta desktopowego FChat do wypełniania listy pokoi. Wymaga, aby enableFChat było ustawione na true w rozwiązywanej konfiguracji niestandardowej każdej strony. Strony wymagające SSO są filtrowane w oparciu o dostęp grupowy żądającego użytkownika. |
| 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 | Masowa informacja o użytkownikach dla najemcy. Na podstawie userIds zwraca informacje wyświetlane z User/SSOUser. Używane przez widget komentarzy do wzbogacania użytkowników, którzy właśnie pojawili się poprzez zdarzenie obecności. Brak kontekstu strony: prywatność jest egzekwowana jednolicie (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łącz lub wyłącz powiadomienia dla strony. Gdy użytkownicy są subskrybowani do strony, tworzono powiadomienia o nowych komentarzach głównych oraz |
| 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](https://github.com/FastComments/fastcomments-cpp/blob/master/docs/Models/CreateFeedPostParams
aggregate 
Aggreguje dokumenty, grupując je (jeśli podano groupBy) i stosując wiele operacji. Obsługiwane są różne operacje (np. sum, countDistinct, avg itp.).
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| aggregationRequest | AggregationRequest | Tak | |
| options | const AggregateOptions& | Tak |
Odpowiedź
Zwraca: AggregateResponse
Przykład

getAuditLogs 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetAuditLogsOptions& | Yes |
Odpowiedź
Zwraca: GetAuditLogsResponse
Przykład

logoutPublic 
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

blockFromCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: BlockSuccess
Przykład

unBlockCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: UnblockSuccess
Przykład

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

blockUserFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| blockFromCommentParams | BlockFromCommentParams | Tak | |
| options | const BlockUserFromCommentOptions& | Tak |
Odpowiedź
Zwraca: BlockSuccess
Przykład

createCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| broadcastId | string | Tak | |
| commentData | CommentData | Tak | |
| options | const CreateCommentPublicOptions& | Tak |
Odpowiedź
Zwraca: SaveCommentsResponseWithPresence
Przykład

deleteComment 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const DeleteCommentOptions& | Yes |
Odpowiedź
Zwraca: DeleteCommentResult
Przykład

deleteCommentPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| broadcastId | string | Tak | |
| options | const DeleteCommentPublicOptions& | Tak |
Odpowiedź
Zwraca: PublicAPIDeleteCommentResponse
Przykład

deleteCommentVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| voteId | string | Tak | |
| urlId | string | Tak | |
| broadcastId | string | Tak | |
| options | const DeleteCommentVoteOptions& | Tak |
Odpowiedź
Zwraca: VoteDeleteResponse
Przykład

flagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const FlagCommentOptions& | Yes |
Odpowiedź
Zwraca: FlagCommentResponse
Przykład

getComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odpowiedź
Zwraca: APIGetCommentResponse
Przykład

getComments 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetCommentsOptions& | Tak |
Odpowiedź
Zwraca: APIGetCommentsResponse
Przykład

getCommentsPublic 
req tenantId urlId
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetCommentsPublicOptions& | Yes |
Odpowiedź
Returns: GetCommentsResponseWithPresence_PublicComment_
Przykład

getCommentText 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const GetCommentTextOptions& | Yes |
Response
Zwraca: PublicAPIGetCommentTextResponse
Example

getCommentVoteUserNames 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| dir | int32_t | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: GetCommentVoteUserNamesSuccessResponse
Przykład

lockComment 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
Response
Zwraca: APIEmptyResponse
Example

pinComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: ChangeCommentPinStatusResponse
Przykład

saveComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | CreateCommentParams | Yes | |
| options | const SaveCommentOptions& | Yes |
Odpowiedź
Zwraca: APISaveCommentResponse
Przykład

setCommentText 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Yes | |
| options | const SetCommentTextOptions& | Yes |
Odpowiedź
Zwraca: PublicAPISetCommentTextResponse
Przykład

unBlockUserFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Yes | |
| options | const UnBlockUserFromCommentOptions& | Yes |
Odpowiedź
Zwraca: UnblockSuccess
Przykład

unFlagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const UnFlagCommentOptions& | Yes |
Odpowiedź
Zwraca: FlagCommentResponse
Przykład

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

unPinComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: ChangeCommentPinStatusResponse
Przykład

updateComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| updatableCommentParams | UpdatableCommentParams | Tak | |
| options | const UpdateCommentOptions& | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

voteComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| urlId | string | Yes | |
| broadcastId | string | Yes | |
| voteBodyParams | VoteBodyParams | Yes | |
| options | const VoteCommentOptions& | Yes |
Odpowiedź
Zwraca: VoteResponse
Przykład

getCommentsForUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| options | const GetCommentsForUserOptions& | Tak |
Odpowiedź
Zwraca: GetCommentsForUserResponse
Przykład

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

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

getDomainConfig 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| domain | string | Yes |
Response
Zwraca: GetDomainConfigResponse
Przykład

getDomainConfigs 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes |
Odpowiedź
Zwraca: GetDomainConfigsResponse
Przykład

patchDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| patchDomainConfigParams | PatchDomainConfigParams | Yes |
Odpowiedź
Zwraca: PatchDomainConfigResponse
Przykład

putDomainConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| updateDomainConfigParams | UpdateDomainConfigParams | Yes |
Odpowiedź
Zwraca: PutDomainConfigResponse
Przykład

createEmailTemplate 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createEmailTemplateBody | CreateEmailTemplateBody | Tak |
Response
Zwraca: CreateEmailTemplateResponse
Przykład

deleteEmailTemplate 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Response
Zwraca: APIEmptyResponse
Example

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

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

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

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

getEmailTemplates 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | double | No |
Odpowiedź
Zwraca: GetEmailTemplatesResponse
Przykład

renderEmailTemplate 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Tak | |
| locale | string | Nie |
Response
Zwraca: RenderEmailTemplateResponse
Example

updateEmailTemplate 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

getEventLog 
req tenantId urlId userIdWS
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| userIdWS | string | Tak | |
| startTime | int64_t | Tak | |
| endTime | int64_t | Nie |
Odpowiedź
Zwraca: GetEventLogResponse
Przykład

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

createFeedPost 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createFeedPostParams | CreateFeedPostParams | Tak | |
| options | const CreateFeedPostOptions& | Tak |
Odpowiedź
Zwraca: CreateFeedPostsResponse
Przykład

createFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| createFeedPostParams | CreateFeedPostParams | Tak | |
| options | const CreateFeedPostPublicOptions& | Tak |
Odpowiedź
Zwraca: CreateFeedPostResponse
Przykład

deleteFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postId | string | Tak | |
| options | const DeleteFeedPostPublicOptions& | Tak |
Odpowiedź
Zwraca: DeleteFeedPostPublicResponse
Przykład

getFeedPosts 
req tenantId afterId
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetFeedPostsOptions& | Yes |
Odpowiedź
Zwraca: GetFeedPostsResponse
Przykład

getFeedPostsPublic 
req tenantId afterId
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetFeedPostsPublicOptions& | Tak |
Odpowiedź
Zwraca: PublicFeedPostsResponse
Przykład

getFeedPostsStats 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postIds | vector<string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: FeedPostsStatsResponse
Przykład

getUserReactsPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetUserReactsPublicOptions& | Tak |
Odpowiedź
Zwraca: UserReactsResponse
Przykład

reactFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| postId | string | Tak | |
| reactBodyParams | ReactBodyParams | Tak | |
| options | const ReactFeedPostPublicOptions& | Tak |
Odpowiedź
Zwraca: ReactFeedPostResponse
Przykład

updateFeedPost 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| feedPost | FeedPost | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

updateFeedPostPublic 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| updateFeedPostParams | UpdateFeedPostParams | Yes | |
| options | const UpdateFeedPostPublicOptions& | Yes |
Odpowiedź
Zwraca: CreateFeedPostResponse
Przykład

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

getGifLarge 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| largeInternalURLSanitized | string | Yes |
Response
Zwraca: GifGetLargeResponse
Example

getGifsSearch 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| search | string | Yes | |
| options | const GetGifsSearchOptions& | Yes |
Odpowiedź
Zwraca: GetGifsSearchResponse
Przykład

getGifsTrending 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetGifsTrendingOptions& | Tak |
Odpowiedź
Zwraca: GetGifsTrendingResponse
Przykład

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

addHashTagsBulk 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Yes |
Odpowiedź
Zwraca: BulkCreateHashTagsResponse
Przykład

deleteHashTag 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| tag | string | Tak | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

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

patchHashTag 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| tag | string | Tak | |
| updateHashTagBody | UpdateHashTagBody | Tak |
Odpowiedź
Zwraca: UpdateHashTagResponse
Przykład

deleteModerationVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| voteId | string | Yes | |
| options | const DeleteModerationVoteOptions& | Yes |
Odpowiedź
Zwraca: VoteDeleteResponse
Przykład

getApiComments 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetApiCommentsOptions& | Tak |
Odpowiedź
Zwraca: ModerationAPIGetCommentsResponse
Przykład

getApiExportStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetApiExportStatusOptions& | Tak |
Odpowiedź
Zwraca: ModerationExportStatusResponse
Przykład

getApiIds 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetApiIdsOptions& | Tak |
Odpowiedź
Zwraca: ModerationAPIGetCommentIdsResponse
Przykład

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

getCommentBanStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: GetCommentBanStatusResponse
Przykład

getCommentChildren 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Response
Zwraca: ModerationAPIChildCommentsResponse
Example

getCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetCountOptions& | Tak |
Odpowiedź
Zwraca: ModerationAPICountCommentsResponse
Przykład

getCounts 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: GetBannedUsersCountResponse
Przykład

getLogs 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| sso | string | Nie |
Response
Zwraca: ModerationAPIGetLogsResponse
Example

getManualBadges 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: GetTenantManualBadgesResponse
Przykład

getManualBadgesForUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetManualBadgesForUserOptions& | Tak |
Odpowiedź
Zwraca: GetUserManualBadgesResponse
Przykład

getModerationComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const GetModerationCommentOptions& | Yes |
Odpowiedź
Returns: ModerationAPICommentResponse
Przykład

getModerationCommentText 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: GetCommentTextResponse
Przykład

getPreBanSummary 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| options | const GetPreBanSummaryOptions& | Tak |
Odpowiedź
Zwraca: PreBanSummary
Przykład

getSearchCommentsSummary 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetSearchCommentsSummaryOptions& | Tak |
Odpowiedź
Zwraca: ModerationCommentSearchResponse
Przykład

getSearchPages 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetSearchPagesOptions& | Yes |
Odpowiedź
Zwraca: ModerationPageSearchResponse
Przykład

getSearchSites 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetSearchSitesOptions& | Tak |
Odpowiedź
Zwraca: ModerationSiteSearchResponse
Przykład

getSearchSuggest 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetSearchSuggestOptions& | Tak |
Odpowiedź
Zwraca: ModerationSuggestResponse
Przykład

getSearchUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetSearchUsersOptions& | Tak |
Odpowiedź
Zwraca: ModerationUserSearchResponse
Przykład

getTrustFactor 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetTrustFactorOptions& | Yes |
Odpowiedź
Zwraca: GetUserTrustFactorResponse
Przykład

getUserBanPreference 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: APIModerateGetUserBanPreferencesResponse
Przykład

getUserInternalProfile 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserInternalProfileOptions& | Yes |
Odpowiedź
Zwraca: GetUserInternalProfileResponse
Przykład

postAdjustCommentVotes 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| adjustCommentVotesParams | AdjustCommentVotesParams | Yes | |
| options | const PostAdjustCommentVotesOptions& | Yes |
Response
Zwraca: AdjustVotesResponse
Example

postApiExport 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const PostApiExportOptions& | Yes |
Odpowiedź
Zwraca: ModerationExportResponse
Przykład

postBanUserFromComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| options | const PostBanUserFromCommentOptions& | Tak |
Odpowiedź
Zwraca: BanUserFromCommentResult
Przykład

postBanUserUndo 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| banUserUndoParams | BanUserUndoParams | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

postBulkPreBanSummary 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkPreBanParams | BulkPreBanParams | Yes | |
| options | const PostBulkPreBanSummaryOptions& | Yes |
Odpowiedź
Zwraca: BulkPreBanSummary
Przykład

postCommentsByIds 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentsByIdsParams | CommentsByIdsParams | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: ModerationAPIChildCommentsResponse
Przykład

postFlagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostFlagCommentOptions& | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

postRemoveComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostRemoveCommentOptions& | Yes |
Odpowiedź
Zwraca: PostRemoveCommentApiResponse
Przykład

postRestoreDeletedComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| options | const PostRestoreDeletedCommentOptions& | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

postSetCommentApprovalStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentApprovalStatusOptions& | Yes |
Odpowiedź
Zwraca: SetCommentApprovedResponse
Przykład

postSetCommentReviewStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| options | const PostSetCommentReviewStatusOptions& | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

postSetCommentSpamStatus 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentSpamStatusOptions& | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

postSetCommentText 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| setCommentTextParams | SetCommentTextParams | Tak | |
| options | const PostSetCommentTextOptions& | Tak |
Odpowiedź
Zwraca: SetCommentTextResponse
Przykład

postUnFlagComment 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| commentId | string | Tak | |
| options | const PostUnFlagCommentOptions& | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

postVote 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostVoteOptions& | Yes |
Odpowiedź
Zwraca: VoteResponse
Przykład

putAwardBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| badgeId | string | Yes | |
| options | const PutAwardBadgeOptions& | Yes |
Odpowiedź
Zwraca: AwardUserBadgeResponse
Przykład

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

putRemoveBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| badgeId | string | Yes | |
| options | const PutRemoveBadgeOptions& | Yes |
Odpowiedź
Zwraca: RemoveUserBadgeResponse
Przykład

putReopenThread 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

setTrustFactor 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const SetTrustFactorOptions& | Tak |
Odpowiedź
Zwraca: SetUserTrustFactorResponse
Przykład

createModerator 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createModeratorBody | CreateModeratorBody | Yes |
Odpowiedź
Zwraca: CreateModeratorResponse
Przykład

deleteModerator 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| sendEmail | string | No |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

getModerator 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak |
Odpowiedź
Zwraca: GetModeratorResponse
Przykład

getModerators 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | double | Nie |
Odpowiedź
Zwraca: GetModeratorsResponse
Przykład

sendInvite 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| fromName | string | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

updateModerator 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateModeratorBody | UpdateModeratorBody | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

deleteNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

getCachedNotificationCount 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Response
Returns: GetCachedNotificationCountResponse
Example

getNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetNotificationCountOptions& | Tak |
Odpowiedź
Zwraca: GetNotificationCountResponse
Przykład

getNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetNotificationsOptions& | Tak |
Odpowiedź
Zwraca: GetNotificationsResponse
Przykład

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

createV1PageReact 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| title | string | No |
Odpowiedź
Zwraca: CreateV1PageReact
Przykład

createV2PageReact 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes | |
| title | string | No |
Odpowiedź
Zwraca: CreateV1PageReact
Przykład

deleteV1PageReact 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
Odpowiedź
Zwraca: CreateV1PageReact
Przykład

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

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

getV2PageReacts 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak |
Odpowiedź
Zwraca: GetV2PageReacts
Przykład

getV2PageReactUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| id | string | Tak |
Odpowiedź
Zwraca: GetV2PageReactUsersResponse
Przykład

addPage 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createAPIPageData | CreateAPIPageData | Yes |
Response
Returns: AddPageAPIResponse
Example

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

getOfflineUsers 
Past commenters on the page who are NOT currently online. Sorted by displayName.
Use this after exhausting /users/online to render a "Members" section.
Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetOfflineUsersOptions& | Yes |
Response
Returns: PageUsersOfflineResponse
Example

getOnlineUsers 
Obecnie online widzowie strony: osoby, których sesja websocket jest subskrybowana do tej strony w tej chwili.
Zwraca anonCount + totalCount (subskrybenci w całym pokoju, w tym anonimowi widzowie, których nie enumerujemy).
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| options | const GetOnlineUsersOptions& | Tak |
Odpowiedź
Zwraca: PageUsersOnlineResponse
Przykład

getPageByURLId 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak |
Odpowiedź
Zwraca: GetPageByURLIdAPIResponse
Przykład

getPages 
Parametry
| Name | Type | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak |
Odpowiedź
Zwraca: GetPagesAPIResponse
Przykład

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

getUsersInfo 
Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.
Used by the comment widget to enrich users that just appeared via a presence event.
No page context: privacy is enforced uniformly (private profiles are masked).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| ids | string | Yes |
Response
Returns: PageUsersInfoResponse
Example

patchPage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| updateAPIPageData | UpdateAPIPageData | Tak |
Odpowiedź
Returns: PatchPageAPIResponse
Przykład

deletePendingWebhookEvent 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

getPendingWebhookEventCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetPendingWebhookEventCountOptions& | Tak |
Odpowiedź
Zwraca: GetPendingWebhookEventCountResponse
Przykład

getPendingWebhookEvents 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetPendingWebhookEventsOptions& | Yes |
Odpowiedź
Zwraca: GetPendingWebhookEventsResponse
Przykład

createQuestionConfig 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createQuestionConfigBody | CreateQuestionConfigBody | Yes |
Odpowiedź
Zwraca: CreateQuestionConfigResponse
Przykład

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

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

getQuestionConfigs 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | double | No |
Odpowiedź
Zwraca: GetQuestionConfigsResponse
Przykład

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

createQuestionResult 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createQuestionResultBody | CreateQuestionResultBody | Yes |
Odpowiedź
Zwraca: CreateQuestionResultResponse
Przykład

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

getQuestionResult 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odpowiedź
Zwraca: GetQuestionResultResponse
Przykład

getQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetQuestionResultsOptions& | Tak |
Odpowiedź
Zwraca: GetQuestionResultsResponse
Przykład

updateQuestionResult 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateQuestionResultBody | UpdateQuestionResultBody | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

aggregateQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const AggregateQuestionResultsOptions& | Yes |
Odpowiedź
Zwraca: AggregateQuestionResultsResponse
Przykład

bulkAggregateQuestionResults 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Yes | |
| forceRecalculate | bool | No |
Odpowiedź
Zwraca: BulkAggregateQuestionResultsResponse
Przykład

combineCommentsWithQuestionResults 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const CombineCommentsWithQuestionResultsOptions& | Tak |
Odpowiedź
Zwraca: CombineQuestionResultsWithCommentsResponse
Przykład

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

deleteSSOUser 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| options | const DeleteSSOUserOptions& | Tak |
Response
Zwraca: DeleteSSOUserAPIResponse
Example

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

getSSOUserById 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak |
Odpowiedź
Returns: GetSSOUserByIdAPIResponse
Przykład

getSSOUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | int32_t | Nie |
Odpowiedź
Zwraca: GetSSOUsersResponse
Przykład

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

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

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

deleteSubscription 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| userId | string | No |
Odpowiedź
Zwraca: DeleteSubscriptionAPIResponse
Przykład

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

updateSubscription 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | Yes | |
| userId | string | No |
Odpowiedź
Zwraca: UpdateSubscriptionAPIResponse
Przykład

getTenantDailyUsages 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetTenantDailyUsagesOptions& | Tak |
Odpowiedź
Zwraca: GetTenantDailyUsagesResponse
Przykład

createTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createTenantPackageBody | CreateTenantPackageBody | Yes |
Odpowiedź
Returns: CreateTenantPackageResponse
Przykład

deleteTenantPackage 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Response
Returns: APIEmptyResponse
Example

getTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odpowiedź
Zwraca: GetTenantPackageResponse
Przykład

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

replaceTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

updateTenantPackage 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| updateTenantPackageBody | UpdateTenantPackageBody | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

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

deleteTenantUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak | |
| options | const DeleteTenantUserOptions& | Tak |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

getTenantUser 
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak |
Response
Zwraca: GetTenantUserResponse
Example

getTenantUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| skip | double | Nie |
Odpowiedź
Returns: GetTenantUsersResponse
Przykład

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

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

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

createTenant 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createTenantBody | CreateTenantBody | Yes |
Odpowiedź
Zwraca: CreateTenantResponse
Przykład

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

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

getTenants 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetTenantsOptions& | Tak |
Odpowiedź
Zwraca: GetTenantsResponse
Przykład

updateTenant 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantBody | UpdateTenantBody | Yes |
Odpowiedź
Zwraca: APIEmptyResponse
Przykład

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

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

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

getTickets 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const GetTicketsOptions& | Tak |
Odpowiedź
Zwraca: GetTicketsResponse
Przykład

getTranslations 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| r_namespace | string | Tak | |
| component | string | Tak | |
| options | const GetTranslationsOptions& | Tak |
Odpowiedź
Zwraca: GetTranslationsResponse
Przykład

uploadImage 
Upload and resize an image
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| file | HttpContent | Tak | |
| options | const UploadImageOptions& | Tak |
Odpowiedź
Zwraca: UploadImageResponse
Przykład

getUserBadgeProgressById 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak |
Odpowiedź
Zwraca: APIGetUserBadgeProgressResponse
Przykład

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

getUserBadgeProgressList 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserBadgeProgressListOptions& | Yes |
Odpowiedź
Zwraca: APIGetUserBadgeProgressListResponse
Przykład

createUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createUserBadgeParams | CreateUserBadgeParams | Yes |
Odpowiedź
Zwraca: APICreateUserBadgeResponse
Przykład

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

getUserBadge 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| id | string | Tak |
Odpowiedź
Zwraca: APIGetUserBadgeResponse
Przykład

getUserBadges 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserBadgesOptions& | Yes |
Response
Zwraca: APIGetUserBadgesResponse
Example

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

getUserNotificationCount 
Parametry
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Tak | |
| sso | string | Nie |
Odpowiedź
Zwraca: GetUserNotificationCountResponse
Przykład

getUserNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserNotificationsOptions& | Yes |
Odpowiedź
Zwraca: GetMyNotificationsResponse
Przykład

resetUserNotificationCount 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| sso | string | No |
Odpowiedź
Zwraca: ResetUserNotificationsResponse
Przykład

resetUserNotifications 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| options | const ResetUserNotificationsOptions& | Tak |
Odpowiedź
Zwraca: ResetUserNotificationsResponse
Przykład

updateUserNotificationCommentSubscriptionStatus 
Enable or disable notifications for a specific comment.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | Yes | |
| optedInOrOut | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Response
Zwraca: UpdateUserNotificationCommentSubscriptionStatusResponse
Przykład

updateUserNotificationPageSubscriptionStatus 
Enable lub wyłącz powiadomienia dla strony. Gdy użytkownicy są subskrybowani do strony, tworzone są powiadomienia dla nowych głównych komentarzy oraz również
Parameters
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Tak | |
| urlId | string | Tak | |
| url | string | Tak | |
| pageTitle | string | Tak | |
| subscribedOrUnsubscribed | string | Tak | |
| sso | string | Nie |
Response
Zwraca: UpdateUserNotificationPageSubscriptionStatusResponse
Example

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

getUserPresenceStatuses 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlIdWS | string | Yes | |
| userIds | string | Yes |
Odpowiedź
Zwraca: GetUserPresenceStatusesResponse
Przykład

searchUsers 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const SearchUsersOptions& | Yes |
Odpowiedź
Zwraca: SearchUsersResult
Przykład

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

createVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| direction | string | Yes | |
| options | const CreateVoteOptions& | Yes |
Odpowiedź
Zwraca: VoteResponse
Przykład

deleteVote 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| editKey | string | No |
Odpowiedź
Zwraca: VoteDeleteResponse
Przykład

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

getVotesForUser 
Parametry
| Nazwa | Typ | Wymagane | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetVotesForUserOptions& | Yes |
Odpowiedź
Zwraca: GetVotesForUserResponse
Przykład

Potrzebujesz pomocy?
Jeśli napotkasz jakiekolwiek problemy lub masz pytania dotyczące C++ SDK, prosimy:
Współtworzenie
Wkłady są mile widziane! Odwiedź repozytorium GitHub, aby zapoznać się z wytycznymi dotyczącymi wkładu.