
Lingua 🇮🇹 Italiano
Introduzione
Riferimento API
Documentazione
Utilizzo
Aggregazione
Log di audit
Blocca da commento
Controlla commenti bloccati
Commenti
Configurazioni dominio
Modelli email
Registro eventi
Post feed
Segnala commento
Hashtag
Moderatori
Conteggio notifiche
Notifiche
Pagine
Eventi webhook in sospeso
Configurazioni domande
Risultati domande
Aggregazione risultati domande
Utenti SSO
Sottoscrizioni
Utilizzo giornaliero tenant
Pacchetti tenant
Utenti tenant
Tenant
Ticket
Carica immagine
Progresso badge utente
Badge utente
Notifiche utente
Stato presenza utente
Ricerca utenti
Utenti
Voti
FastComments JavaScript/TypeScript SDK
Questo è lo SDK ufficiale JavaScript/TypeScript per FastComments.
SDK ufficiale JavaScript/TypeScript per l'API di FastComments
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 di 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);
}
}
Aggrega 
Aggrega i documenti raggruppandoli (se groupBy è fornito) e applicando più operazioni. Sono supportate diverse operazioni (ad es. sum, countDistinct, avg, ecc.).
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| aggregationRequest | AggregationRequest | Sì | |
| parentTenantId | string | No | |
| includeStats | boolean | No |
Response
Restituisce: AggregationResponse
Ottieni log di audit 
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

Blocca da commento pubblico 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Sì | |
| sso | string | No |
Risposta
Restituisce: BlockFromCommentPublic200Response
Esempio

Sblocca commento pubblico 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Sì | |
| sso | string | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
Esempio

Controlla commenti bloccati 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentIds | string | Sì | |
| sso | string | No |
Risposta
Restituisce: CheckedCommentsForBlocked200Response
Esempio

Blocca utente da commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| blockFromCommentParams | BlockFromCommentParams | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Response
Restituisce: BlockFromCommentPublic200Response
Esempio

Crea commento pubblico 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | Sì | |
| commentData | CommentData | Sì | |
| sessionId | string | No | |
| sso | string | No |
Response
Restituisce: CreateCommentPublic200Response
Esempio

Elimina commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| contextUserId | string | No | |
| isLive | boolean | No |
Risposta
Restituisce: DeleteComment200Response
Esempio

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

Elimina voto commento 
Parametri
| Nome | 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

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

Ottieni commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetComment200Response
Esempio

Ottieni commenti 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| 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 |
Risposta
Restituisce: GetComments200Response
Esempio

Ottieni commenti pubblici 
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

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

Ottieni nomi utenti voto commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| dir | number | Sì | |
| sso | string | No |
Risposta
Restituisce: GetCommentVoteUserNames200Response
Esempio

Blocca commento 
Parametri
| Name | Type | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: LockComment200Response
Esempio

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

Salva commento 
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

Salva commenti in blocco 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | Array |
Yes | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| sendEmails | boolean | No | |
| populateNotifications | boolean | No |
Response
Restituisce: Array<SaveComment200Response
Esempio

Imposta testo commento 
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

Sblocca utente da commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
Esempio

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

Sblocca commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: LockComment200Response
Esempio

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

Aggiorna commento 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updatableCommentParams | UpdatableCommentParams | Sì | |
| contextUserId | string | No | |
| doSpamCheck | boolean | No | |
| isLive | boolean | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Vota commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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

Aggiungi configurazione dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| addDomainConfigParams | AddDomainConfigParams | Sì |
Risposta
Restituisce: AddDomainConfig200Response
Elimina configurazione dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | Sì |
Risposta
Restituisce: DeleteDomainConfig200Response
Ottieni configurazione dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | Sì |
Risposta
Restituisce: GetDomainConfig200Response
Ottieni configurazioni dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetDomainConfigs200Response
Aggiorna parzialmente configurazione dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | Sì | |
| patchDomainConfigParams | PatchDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
Sostituisci configurazione dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | Sì | |
| updateDomainConfigParams | UpdateDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
Crea modello email 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createEmailTemplateBody | CreateEmailTemplateBody | Sì |
Risposta
Restituisce: CreateEmailTemplate200Response
Esempio

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

Elimina errore di rendering modello email 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| errorId | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

Ottieni definizioni modelli email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetEmailTemplateDefinitions200Response
Esempio

Ottieni errori di rendering modelli email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetEmailTemplateRenderErrors200Response
Esempio

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

Esegui rendering modello email 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Sì | |
| locale | string | No |
Risposta
Restituisce: RenderEmailTemplate200Response
Esempio

Aggiorna modello email 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Ottieni registro eventi 
req tenantId urlId userIdWS
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | Sì | |
| startTime | number | Sì | |
| endTime | number | Sì |
Risposta
Restituisce: GetEventLog200Response
Esempio

Ottieni registro eventi globale 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | Sì | |
| startTime | number | Sì | |
| endTime | number | Sì |
Risposta
Restituisce: GetEventLog200Response
Esempio

Crea post feed 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createFeedPostParams | CreateFeedPostParams | Sì | |
| broadcastId | string | No | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| skipDupCheck | boolean | No |
Risposta
Restituisce: CreateFeedPost200Response
Esempio

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

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

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

Ottieni post feed pubblici 
req tenantId afterId
Parametri
| Nome | Tipo | Obbligatorio | 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

Ottieni statistiche post feed 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | Array |
Sì | |
| sso | string | No |
Risposta
Restituisce: GetFeedPostsStats200Response
Esempio

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

Reagisci a post feed pubblico 
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

Aggiorna post feed 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| feedPost | FeedPost | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Aggiorna post feed pubblico 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | Sì | |
| updateFeedPostParams | UpdateFeedPostParams | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: CreateFeedPostPublic200Response
Esempio

Segnala commento pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| isFlagged | boolean | Sì | |
| sso | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Aggiungi hashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | No | |
| createHashTagBody | CreateHashTagBody | No |
Risposta
Restituisce: AddHashTag200Response
Esempio

Aggiungi hashtag in blocco 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | No | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | No |
Risposta
Restituisce: AddHashTagsBulk200Response
Esempio

Elimina hashtag 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | string | Sì | |
| tenantId | string | No | |
| deleteHashTagRequest | DeleteHashTagRequest | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Ottieni hashtag 
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| page | number | No |
Risposta
Restituisce: GetHashTags200Response
Esempio

Aggiorna parzialmente hashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | string | Yes | |
| tenantId | string | No | |
| updateHashTagBody | UpdateHashTagBody | No |
Risposta
Restituisce: PatchHashTag200Response
Esempio

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

Elimina moderatore 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| sendEmail | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Ottieni moderatore 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetModerator200Response
Esempio

Ottieni moderatori 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetModerators200Response
Esempio

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

Aggiorna moderatore 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateModeratorBody | UpdateModeratorBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

Ottieni conteggio notifiche in cache 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetCachedNotificationCount200Response
Esempio

Ottieni conteggio notifiche 
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

Ottieni notifiche 
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

Aggiorna notifica 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateNotificationBody | UpdateNotificationBody | Sì | |
| userId | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Aggiungi pagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIPageData | CreateAPIPageData | Sì |
Risposta
Restituisce: AddPageAPIResponse
Elimina pagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: DeletePageAPIResponse
Ottieni pagina per URL ID 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: GetPageByURLIdAPIResponse
Ottieni pagine 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetPagesAPIResponse
Aggiorna parzialmente pagina 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPIPageData | UpdateAPIPageData | Sì |
Risposta
Restituisce: PatchPageAPIResponse
Elimina evento webhook in sospeso 
Parametri
| Name | Type | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Ottieni conteggio eventi webhook in sospeso 
Parametri
| Name | Tipo | 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

Ottieni eventi webhook in sospeso 
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

Crea configurazione domanda 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createQuestionConfigBody | CreateQuestionConfigBody | Sì |
Risposta
Restituisce: CreateQuestionConfig200Response
Esempio

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

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

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

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

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

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

Ottieni risultato domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetQuestionResult200Response
Esempio

Ottieni risultati domande 
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

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

Aggrega risultati domande 
Parametri
| Nome | Tipo | 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

Aggrega risultati domande in blocco 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Sì | |
| forceRecalculate | boolean | No |
Risposta
Restituisce: BulkAggregateQuestionResults200Response
Esempio

Combina commenti con risultati domande 
Parametri
| Nome | Type | 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

Aggiungi utente SSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPISSOUserData | CreateAPISSOUserData | Sì |
Risposta
Restituisce: AddSSOUserAPIResponse
Elimina utente SSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| deleteComments | boolean | No | |
| commentDeleteMode | string | No |
Risposta
Restituisce: DeleteSSOUserAPIResponse
Ottieni utente SSO per email 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| string | Sì |
Risposta
Restituisce: GetSSOUserByEmailAPIResponse
Ottieni utente SSO per ID 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetSSOUserByIdAPIResponse
Ottieni utenti SSO 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetSSOUsers200Response
Aggiorna parzialmente utente SSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sì | |
| updateComments | boolean | No |
Risposta
Restituisce: PatchSSOUserAPIResponse
Sostituisci utente SSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sì | |
| updateComments | boolean | No |
Risposta
Restituisce: PutSSOUserAPIResponse
Crea sottoscrizione 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Sì |
Risposta
Restituisce: CreateSubscriptionAPIResponse
Esempio

Elimina sottoscrizione 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No |
Risposta
Restituisce: DeleteSubscriptionAPIResponse
Ottieni sottoscrizioni 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No |
Risposta
Restituisce: GetSubscriptionsAPIResponse
Esempio

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

Ottieni utilizzi giornalieri tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| yearNumber | number | No | |
| monthNumber | number | No | |
| dayNumber | number | No | |
| skip | number | No |
Risposta
Restituisce: GetTenantDailyUsages200Response
Esempio

Crea pacchetto tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantPackageBody | CreateTenantPackageBody | Sì |
Risposta
Restituisce: CreateTenantPackage200Response
Esempio

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

Ottieni pacchetto tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetTenantPackage200Response
Esempio

Ottieni pacchetti tenant 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | number | No |
Risposta
Restituisce: GetTenantPackages200Response
Esempio

Sostituisci pacchetto tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Aggiorna pacchetto tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateTenantPackageBody | UpdateTenantPackageBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

Elimina utente tenant 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| deleteComments | string | No | |
| commentDeleteMode | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

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

Sostituisci utente tenant 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| replaceTenantUserBody | ReplaceTenantUserBody | Sì | |
| updateComments | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Invia link di accesso 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| redirectURL | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

Crea tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantBody | CreateTenantBody | Sì |
Risposta
Restituisce: CreateTenant200Response
Esempio

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

Ottieni tenant 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetTenant200Response
Esempio

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

Aggiorna tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateTenantBody | UpdateTenantBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

Cambia stato ticket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì | |
| id | string | Sì | |
| changeTicketStateBody | ChangeTicketStateBody | Sì |
Risposta
Restituisce: ChangeTicketState200Response
Esempio

Crea ticket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì | |
| createTicketBody | CreateTicketBody | Sì |
Risposta
Restituisce: CreateTicket200Response
Esempio

Ottieni ticket 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No |
Risposta
Restituisce: GetTicket200Response
Esempio

Ottieni ticket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| state | number | No | |
| skip | number | No | |
| limit | number | No |
Risposta
Restituisce: GetTickets200Response
Esempio

Carica immagine 
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
Ottieni progresso badge utente per ID 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
Esempio

Ottieni progresso badge utente per ID utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
Esempio

Ottieni lista progresso badge utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| limit | number | No | |
| skip | number | No |
Risposta
Restituisce: GetUserBadgeProgressList200Response
Esempio

Crea badge utente 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createUserBadgeParams | CreateUserBadgeParams | Sì |
Risposta
Restituisce: CreateUserBadge200Response
Esempio

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

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

Ottieni badge utente 
Parametri
| Nome | Tipo | Obbligatorio | 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

Aggiorna badge utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateUserBadgeParams | UpdateUserBadgeParams | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
Esempio

Ottieni conteggio notifiche utente 
Parametri
| Name | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: GetUserNotificationCount200Response
Esempio

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

Reimposta conteggio notifiche utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: ResetUserNotifications200Response
Esempio

Reimposta notifiche utente 
Parameters
| Nome | Tipo | Obbligatorio | 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

Aggiorna stato sottoscrizione commenti notifiche utente 
Abilita o disabilita le notifiche per un commento specifico.
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| notificationId | string | Sì | |
| optedInOrOut | UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum | Sì | |
| commentId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

Aggiorna stato sottoscrizione pagina notifiche utente 
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 | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| url | string | Sì | |
| pageTitle | string | Sì | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Sì | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

Aggiorna stato notifica utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| notificationId | string | Sì | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Sì | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

Ottieni stati presenza utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlIdWS | string | Sì | |
| userIds | string | Sì |
Risposta
Restituisce: GetUserPresenceStatuses200Response
Esempio

Cerca utenti 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| usernameStartsWith | string | No | |
| mentionGroupIds | Array |
No | |
| sso | string | No | |
| searchSection | SearchUsersSearchSectionEnum | No |
Risposta
Restituisce: SearchUsers200Response
Esempio

Ottieni utente 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Risposta
Restituisce: GetUser200Response
Esempio

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

Elimina voto 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| editKey | string | No |
Risposta
Restituisce: DeleteCommentVote200Response
Esempio

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

Ottieni voti per utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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.