
Lingua 🇮🇹 Italiano
Primi passi
Riferimento API
Documentazione
Utilizzo
Aggregazione
Log di audit
Blocca da commento
Verifica commenti bloccati
Commenti
Commenti per utente
Configurazioni dominio
Modelli email
Registro eventi
Post del feed
Segnala commento
GIF
Hashtag
Moderatori
Conteggio notifiche
Notifiche
Reazioni alla pagina
Pagine
Eventi webhook pendenti
Configurazioni domande
Risultati domande
Aggregazione risultati domande
Utenti SSO
Sottoscrizioni
Utilizzo giornaliero tenant
Pacchetti tenant
Utenti tenant
Tenant
Ticket
Traduzioni
Carica immagine
Progresso badge utente
Badge utente
Notifiche utente
Stato presenza utente
Ricerca utenti
Utenti
Voti
SDK JavaScript/TypeScript di FastComments
Questo è l'SDK ufficiale JavaScript/TypeScript per FastComments.
Gestisci commenti, utenti, SSO e moderazione da Node.js o dal browser.
Repository
Documentazione API 
Riferimento completo delle API: docs/api/README.md
Compatibilità Browser e Server 
Questo SDK utilizza due punti di ingresso per garantire la massima compatibilità e prevenire errori a runtime:
fastcomments-sdk/browser- Versione sicura per il browser confetchnativofastcomments-sdk/server- Versione completa per Node.js con supporto SSOfastcomments-sdk(predefinito) - Solo tipi, sicuro da importare ovunque
Utilizzo 
Questo SDK fornisce punti di ingresso separati per gli ambienti browser e server per garantire compatibilità e sicurezza ottimali:
Browser Usage (Client-Side)
Per applicazioni browser/frontend, utilizzare l'export sicuro per il browser che esclude le dipendenze di Node.js:
// Import sicuro per il browser (nessuna dipendenza Node.js)
import { createFastCommentsBrowserSDK } from 'fastcomments-sdk/browser';
// Crea un'istanza dello SDK per il browser
const sdk = createFastCommentsBrowserSDK({
basePath: 'https://fastcomments.com' // opzionale, predefinito https://fastcomments.com
});
// Usa API pubbliche (nessuna API key necessaria - sicuro per i browser)
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Server Usage (Node.js)
Per applicazioni server/backend, utilizzare lo SDK completo con funzionalità SSO e di autenticazione:
// Import lato server (include SSO e progettato per funzionare con NodeJS)
import { createFastCommentsSDK } from 'fastcomments-sdk/server';
// Crea un'istanza dello SDK per il server
const sdk = createFastCommentsSDK({
apiKey: 'your-api-key', // Mantieni questo segreto sul server!
basePath: 'https://fastcomments.com' // opzionale, predefinito https://fastcomments.com
});
// Usa API protette con la tua API key
const comments = await sdk.defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Import Solo Tipi
Se hai bisogno solo dei tipi TypeScript (nessun codice a runtime), utilizza l'importazione di default:
// Solo tipi (nessuna dipendenza runtime - sicuro ovunque)
import type {
PublicComment,
CreateCommentParams,
GetCommentsPublic200Response
} from 'fastcomments-sdk';
Using Individual API Classes
Browser Environment
import { PublicApi, Configuration } from 'fastcomments-sdk/browser';
const config = new Configuration({
basePath: 'https://fastcomments.com'
});
const publicApi = new PublicApi(config);
Server Environment
import { DefaultApi, PublicApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key',
basePath: 'https://fastcomments.com'
});
const defaultApi = new DefaultApi(config);
const publicApi = new PublicApi(config);
API Pubbliche vs Protette 
L'SDK fornisce tre principali classi API:
DefaultApi- Endpoint protetti che richiedono la tua chiave API per l'autenticazione. Usali per operazioni lato server.PublicApi- Endpoint pubblici accessibili senza una chiave API. Possono essere chiamati direttamente da browser/dispositivi mobili/etc.HiddenApi- Endpoint interni/amministrativi per casi d'uso avanzati.
Esempio: Uso della Public API (sicuro per il browser)
import { PublicApi } from 'fastcomments-sdk/browser';
const publicApi = new PublicApi();
// Ottieni i commenti per una pagina (non è richiesta la chiave API)
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Esempio: Uso della Default API (solo lato server)
import { DefaultApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key' // Tienila segreta!
});
const defaultApi = new DefaultApi(config);
// Ottieni i commenti con accesso amministrativo completo
const response = await defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Integrazione SSO (Single Sign-On) 
FastComments supporta SSO per integrarsi con il tuo sistema di autenticazione utenti esistente. La funzionalità SSO è disponibile solo nell'export lato server poiché richiede le funzionalità crypto di Node.js.
SSO semplice (solo lato server)
L'SSO semplice dovrebbe essere generato lato server e inviato al client:
// Codice lato server (Node.js/backend)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Crea SSO semplice usando l'aiuto integrato
const userData = {
username: 'john_doe',
email: 'john@example.com',
displayName: 'John Doe',
avatar: 'https://example.com/avatar.jpg'
};
const sso = FastCommentsSSO.createSimple(userData, {
loginURL: '/login',
logoutURL: '/logout'
});
const ssoToken = sso.createToken();
// Invia ssoToken al codice lato client
// Il codice lato client può quindi usare questo token con lo SDK per browser
SSO sicuro (lato server, raccomandato)
L'SSO sicuro dovrebbe essere implementato lato server e offre maggiore sicurezza:
// Codice lato server (Node.js/backend)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Crea SSO sicuro usando l'aiuto integrato
const userData = {
id: 'user-123',
email: 'john@example.com',
username: 'john_doe',
displayName: 'John Doe',
avatar: 'https://example.com/avatar.jpg',
isAdmin: false,
isModerator: false
};
const sso = FastCommentsSSO.createSecure('your-api-key', userData, {
loginURL: '/login',
logoutURL: '/logout'
});
const ssoConfig = sso.prepareToSend();
// Usalo con chiamate API sul server
const publicApi = new PublicApi();
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
sso: JSON.stringify(ssoConfig)
});
// Oppure invia ssoConfig al client per l'utilizzo nel browser
Utilizzo dell'SSO dal browser (con token generato dal server)
// Codice lato client (browser)
import { PublicApi } from 'fastcomments-sdk/browser';
// Ottieni il token SSO dal tuo endpoint server
const ssoToken = await fetch('/api/sso-token').then(r => r.json());
const publicApi = new PublicApi();
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
sso: ssoToken // Use the server-generated SSO token
});
SSO con creazione di commenti
// Lato server: crea SSO e commento
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
const sso = FastCommentsSSO.createSecure('your-api-key', userData);
const ssoConfig = sso.prepareToSend();
const response = await publicApi.createCommentPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
broadcastId: 'unique-broadcast-id',
commentData: {
comment: 'This is my comment',
date: Date.now(),
commenterName: 'John Doe',
url: 'https://example.com/page',
urlId: 'page-url-id'
},
sso: JSON.stringify(ssoConfig)
});
Casi d'uso comuni 
Ottenere i commenti di una pagina
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'article-123'
});
Creare un commento
const newComment = await sdk.publicApi.createCommentPublic({
createCommentParams: {
tenantId: 'your-tenant-id',
urlId: 'article-123',
comment: 'Great article!',
commenterName: 'John Doe',
commenterEmail: 'john@example.com'
}
});
Votare un commento
const voteResponse = await sdk.publicApi.voteComment({
voteBodyParams: {
commentId: 'comment-id',
direction: 1 // 1 per voto positivo, -1 per voto negativo
}
});
Gestione utenti (Richiede API Key)
// Cerca utenti (richiede DefaultApi)
const users = await sdk.defaultApi.searchUsers({
tenantId: 'your-tenant-id',
urlId: 'page-id',
usernameStartsWith: 'john'
});
Eventi Live (Aggiornamenti in tempo reale) 
Iscriviti agli eventi live per ricevere aggiornamenti in tempo reale su commenti, voti e altre attività.
Eventi a livello di pagina
Ascolta gli eventi live per una pagina specifica (commenti, voti, ecc.):
import { subscribeToChanges, LiveEvent, LiveEventType } from 'fastcomments-sdk/browser';
const config = {
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
};
// Subscribe to live events for a page
const subscription = subscribeToChanges(
config,
'your-tenant-id', // tenantIdWS
'page-url-id', // urlIdWS
'user-session-id', // userIdWS (get this from getComments response)
(event: LiveEvent) => {
console.log('Live event received:', event);
switch (event.type) {
case LiveEventType.new_comment:
console.log('New comment:', event.comment);
// Aggiorna la UI con il nuovo commento
break;
case LiveEventType.new_vote:
console.log('New vote:', event.vote);
// Aggiorna i conteggi dei voti nella tua UI
break;
case LiveEventType.updated_comment:
console.log('Comment updated:', event.comment);
break;
default:
console.log('Other event type:', event.type);
}
return true; // Restituisci true se l'evento è stato gestito
},
(isConnected: boolean) => {
console.log('Connection status:', isConnected ? 'Connected' : 'Disconnected');
}
);
// Close the subscription when done
subscription.close();
Iscriviti agli eventi utente
Ascolta gli eventi specifici dell'utente (notifiche, menzioni, ecc.):
import { subscribeToUserFeed, LiveEvent, LiveEventType } from 'fastcomments-sdk/browser';
const userConfig = {
userIdWS: 'user-session-id', // Get this from getComments response
};
// Subscribe to user's personal feed
const userSubscription = subscribeToUserFeed(
userConfig,
(event: LiveEvent) => {
console.log('User event received:', event);
switch (event.type) {
case LiveEventType.notification:
console.log('New notification:', event.notification);
// Mostra la notifica nella tua UI
break;
case LiveEventType.notification_update:
console.log('Notification updated:', event.notification);
break;
default:
console.log('Other user event:', event.type);
}
return true;
},
(isConnected: boolean) => {
console.log('User feed connection:', isConnected ? 'Connected' : 'Disconnected');
}
);
// Close when done
userSubscription.close();
Ottenere userIdWS
The userIdWS parameter is required for live events and can be obtained from API responses:
const response = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-id'
});
// Extract userIdWS from the response
const userIdWS = response.data?.userSessionInfo?.userIdWS;
if (userIdWS) {
// Now you can subscribe to live events
const subscription = subscribeToChanges(config, tenantIdWS, urlIdWS, userIdWS, handleEvent);
}
ID Broadcast 
Vedrai che dovrai passare un broadcastId in alcune chiamate API. Quando riceverai eventi, ti verrà restituito questo ID, quindi saprai di ignorare l'evento se intendi applicare le modifiche in modo ottimistico sul client (cosa che probabilmente vorrai fare, dato che offre la migliore esperienza). Passa qui un UUID. L'ID dovrebbe essere sufficientemente unico da non verificarsi due volte durante la sessione del browser.
import { v4 as uuidv4 } from 'uuid';
const response = await sdk.publicApi.createCommentPublic({
createCommentParams: {
tenantId: 'your-tenant-id',
urlId: 'page-id',
comment: 'My comment',
broadcastId: uuidv4() // ID univoco per questa operazione
}
});
Gestione degli errori 
try {
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-id'
});
} catch (error) {
if (error.response?.status === 404) {
console.log('Page not found');
} else {
console.error('API Error:', error.message);
}
}
aggregate 
Aggrega i documenti raggruppandoli (se viene fornito groupBy) e applicando più operazioni. Sono supportate diverse operazioni (ad es. sum, countDistinct, avg, ecc.).
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| aggregationRequest | AggregationRequest | Sì | |
| parentTenantId | string | No | |
| includeStats | boolean | No |
Risposta
Restituisce: Aggregate200Response
Esempio

getAuditLogs 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| limit | number | No | |
| skip | number | No | |
| order | SORTDIR | No | |
| after | number | No | |
| before | number | No |
Risposta
Restituisce: GetAuditLogs200Response
Esempio

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

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

checkedCommentsForBlocked 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| commentIds | string | Sì | |
| sso | string | No |
Risposta
Restituisce: CheckedCommentsForBlocked200Response
Esempio

blockUserFromComment 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| blockFromCommentParams | BlockFromCommentParams | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: BlockFromCommentPublic200Response
Esempio

createCommentPublic 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | Sì | |
| commentData | CommentData | Sì | |
| sessionId | string | No | |
| sso | string | No |
Risposta
Restituisce: CreateCommentPublic200Response
Esempio

deleteComment 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| contextUserId | string | No | |
| isLive | boolean | No |
Risposta
Restituisce: DeleteComment200Response
Esempio

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

deleteCommentVote 
Parametri
| Name | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| voteId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | Sì | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: DeleteCommentVote200Response
Esempio

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

getComment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetComment200Response
Esempio

getComments 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| page | number | No | |
| limit | number | No | |
| skip | number | No | |
| asTree | boolean | No | |
| skipChildren | number | No | |
| limitChildren | number | No | |
| maxTreeDepth | number | No | |
| urlId | string | No | |
| userId | string | No | |
| anonUserId | string | No | |
| contextUserId | string | No | |
| hashTag | string | No | |
| parentId | string | No | |
| direction | SortDirections | No | |
| fromDate | number | No | |
| toDate | number | No |
Risposta
Restituisce: GetComments200Response
Esempio

getCommentsPublic 
req tenantId urlId
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| page | number | No | |
| direction | SortDirections | No | |
| sso | string | No | |
| skip | number | No | |
| skipChildren | number | No | |
| limit | number | No | |
| limitChildren | number | No | |
| countChildren | boolean | No | |
| fetchPageForCommentId | string | No | |
| includeConfig | boolean | No | |
| countAll | boolean | No | |
| includei10n | boolean | No | |
| locale | string | No | |
| modules | string | No | |
| isCrawler | boolean | No | |
| includeNotificationCount | boolean | No | |
| asTree | boolean | No | |
| maxTreeDepth | number | No | |
| useFullTranslationIds | boolean | No | |
| parentId | string | No | |
| searchText | string | No | |
| hashTags | Array | No | |
| userId | string | No | |
| customConfigStr | string | No | |
| afterCommentId | string | No | |
| beforeCommentId | string | No |
Risposta
Restituisce: GetCommentsPublic200Response
Esempio

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

getCommentVoteUserNames 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| dir | number | Sì | |
| sso | string | No |
Risposta
Restituisce: GetCommentVoteUserNames200Response
Esempio

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

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

saveComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createCommentParams | CreateCommentParams | Sì | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| sendEmails | boolean | No | |
| populateNotifications | boolean | No |
Risposta
Restituisce: SaveComment200Response
Esempio

saveCommentsBulk 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createCommentParams | Array | Sì | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| sendEmails | boolean | No | |
| populateNotifications | boolean | No |
Risposta
Restituisce: Array<SaveComment200Response
Esempio

setCommentText 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Sì | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: SetCommentText200Response
Esempio

unBlockUserFromComment 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
Esempio

unFlagComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: FlagComment200Response
Esempio

unLockComment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: LockComment200Response
Esempio

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

updateComment 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updatableCommentParams | UpdatableCommentParams | Sì | |
| contextUserId | string | No | |
| doSpamCheck | boolean | No | |
| isLive | boolean | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

voteComment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | Sì | |
| voteBodyParams | VoteBodyParams | Sì | |
| sessionId | string | No | |
| sso | string | No |
Risposta
Restituisce: VoteComment200Response
Esempio

getCommentsForUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| userId | string | No | |
| direction | SortDirections | No | |
| repliesToUserId | string | No | |
| page | number | No | |
| includei10n | boolean | No | |
| locale | string | No | |
| isCrawler | boolean | No |
Risposta
Restituisce: GetCommentsForUser200Response
Esempio

addDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| addDomainConfigParams | AddDomainConfigParams | Sì |
Risposta
Restituisce: AddDomainConfig200Response
deleteDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | Sì |
Risposta
Restituisce: DeleteDomainConfig200Response
getDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | Sì |
Risposta
Restituisce: GetDomainConfig200Response
getDomainConfigs 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetDomainConfigs200Response
patchDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | Sì | |
| patchDomainConfigParams | PatchDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
putDomainConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | Sì | |
| updateDomainConfigParams | UpdateDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
createEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createEmailTemplateBody | CreateEmailTemplateBody | Sì |
Risposta
Restituisce: CreateEmailTemplate200Response
Esempio

deleteEmailTemplate 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

deleteEmailTemplateRenderError 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| errorId | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getEmailTemplate 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetEmailTemplate200Response
Esempio

getEmailTemplateDefinitions 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetEmailTemplateDefinitions200Response
Esempio

getEmailTemplateRenderErrors 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetEmailTemplateRenderErrors200Response
Esempio

getEmailTemplates 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetEmailTemplates200Response
Esempio

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

updateEmailTemplate 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getEventLog 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | Sì | |
| startTime | number | Sì | |
| endTime | number | No |
Risposta
Restituisce: GetEventLog200Response
Esempio

getGlobalEventLog 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | Sì | |
| startTime | number | Sì | |
| endTime | number | No |
Risposta
Restituisce: GetEventLog200Response
Esempio

createFeedPost 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createFeedPostParams | CreateFeedPostParams | Sì | |
| broadcastId | string | No | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| skipDupCheck | boolean | No |
Risposta
Restituisce: CreateFeedPost200Response
Esempio

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

deleteFeedPostPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: DeleteFeedPostPublic200Response
Esempio

getFeedPosts 
req tenantId afterId
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| limit | number | No | |
| tags | Array | No |
Risposta
Restituisce: GetFeedPosts200Response
Esempio

getFeedPostsPublic 
req tenantId afterId
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| limit | number | No | |
| tags | Array | No | |
| sso | string | No | |
| isCrawler | boolean | No | |
| includeUserInfo | boolean | No |
Risposta
Restituisce: GetFeedPostsPublic200Response
Esempio

getFeedPostsStats 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | Array | Sì | |
| sso | string | No |
Risposta
Restituisce: GetFeedPostsStats200Response
Esempio

getUserReactsPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | Array | No | |
| sso | string | No |
Risposta
Restituisce: GetUserReactsPublic200Response
Esempio

reactFeedPostPublic 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | Sì | |
| reactBodyParams | ReactBodyParams | Sì | |
| isUndo | boolean | No | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: ReactFeedPostPublic200Response
Esempio

updateFeedPost 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| feedPost | FeedPost | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

flagCommentPublic 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| isFlagged | boolean | Sì | |
| sso | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getGifLarge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| largeInternalURLSanitized | string | Sì |
Risposta
Restituisce: GetGifLarge200Response
Esempio

getGifsSearch 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| search | string | Sì | |
| locale | string | No | |
| rating | string | No | |
| page | number | No |
Risposta
Restituisce: GetGifsSearch200Response
Esempio

getGifsTrending 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| locale | string | No | |
| rating | string | No | |
| page | number | No |
Risposta
Restituisce: GetGifsTrending200Response
Esempio

addHashTag 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | No | |
| createHashTagBody | CreateHashTagBody | No |
Risposta
Restituisce: AddHashTag200Response
Esempio

addHashTagsBulk 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | No | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | No |
Risposta
Restituisce: AddHashTagsBulk200Response
Esempio

deleteHashTag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | string | Sì | |
| tenantId | string | No | |
| deleteHashTagRequest | DeleteHashTagRequest | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getHashTags 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| page | number | No |
Risposta
Restituisce: GetHashTags200Response
Esempio

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

createModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createModeratorBody | CreateModeratorBody | Sì |
Risposta
Restituisce: CreateModerator200Response
Esempio

deleteModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| sendEmail | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetModerator200Response
Esempio

getModerators 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetModerators200Response
Esempio

sendInvite 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| fromName | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

updateModerator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateModeratorBody | UpdateModeratorBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

deleteNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getCachedNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetCachedNotificationCount200Response
Esempio

getNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| urlId | string | No | |
| fromCommentId | string | No | |
| viewed | boolean | No | |
| type | string | No |
Risposta
Restituisce: GetNotificationCount200Response
Esempio

getNotifications 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| urlId | string | No | |
| fromCommentId | string | No | |
| viewed | boolean | No | |
| type | string | No | |
| skip | number | No |
Risposta
Restituisce: GetNotifications200Response
Esempio

updateNotification 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateNotificationBody | UpdateNotificationBody | Sì | |
| userId | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

createV1PageReact 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| title | string | No |
Risposta
Restituisce: CreateV1PageReact200Response
Esempio

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

deleteV1PageReact 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: DeleteV1PageReact200Response
Esempio

deleteV2PageReact 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: DeleteV2PageReact200Response
Esempio

getV1PageLikes 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: GetV1PageLikes200Response
Esempio

getV2PageReacts 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: GetV2PageReacts200Response
Esempio

getV2PageReactUsers 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetV2PageReactUsers200Response
Esempio

addPage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIPageData | CreateAPIPageData | Sì |
Risposta
Restituisce: AddPageAPIResponse
deletePage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: DeletePageAPIResponse
getOfflineUsers 
Commentatori precedenti sulla pagina che NON sono attualmente online. Ordinati per displayName. Usa questo dopo aver esaurito /users/online per mostrare una sezione "Membri". Paginazione con cursore su commenterName: il server scorre l'indice parziale {tenantId, urlId, commenterName} da afterName in avanti usando $gt, senza costo $skip.
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| afterName | string | No | |
| afterUserId | string | No |
Risposta
Restituisce: GetOfflineUsers200Response
Esempio

getOnlineUsers 
Attualmente gli spettatori online di una pagina: persone la cui sessione websocket è iscritta alla pagina in questo momento. Restituisce anonCount + totalCount (iscritti alla stanza in generale, inclusi spettatori anonimi che non elenchiamo).
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| afterName | string | No | |
| afterUserId | string | No |
Risposta
Restituisce: GetOnlineUsers200Response
Esempio

getPageByURLId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: GetPageByURLIdAPIResponse
getPages 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetPagesAPIResponse
getPagesPublic 
Elenca le pagine per un tenant. Utilizzato dal client desktop FChat per popolare la lista delle sue stanze.
Richiede che enableFChat sia true nella configurazione personalizzata risolta per ogni pagina.
Le pagine che richiedono SSO vengono filtrate in base ai gruppi di accesso dell'utente che effettua la richiesta.
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| cursor | string | No | |
| limit | number | No | |
| q | string | No | |
| sortBy | PagesSortBy | No | |
| hasComments | boolean | No |
Risposta
Restituisce: GetPagesPublic200Response
Esempio

getUsersInfo 
Informazioni utente in blocco per un tenant. Dati i userIds, restituisce le informazioni di visualizzazione da User / SSOUser. Utilizzato dal widget dei commenti per arricchire gli utenti appena apparsi tramite un evento di presenza. Nessun contesto di pagina: la privacy viene applicata in modo uniforme (i profili privati sono mascherati).
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| ids | string | Sì |
Risposta
Restituisce: GetUsersInfo200Response
Esempio

patchPage 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPIPageData | UpdateAPIPageData | Sì |
Risposta
Restituisce: PatchPageAPIResponse
deletePendingWebhookEvent 
Parametri
| Name | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getPendingWebhookEventCount 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | No | |
| externalId | string | No | |
| eventType | string | No | |
| type | string | No | |
| domain | string | No | |
| attemptCountGT | number | No |
Risposta
Restituisce: GetPendingWebhookEventCount200Response
Esempio

getPendingWebhookEvents 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | No | |
| externalId | string | No | |
| eventType | string | No | |
| type | string | No | |
| domain | string | No | |
| attemptCountGT | number | No | |
| skip | number | No |
Risposta
Restituisce: GetPendingWebhookEvents200Response
Esempio

createQuestionConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createQuestionConfigBody | CreateQuestionConfigBody | Sì |
Risposta
Restituisce: CreateQuestionConfig200Response
Esempio

deleteQuestionConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getQuestionConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetQuestionConfig200Response
Esempio

getQuestionConfigs 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetQuestionConfigs200Response
Esempio

updateQuestionConfig 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

createQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createQuestionResultBody | CreateQuestionResultBody | Sì |
Risposta
Restituisce: CreateQuestionResult200Response
Esempio

deleteQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getQuestionResult 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetQuestionResult200Response
Esempio

getQuestionResults 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | No | |
| userId | string | No | |
| startDate | string | No | |
| questionId | string | No | |
| questionIds | string | No | |
| skip | number | No |
Risposta
Restituisce: GetQuestionResults200Response
Esempio

updateQuestionResult 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateQuestionResultBody | UpdateQuestionResultBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggregateQuestionResults 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| questionId | string | No | |
| questionIds | Array | No | |
| urlId | string | No | |
| timeBucket | AggregateTimeBucket | No | |
| startDate | Date | No | |
| forceRecalculate | boolean | No |
Risposta
Restituisce: AggregateQuestionResults200Response
Esempio

bulkAggregateQuestionResults 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Sì | |
| forceRecalculate | boolean | No |
Response
Restituisce: BulkAggregateQuestionResults200Response
Esempio

combineCommentsWithQuestionResults 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| questionId | string | No | |
| questionIds | Array | No | |
| urlId | string | No | |
| startDate | Date | No | |
| forceRecalculate | boolean | No | |
| minValue | number | No | |
| maxValue | number | No | |
| limit | number | No |
Risposta
Restituisce: CombineCommentsWithQuestionResults200Response
Esempio

addSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPISSOUserData | CreateAPISSOUserData | Sì |
Risposta
Restituisce: AddSSOUserAPIResponse
deleteSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| deleteComments | boolean | No | |
| commentDeleteMode | string | No |
Risposta
Restituisce: DeleteSSOUserAPIResponse
getSSOUserByEmail 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| string | Sì |
Risposta
Restituisce: GetSSOUserByEmailAPIResponse
getSSOUserById 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetSSOUserByIdAPIResponse
getSSOUsers 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetSSOUsers200Response
patchSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sì | |
| updateComments | boolean | No |
Risposta
Restituisce: PatchSSOUserAPIResponse
putSSOUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sì | |
| updateComments | boolean | No |
Risposta
Restituisce: PutSSOUserAPIResponse
Esempio

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

deleteSubscription 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No |
Risposta
Restituisce: DeleteSubscriptionAPIResponse
getSubscriptions 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No |
Risposta
Restituisce: GetSubscriptionsAPIResponse
Esempio

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

getTenantDailyUsages 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| yearNumber | number | No | |
| monthNumber | number | No | |
| dayNumber | number | No | |
| skip | number | No |
Risposta
Restituisce: GetTenantDailyUsages200Response
Esempio

createTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantPackageBody | CreateTenantPackageBody | Sì |
Risposta
Restituisce: CreateTenantPackage200Response
Esempio

deleteTenantPackage 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetTenantPackage200Response
Esempio

getTenantPackages 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetTenantPackages200Response
Esempio

replaceTenantPackage 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

updateTenantPackage 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateTenantPackageBody | UpdateTenantPackageBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

createTenantUser 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantUserBody | CreateTenantUserBody | Sì |
Risposta
Restituisce: CreateTenantUser200Response
Esempio

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

getTenantUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetTenantUser200Response
Esempio

getTenantUsers 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetTenantUsers200Response
Esempio

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

sendLoginLink 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| redirectURL | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

createTenant 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantBody | CreateTenantBody | Sì |
Risposta
Restituisce: CreateTenant200Response
Esempio

deleteTenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| sure | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

getTenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Risposta
Restituisce: GetTenant200Response
Esempio

getTenants 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| meta | string | No | |
| skip | number | No |
Risposta
Restituisce: GetTenants200Response
Esempio

updateTenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateTenantBody | UpdateTenantBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

changeTicketState 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì | |
| id | string | Sì | |
| changeTicketStateBody | ChangeTicketStateBody | Sì |
Risposta
Restituisce: ChangeTicketState200Response
Esempio

createTicket 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì | |
| createTicketBody | CreateTicketBody | Sì |
Risposta
Restituisce: CreateTicket200Response
Esempio

getTicket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No |
Risposta
Restituisce: GetTicket200Response
Esempio

getTickets 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| state | number | No | |
| skip | number | No | |
| limit | number | No |
Risposta
Restituisce: GetTickets200Response
Esempio

getTranslations 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| namespace | string | Sì | |
| component | string | Sì | |
| locale | string | No | |
| useFullTranslationIds | boolean | No |
Risposta
Restituisce: GetTranslations200Response
Esempio

uploadImage 
Carica e ridimensiona un'immagine
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| file | Blob | Sì | |
| sizePreset | SizePreset | No | |
| urlId | string | No |
Risposta
Restituisce: UploadImageResponse
getUserBadgeProgressById 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
Esempio

getUserBadgeProgressByUserId 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
Esempio

getUserBadgeProgressList 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| limit | number | No | |
| skip | number | No |
Risposta
Restituisce: GetUserBadgeProgressList200Response
Esempio

createUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createUserBadgeParams | CreateUserBadgeParams | Sì |
Risposta
Restituisce: CreateUserBadge200Response
Esempio

deleteUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
Esempio

getUserBadge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUserBadge200Response
Esempio

getUserBadges 
Parametri
| Nome | Type | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| badgeId | string | No | |
| type | number | No | |
| displayedOnComments | boolean | No | |
| limit | number | No | |
| skip | number | No |
Risposta
Restituisce: GetUserBadges200Response
Esempio

updateUserBadge 
Parametri
| Name | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateUserBadgeParams | UpdateUserBadgeParams | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
Esempio

getUserNotificationCount 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: GetUserNotificationCount200Response
Esempio

getUserNotifications 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | No | |
| pageSize | number | No | |
| afterId | string | No | |
| includeContext | boolean | No | |
| afterCreatedAt | number | No | |
| unreadOnly | boolean | No | |
| dmOnly | boolean | No | |
| noDm | boolean | No | |
| includeTranslations | boolean | No | |
| includeTenantNotifications | boolean | No | |
| sso | string | No |
Risposta
Restituisce: GetUserNotifications200Response
Esempio

resetUserNotificationCount 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: ResetUserNotifications200Response
Esempio

resetUserNotifications 
Parametri
| Nome | Type | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| afterCreatedAt | number | No | |
| unreadOnly | boolean | No | |
| dmOnly | boolean | No | |
| noDm | boolean | No | |
| sso | string | No |
Risposta
Restituisce: ResetUserNotifications200Response
Esempio

updateUserNotificationCommentSubscriptionStatus 
Abilita o disabilita le notifiche per un commento specifico.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | Yes | |
| optedInOrOut | UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum | Yes | |
| commentId | string | Yes | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

updateUserNotificationPageSubscriptionStatus 
Abilita o disabilita le notifiche per una pagina. Quando gli utenti sono iscritti a una pagina, vengono create notifiche per i nuovi commenti principali, e anche
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| url | string | Sì | |
| pageTitle | string | Sì | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Sì | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

updateUserNotificationStatus 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| notificationId | string | Sì | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Sì | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

getUserPresenceStatuses 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlIdWS | string | Sì | |
| userIds | string | Sì |
Risposta
Restituisce: GetUserPresenceStatuses200Response
Esempio

searchUsers 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| usernameStartsWith | string | No | |
| mentionGroupIds | Array | No | |
| sso | string | No | |
| searchSection | SearchUsersSearchSectionEnum | No |
Risposta
Restituisce: SearchUsers200Response
Esempio

getUser 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUser200Response
Esempio

createVote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| direction | CreateVoteDirectionEnum | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: VoteComment200Response
Esempio

deleteVote 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| editKey | string | No |
Risposta
Restituisce: DeleteCommentVote200Response
Esempio

getVotes 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: GetVotes200Response
Esempio

getVotesForUser 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: GetVotesForUser200Response
Esempio

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