
Lingua 🇮🇹 Italiano
Primi passi
Riferimento API
Documentazione
Utilizzo
Aggregazione
Log di Audit
Blocca dal commento
Controlla commenti bloccati
Commenti
Configurazioni dominio
Template email
Log eventi
Post del feed
Segnala commento
Hashtag
Moderatori
Conteggio notifiche
Notifiche
Pagine
Eventi webhook in sospeso
Configurazioni domande
Risultati domande
Aggregazione risultati domande
Utenti SSO
Abbonamenti
Utilizzo giornaliero tenant
Pacchetti tenant
Utenti tenant
Tenant
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 vs 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);
}
}
aggregare 
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
ottieniLogAudit 
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
bloccaDaCommentoPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Sì | |
| sso | string | No |
Risposta
Restituisce: BlockFromCommentPublic200Response
sbloccaCommentoPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Sì | |
| sso | string | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
controllaCommentiBloccati 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentIds | string | Sì | |
| sso | string | No |
Risposta
Restituisce: CheckedCommentsForBlocked200Response
bloccaUtenteDaCommento 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| blockFromCommentParams | BlockFromCommentParams | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: BlockFromCommentPublic200Response
creaCommentoPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| broadcastId | string | Sì | |
| commentData | CommentData | Sì | |
| sessionId | string | No | |
| sso | string | No |
Risposta
Restituisce: CreateCommentPublic200Response
eliminaCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| contextUserId | string | No | |
| isLive | boolean | No |
Risposta
Restituisce: DeleteComment200Response
eliminaCommentoPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: DeleteCommentPublic200Response
eliminaVotoCommento 
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
segnalaCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: FlagComment200Response
ottieniCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetComment200Response
ottieniCommenti 
Parametri
| Name | Type | 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 |
Risposta
Restituisce: GetComments200Response
ottieniCommentiPubblici 
req tenantId urlId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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
ottieniTestoCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: GetCommentText200Response
ottieniNomiUtentiVotoCommento 
Parametri
| Nome | Type | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| dir | number | Sì | |
| sso | string | No |
Risposta
Restituisce: GetCommentVoteUserNames200Response
bloccaCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: LockComment200Response
fissaCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: PinComment200Response
salvaCommento 
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
salvaCommentiInBlocco 
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
impostaTestoCommento 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Sì | |
| editKey | string | No | |
| sso | string | No |
Risposta
Restituisce: SetCommentText200Response
sbloccaUtenteDaCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
rimuoviSegnalazioneCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No | |
| anonUserId | string | No |
Risposta
Restituisce: FlagComment200Response
sbloccaCommento 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: LockComment200Response
rimuoviPinCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| broadcastId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: PinComment200Response
aggiornaCommento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| body | PickAPICommentUpdatableCommentFields | Sì | |
| contextUserId | string | No | |
| doSpamCheck | boolean | No | |
| isLive | boolean | No |
Risposta
Restituisce: FlagCommentPublic200Response
votaCommento 
Parametri
| Name | Type | 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
aggiungiConfigurazioneDominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| addDomainConfigParams | AddDomainConfigParams | Sì |
Risposta
Restituisce: AddDomainConfig200Response
eliminaConfigurazioneDominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | Sì |
Risposta
Restituisce: DeleteDomainConfig200Response
ottieniConfigurazioneDominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domain | string | Sì |
Risposta
Restituisce: GetDomainConfig200Response
ottieniConfigurazioniDominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetDomainConfigs200Response
modificaParzialeConfigurazioneDominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | Sì | |
| patchDomainConfigParams | PatchDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
sostituisciConfigurazioneDominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| domainToUpdate | string | Sì | |
| updateDomainConfigParams | UpdateDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
creaTemplateEmail 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createEmailTemplateBody | CreateEmailTemplateBody | Sì |
Risposta
Restituisce: CreateEmailTemplate200Response
Esempio

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

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

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

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

ottieniErroriRenderingTemplateEmail 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetEmailTemplateRenderErrors200Response
Esempio

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

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

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

ottieniLogEventi 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| userIdWS | string | Sì | |
| startTime | number | Sì | |
| endTime | number | Sì |
Risposta
Restituisce: GetEventLog200Response
ottieniLogEventiGlobali 
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
creaFeedPost 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createFeedPostParams | CreateFeedPostParams | Sì | |
| broadcastId | string | No | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| skipDupCheck | boolean | No |
Risposta
Restituisce: CreateFeedPost200Response
creaFeedPostPubblico 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createFeedPostParams | CreateFeedPostParams | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: CreateFeedPostPublic200Response
eliminaFeedPostPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: DeleteFeedPostPublic200Response
ottieniFeedPost 
req tenantId afterId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| afterId | string | No | |
| limit | number | No | |
| tags | Array |
No |
Risposta
Restituisce: GetFeedPosts200Response
ottieniFeedPostPubblici 
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
ottieniStatisticheFeedPost 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | Array |
Sì | |
| sso | string | No |
Risposta
Restituisce: GetFeedPostsStats200Response
ottieniReazioniUtentePubbliche 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postIds | Array |
No | |
| sso | string | No |
Risposta
Restituisce: GetUserReactsPublic200Response
reagisciFeedPostPubblico 
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
aggiornaFeedPost 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| feedPost | FeedPost | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
aggiornaFeedPostPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| postId | string | Sì | |
| updateFeedPostParams | UpdateFeedPostParams | Sì | |
| broadcastId | string | No | |
| sso | string | No |
Risposta
Restituisce: CreateFeedPostPublic200Response
segnalaCommentoPubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| commentId | string | Sì | |
| isFlagged | boolean | Sì | |
| sso | string | No |
Risposta
Restituisce: FlagCommentPublic200Response
aggiungiHashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | No | |
| createHashTagBody | CreateHashTagBody | No |
Risposta
Restituisce: AddHashTag200Response
Esempio

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

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

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

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

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

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

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

ottieniModeratori 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | number | No |
Risposta
Restituisce: GetModerators200Response
Esempio

inviaInvito 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| fromName | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

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

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

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

ottieniConteggioNotifiche 
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

ottieniNotifiche 
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

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

aggiungiPagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIPageData | CreateAPIPageData | Sì |
Risposta
Restituisce: AddPageAPIResponse
eliminaPagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: DeletePageAPIResponse
ottieniPaginaPerURLId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì |
Risposta
Restituisce: GetPageByURLIdAPIResponse
ottieniPagine 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì |
Risposta
Restituisce: GetPagesAPIResponse
modificaParzialePagina 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPIPageData | UpdateAPIPageData | Sì |
Risposta
Restituisce: PatchPageAPIResponse
eliminaEventoWebhookInSospeso 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieniConteggioEventiWebhookInSospeso 
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

ottieniEventiWebhookInSospeso 
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

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

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

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

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

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

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

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

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

ottieniRisultatiDomanda 
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

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

aggregazioneRisultatiDomanda 
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
aggregazioneInBloccoRisultatiDomanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Sì | |
| forceRecalculate | boolean | No |
Risposta
Restituisce: BulkAggregateQuestionResults200Response
combinaCommentiConRisultatiDomanda 
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
aggiungiUtenteSSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPISSOUserData | CreateAPISSOUserData | Sì |
Risposta
Restituisce: AddSSOUserAPIResponse
eliminaUtenteSSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| deleteComments | boolean | No | |
| commentDeleteMode | string | No |
Risposta
Restituisce: DeleteSSOUserAPIResponse
ottieniUtenteSSOPerEmail 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| string | Sì |
Risposta
Restituisce: GetSSOUserByEmailAPIResponse
ottieniUtenteSSOPerId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetSSOUserByIdAPIResponse
ottieniUtentiSSO 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| skip | number | No |
Risposta
Restituisce: GetSSOUsers200Response
modificaParzialeUtenteSSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sì | |
| updateComments | boolean | No |
Risposta
Restituisce: PatchSSOUserAPIResponse
sostituisciUtenteSSO 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sì | |
| updateComments | boolean | No |
Risposta
Restituisce: PutSSOUserAPIResponse
creaAbbonamento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Sì |
Risposta
Restituisce: CreateSubscriptionAPIResponse
eliminaAbbonamento 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| userId | string | No |
Risposta
Restituisce: DeleteSubscriptionAPIResponse
ottieniAbbonamenti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No |
Risposta
Restituisce: GetSubscriptionsAPIResponse
ottieniUtilizziGiornalieriTenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Yes | |
| yearNumber | number | No | |
| monthNumber | number | No | |
| dayNumber | number | No | |
| skip | number | No |
Risposta
Restituisce: GetTenantDailyUsages200Response
Esempio

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

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

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

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

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

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

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

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

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

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

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

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

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

creaTenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| createTenantBody | CreateTenantBody | Sì |
Risposta
Restituisce: CreateTenant200Response
Esempio

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

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

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

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

caricaImmagine 
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
ottieniProgressoBadgeUtentePerId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
ottieniProgressoBadgeUtentePerUserId 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
ottieniListaProgressoBadgeUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| userId | string | No | |
| limit | number | No | |
| skip | number | No |
Risposta
Restituisce: GetUserBadgeProgressList200Response
creaBadgeUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| createUserBadgeParams | CreateUserBadgeParams | Sì |
Risposta
Restituisce: CreateUserBadge200Response
eliminaBadgeUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
ottieniBadgeUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUserBadge200Response
ottieniBadgeUtenti 
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
aggiornaBadgeUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì | |
| updateUserBadgeParams | UpdateUserBadgeParams | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
ottieniConteggioNotificheUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: GetUserNotificationCount200Response
ottieniNotificheUtente 
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
resettaConteggioNotificheUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| sso | string | No |
Risposta
Restituisce: ResetUserNotifications200Response
resettaNotificheUtente 
Parametri
| 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
aggiornaStatoIscrizioneCommentiNotificheUtente 
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
aggiornaStatoIscrizionePagineNotificheUtente 
Abilita o disabilita le notifiche per una pagina. Quando gli utenti sono iscritti a una pagina, vengono create notifiche per nuovi commenti di primo livello, 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
aggiornaStatoNotificheUtente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| notificationId | string | Sì | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Sì | |
| sso | string | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
ottieniStatiPresenzaUtenti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlIdWS | string | Sì | |
| userIds | string | Sì |
Risposta
Restituisce: GetUserPresenceStatuses200Response
cercaUtenti 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenantId | string | Sì | |
| urlId | string | Sì | |
| usernameStartsWith | string | Sì | |
| mentionGroupIds | Array |
No | |
| sso | string | No |
Risposta
Restituisce: SearchUsers200Response
ottieniUtente 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sì | |
| id | string | Sì |
Risposta
Restituisce: GetUser200Response
Esempio

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

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

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

ottieniVotiPerUtente 
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.