
Језик 🇷🇸 Српски
Документација
Почетак рада
API референца
Употреба
Агрегација
Дневници ревизије
Аутентификација
Блокирање коментара
Провера блокираних коментара
Коментари
Коментари корисника
Конфигурације домена
Шаблони е-поште
Дневник догађаја
Објаве фида
Пријави коментар
GIF-ови
Хештегови
Модерација
Модератори
Број обавештења
Обавештења
Реакције на страницу
Странице
Очекујући догађаји вебхука
Конфигурације питања
Резултати питања
Агрегација резултата питања
SSO корисници
Претплате
Дневна употреба тенанта
Пакети тенанта
Корисници тенанта
Тенанти
Тикети
Преводи
Отпреми слику
Напредак значки корисника
Значке корисника
Корисничка обавештења
Статуси присутности корисника
Претрага корисника
Корисници
Гласови
FastComments C++ SDK
Ово је званични C++ SDK за FastComments.
Званични C++ SDK за FastComments API
Репозиторијум
Захтеви 
- C++17 или новији
- CMake 3.14 или новији
- OpenSSL
- C++ REST SDK (cpprestsdk)
- Boost
- Google Test (аутоматски се преузима за тестирање)
Инсталација 
Instalirajte zavisnosti
sudo apt install libcpprest-dev libboost-all-dev
Izgradnja iz izvornog koda
mkdir build
cd build
cmake ..
make
Instaliranje
sudo make install
Sadržaj biblioteke
Ova biblioteka sadrži generisani API klijent i SSO alate koji olakšavaju rad sa API-jem.
Javni vs zaštićeni API-ji
Za API klijent postoje tri klase, DefaultApi, PublicApi i ModerationApi. DefaultApi sadrži metode koje zahtevaju vaš API ključ, a PublicApi sadrži
metode koje se mogu pozvati direktno iz pregledača/mobilnog uređaja/i sl. bez autentifikacije. ModerationApi pruža opsežan skup API-ja za moderaciju u realnom vremenu i brzu moderaciju. Svaka metoda ModerationApi prihvata sso parametar i može se autentifikovati putem SSO ili sesijskog kolačića sa FastComments.com.
Брзи почетак 
Korišćenje autentifikovanih API‑ja (DefaultAPI)
Važno:
- Morate postaviti osnovni URL (cpp-restsdk generator ne čita URL iz OpenAPI specifikacije)
- Morate postaviti vaš API ključ na ApiClient pre slanja autentifikovanih zahteva. Ako to ne uradite, zahtevi će propasti sa greškom 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>();
// OBLIGATORNO: Postavite osnovni URL (izaberite svoju regiju)
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com")); // US
// ILI: config->setBaseUrl(utility::conversions::to_string_t("https://eu.fastcomments.com")); // EU
// OBLIGATORNO: Postavite svoj API ključ
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);
// Sada izvršite autentifikovane API pozive
return 0;
}
Korišćenje javnih API‑ja (PublicAPI)
Javni endpointi ne zahtevaju autentifikaciju:
#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>();
// OBLIGATORNO: Postavite osnovni 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);
// Izvršite javne API pozive
return 0;
}
Korišćenje API‑ja za moderaciju (ModerationApi)
ModerationApi omogućava rad na moderator tabli. Svaka metoda prihvata sso parametar, pa se poziv izvršava u ime SSO‑autentifikovanog moderatora (pogledajte odeljak o SSO‑u ispod za način kreiranja tokena):
#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>();
// OBLIGATORNO: Postavite osnovni 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);
// Prosledite SSO token moderatora kako biste autentifikovali poziv
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;
}
Uobičajeni problemi
- Greška „URI must contain a hostname“: Uverite se da pozovete
config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"))pre kreiranjaApiClient‑a. cpp-restsdk generator ne čita automatski URL servera iz OpenAPI specifikacije. - 401 greška „missing-api-key“: Uverite se da pozovete
config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_KEY"))pre kreiranja instanceDefaultAPI. - Pogrešna API klasa: Koristite
DefaultApiza server‑side autentifikovane zahteve,PublicApiza klijentske/javne zahteve iModerationApiza zahteve moderator table (autentifikovani SSO tokenom moderatora).
Прављење API позива: синхроно и асинхроно 
Svi API metodi u ovom SDK‑u vraćaju pplx::task<std::shared_ptr<ResponseType>> iz C++ REST SDK‑a. Ovo vam daje fleksibilnost u načinu na koji obrađujete API odgovore.
Sinhroni pozivi sa .get()
Koristite .get() da blokirate nit pozivaoca dok zahtev ne bude završen i da sinhrono preuzmete rezultat:
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);
// Obavezni parametri su pozicioni; opciona idu u strukturu opcija
org::openapitools::client::api::GetCommentsOptions options;
options.urlId = utility::conversions::to_string_t("your-url-id");
// Pozovite .get() da blokirate i sinhrono dobijete rezultat
auto response = api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
options
).get(); // Blokira dok HTTP zahtev ne bude završen
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
Asinhroni pozivi sa .then()
Koristite .then() za neblokirajuće asinhrono izvršavanje sa povratnim pozivima:
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);
// Obavezni parametri su pozicioni; opciona idu u strukturu opcija
org::openapitools::client::api::GetCommentsOptions options;
options.urlId = utility::conversions::to_string_t("your-url-id");
// Koristite .then() za asinhrono izvršavanje zasnovano na povratnim pozivima
api.getComments(
utility::conversions::to_string_t("your-tenant-id"),
options
).then([](std::shared_ptr<GetComments_200_response> response) {
// Ovo se izvršava asinhrono kada zahtev bude završen
if (response && response->comments) {
std::cout << "Found " << response->comments->size() << " comments" << std::endl;
}
});
// Izvršavanje nastavlja odmah bez blokiranja
std::cout << "Request sent, continuing..." << std::endl;
Izbor između sinhronog i asinhronog pristupa
Izbor zavisi od vašeg okruženja za izvršavanje i arhitekture aplikacije:
.get() (Sinhrono blokiranje)
- Blokira nit pozivaoca dok HTTP zahtev ne bude završen
- Jednostavniji tok koda, lakše za razumevanje
- Pogodno za posvećene radne niti, batch obradu ili alate komandne linije
- Neodgovarajuće za petlje događaja, GUI niti ili jednonitne servere
.then() (Asinhrono neblokiranje)
- Vraća se odmah, povratni poziv se izvršava kada zahtev bude završen
- Ne blokira nit pozivaoca
- Neophodno za event‑driven arhitekture, GUI aplikacije ili jednonitne petlje događaja
- Omogućava ulančavanje višestrukih operacija
- Složeniji tok kontrole
Test paket SDK‑a koristi isključivo .get(), ali to je prikladno za test okruženje u kome je blokiranje prihvatljivo.
Белешке 
Идентификатори емитовања
Видећете да требa да пошаљете broadcastId у неким API позивима. Када примите догађаје, добићете овај ID назад, па ћете знати да игноришете догађај ако планирате да оптимистички примените промене на клијенту (што ћете вероватно желети, јер пружа најбоље искуство). Овде проследите UUID. ID би требало да буде довољно јединствен да се не појави два пута у току једне сесије прегледача.
SSO (Једнократно пријављивање)
За примере SSO-а, погледајте у наставку.
Коришћење SSO 
Jednostavan 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;
}
Siguran 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;
}
Документација за fastcomments 
Dokumentacija za API krajnje tačke
Svi URI‑i su relativni na https://fastcomments.com
| Klasa | Metod | HTTP zahtev | 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 | Konsoliduje dokumente grupisanjem (ukoliko je naveden groupBy) i primenom više operacija. Podržane su različite operacije (na primer 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 | potreban tenantId afterId |
| DefaultApi | getFeedPostsStats | GET /api/v1/feed-posts/stats | |
| DefaultApi | getGifLarge | GET /api/v1/gifs/get-large | |
| DefaultApi | getGifsSearch | GET /api/v1/gifs/search | |
| DefaultApi | getGifsTrending | GET /api/v1/gifs/trending | |
| 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} | potreban tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | potreban tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | potreban 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} | potreban tenantId urlId userIdWS |
| PublicApi | getOfflineUsers | GET /pages/{tenantId}/users/offline | Prethodni komentatori na stranici koji trenutno NISU onlajn. Sortirano po displayName. Koristite ovo nakon što iscrpite /users/online da prikažete sekciju "Članovi". Kursor paginacija po commenterName: server prolazi parcijalni indeks {tenantId, urlId, commenterName} od afterName napred preko $gt, bez $skip troška. |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | Trenutno onlajn posetioci stranice: ljudi čija je websocket sesija trenutno pretplaćena na stranicu. Vraća anonCount + totalCount (pretplatnici u celoj sobi, uključujući anonimne posetioce koje ne nabrajamo). |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | Lista stranica za tenant. Koristi FChat desktop klijent za popunjavanje spiska soba. Zahteva da je enableFChat postavljen na true u rešavanom prilagođenom konfiguraciji za svaku stranicu. Stranice koje zahtevaju SSO filtriraju se prema grupnom pristupu korisnika koji zahteva. |
| 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 | 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). |
| 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} | Omogući ili onemogući obaveštenja za određeni komentar. |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Omogući ili onemogući obaveštenja za stranicu. Kada su korisnici pretplaćeni na stranicu, obaveštenja se kreiraju za nove korenske komentare, i takođe |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | Otpremi i promeni veličinu slike |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
Dokumentacija za modele
- APIAuditLog
- APIBanUserChangeLog
- APIBanUserChangedValues
- [APIBannedUser](https://github.com/FastComments/fast
aggregate 
Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations.
Различите операције (нпр. sum, countDistinct, avg, итд.) су подржане.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| aggregationRequest | AggregationRequest | Yes | |
| options | const AggregateOptions& | Yes |
Response
Враћа: AggregateResponse
Пример

getAuditLogs 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| options | const GetAuditLogsOptions& | Да |
Одговор
Vraća: GetAuditLogsResponse
Пример

logoutPublic 
Response
Vraća: APIEmptyResponse
Primer

blockFromCommentPublic 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Да | |
| sso | string | Не |
Одговор
Враћа: BlockSuccess
Пример

unBlockCommentPublic 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Yes | |
| sso | string | No |
Odgovor
Vraća: UnblockSuccess
Primer

checkedCommentsForBlocked 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentIds | string | Yes | |
| sso | string | No |
Odgovor
Returns: CheckBlockedCommentsResponse
Primer

blockUserFromComment 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| blockFromCommentParams | BlockFromCommentParams | Yes | |
| options | const BlockUserFromCommentOptions& | Yes |
Одговор
Враћа: BlockSuccess
Пример

createCommentPublic 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| broadcastId | string | Yes | |
| commentData | CommentData | Yes | |
| options | const CreateCommentPublicOptions& | Yes |
Odgovor
Vraća: SaveCommentsResponseWithPresence
Primer

deleteComment 
Параметри
| Назив | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const DeleteCommentOptions& | Yes |
Одговор
Враћа: DeleteCommentResult
Пример

deleteCommentPublic 
Параметри
| Име | Тип | Обязательно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| broadcastId | string | Да | |
| options | const DeleteCommentPublicOptions& | Да |
Одговор
Враћа: PublicAPIDeleteCommentResponse
Пример

deleteCommentVote 
Parameters
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| voteId | string | Yes | |
| urlId | string | Yes | |
| broadcastId | string | Yes | |
| options | const DeleteCommentVoteOptions& | Yes |
Одговор
Враћа: VoteDeleteResponse
Пример

flagComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da | |
| options | const FlagCommentOptions& | Da |
Odgovor
Vraća: FlagCommentResponse
Primer

getComment 
Параметри
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da |
Одговор
Враћа: APIGetCommentResponse
Пример

getComments 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetCommentsOptions& | Yes |
Одговор
Враћа: APIGetCommentsResponse
Пример

getCommentsPublic 
req tenantId urlId
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetCommentsPublicOptions& | Yes |
Odgovor
Vraća: GetCommentsResponseWithPresence_PublicComment_
Primer

getCommentText 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| options | const GetCommentTextOptions& | Da |
Odgovor
Vraća: PublicAPIGetCommentTextResponse
Primer

getCommentVoteUserNames 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| dir | int32_t | Yes | |
| sso | string | No |
Odgovor
Vraća: GetCommentVoteUserNamesSuccessResponse
Primer

lockComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| broadcastId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: APIEmptyResponse
Primer

pinComment 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| broadcastId | string | Да | |
| sso | string | Не |
Одговор
Враћа: ChangeCommentPinStatusResponse
Пример

saveComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | CreateCommentParams | Yes | |
| options | const SaveCommentOptions& | Yes |
Odgovor
Vraća: APISaveCommentResponse
Primer

setCommentText 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Yes | |
| options | const SetCommentTextOptions& | Yes |
Odgovor
Vraća: PublicAPISetCommentTextResponse
Primer

unBlockUserFromComment 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Yes | |
| options | const UnBlockUserFromCommentOptions& | Yes |
Одговор
Враћа: UnblockSuccess
Пример

unFlagComment 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const UnFlagCommentOptions& | Yes |
Odgovor
Vraća: FlagCommentResponse
Primer

unLockComment 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| broadcastId | string | Да | |
| sso | string | Не |
Одговор
Враћа: APIEmptyResponse
Пример

unPinComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
Odgovor
Vraća: ChangeCommentPinStatusResponse
Primer

updateComment 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updatableCommentParams | UpdatableCommentParams | Yes | |
| options | const UpdateCommentOptions& | Yes |
Одговор
Враћа: APIEmptyResponse
Пример

voteComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| urlId | string | Yes | |
| broadcastId | string | Yes | |
| voteBodyParams | VoteBodyParams | Yes | |
| options | const VoteCommentOptions& | Yes |
Odgovor
Vraća: VoteResponse
Primer

getCommentsForUser 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| options | const GetCommentsForUserOptions& | Yes |
Odgovor
Vraća: GetCommentsForUserResponse
Primer

addDomainConfig 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| addDomainConfigParams | AddDomainConfigParams | Da |
Odgovor
Vraća: AddDomainConfigResponse
Primer

deleteDomainConfig 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| domain | string | Yes |
Odgovor
Vraća: DeleteDomainConfigResponse
Primer

getDomainConfig 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| domain | string | Da |
Odgovor
Vraća: GetDomainConfigResponse
Primer

getDomainConfigs 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da |
Odgovor
Vraća: GetDomainConfigsResponse
Primer

patchDomainConfig 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| patchDomainConfigParams | PatchDomainConfigParams | Yes |
Odgovor
Vraća: PatchDomainConfigResponse
Primer

putDomainConfig 
Параметри
| Назив | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| updateDomainConfigParams | UpdateDomainConfigParams | Yes |
Одговор
Returns: PutDomainConfigResponse
Пример

createEmailTemplate 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createEmailTemplateBody | CreateEmailTemplateBody | Yes |
Odgovor
Vraća: CreateEmailTemplateResponse
Primer

deleteEmailTemplate 
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Response
Vraća: APIEmptyResponse
Example

deleteEmailTemplateRenderError 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| errorId | string | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

getEmailTemplate 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Одговор
Враћа: GetEmailTemplateResponse
Пример

getEmailTemplateDefinitions 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes |
Одговор
Returns: GetEmailTemplateDefinitionsResponse
Пример

getEmailTemplateRenderErrors 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da | |
| skip | double | Ne |
Odgovor
Vraća: GetEmailTemplateRenderErrorsResponse
Primer

getEmailTemplates 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| skip | double | Ne |
Odgovor
Vraća: GetEmailTemplatesResponse
Primer

renderEmailTemplate 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Да | |
| locale | string | Не |
Одговор
Враћа: RenderEmailTemplateResponse
Пример

updateEmailTemplate 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Yes |
Odgovor
Returns: APIEmptyResponse
Primer

getEventLog 
req tenantId urlId userIdWS
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| userIdWS | string | Yes | |
| startTime | int64_t | Yes | |
| endTime | int64_t | No |
Odgovor
Vraća: GetEventLogResponse
Primer

getGlobalEventLog 
req tenantId urlId userIdWS
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| urlId | string | Da | |
| userIdWS | string | Da | |
| startTime | int64_t | Da | |
| endTime | int64_t | Ne |
Odgovor
Vraća: GetEventLogResponse
Primer

createFeedPost 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createFeedPostParams | CreateFeedPostParams | Yes | |
| options | const CreateFeedPostOptions& | Yes |
Odgovor
Vraća: CreateFeedPostsResponse
Primer

createFeedPostPublic 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| createFeedPostParams | CreateFeedPostParams | Yes | |
| options | const CreateFeedPostPublicOptions& | Yes |
Одговор
Враћа: CreateFeedPostResponse
Пример

deleteFeedPostPublic 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| options | const DeleteFeedPostPublicOptions& | Yes |
Одговор
Враћа: DeleteFeedPostPublicResponse
Пример

getFeedPosts 
req tenantId afterId
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetFeedPostsOptions& | Da |
Odgovor
Vraća: GetFeedPostsResponse
Primer

getFeedPostsPublic 
req tenantId afterId
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetFeedPostsPublicOptions& | Da |
Odgovor
Vraća: PublicFeedPostsResponse
Primer

getFeedPostsStats 
Параметри
| Име | Тип | Потребно | Описание |
|---|---|---|---|
| tenantId | string | Yes | |
| postIds | vector<string | Yes | |
| sso | string | No |
Одговор
Враћа: FeedPostsStatsResponse
Пример

getUserReactsPublic 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserReactsPublicOptions& | Yes |
Odgovor
Vraća: UserReactsResponse
Primer

reactFeedPostPublic 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| reactBodyParams | ReactBodyParams | Yes | |
| options | const ReactFeedPostPublicOptions& | Yes |
Odgovor
Vraća: ReactFeedPostResponse
Primer

updateFeedPost 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| feedPost | FeedPost | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

updateFeedPostPublic 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| updateFeedPostParams | UpdateFeedPostParams | Yes | |
| options | const UpdateFeedPostPublicOptions& | Yes |
Одговор
Враћа: CreateFeedPostResponse
Пример

flagCommentPublic 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| isFlagged | bool | Da | |
| sso | string | Ne |
Odgovor
Vraća: APIEmptyResponse
Primer

getGifLarge 
Параметри
| Назив | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| largeInternalURLSanitized | string | Yes |
Одговор
Враћа: GifGetLargeResponse
Пример

getGifsSearch 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| search | string | Yes | |
| options | const GetGifsSearchOptions& | Yes |
Odgovor
Vraća: GetGifsSearchResponse
Primer

getGifsTrending 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetGifsTrendingOptions& | Yes |
Одговор
Враћа: GetGifsTrendingResponse
Пример

addHashTag 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createHashTagBody | CreateHashTagBody | Yes |
Odgovor
Vraća: CreateHashTagResponse
Primer

addHashTagsBulk 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Yes |
Odgovor
Vraća: BulkCreateHashTagsResponse
Primer

deleteHashTag 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| tag | string | Yes | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | Yes |
Одговор
Враћа: APIEmptyResponse
Пример

getHashTags 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| page | double | No |
Odgovor
Vraća: GetHashTagsResponse
Primer

patchHashTag 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| tag | string | Yes | |
| updateHashTagBody | UpdateHashTagBody | Yes |
Odgovor
Vraća: UpdateHashTagResponse
Primer

deleteModerationVote 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| voteId | string | Yes | |
| options | const DeleteModerationVoteOptions& | Yes |
Odgovor
Vraća: VoteDeleteResponse
Primer

getApiComments 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetApiCommentsOptions& | Yes |
Odgovor
Vraća: ModerationAPIGetCommentsResponse
Primer

getApiExportStatus 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetApiExportStatusOptions& | Da |
Odgovor
Vraća: ModerationExportStatusResponse
Primer

getApiIds 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetApiIdsOptions& | Da |
Odgovor
Vraća: ModerationAPIGetCommentIdsResponse
Primer

getBanUsersFromComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: GetBannedUsersFromCommentResponse
Primer

getCommentBanStatus 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Одговор
Vraća: GetCommentBanStatusResponse
Пример

getCommentChildren 
Параметри
| Име | Тип | Неопходно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| sso | string | Не |
Одговор
Враћа: ModerationAPIChildCommentsResponse
Пример

getCount 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| options | const GetCountOptions& | Да |
Одговор
Враћа: ModerationAPICountCommentsResponse
Пример

getCounts 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: GetBannedUsersCountResponse
Primer

getLogs 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Odgovor
Vraća: ModerationAPIGetLogsResponse
Primer

getManualBadges 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: GetTenantManualBadgesResponse
Primer

getManualBadgesForUser 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetManualBadgesForUserOptions& | Da |
Odgovor
Vraća: GetUserManualBadgesResponse
Primer

getModerationComment 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const GetModerationCommentOptions& | Yes |
Response
Vraća: ModerationAPICommentResponse
Example

getModerationCommentText 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Одговор
Враћа: GetCommentTextResponse
Пример

getPreBanSummary 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const GetPreBanSummaryOptions& | Yes |
Odgovor
Vraća: PreBanSummary
Primer

getSearchCommentsSummary 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetSearchCommentsSummaryOptions& | Yes |
Odgovor
Vraća: ModerationCommentSearchResponse
Primer

getSearchPages 
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetSearchPagesOptions& | Da |
Response
Vraća: ModerationPageSearchResponse
Primer

getSearchSites 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetSearchSitesOptions& | Yes |
Odgovor
Vraća: ModerationSiteSearchResponse
Primer

getSearchSuggest 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetSearchSuggestOptions& | Yes |
Одговор
Враћа: ModerationSuggestResponse
Пример

getSearchUsers 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| options | const GetSearchUsersOptions& | Да |
Одговор
Враћа: ModerationUserSearchResponse
Пример

getTrustFactor 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetTrustFactorOptions& | Yes |
Odgovor
Vraća: GetUserTrustFactorResponse
Primer

getUserBanPreference 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: APIModerateGetUserBanPreferencesResponse
Primer

getUserInternalProfile 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetUserInternalProfileOptions& | Da |
Odgovor
Vraća: GetUserInternalProfileResponse
Primer

postAdjustCommentVotes 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| adjustCommentVotesParams | AdjustCommentVotesParams | Yes | |
| options | const PostAdjustCommentVotesOptions& | Yes |
Одговор
Враћа: AdjustVotesResponse
Пример

postApiExport 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const PostApiExportOptions& | Yes |
Odgovor
Vraća: ModerationExportResponse
Primer

postBanUserFromComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| options | const PostBanUserFromCommentOptions& | Da |
Odgovor
Vraća: BanUserFromCommentResult
Primer

postBanUserUndo 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| banUserUndoParams | BanUserUndoParams | Da | |
| sso | string | Ne |
Odgovor
Vraća: APIEmptyResponse
Primer

postBulkPreBanSummary 
Параметри
| Име | Тип | Треба | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkPreBanParams | BulkPreBanParams | Yes | |
| options | const PostBulkPreBanSummaryOptions& | Yes |
Одговор
Враћа: BulkPreBanSummary
Пример

postCommentsByIds 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| commentsByIdsParams | CommentsByIdsParams | Yes | |
| sso | string | No |
Одговор
Returns: ModerationAPIChildCommentsResponse
Пример

postFlagComment 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| options | const PostFlagCommentOptions& | Да |
Одговор
Враћа: APIEmptyResponse
Пример

postRemoveComment 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| options | const PostRemoveCommentOptions& | Da |
Odgovor
Vraća: PostRemoveCommentApiResponse
Primer

postRestoreDeletedComment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostRestoreDeletedCommentOptions& | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

postSetCommentApprovalStatus 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentApprovalStatusOptions& | Yes |
Odgovor
Vraća: SetCommentApprovedResponse
Primer

postSetCommentReviewStatus 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| commentId | string | Да | |
| options | const PostSetCommentReviewStatusOptions& | Да |
Одговор
Враћа: APIEmptyResponse
Пример

postSetCommentSpamStatus 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostSetCommentSpamStatusOptions& | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

postSetCommentText 
Параметри
| Име | Тип | Обавезан | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| setCommentTextParams | SetCommentTextParams | Yes | |
| options | const PostSetCommentTextOptions& | Yes |
Одговор
Враћа: SetCommentTextResponse
Пример

postUnFlagComment 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| options | const PostUnFlagCommentOptions& | Da |
Odgovor
Vraća: APIEmptyResponse
Primer

postVote 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| options | const PostVoteOptions& | Yes |
Odgovor
Vraća: VoteResponse
Primer

putAwardBadge 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| badgeId | string | Yes | |
| options | const PutAwardBadgeOptions& | Yes |
Odgovor
Vraća: AwardUserBadgeResponse
Primer

putCloseThread 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| urlId | string | Да | |
| sso | string | Не |
Одговор
Враћа: APIEmptyResponse
Пример

putRemoveBadge 
Параметри
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| badgeId | string | Yes | |
| options | const PutRemoveBadgeOptions& | Yes |
Одговор
Враћа: RemoveUserBadgeResponse
Пример

putReopenThread 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| urlId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: APIEmptyResponse
Primer

setTrustFactor 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const SetTrustFactorOptions& | Yes |
Odgovor
Vraća: SetUserTrustFactorResponse
Primer

createModerator 
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createModeratorBody | CreateModeratorBody | Yes |
Response
Vraća: CreateModeratorResponse
Primer

deleteModerator 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da | |
| sendEmail | string | Ne |
Odgovor
Vraća: APIEmptyResponse
Primer

getModerator 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da |
Odgovor
Vraća: GetModeratorResponse
Primer

getModerators 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| skip | double | Не |
Одговор
Враћа: GetModeratorsResponse
Пример

sendInvite 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da | |
| fromName | string | Da |
Odgovor
Vraća: APIEmptyResponse
Primer

updateModerator 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateModeratorBody | UpdateModeratorBody | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

deleteNotificationCount 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

getCachedNotificationCount 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Одговор
Враћа: GetCachedNotificationCountResponse
Пример

getNotificationCount 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| options | const GetNotificationCountOptions& | Да |
Одговор
Враћа: GetNotificationCountResponse
Пример

getNotifications 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| options | const GetNotificationsOptions& | Да |
Одговор
Враћа: GetNotificationsResponse
Пример

updateNotification 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da | |
| updateNotificationBody | UpdateNotificationBody | Da | |
| userId | string | Ne |
Odgovor
Vraća: APIEmptyResponse
Primer

createV1PageReact 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| title | string | No |
Odgovor
Vraća: CreateV1PageReact
Primer

createV2PageReact 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes | |
| title | string | No |
Odgovor
Vraća: CreateV1PageReact
Primer

deleteV1PageReact 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| urlId | string | Da |
Odgovor
Vraća: CreateV1PageReact
Primer

deleteV2PageReact 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| urlId | string | Da | |
| id | string | Da |
Odgovor
Vraća: CreateV1PageReact
Primer

getV1PageLikes 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
Odgovor
Vraća: GetV1PageLikes
Primer

getV2PageReacts 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| urlId | string | Da |
Odgovor
Vraća: GetV2PageReacts
Primer

getV2PageReactUsers 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes |
Odgovor
Vraća: GetV2PageReactUsersResponse
Primer

addPage 
Parameters
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| createAPIPageData | CreateAPIPageData | Da |
Response
Vraća: AddPageAPIResponse
Example

deletePage 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Response
Returns: DeletePageAPIResponse
Example

getOfflineUsers 
Past komentari na stranici koji NISU trenutno online. Sortirani po displayName.
Koristite ovo nakon što potrošite /users/online kako biste prikazali sekciju „Members“.
Kursor paginacija po commenterName: server prolazi kroz delimični indeks {tenantId, urlId, commenterName} od afterName napred korišćenjem $gt, bez troška $skip.
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetOfflineUsersOptions& | Yes |
Response
Vraća: PageUsersOfflineResponse
Example

getOnlineUsers 
Trenutno online posmatrači stranice: osobe čija je websocket sesija trenutno pretplaćena na stranicu.
Vraća anonCount + totalCount (pretplatnici u celoj sobi, uključujući anonimne posmatrače koje ne izlistavamo).
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetOnlineUsersOptions& | Yes |
Response
Returns: PageUsersOnlineResponse
Example

getPageByURLId 
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
Response
Vraća: GetPageByURLIdAPIResponse
Example

getPages 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да |
Одговор
Враћа: GetPagesAPIResponse
Пример

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
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetPagesPublicOptions& | Yes |
Response
Враћа: GetPublicPagesResponse
Example

getUsersInfo 
Bulk informacije o korisnicima za tenant. На основу userIds, враћа информације за приказ из User / SSOUser. Користи се од стране видгета за коментаре да обогати кориснике који су управо појавили преко догађаја присуства. Без контекста странице: приватност се примењује униформно (приватни профили су замаскирани).
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| ids | string | Yes |
Odgovor
Vraća: PageUsersInfoResponse
Primer

patchPage 
Parameters
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPIPageData | UpdateAPIPageData | Yes |
Одговор
Враћа: PatchPageAPIResponse
Пример

deletePendingWebhookEvent 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Одговор
Враћа: APIEmptyResponse
Пример

getPendingWebhookEventCount 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetPendingWebhookEventCountOptions& | Da |
Odgovor
Vraća: GetPendingWebhookEventCountResponse
Primer

getPendingWebhookEvents 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetPendingWebhookEventsOptions& | Da |
Odgovor
Vraća: GetPendingWebhookEventsResponse
Primer

createQuestionConfig 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| createQuestionConfigBody | CreateQuestionConfigBody | Yes |
Одговор
Враћа: CreateQuestionConfigResponse
Пример

deleteQuestionConfig 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

getQuestionConfig 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odgovor
Vraća: GetQuestionConfigResponse
Primer

getQuestionConfigs 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| skip | double | Ne |
Odgovor
Vraća: GetQuestionConfigsResponse
Primer

updateQuestionConfig 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Yes |
Одговор
Враћа: APIEmptyResponse
Пример

createQuestionResult 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Da | |
| createQuestionResultBody | CreateQuestionResultBody | Da |
Response
Vraća: CreateQuestionResultResponse
Example

deleteQuestionResult 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

getQuestionResult 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Одговор
Враћа: GetQuestionResultResponse
Пример

getQuestionResults 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetQuestionResultsOptions& | Yes |
Response
Враћа: GetQuestionResultsResponse
Example

updateQuestionResult 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateQuestionResultBody | UpdateQuestionResultBody | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

aggregateQuestionResults 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const AggregateQuestionResultsOptions& | Da |
Odgovor
Vraća: AggregateQuestionResultsResponse
Primer

bulkAggregateQuestionResults 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Yes | |
| forceRecalculate | bool | No |
Odgovor
Vraća: BulkAggregateQuestionResultsResponse
Primer

combineCommentsWithQuestionResults 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const CombineCommentsWithQuestionResultsOptions& | Yes |
Odgovor
Vraća: CombineQuestionResultsWithCommentsResponse
Primer

addSSOUser 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| createAPISSOUserData | CreateAPISSOUserData | Да |
Одговор
Враћа: AddSSOUserAPIResponse
Пример

deleteSSOUser 
Параметри
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const DeleteSSOUserOptions& | Yes |
Одговор
Враћа: DeleteSSOUserAPIResponse
Пример

getSSOUserByEmail 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| string | Da |
Odgovor
Returns: GetSSOUserByEmailAPIResponse
Primer

getSSOUserById 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Одговор
Враћа: GetSSOUserByIdAPIResponse
Пример

getSSOUsers 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| skip | int32_t | Ne |
Odgovor
Vraća: GetSSOUsersResponse
Primer

patchSSOUser 
Parameters
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPISSOUserData | UpdateAPISSOUserData | Yes | |
| updateComments | bool | No |
Response
Vraća: PatchSSOUserAPIResponse
Example

putSSOUser 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPISSOUserData | UpdateAPISSOUserData | Yes | |
| updateComments | bool | No |
Odgovor
Vraća: PutSSOUserAPIResponse
Primer

createSubscription 
Parameters
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Yes |
Odgovor
Vraća: CreateSubscriptionAPIResponse
Primer

deleteSubscription 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да | |
| userId | string | Не |
Одговор
Враћа: DeleteSubscriptionAPIResponse
Пример

getSubscriptions 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| userId | string | Ne |
Odgovor
Vraća: GetSubscriptionsAPIResponse
Primer

updateSubscription 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | Yes | |
| userId | string | No |
Odgovor
Vraća: UpdateSubscriptionAPIResponse
Primer

getTenantDailyUsages 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| options | const GetTenantDailyUsagesOptions& | Да |
Одговор
Враћа: GetTenantDailyUsagesResponse
Пример

createTenantPackage 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createTenantPackageBody | CreateTenantPackageBody | Yes |
Odgovor
Vraća: CreateTenantPackageResponse
Primer

deleteTenantPackage 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Одговор
Враћа: APIEmptyResponse
Пример

getTenantPackage 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Одговор
Враћа: GetTenantPackageResponse
Пример

getTenantPackages 
Parameters
| Име | Тип | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| skip | double | Ne |
Odgovor
Vraća: GetTenantPackagesResponse
Primer

replaceTenantPackage 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Yes |
Одговор
Враћа: APIEmptyResponse
Пример

updateTenantPackage 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantPackageBody | UpdateTenantPackageBody | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

createTenantUser 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| createTenantUserBody | CreateTenantUserBody | Da |
Odgovor
Vraća: CreateTenantUserResponse
Primer

deleteTenantUser 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| options | const DeleteTenantUserOptions& | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

getTenantUser 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da |
Odgovor
Vraća: GetTenantUserResponse
Primer

getTenantUsers 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| skip | double | Ne |
Odgovor
Vraća: GetTenantUsersResponse
Primer

replaceTenantUser 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| replaceTenantUserBody | ReplaceTenantUserBody | Yes | |
| updateComments | string | No |
Odgovor
Vraća: APIEmptyResponse
Primer

sendLoginLink 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| redirectURL | string | No |
Odgovor
Vraća: APIEmptyResponse
Primer

updateTenantUser 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantUserBody | UpdateTenantUserBody | Yes | |
| updateComments | string | No |
Odgovor
Vraća: APIEmptyResponse
Primer

createTenant 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createTenantBody | CreateTenantBody | Yes |
Odgovor
Vraća: CreateTenantResponse
Primer

deleteTenant 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| sure | string | No |
Odgovor
Vraća: APIEmptyResponse
Primer

getTenant 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da |
Odgovor
Vraća: GetTenantResponse
Primer

getTenants 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetTenantsOptions& | Da |
Odgovor
Vraća: GetTenantsResponse
Primer

updateTenant 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantBody | UpdateTenantBody | Yes |
Odgovor
Vraća: APIEmptyResponse
Primer

changeTicketState 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | Yes | |
| id | string | Yes | |
| changeTicketStateBody | ChangeTicketStateBody | Yes |
Odgovor
Vraća: ChangeTicketStateResponse
Primer

createTicket 
Параметри
| Име | Тип | Захтевано | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | Yes | |
| createTicketBody | CreateTicketBody | Yes |
Одговор
Враћа: CreateTicketResponse
Пример

getTicket 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| userId | string | No |
Odgovor
Vraća: GetTicketResponse
Primer

getTickets 
Параметри
| Име | Тип | Обавезно | Описание |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetTicketsOptions& | Yes |
Одговор
Враћа: GetTicketsResponse
Пример

getTranslations 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| r_namespace | string | Yes | |
| component | string | Yes | |
| options | const GetTranslationsOptions& | Yes |
Odgovor
Vraća: GetTranslationsResponse
Primer

uploadImage 
Upload and resize an image
Parameters
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| file | HttpContent | Yes | |
| options | const UploadImageOptions& | Yes |
Response
Vraća: UploadImageResponse
Example

getUserBadgeProgressById 
Params
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| id | string | Da |
Odgovor
Vraća: APIGetUserBadgeProgressResponse
Primer

getUserBadgeProgressByUserId 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| userId | string | Da |
Odgovor
Vraća: APIGetUserBadgeProgressResponse
Primer

getUserBadgeProgressList 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserBadgeProgressListOptions& | Yes |
Response
Vraća: APIGetUserBadgeProgressListResponse
Primer

createUserBadge 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| createUserBadgeParams | CreateUserBadgeParams | Yes |
Odgovor
Vraća: APICreateUserBadgeResponse
Primer

deleteUserBadge 
Parametri
| Назив | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Odgovor
Returns: APIEmptySuccessResponse
Primer

getUserBadge 
Parameters
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| id | string | Да |
Response
Враћа: APIGetUserBadgeResponse
Пример

getUserBadges 
Parametri
| Ime | Tip | Potrebno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| options | const GetUserBadgesOptions& | Da |
Odgovor
Vraća: APIGetUserBadgesResponse
Primer

updateUserBadge 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateUserBadgeParams | UpdateUserBadgeParams | Yes |
Response
Vraća: APIEmptySuccessResponse
Primer

getUserNotificationCount 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| sso | string | Ne |
Odgovor
Vraća: GetUserNotificationCountResponse
Primer

getUserNotifications 
Параметри
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const GetUserNotificationsOptions& | Yes |
Одговор
Враћа: GetMyNotificationsResponse
Пример

resetUserNotificationCount 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| sso | string | No |
Odgovor
Vraća: ResetUserNotificationsResponse
Primer

resetUserNotifications 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| options | const ResetUserNotificationsOptions& | Yes |
Odgovor
Vraća: ResetUserNotificationsResponse
Primer

updateUserNotificationCommentSubscriptionStatus 
Omogućite ili onemogućite obaveštenja za određeni komentar.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | Yes | |
| optedInOrOut | string | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Response
Vraća: UpdateUserNotificationCommentSubscriptionStatusResponse
Primer

updateUserNotificationPageSubscriptionStatus 
Omogući ili onemogući obaveštenja za stranicu. Kada su korisnici pretplaćeni na stranicu, obaveštenja se kreiraju za nove osnovne komentare, i takođe
Parameters
| Име | Тип | Захтевано | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| urlId | string | Да | |
| url | string | Да | |
| pageTitle | string | Да | |
| subscribedOrUnsubscribed | string | Да | |
| sso | string | Не |
Response
Враћа: UpdateUserNotificationPageSubscriptionStatusResponse
Example

updateUserNotificationStatus 
Параметри
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Да | |
| notificationId | string | Да | |
| newStatus | string | Да | |
| sso | string | Не |
Одговор
Враћа: UpdateUserNotificationStatusResponse
Пример

getUserPresenceStatuses 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| urlIdWS | string | Da | |
| userIds | string | Da |
Odgovor
Vraća: GetUserPresenceStatusesResponse
Primer

searchUsers 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| urlId | string | Да | |
| options | const SearchUsersOptions& | Да |
Одговор
Враћа: SearchUsersResult
Пример

getUser 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Одговор
Returns: GetUserResponse
Пример

createVote 
Parametri
| Naziv | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Da | |
| commentId | string | Da | |
| direction | string | Da | |
| options | const CreateVoteOptions& | Da |
Odgovor
Vraća: VoteResponse
Primer

deleteVote 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| editKey | string | No |
Response
Returns: VoteDeleteResponse
Example

getVotes 
Параметри
| Име | Тип | Обавезно | Опис |
|---|---|---|---|
| tenantId | string | Да | |
| urlId | string | Да |
Одговор
Враћа: GetVotesResponse
Пример

getVotesForUser 
Parametri
| Ime | Tip | Obavezno | Opis |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| options | const GetVotesForUserOptions& | Yes |
Odgovor
Vraća: GetVotesForUserResponse
Primer

Треба помоћ?
Ако наиђете на било какве проблеме или имате питања везана за C++ SDK, молимо вас:
Допринос
Доприноси су добродошли! Посетите GitHub репозиторијум за смернице о доприносу.