
Lingua 🇮🇹 Italiano
Documentazione
Primi passi
Riferimento API
Utilizzo
Aggregazione
Log di audit
Autenticazione
Blocca dal commento
Controlla commenti bloccati
Commenti
Commenti per utente
Configurazioni dominio
Modelli email
Registro eventi
Post del feed
Segnala commento
GIF
Hashtag
Moderazione
Moderatori
Conteggio notifiche
Notifiche
Reazioni pagina
Pagine
Eventi webhook in sospeso
Configurazioni domande
Risultati domande
Aggregazione risultati domande
Utenti SSO
Sottoscrizioni
Utilizzo giornaliero tenant
Pacchetti tenant
Utenti tenant
Tenant
Ticket
Traduzioni
Carica immagine
Avanzamento badge utente
Badge utente
Notifiche utente
Stato presenza utente
Ricerca utenti
Utenti
Voti
FastComments SDK per Nim
Questo è l'SDK Nim ufficiale per FastComments.
SDK Nim ufficiale per l'API di FastComments
Repository
Installazione 
Utilizzo di Nimble
nimble install fastcomments
Compilazione dal sorgente
nimble build
Contenuto della libreria
Questa libreria contiene il client API generato e le utilità SSO per semplificare il lavoro con l'API.
API pubbliche vs protette
Per il client API, ci sono tre moduli API, api_default, api_public, e api_moderation. api_default contiene i metodi che richiedono la tua API key, e api_public contiene chiamate API che possono essere effettuate direttamente da un browser/dispositivo mobile/etc senza autenticazione. Il modulo api_moderation contiene i metodi per la dashboard dei moderatori.
I metodi di api_moderation coprono elenchi, conteggi, ricerche ed esportazioni di commenti e dei loro log; azioni di moderazione come rimozione/restore dei commenti, segnalazione, impostazione dello stato di revisione/spam/approvazione, modifica dei voti e riapertura/chiusura dei thread; ban (bandire un utente da un commento, annullare un ban, riepiloghi pre-ban, stato e preferenze del ban e conteggi degli utenti bannati); e badge e fiducia (assegnazione/rimozione di un badge, elenco dei badge manuali, ottenere/impostare il fattore di fiducia di un utente e recuperare il profilo interno di un utente). Ogni metodo di api_moderation accetta un parametro sso in modo che la chiamata sia autenticata come moderatore SSO.
Guida rapida 
Utilizzo delle API autenticate (DefaultAPI)
Importante: Gli endpoint autenticati richiedono che la tua chiave API sia impostata nell'header x-api-key.
import httpclient
import fastcomments
import fastcomments/apis/api_default
import fastcomments/models/model_comment_data
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
# Effettua chiamate API autenticate
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
Utilizzo delle API pubbliche (PublicAPI)
Gli endpoint pubblici non richiedono autenticazione:
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# Effettua chiamate API pubbliche
let (response, httpResponse) = getCommentsPublic(
httpClient = client,
tenantId = "your-tenant-id",
urlId = "your-url-id",
page = 0,
direction = SortDirections.DESC,
sso = "",
skip = 0,
skipChildren = 0,
limit = 0,
limitChildren = 0,
countChildren = false,
fetchPageForCommentId = "",
includeConfig = false,
countAll = false,
includei10n = false,
locale = "",
modules = "",
isCrawler = false,
includeNotificationCount = false,
asTree = false,
maxTreeDepth = 0,
useFullTranslationIds = false,
parentId = "",
searchText = "",
hashTags = @[],
userId = "",
customConfigStr = "",
afterCommentId = "",
beforeCommentId = ""
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
Utilizzo delle API di moderazione (ModerationAPI)
Gli endpoint di moderazione alimentano la dashboard dei moderatori e sono autenticati con un token SSO per il moderatore che agisce:
import httpclient
import fastcomments
import fastcomments/apis/api_moderation
let client = newHttpClient()
# Elenca i commenti nella dashboard di moderazione
let (response, httpResponse) = getApiComments(
httpClient = client,
page = 0,
count = 30,
textSearch = "",
byIPFromComment = "",
filters = "",
searchFilters = "",
sorts = "",
demo = false,
sso = "your-sso-token"
)
if response.isSome:
let resp = response.get()
echo "Found ", resp.comments.len, " comments"
Problemi comuni
- 401 authentication error: Assicurati di impostare l'header
x-api-keysul tuo HttpClient prima di effettuare richieste a DefaultAPI:client.headers["x-api-key"] = "your-api-key" - Wrong API class: Usa
api_defaultper le richieste autenticate lato server,api_publicper le richieste lato client/pubbliche eapi_moderationper le richieste della dashboard dei moderatori.
Effettuare chiamate API 
Tutti i metodi API in questo SDK restituiscono tuple di (Option[ResponseType], Response). Il primo elemento contiene la risposta analizzata se ha successo, e il secondo elemento è la risposta HTTP grezza.
Esempio: Recupero dei commenti
import httpclient
import options
import fastcomments
import fastcomments/apis/api_default
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if httpResponse.code == Http200:
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
Note 
ID di broadcast
Vedrai che dovrai passare un broadcastId in alcune chiamate API. Quando riceverai eventi, otterrai questo ID, così saprai di ignorare l'evento se prevedi di applicare le modifiche in modo ottimistico sul client (cosa che probabilmente vorrai fare poiché offre la migliore esperienza). Passa qui un UUID. L'ID dovrebbe essere abbastanza unico da non comparire due volte in una sessione del browser.
SSO (Single Sign-On)
Per esempi di SSO, vedi sotto.
Utilizzo SSO 
SSO Semplice
import fastcomments/sso
let user = newSimpleSSOUserData(
userId = "user-123",
email = "user@example.com",
avatar = "https://example.com/avatar.jpg"
)
let sso = newSimple(simpleUserData = user)
let token = sso.createToken()
echo "SSO Token: ", token
SSO Sicuro
import fastcomments/sso
let user = newSecureSSOUserData(
userId = "user-123",
email = "user@example.com",
username = "johndoe",
avatar = "https://example.com/avatar.jpg"
)
let apiKey = "your-api-key"
let sso = newSecure(apiKey = apiKey, secureUserData = user)
let token = sso.createToken()
echo "Secure SSO Token: ", token
Documentazione per fastcomments 
Documentazione degli endpoint API
Tutti gli URI sono relativi a https://fastcomments.com
| Classe | Metodo | Richiesta HTTP | Descrizione |
|---|---|---|---|
| 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 | Aggrega i documenti raggruppandoli (se groupBy è fornito) e applicando più operazioni. Sono supportate diverse operazioni (ad es. sum, countDistinct, avg, ecc.). |
| 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/vote/{commentId}/{voteId} | |
| ModerationApi | getApiComments | GET /auth/my-account/moderate-comments/api/comments | |
| ModerationApi | getApiExportStatus | GET /auth/my-account/moderate-comments/api/export/status | |
| ModerationApi | getApiIds | GET /auth/my-account/moderate-comments/api/ids | |
| ModerationApi | getBanUsersFromComment | GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | |
| ModerationApi | getCommentBanStatus | GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | |
| ModerationApi | getCommentChildren | GET /auth/my-account/moderate-comments/comment-children/{commentId} | |
| ModerationApi | getCount | GET /auth/my-account/moderate-comments/count | |
| ModerationApi | getCounts | GET /auth/my-account/moderate-comments/banned-users/counts | |
| ModerationApi | getLogs | GET /auth/my-account/moderate-comments/logs/{commentId} | |
| ModerationApi | getManualBadges | GET /auth/my-account/moderate-comments/get-manual-badges | |
| ModerationApi | getManualBadgesForUser | GET /auth/my-account/moderate-comments/get-manual-badges-for-user | |
| ModerationApi | getModerationComment | GET /auth/my-account/moderate-comments/comment/{commentId} | |
| ModerationApi | getModerationCommentText | GET /auth/my-account/moderate-comments/get-comment-text/{commentId} | |
| ModerationApi | getPreBanSummary | GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | |
| ModerationApi | getSearchCommentsSummary | GET /auth/my-account/moderate-comments/search/comments/summary | |
| ModerationApi | getSearchPages | GET /auth/my-account/moderate-comments/search/pages | |
| ModerationApi | getSearchSites | GET /auth/my-account/moderate-comments/search/sites | |
| ModerationApi | getSearchSuggest | GET /auth/my-account/moderate-comments/search/suggest | |
| ModerationApi | getSearchUsers | GET /auth/my-account/moderate-comments/search/users | |
| ModerationApi | getTrustFactor | GET /auth/my-account/moderate-comments/get-trust-factor | |
| ModerationApi | getUserBanPreference | GET /auth/my-account/moderate-comments/user-ban-preference | |
| ModerationApi | getUserInternalProfile | GET /auth/my-account/moderate-comments/get-user-internal-profile | |
| ModerationApi | postAdjustCommentVotes | POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | |
| ModerationApi | postApiExport | POST /auth/my-account/moderate-comments/api/export | |
| ModerationApi | postBanUserFromComment | POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | |
| ModerationApi | postBanUserUndo | POST /auth/my-account/moderate-comments/ban-user/undo | |
| ModerationApi | postBulkPreBanSummary | POST /auth/my-account/moderate-comments/bulk-pre-ban-summary | |
| ModerationApi | postCommentsByIds | POST /auth/my-account/moderate-comments/comments-by-ids | |
| ModerationApi | postFlagComment | POST /auth/my-account/moderate-comments/flag-comment/{commentId} | |
| ModerationApi | postRemoveComment | POST /auth/my-account/moderate-comments/remove-comment/{commentId} | |
| ModerationApi | postRestoreDeletedComment | POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | |
| ModerationApi | postSetCommentApprovalStatus | POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | |
| ModerationApi | postSetCommentReviewStatus | POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | |
| ModerationApi | postSetCommentSpamStatus | POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | |
| ModerationApi | postSetCommentText | POST /auth/my-account/moderate-comments/set-comment-text/{commentId} | |
| ModerationApi | postUnFlagComment | POST /auth/my-account/moderate-comments/un-flag-comment/{commentId} | |
| ModerationApi | postVote | POST /auth/my-account/moderate-comments/vote/{commentId} | |
| ModerationApi | putAwardBadge | PUT /auth/my-account/moderate-comments/award-badge | |
| ModerationApi | putCloseThread | PUT /auth/my-account/moderate-comments/close-thread | |
| ModerationApi | putRemoveBadge | PUT /auth/my-account/moderate-comments/remove-badge | |
| ModerationApi | putReopenThread | PUT /auth/my-account/moderate-comments/reopen-thread | |
| ModerationApi | setTrustFactor | PUT /auth/my-account/moderate-comments/set-trust-factor | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | createV1PageReact | POST /page-reacts/v1/likes/{tenantId} | |
| PublicApi | createV2PageReact | POST /page-reacts/v2/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | deleteV1PageReact | DELETE /page-reacts/v1/likes/{tenantId} | |
| PublicApi | deleteV2PageReact | DELETE /page-reacts/v2/{tenantId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsForUser | GET /comments-for-user | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | 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 | Commentatori passati nella pagina che NON sono attualmente online. Ordinati per displayName. Usare questo dopo aver esaurito /users/online per mostrare una sezione "Membri". Paginazione cursore su commenterName: il server percorre l'indice parziale {tenantId, urlId, commenterName} da afterName in avanti tramite $gt, nessun costo $skip. |
| PublicApi | getOnlineUsers | GET /pages/{tenantId}/users/online | Visualizzatori attualmente online di una pagina: persone la cui sessione websocket è attualmente sottoscritta alla pagina. Restituisce anonCount + totalCount (abbonati dell'intera stanza, inclusi i visitatori anonimi che non elenchiamo). |
| PublicApi | getPagesPublic | GET /pages/{tenantId} | Elenca le pagine per un tenant. Utilizzato dal client desktop FChat per popolare la lista delle stanze. Richiede che enableFChat sia true nella configurazione personalizzata risolta per ogni pagina. Le pagine che richiedono SSO sono filtrate in base all'accesso ai gruppi dell'utente richiedente. |
| 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 | Informazioni utenti in bulk per un tenant. Dato userIds, restituisce le info visualizzazione da User / SSOUser. Usato dal widget dei commenti per arricchire gli utenti che sono appena apparsi tramite un evento di presenza. Nessun contesto di pagina: la privacy viene applicata in modo uniforme (i profili privati sono mascherati). |
| 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} | Abilita o disabilita le notifiche per un commento specifico. |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Abilita o disabilita le notifiche per una pagina. Quando gli utenti sono sottoscritti a una pagina, vengono create delle notifiche per i nuovi commenti radice e anche |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | Carica e ridimensiona un'immagine |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
Documentazione dei Modelli
- APIAuditLog
- APIBanUserChangeLog
- APIBanUserChangedValues
- APIBannedUser
- APIBannedUserWithMultiMatchInfo
- APIComment
- APICommentBase
- APICommentBase_meta
- APICommentCommonBannedUser
- APICreateUserBadgeResponse
- APIDomainConfiguration
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIModerateGetUserBanPreferencesResponse
- APIModerateUserBanPreferences
- APIPage
- APISSOUser
- APISaveCommentResponse
- APIStatus
- APITenant
- APITenantDailyUsage
- APITicket
- APITicketDetail
- APITicketFile
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfigResponse
- AddDomainConfigResponse_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AdjustCommentVotesParams
- AdjustVotesResponse
- AggregateQuestionResultsResponse
- AggregateResponse
- AggregateTimeBucket
- AggregationAPIError
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- AwardUserBadgeResponse
- BanUserFromCommentResult
- BanUserUndoParams
- BannedUserMatch
- BannedUserMatchType
- BannedUserMatch_matchedOnValue
- BillingInfo
- BlockFromCommentParams
- BlockSuccess
- BuildModerationFilterParams
- BuildModerationFilterResponse
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkCreateHashTagsBody
- BulkCreateHashTagsBody_tags_inner
- BulkCreateHashTagsResponse
- BulkCreateHashTagsResponse_results_inner
- BulkPreBanParams
- BulkPreBanSummary
- ChangeCommentPinStatusResponse
- ChangeTicketStateBody
- ChangeTicketStateResponse
- CheckBlockedCommentsResponse
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CommentsByIdsParams
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateEmailTemplateBody
- CreateEmailTemplateResponse
- CreateFeedPostParams
- CreateFeedPostResponse
- CreateFeedPostsResponse
- CreateHashTagBody
- CreateHashTagResponse
- CreateModeratorBody
- CreateModeratorResponse
- CreateQuestionConfigBody
- CreateQuestionConfigResponse
- CreateQuestionResultBody
- CreateQuestionResultResponse
- CreateSubscriptionAPIResponse
- CreateTenantBody
- CreateTenantPackageBody
- CreateTenantPackageResponse
- CreateTenantResponse
- CreateTenantUserBody
- CreateTenantUserResponse
- CreateTicketBody
- CreateTicketResponse
- CreateUserBadgeParams
- CreateV1PageReact
- CustomConfigParameters
- CustomEmailTemplate
- DeleteCommentAction
- DeleteCommentResult
- DeleteDomainConfigResponse
- DeleteFeedPostPublicResponse
- DeleteHashTagRequestBody
- DeletePageAPIResponse
- DeleteSSOUserAPIResponse
- DeleteSubscriptionAPIResponse
- DeletedCommentResultComment
- [DigestEmail
aggregate 
Aggrega i documenti raggruppandoli (se viene fornito groupBy) e applicando più operazioni. Sono supportate diverse operazioni (es. sum, countDistinct, avg, ecc.).
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| aggregationRequest | AggregationRequest | No | |
| parentTenantId | string | No | |
| includeStats | bool | No |
Risposta
Restituisce: Option[AggregateResponse]
Esempio

getAuditLogs 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| limit | float64 | No | |
| skip | float64 | No | |
| order | SORTDIR | No | |
| after | float64 | No | |
| before | float64 | No |
Risposta
Restituisce: Option[GetAuditLogsResponse]
Esempio

logoutPublic 
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

blockFromCommentPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | No | |
| sso | string | No |
Risposta
Restituisce: Option[BlockSuccess]
Esempio

unBlockCommentPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | No | |
| sso | string | No |
Risposta
Restituisce: Option[UnblockSuccess]
Esempio

checkedCommentsForBlocked 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentIds | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[CheckBlockedCommentsResponse]
Esempio

blockUserFromComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| blockFromCommentParams | BlockFromCommentParams | No | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: Option[BlockSuccess]
Esempio

createCommentPublic 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | No | |
| commentData | CommentData | No | |
| sessionId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[SaveCommentsResponseWithPresence]
Esempio

deleteComment 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| contextUserId | string | No | |
| isLive | bool | No |
Risposta
Restituisce: Option[DeleteCommentResult]
Esempio

deleteCommentPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[PublicAPIDeleteCommentResponse]
Esempio

deleteCommentVote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| voteId | string | No | |
| urlId | string | Sì | |
| broadcastId | string | No | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[VoteDeleteResponse]
Esempio

flagComment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: Option[FlagCommentResponse]
Esempio

getComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIGetCommentResponse]
Esempio

getComments 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| page | int | No | |
| limit | int | No | |
| skip | int | No | |
| asTree | bool | No | |
| skipChildren | int | No | |
| limitChildren | int | No | |
| maxTreeDepth | int | No | |
| urlId | string | Sì | |
| userId | string | No | |
| anonUserId | string | No | |
| contextUserId | string | No | |
| hashTag | string | No | |
| parentId | string | No | |
| direction | SortDirections | No | |
| fromDate | int64 | No | |
| toDate | int64 | No |
Risposta
Restituisce: Option[APIGetCommentsResponse]
Esempio

getCommentsPublic 
req tenantId urlId
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| page | int | No | |
| direction | SortDirections | No | |
| sso | string | No | |
| skip | int | No | |
| skipChildren | int | No | |
| limit | int | No | |
| limitChildren | int | No | |
| countChildren | bool | No | |
| fetchPageForCommentId | string | No | |
| includeConfig | bool | No | |
| countAll | bool | No | |
| includei10n | bool | No | |
| locale | string | No | |
| modules | string | No | |
| isCrawler | bool | No | |
| includeNotificationCount | bool | No | |
| asTree | bool | No | |
| maxTreeDepth | int | No | |
| useFullTranslationIds | bool | No | |
| parentId | string | No | |
| searchText | string | No | |
| hashTags | seq[string] | No | |
| userId | string | No | |
| customConfigStr | string | No | |
| afterCommentId | string | No | |
| beforeCommentId | string | No |
Risposta
Restituisce: Option[GetCommentsResponseWithPresencePublicComment]
Esempio

getCommentText 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[PublicAPIGetCommentTextResponse]
Esempio

getCommentVoteUserNames 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| dir | int | No | |
| sso | string | No |
Risposta
Restituisce: Option[GetCommentVoteUserNamesSuccessResponse]
Esempio

lockComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

pinComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ChangeCommentPinStatusResponse]
Esempio

saveComment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createCommentParams | CreateCommentParams | No | |
| isLive | bool | No | |
| doSpamCheck | bool | No | |
| sendEmails | bool | No | |
| populateNotifications | bool | No |
Response
Restituisce: Option[APISaveCommentResponse]
Esempio

saveCommentsBulk 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createCommentParams | seq[CreateCommentParams] | No | |
| isLive | bool | No | |
| doSpamCheck | bool | No | |
| sendEmails | bool | No | |
| populateNotifications | bool): (Option[seq[SaveCommentsBulkResponse]] | No | |
| id | string | No | |
| fromName | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

setCommentText 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| commentTextUpdateRequest | CommentTextUpdateRequest | No | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[PublicAPISetCommentTextResponse]
Esempio

unBlockUserFromComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| unBlockFromCommentParams | UnBlockFromCommentParams | No | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: Option[UnblockSuccess]
Esempio

unFlagComment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: Option[FlagCommentResponse]
Esempio

unLockComment 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

unPinComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ChangeCommentPinStatusResponse]
Esempio

updateComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updatableCommentParams | UpdatableCommentParams | No | |
| contextUserId | string | No | |
| doSpamCheck | bool | No | |
| isLive | bool | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

voteComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | No | |
| voteBodyParams | VoteBodyParams | No | |
| sessionId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[VoteResponse]
Esempio

getCommentsForUser 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| userId | string | No | |
| direction | SortDirections | No | |
| repliesToUserId | string | No | |
| page | float64 | No | |
| includei10n | bool | No | |
| locale | string | No | |
| isCrawler | bool | No |
Risposta
Restituisce: Option[GetCommentsForUserResponse]
Esempio

addDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| addDomainConfigParams | AddDomainConfigParams | No |
Risposta
Restituisce: Option[AddDomainConfigResponse]
Esempio

deleteDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | No |
Risposta
Restituisce: Option[DeleteDomainConfigResponse]
Esempio

getDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | No |
Risposta
Restituisce: Option[GetDomainConfigResponse]
Esempio

getDomainConfigs 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: Option[GetDomainConfigsResponse]
Esempio

patchDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | No | |
| patchDomainConfigParams | PatchDomainConfigParams | No |
Risposta
Restituisce: Option[PatchDomainConfigResponse]
Esempio

putDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | No | |
| updateDomainConfigParams | UpdateDomainConfigParams | No |
Risposta
Restituisce: Option[PutDomainConfigResponse]
Esempio

createEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createEmailTemplateBody | CreateEmailTemplateBody | No |
Risposta
Restituisce: Option[CreateEmailTemplateResponse]
Esempio

deleteEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

deleteEmailTemplateRenderError 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| errorId | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetEmailTemplateResponse]
Esempio

getEmailTemplateDefinitions 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: Option[GetEmailTemplateDefinitionsResponse]
Esempio

getEmailTemplateRenderErrors 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetEmailTemplateRenderErrorsResponse]
Esempio

getEmailTemplates 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetEmailTemplatesResponse]
Esempio

renderEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| renderEmailTemplateBody | RenderEmailTemplateBody | No | |
| locale | string | No |
Risposta
Restituisce: Option[RenderEmailTemplateResponse]
Esempio

updateEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getEventLog 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | No | |
| startTime | int64 | No | |
| endTime | int64 | No |
Risposta
Restituisce: Option[GetEventLogResponse]
Esempio

getGlobalEventLog 
req tenantId urlId userIdWS
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | No | |
| startTime | int64 | No | |
| endTime | int64 | No |
Risposta
Restituisce: Option[GetEventLogResponse]
Esempio

createFeedPost 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createFeedPostParams | CreateFeedPostParams | No | |
| broadcastId | string | No | |
| isLive | bool | No | |
| doSpamCheck | bool | No | |
| skipDupCheck | bool | No |
Risposta
Restituisce: Option[CreateFeedPostsResponse]
Esempio

createFeedPostPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createFeedPostParams | CreateFeedPostParams | No | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[CreateFeedPostResponse]
Esempio

deleteFeedPostPublic 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | No | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[DeleteFeedPostPublicResponse]
Esempio

getFeedPosts 
req tenantId afterId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| limit | int | No | |
| tags | seq[string] | No |
Risposta
Restituisce: Option[GetFeedPostsResponse]
Esempio

getFeedPostsPublic 
req tenantId afterId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| limit | int | No | |
| tags | seq[string] | No | |
| sso | string | No | |
| isCrawler | bool | No | |
| includeUserInfo | bool | No |
Risposta
Restituisce: Option[PublicFeedPostsResponse]
Esempio

getFeedPostsStats 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | seq[string] | No | |
| sso | string | No |
Risposta
Restituisce: Option[FeedPostsStatsResponse]
Esempio

getUserReactsPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | seq[string] | No | |
| sso | string | No |
Risposta
Restituisce: Option[UserReactsResponse]
Esempio

reactFeedPostPublic 
Parametri
| Name | Type | Obbligatorio | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | No | |
| reactBodyParams | ReactBodyParams | No | |
| isUndo | bool | No | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ReactFeedPostResponse]
Esempio

updateFeedPost 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| feedPost | FeedPost | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

updateFeedPostPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | No | |
| updateFeedPostParams | UpdateFeedPostParams | No | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[CreateFeedPostResponse]
Esempio

flagCommentPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| isFlagged | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getGifLarge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| largeInternalURLSanitized | string | No |
Risposta
Restituisce: Option[GifGetLargeResponse]
Esempio

getGifsSearch 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| search | string | No | |
| locale | string | No | |
| rating | string | No | |
| page | float64 | No |
Risposta
Restituisce: Option[GetGifsSearchResponse]
Esempio

getGifsTrending 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| locale | string | No | |
| rating | string | No | |
| page | float64 | No |
Risposta
Restituisce: Option[GetGifsTrendingResponse]
Esempio

addHashTag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createHashTagBody | CreateHashTagBody | No |
Risposta
Restituisce: Option[CreateHashTagResponse]
Esempio

addHashTagsBulk 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | No |
Risposta
Restituisce: Option[BulkCreateHashTagsResponse]
Esempio

deleteHashTag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | string | No | |
| tenantId | string | Sì | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getHashTags 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| page | float64 | No |
Risposta
Restituisce: Option[GetHashTagsResponse]
Esempio

patchHashTag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | string | No | |
| tenantId | string | Sì | |
| updateHashTagBody | UpdateHashTagBody | No |
Risposta
Restituisce: Option[UpdateHashTagResponse]
Esempio

deleteModerationVote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| voteId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[VoteDeleteResponse]
Esempio

getApiComments 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| page | float64 | No | |
| count | float64 | No | |
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| sorts | string | No | |
| demo | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPIGetCommentsResponse]
Esempio

getApiExportStatus 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| batchJobId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationExportStatusResponse]
Esempio

getApiIds 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| afterId | string | No | |
| demo | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPIGetCommentIdsResponse]
Esempio

getBanUsersFromComment 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[GetBannedUsersFromCommentResponse]
Esempio

getCommentBanStatus 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[GetCommentBanStatusResponse]
Esempio

getCommentChildren 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPIChildCommentsResponse]
Esempio

getCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filter | string | No | |
| searchFilters | string | No | |
| demo | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPICountCommentsResponse]
Esempio

getCounts 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| sso | string | No |
Risposta
Restituisce: Option[GetBannedUsersCountResponse]
Esempio

getLogs 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPIGetLogsResponse]
Esempio

getManualBadges 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| sso | string | No |
Risposta
Restituisce: Option[GetTenantManualBadgesResponse]
Esempio

getManualBadgesForUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| badgesUserId | string | No | |
| commentId | string | Yes | |
| sso | string | No |
Risposta
Restituisce: Option[GetUserManualBadgesResponse]
Esempio

getModerationComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| includeEmail | bool | No | |
| includeIP | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPICommentResponse]
Esempio

getModerationCommentText 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[GetCommentTextResponse]
Esempio

getPreBanSummary 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| includeByUserIdAndEmail | bool | No | |
| includeByIP | bool | No | |
| includeByEmailDomain | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[PreBanSummary]
Esempio

getSearchCommentsSummary 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| value | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationCommentSearchResponse]
Esempio

getSearchPages 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| value | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationPageSearchResponse]
Esempio

getSearchSites 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| value | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationSiteSearchResponse]
Esempio

getSearchSuggest 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| textSearch | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationSuggestResponse]
Esempio

getSearchUsers 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| value | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationUserSearchResponse]
Esempio

getTrustFactor 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| userId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[GetUserTrustFactorResponse]
Esempio

getUserBanPreference 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| sso | string | No |
Risposta
Restituisce: Option[APIModerateGetUserBanPreferencesResponse]
Esempio

getUserInternalProfile 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[GetUserInternalProfileResponse]
Esempio

postAdjustCommentVotes 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Sì | |
| adjustCommentVotesParams | AdjustCommentVotesParams | No | |
| sso | string | No |
Risposta
Restituisce: Option[AdjustVotesResponse]
Esempio

postApiExport 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| sorts | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationExportResponse]
Esempio

postBanUserFromComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| banEmail | bool | No | |
| banEmailDomain | bool | No | |
| banIP | bool | No | |
| deleteAllUsersComments | bool | No | |
| bannedUntil | string | No | |
| isShadowBan | bool | No | |
| updateId | string | No | |
| banReason | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[BanUserFromCommentResult]
Esempio

postBanUserUndo 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| banUserUndoParams | BanUserUndoParams | No | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

postBulkPreBanSummary 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| bulkPreBanParams | BulkPreBanParams | No | |
| includeByUserIdAndEmail | bool | No | |
| includeByIP | bool | No | |
| includeByEmailDomain | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[BulkPreBanSummary]
Esempio

postCommentsByIds 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| commentsByIdsParams | CommentsByIdsParams | No | |
| sso | string | No |
Risposta
Restituisce: Option[ModerationAPIChildCommentsResponse]
Esempio

postFlagComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

postRemoveComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[PostRemoveCommentResponse]
Esempio

postRestoreDeletedComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

postSetCommentApprovalStatus 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| approved | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[SetCommentApprovedResponse]
Esempio

postSetCommentReviewStatus 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| reviewed | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

postSetCommentSpamStatus 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| spam | bool | No | |
| permNotSpam | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

postSetCommentText 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| setCommentTextParams | SetCommentTextParams | No | |
| sso | string | No |
Risposta
Restituisce: Option[SetCommentTextResponse]
Esempio

postUnFlagComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

postVote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| commentId | string | Sì | |
| direction | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[VoteResponse]
Esempio

putAwardBadge 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| badgeId | string | No | |
| userId | string | No | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[AwardUserBadgeResponse]
Esempio

putCloseThread 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| urlId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

putRemoveBadge 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| badgeId | string | No | |
| userId | string | No | |
| commentId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[RemoveUserBadgeResponse]
Esempio

putReopenThread 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| urlId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

setTrustFactor 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| userId | string | No | |
| trustFactor | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[SetUserTrustFactorResponse]
Esempio

createModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createModeratorBody | CreateModeratorBody | No |
Risposta
Restituisce: Option[CreateModeratorResponse]
Esempio

deleteModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| sendEmail | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetModeratorResponse]
Esempio

getModerators 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetModeratorsResponse]
Esempio

updateModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateModeratorBody | UpdateModeratorBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

deleteNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getCachedNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetCachedNotificationCountResponse]
Esempio

getNotificationCount 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| urlId | string | Sì | |
| fromCommentId | string | No | |
| viewed | bool | No |
Risposta
Restituisce: Option[GetNotificationCountResponse]
Esempio

getNotifications 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| urlId | string | Sì | |
| fromCommentId | string | No | |
| viewed | bool | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetNotificationsResponse]
Esempio

updateNotification 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateNotificationBody | UpdateNotificationBody | No | |
| userId | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

createV1PageReact 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| title | string | No |
Risposta
Restituisce: Option[CreateV1PageReact]
Esempio

createV2PageReact 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| id | string | No | |
| title | string | No |
Risposta
Restituisce: Option[CreateV1PageReact]
Esempio

deleteV1PageReact 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: Option[CreateV1PageReact]
Esempio

deleteV2PageReact 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[CreateV1PageReact]
Esempio

getV1PageLikes 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: Option[GetV1PageLikes]
Esempio

getV2PageReacts 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: Option[GetV2PageReacts]
Esempio

getV2PageReactUsers 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetV2PageReactUsersResponse]
Esempio

addPage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIPageData | CreateAPIPageData | No |
Risposta
Restituisce: Option[AddPageAPIResponse]
Esempio

deletePage 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[DeletePageAPIResponse]
Esempio

getOfflineUsers 
Commentatori passati sulla pagina che NON sono attualmente online. Ordinati per displayName. Usare questo dopo aver esaurito /users/online per visualizzare una sezione "Membri". Paginazione cursore su commenterName: il server scorre l'indice parziale {tenantId, urlId, commenterName} da afterName in avanti tramite $gt, senza costo $skip.
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| afterName | string | No | |
| afterUserId | string | No |
Risposta
Restituisce: Option[PageUsersOfflineResponse]
Esempio

getOnlineUsers 
Attualmente i visualizzatori online di una pagina: persone la cui sessione websocket è sottoscritta alla pagina in questo momento. Restituisce anonCount + totalCount (iscritti alla room in generale, inclusi i visualizzatori anonimi che non elenchiamo).
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| afterName | string | No | |
| afterUserId | string | No |
Risposta
Restituisce: Option[PageUsersOnlineResponse]
Esempio

getPageByURLId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: Option[GetPageByURLIdAPIResponse]
Esempio

getPages 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: Option[GetPagesAPIResponse]
Esempio

getPagesPublic 
Elenca le pagine per un tenant. Utilizzato dal client desktop FChat per popolare l'elenco delle sue stanze.
Richiede che enableFChat sia true nella configurazione personalizzata risolta per ciascuna pagina.
Le pagine che richiedono SSO vengono filtrate rispetto ai gruppi di accesso dell'utente che effettua la richiesta.
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| cursor | string | No | |
| limit | int | No | |
| q | string | No | |
| sortBy | PagesSortBy | No | |
| hasComments | bool | No |
Risposta
Restituisce: Option[GetPublicPagesResponse]
Esempio

getUsersInfo 
Informazioni utente in blocco per un tenant. Dato userIds, restituisce le informazioni di visualizzazione da User / SSOUser. Utilizzato dal widget dei commenti per arricchire gli utenti che sono appena apparsi tramite un evento di presenza. Nessun contesto di pagina: la privacy è applicata in modo uniforme (i profili privati sono mascherati).
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| ids | string | No |
Risposta
Restituisce: Option[PageUsersInfoResponse]
Esempio

patchPage 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateAPIPageData | UpdateAPIPageData | No |
Risposta
Restituisce: Option[PatchPageAPIResponse]
Esempio

deletePendingWebhookEvent 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getPendingWebhookEventCount 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| externalId | string | No | |
| eventType | string | No | |
| domain | string | No | |
| attemptCountGT | float64 | No |
Risposta
Restituisce: Option[GetPendingWebhookEventCountResponse]
Esempio

getPendingWebhookEvents 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| externalId | string | No | |
| eventType | string | No | |
| domain | string | No | |
| attemptCountGT | float64 | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetPendingWebhookEventsResponse]
Esempio

createQuestionConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createQuestionConfigBody | CreateQuestionConfigBody | No |
Risposta
Restituisce: Option[CreateQuestionConfigResponse]
Esempio

deleteQuestionConfig 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getQuestionConfig 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetQuestionConfigResponse]
Esempio

getQuestionConfigs 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetQuestionConfigsResponse]
Esempio

updateQuestionConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

createQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createQuestionResultBody | CreateQuestionResultBody | No |
Risposta
Restituisce: Option[CreateQuestionResultResponse]
Esempio

deleteQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetQuestionResultResponse]
Esempio

getQuestionResults 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userId | string | No | |
| startDate | string | No | |
| questionId | string | No | |
| questionIds | string | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetQuestionResultsResponse]
Esempio

updateQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateQuestionResultBody | UpdateQuestionResultBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

aggregateQuestionResults 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| questionId | string | No | |
| questionIds | seq[string] | No | |
| urlId | string | Sì | |
| timeBucket | AggregateTimeBucket | No | |
| startDate | string | No | |
| forceRecalculate | bool | No |
Risposta
Restituisce: Option[AggregateQuestionResultsResponse]
Esempio

bulkAggregateQuestionResults 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | No | |
| forceRecalculate | bool | No |
Risposta
Restituisce: Option[BulkAggregateQuestionResultsResponse]
Esempio

combineCommentsWithQuestionResults 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| questionId | string | No | |
| questionIds | seq[string] | No | |
| urlId | string | Sì | |
| startDate | string | No | |
| forceRecalculate | bool | No | |
| minValue | float64 | No | |
| maxValue | float64 | No | |
| limit | float64 | No |
Risposta
Restituisce: Option[CombineQuestionResultsWithCommentsResponse]
Esempio

addSSOUser 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPISSOUserData | CreateAPISSOUserData | No |
Risposta
Restituisce: Option[AddSSOUserAPIResponse]
Esempio

deleteSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| deleteComments | bool | No | |
| commentDeleteMode | string | No |
Risposta
Restituisce: Option[DeleteSSOUserAPIResponse]
Esempio

getSSOUserByEmail 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| string | No |
Risposta
Restituisce: Option[GetSSOUserByEmailAPIResponse]
Esempio

getSSOUserById 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetSSOUserByIdAPIResponse]
Esempio

getSSOUsers 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | int | No |
Risposta
Restituisce: Option[GetSSOUsersResponse]
Esempio

patchSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateAPISSOUserData | UpdateAPISSOUserData | No | |
| updateComments | bool | No |
Risposta
Restituisce: Option[PatchSSOUserAPIResponse]
Esempio

putSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateAPISSOUserData | UpdateAPISSOUserData | No | |
| updateComments | bool | No |
Risposta
Restituisce: Option[PutSSOUserAPIResponse]
Esempio

createSubscription 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | No |
Risposta
Restituisce: Option[CreateSubscriptionAPIResponse]
Esempio

deleteSubscription 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| userId | string | No |
Risposta
Restituisce: Option[DeleteSubscriptionAPIResponse]
Esempio

getSubscriptions 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No |
Risposta
Restituisce: Option[GetSubscriptionsAPIResponse]
Esempio

updateSubscription 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | No | |
| userId | string | No |
Risposta
Restituisce: Option[UpdateSubscriptionAPIResponse]
Esempio

getTenantDailyUsages 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| yearNumber | float64 | No | |
| monthNumber | float64 | No | |
| dayNumber | float64 | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetTenantDailyUsagesResponse]
Esempio

createTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantPackageBody | CreateTenantPackageBody | No |
Risposta
Restituisce: Option[CreateTenantPackageResponse]
Esempio

deleteTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetTenantPackageResponse]
Esempio

getTenantPackages 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetTenantPackagesResponse]
Esempio

replaceTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

updateTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateTenantPackageBody | UpdateTenantPackageBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

createTenantUser 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantUserBody | CreateTenantUserBody | No |
Risposta
Restituisce: Option[CreateTenantUserResponse]
Esempio

deleteTenantUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| deleteComments | string | No | |
| commentDeleteMode | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getTenantUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetTenantUserResponse]
Esempio

getTenantUsers 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetTenantUsersResponse]
Esempio

replaceTenantUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| replaceTenantUserBody | ReplaceTenantUserBody | No | |
| updateComments | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

sendLoginLink 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| redirectURL | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

updateTenantUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateTenantUserBody | UpdateTenantUserBody | No | |
| updateComments | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

createTenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantBody | CreateTenantBody | No |
Risposta
Restituisce: Option[CreateTenantResponse]
Esempio

deleteTenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| sure | string | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

getTenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetTenantResponse]
Esempio

getTenants 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| meta | string | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[GetTenantsResponse]
Esempio

updateTenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateTenantBody | UpdateTenantBody | No |
Risposta
Restituisce: Option[APIEmptyResponse]
Esempio

changeTicketState 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| id | string | No | |
| changeTicketStateBody | ChangeTicketStateBody | No |
Risposta
Restituisce: Option[ChangeTicketStateResponse]
Esempio

createTicket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| createTicketBody | CreateTicketBody | No |
Risposta
Restituisce: Option[CreateTicketResponse]
Esempio

getTicket 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| userId | string | No |
Risposta
Restituisce: Option[GetTicketResponse]
Esempio

getTickets 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| state | float64 | No | |
| skip | float64 | No | |
| limit | float64 | No |
Risposta
Restituisce: Option[GetTicketsResponse]
Esempio

getTranslations 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| namespace | string | No | |
| component | string | No | |
| locale | string | No | |
| useFullTranslationIds | bool | No |
Risposta
Restituisce: Option[GetTranslationsResponse]
Esempio

uploadImage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| file | string | No | |
| sizePreset | SizePreset | No | |
| urlId | string | Sì |
Risposta
Restituisce: Option[UploadImageResponse]
Esempio

getUserBadgeProgressById 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIGetUserBadgeProgressResponse]
Esempio

getUserBadgeProgressByUserId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No |
Risposta
Restituisce: Option[APIGetUserBadgeProgressResponse]
Esempio

getUserBadgeProgressList 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| limit | float64 | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[APIGetUserBadgeProgressListResponse]
Esempio

createUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createUserBadgeParams | CreateUserBadgeParams | No |
Risposta
Restituisce: Option[APICreateUserBadgeResponse]
Esempio

deleteUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIEmptySuccessResponse]
Esempio

getUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[APIGetUserBadgeResponse]
Esempio

getUserBadges 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| badgeId | string | No | |
| displayedOnComments | bool | No | |
| limit | float64 | No | |
| skip | float64 | No |
Risposta
Restituisce: Option[APIGetUserBadgesResponse]
Esempio

updateUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| updateUserBadgeParams | UpdateUserBadgeParams | No |
Risposta
Restituisce: Option[APIEmptySuccessResponse]
Esempio

getUserNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[GetUserNotificationCountResponse]
Esempio

getUserNotifications 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| pageSize | int | No | |
| afterId | string | No | |
| includeContext | bool | No | |
| afterCreatedAt | int64 | No | |
| unreadOnly | bool | No | |
| dmOnly | bool | No | |
| noDm | bool | No | |
| includeTranslations | bool | No | |
| includeTenantNotifications | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[GetMyNotificationsResponse]
Esempio

resetUserNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[ResetUserNotificationsResponse]
Esempio

resetUserNotifications 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| afterCreatedAt | int64 | No | |
| unreadOnly | bool | No | |
| dmOnly | bool | No | |
| noDm | bool | No | |
| sso | string | No |
Risposta
Restituisce: Option[ResetUserNotificationsResponse]
Esempio

updateUserNotificationCommentSubscriptionStatus 
Abilita o disabilita le notifiche per un commento specifico.
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| notificationId | string | No | |
| optedInOrOut | string | No | |
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: Option[UpdateUserNotificationCommentSubscriptionStatusResponse]
Esempio

updateUserNotificationPageSubscriptionStatus 
Abilita o disabilita le notifiche per una pagina. Quando gli utenti sono iscritti a una pagina, vengono create notifiche per nuovi commenti principali, e anche
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| url | string | No | |
| pageTitle | string | No | |
| subscribedOrUnsubscribed | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[UpdateUserNotificationPageSubscriptionStatusResponse]
Esempio

updateUserNotificationStatus 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| notificationId | string | No | |
| newStatus | string | No | |
| sso | string | No |
Risposta
Restituisce: Option[UpdateUserNotificationStatusResponse]
Esempio

getUserPresenceStatuses 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlIdWS | string | No | |
| userIds | string | No |
Risposta
Restituisce: Option[GetUserPresenceStatusesResponse]
Esempio

searchUsers 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| usernameStartsWith | string | No | |
| mentionGroupIds | seq[string] | No | |
| sso | string | No | |
| searchSection | string | No |
Risposta
Restituisce: Option[SearchUsersResult]
Esempio

getUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No |
Risposta
Restituisce: Option[GetUserResponse]
Esempio

createVote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| direction | string | No | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: Option[VoteResponse]
Esempio

deleteVote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | No | |
| editKey | string | No |
Risposta
Restituisce: Option[VoteDeleteResponse]
Esempio

getVotes 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: Option[GetVotesResponse]
Esempio

getVotesForUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: Option[GetVotesForUserResponse]
Esempio

Hai bisogno di aiuto?
Se riscontri problemi o hai domande sul Nim SDK, per favore:
Contribuire
I contributi sono benvenuti! Visita il repository GitHub per le linee guida sui contributi.