
Langue 🇫🇷 Français (France)
Prise en main
Référence de l'API
Documentation
Utilisation
Agrégation
Journaux d'audit
Blocage de commentaire
Vérifier les commentaires bloqués
Commentaires
Commentaires pour l'utilisateur
Configurations de domaine
Modèles d'e-mails
Journal d'événements
Publications
Signalement de commentaire
Gifs
Hashtags
Modérateurs
Nombre de notifications
Notifications
Réactions de page
Pages
Événements Webhook en attente
Configurations de question
Résultats de question
Agrégation des résultats de question
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Packages du locataire
Utilisateurs du locataire
Locataires
Tickets
Traductions
Importer une image
Progression du badge utilisateur
Badges utilisateur
Notifications utilisateur
Statuts de présence utilisateur
Recherche d'utilisateurs
Utilisateurs
Votes
SDK JavaScript/TypeScript FastComments
Ceci est le SDK officiel JavaScript/TypeScript pour FastComments.
Gérez les commentaires, les utilisateurs, le SSO et la modération depuis Node.js ou le navigateur.
Dépôt
API Documentation 
Référence complète de l'API: docs/api/README.md
Browser vs Server Compatibility 
Ce SDK utilise des points d'entrée doubles pour garantir une compatibilité optimale et éviter les erreurs d'exécution :
fastcomments-sdk/browser- Version sécurisée pour les navigateurs avecfetchnatiffastcomments-sdk/server- Version complète pour Node.js avec prise en charge du SSOfastcomments-sdk(par défaut) - Contient uniquement des types, sûr à importer n'importe où
Usage 
Ce SDK fournit des points d'entrée distincts pour les environnements navigateur et serveur afin d'assurer une compatibilité et une sécurité optimales :
Utilisation dans le navigateur (côté client)
Pour les applications front-end/navigateurs, utilisez l'export sécurisé pour le navigateur qui exclut les dépendances Node.js :
// Import sécurisé pour le navigateur (sans dépendances Node.js)
import { createFastCommentsBrowserSDK } from 'fastcomments-sdk/browser';
// Créer une instance du SDK pour le navigateur
const sdk = createFastCommentsBrowserSDK({
basePath: 'https://fastcomments.com' // optionnel, valeur par défaut : https://fastcomments.com
});
// Utiliser les API publiques (pas de clé API nécessaire - sûr pour les navigateurs)
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Utilisation côté serveur (Node.js)
Pour les applications serveur/back-end, utilisez le SDK complet avec les fonctionnalités SSO et d'authentification :
// Import côté serveur (inclut SSO et conçu pour fonctionner avec NodeJS)
import { createFastCommentsSDK } from 'fastcomments-sdk/server';
// Créer une instance du SDK pour le serveur
const sdk = createFastCommentsSDK({
apiKey: 'your-api-key', // Gardez ceci secret sur le serveur !
basePath: 'https://fastcomments.com' // optionnel, valeur par défaut : https://fastcomments.com
});
// Utiliser les API sécurisées avec votre clé API
const comments = await sdk.defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Import de types uniquement
Si vous avez seulement besoin des types TypeScript (aucun code d'exécution), utilisez l'import par défaut :
// Types uniquement (aucune dépendance d'exécution - sûr partout)
import type {
PublicComment,
CreateCommentParams,
GetCommentsPublic200Response
} from 'fastcomments-sdk';
Utilisation des classes d'API individuelles
Environnement navigateur
import { PublicApi, Configuration } from 'fastcomments-sdk/browser';
const config = new Configuration({
basePath: 'https://fastcomments.com'
});
const publicApi = new PublicApi(config);
Environnement serveur
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);
Public vs Secured APIs 
Le SDK fournit trois classes d'API principales :
DefaultApi- Points de terminaison sécurisés qui nécessitent votre clé API pour l'authentification. Utilisez-les pour les opérations côté serveur.PublicApi- Points de terminaison publics accessibles sans clé API. Ils peuvent être appelés directement depuis des navigateurs, appareils mobiles, etc.HiddenApi- Points de terminaison internes/admin pour des cas d'utilisation avancés.
Exemple : Utilisation de l'API publique (adaptée au navigateur)
import { PublicApi } from 'fastcomments-sdk/browser';
const publicApi = new PublicApi();
// Récupérer les commentaires d'une page (pas de clé API requise)
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Exemple : Utilisation de l'API par défaut (côté serveur uniquement)
import { DefaultApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key' // À garder secret !
});
const defaultApi = new DefaultApi(config);
// Récupérer les commentaires avec un accès administrateur complet
const response = await defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
SSO (Single Sign-On) Integration 
FastComments prend en charge le SSO pour s'intégrer à votre système d'authentification utilisateur existant. La fonctionnalité SSO n'est disponible que dans l'export côté serveur car elle nécessite les fonctionnalités crypto de Node.js.
SSO simple (côté serveur uniquement)
Le SSO simple doit être généré côté serveur et envoyé au client :
// Code côté serveur (Node.js/backend)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Créez un SSO simple en utilisant l'assistant intégré
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();
// Envoyez ssoToken à votre code côté client
// Le code côté client peut ensuite utiliser ce jeton avec le SDK pour navigateur
SSO sécurisé (côté serveur, recommandé)
Le SSO sécurisé doit être implémenté côté serveur et offre une meilleure sécurité :
// Code côté serveur (Node.js/backend)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Créez un SSO sécurisé en utilisant l'assistant intégré
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();
// À utiliser avec les appels API côté serveur
const publicApi = new PublicApi();
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
sso: JSON.stringify(ssoConfig)
});
// Ou envoyez ssoConfig au client pour une utilisation dans le navigateur
Utiliser le SSO depuis le navigateur (avec un jeton généré par le serveur)
// Code côté client (navigateur)
import { PublicApi } from 'fastcomments-sdk/browser';
// Récupérez le jeton SSO depuis votre endpoint serveur
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 // Utilisez le jeton SSO généré par le serveur
});
SSO avec création de commentaire
// Côté serveur : créer le SSO et le commentaire
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)
});
Common Use Cases 
Récupérer les commentaires d'une page
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'article-123'
});
Créer un commentaire
const newComment = await sdk.publicApi.createCommentPublic({
createCommentParams: {
tenantId: 'your-tenant-id',
urlId: 'article-123',
comment: 'Great article!',
commenterName: 'John Doe',
commenterEmail: 'john@example.com'
}
});
Voter sur un commentaire
const voteResponse = await sdk.publicApi.voteComment({
voteBodyParams: {
commentId: 'comment-id',
direction: 1 // 1 pour un vote positif, -1 pour un vote négatif
}
});
Gestion des utilisateurs (Nécessite une clé API)
// Rechercher des utilisateurs (nécessite DefaultApi)
const users = await sdk.defaultApi.searchUsers({
tenantId: 'your-tenant-id',
urlId: 'page-id',
usernameStartsWith: 'john'
});
Live Events (Real-time Updates) 
Abonnez-vous aux événements en direct pour recevoir des mises à jour en temps réel concernant les commentaires, les votes et autres activités.
Événements au niveau de la page
Écoutez les événements en direct sur une page spécifique (commentaires, votes, etc.) :
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);
// Mettez à jour votre interface avec le nouveau commentaire
break;
case LiveEventType.new_vote:
console.log('New vote:', event.vote);
// Mettez à jour les compteurs de votes dans votre interface
break;
case LiveEventType.updated_comment:
console.log('Comment updated:', event.comment);
break;
default:
console.log('Other event type:', event.type);
}
return true; // Retournez true si l'événement a été traité
},
(isConnected: boolean) => {
console.log('Connection status:', isConnected ? 'Connected' : 'Disconnected');
}
);
// Close the subscription when done
subscription.close();
S'abonner aux événements utilisateur
Écoutez les événements spécifiques à un utilisateur (notifications, mentions, etc.) :
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);
// Affichez la notification dans votre interface
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();
Obtenir userIdWS
Le paramètre userIdWS est requis pour les événements en direct et peut être obtenu à partir des réponses de l'API :
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);
}
Broadcast IDs 
Vous verrez qu'il faut transmettre un broadcastId dans certains appels d'API. Quand vous recevez des événements, vous récupérerez cet ID, ce qui vous permet d'ignorer l'événement si vous comptez appliquer les changements de manière optimiste côté client (ce que vous voudrez probablement faire car cela offre la meilleure expérience). Passez un UUID ici. L'ID doit être suffisamment unique pour ne pas apparaître deux fois durant une session de navigateur.
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 unique pour cette opération
}
});
Error Handling 
try {
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-id'
});
} catch (error) {
if (error.response?.status === 404) {
console.log('Page not found');
} else {
console.error('API Error:', error.message);
}
}
aggregate 
Regroupe les documents (si groupBy est fourni) et applique plusieurs opérations. Différentes opérations (par ex. sum, countDistinct, avg, etc.) sont prises en charge.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| aggregationRequest | AggregationRequest | Yes | |
| parentTenantId | string | No | |
| includeStats | boolean | No |
Réponse
Renvoie: Aggregate200Response
Exemple

getAuditLogs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| limit | number | Non | |
| skip | number | Non | |
| order | SORTDIR | Non | |
| after | number | Non | |
| before | number | Non |
Réponse
Renvoie: GetAuditLogs200Response
Exemple

blockFromCommentPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Oui | |
| sso | string | Non |
Réponse
Renvoie: BlockFromCommentPublic200Response
Exemple

unBlockCommentPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Oui | |
| sso | string | Non |
Réponse
Renvoie : UnBlockCommentPublic200Response
Exemple

checkedCommentsForBlocked 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentIds | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: CheckedCommentsForBlocked200Response
Exemple

blockUserFromComment 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| blockFromCommentParams | BlockFromCommentParams | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Retourne: BlockFromCommentPublic200Response
Exemple

createCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Oui | |
| commentData | CommentData | Oui | |
| sessionId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : CreateCommentPublic200Response
Exemple

deleteComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| contextUserId | string | Non | |
| isLive | boolean | Non |
Réponse
Renvoie: DeleteComment200Response
Exemple

deleteCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteCommentPublic200Response
Exemple

deleteCommentVote 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| voteId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteCommentVote200Response
Exemple

flagComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : FlagComment200Response
Exemple

getComment 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetComment200Response
Exemple

getComments 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| page | number | Non | |
| limit | number | Non | |
| skip | number | Non | |
| asTree | boolean | Non | |
| skipChildren | number | Non | |
| limitChildren | number | Non | |
| maxTreeDepth | number | Non | |
| urlId | string | Non | |
| userId | string | Non | |
| anonUserId | string | Non | |
| contextUserId | string | Non | |
| hashTag | string | Non | |
| parentId | string | Non | |
| direction | SortDirections | Non | |
| fromDate | number | Non | |
| toDate | number | Non |
Réponse
Renvoie: GetComments200Response
Exemple

getCommentsPublic 
req tenantId urlId
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| page | number | Non | |
| direction | SortDirections | Non | |
| sso | string | Non | |
| skip | number | Non | |
| skipChildren | number | Non | |
| limit | number | Non | |
| limitChildren | number | Non | |
| countChildren | boolean | Non | |
| fetchPageForCommentId | string | Non | |
| includeConfig | boolean | Non | |
| countAll | boolean | Non | |
| includei10n | boolean | Non | |
| locale | string | Non | |
| modules | string | Non | |
| isCrawler | boolean | Non | |
| includeNotificationCount | boolean | Non | |
| asTree | boolean | Non | |
| maxTreeDepth | number | Non | |
| useFullTranslationIds | boolean | Non | |
| parentId | string | Non | |
| searchText | string | Non | |
| hashTags | Array | Non | |
| userId | string | Non | |
| customConfigStr | string | Non | |
| afterCommentId | string | Non | |
| beforeCommentId | string | Non |
Réponse
Renvoie: GetCommentsPublic200Response
Exemple

getCommentText 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetCommentText200Response
Exemple

getCommentVoteUserNames 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| dir | number | Oui | |
| sso | string | Non |
Réponse
Renvoie : GetCommentVoteUserNames200Response
Exemple

lockComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : LockComment200Response
Exemple

pinComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : PinComment200Response
Exemple

saveComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createCommentParams | CreateCommentParams | Oui | |
| isLive | boolean | Non | |
| doSpamCheck | boolean | Non | |
| sendEmails | boolean | Non | |
| populateNotifications | boolean | Non |
Réponse
Retourne: SaveComment200Response
Exemple

saveCommentsBulk 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createCommentParams | Array | Oui | |
| isLive | boolean | Non | |
| doSpamCheck | boolean | Non | |
| sendEmails | boolean | Non | |
| populateNotifications | boolean | Non |
Réponse
Retourne : Array<SaveComment200Response
Exemple

setCommentText 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : SetCommentText200Response
Exemple

unBlockUserFromComment 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Response
Renvoie: UnBlockCommentPublic200Response
Exemple

unFlagComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : FlagComment200Response
Exemple

unLockComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
Réponse
Renvoie : LockComment200Response
Exemple

unPinComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : PinComment200Response
Exemple

updateComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updatableCommentParams | UpdatableCommentParams | Oui | |
| contextUserId | string | Non | |
| doSpamCheck | boolean | Non | |
| isLive | boolean | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

voteComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Oui | |
| voteBodyParams | VoteBodyParams | Oui | |
| sessionId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : VoteComment200Response
Exemple

getCommentsForUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| userId | string | Non | |
| direction | SortDirections | Non | |
| repliesToUserId | string | Non | |
| page | number | Non | |
| includei10n | boolean | Non | |
| locale | string | Non | |
| isCrawler | boolean | Non |
Réponse
Renvoie : GetCommentsForUser200Response
Exemple

addDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| addDomainConfigParams | AddDomainConfigParams | Oui |
Réponse
Renvoie: AddDomainConfig200Response
deleteDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Oui |
Réponse
Retourne: DeleteDomainConfig200Response
getDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Oui |
Réponse
Renvoie: GetDomainConfig200Response
patchDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Oui | |
| patchDomainConfigParams | PatchDomainConfigParams | Oui |
Réponse
Retourne : GetDomainConfig200Response
putDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Oui | |
| updateDomainConfigParams | UpdateDomainConfigParams | Oui |
Réponse
Renvoie: GetDomainConfig200Response
createEmailTemplate 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createEmailTemplateBody | CreateEmailTemplateBody | Oui |
Réponse
Renvoie : CreateEmailTemplate200Response
Exemple

deleteEmailTemplate 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

deleteEmailTemplateRenderError 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| errorId | string | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

getEmailTemplate 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne: GetEmailTemplate200Response
Exemple

getEmailTemplateDefinitions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Renvoie: GetEmailTemplateDefinitions200Response
Exemple

getEmailTemplateRenderErrors 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| skip | number | Non |
Réponse
Renvoie : GetEmailTemplateRenderErrors200Response
Exemple

getEmailTemplates 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Renvoie: GetEmailTemplates200Response
Exemple

renderEmailTemplate 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Oui | |
| locale | string | Non |
Réponse
Renvoie: RenderEmailTemplate200Response
Exemple

updateEmailTemplate 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

getEventLog 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userIdWS | string | Oui | |
| startTime | number | Oui | |
| endTime | number | Non |
Réponse
Renvoie : GetEventLog200Response
Exemple

getGlobalEventLog 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userIdWS | string | Oui | |
| startTime | number | Oui | |
| endTime | number | Non |
Réponse
Renvoie: GetEventLog200Response
Exemple

createFeedPost 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| isLive | boolean | Non | |
| doSpamCheck | boolean | Non | |
| skipDupCheck | boolean | Non |
Réponse
Retourne : CreateFeedPost200Response
Exemple

createFeedPostPublic 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : CreateFeedPostPublic200Response
Exemple

deleteFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteFeedPostPublic200Response
Exemple

getFeedPosts 
req tenantId afterId
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | number | Non | |
| tags | Array | Non |
Réponse
Renvoie: GetFeedPosts200Response
Exemple

getFeedPostsPublic 
req tenantId afterId
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | number | Non | |
| tags | Array | Non | |
| sso | string | Non | |
| isCrawler | boolean | Non | |
| includeUserInfo | boolean | Non |
Réponse
Renvoie : GetFeedPostsPublic200Response
Exemple

getFeedPostsStats 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | Array | Oui | |
| sso | string | Non |
Réponse
Renvoie : GetFeedPostsStats200Response
Exemple

getUserReactsPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | Array | Non | |
| sso | string | Non |
Réponse
Renvoie : GetUserReactsPublic200Response
Exemple

reactFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| reactBodyParams | ReactBodyParams | Oui | |
| isUndo | boolean | Non | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : ReactFeedPostPublic200Response
Exemple

updateFeedPost 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| feedPost | FeedPost | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

updateFeedPostPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| updateFeedPostParams | UpdateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : CreateFeedPostPublic200Response
Exemple

flagCommentPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| isFlagged | boolean | Oui | |
| sso | string | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

getGifLarge 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| largeInternalURLSanitized | string | Oui |
Réponse
Retourne : GetGifLarge200Response
Exemple

getGifsSearch 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| search | string | Oui | |
| locale | string | Non | |
| rating | string | Non | |
| page | number | Non |
Réponse
Renvoie: GetGifsSearch200Response
Exemple

getGifsTrending 
Parameters
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| locale | string | Non | |
| rating | string | Non | |
| page | number | Non |
Response
Renvoie: GetGifsTrending200Response
Exemple

addHashTag 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Non | |
| createHashTagBody | CreateHashTagBody | Non |
Réponse
Renvoie : AddHashTag200Response
Exemple

addHashTagsBulk 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Non | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Non |
Response
Retourne: AddHashTagsBulk200Response
Exemple

deleteHashTag 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tag | string | Oui | |
| tenantId | string | Non | |
| deleteHashTagRequest | DeleteHashTagRequest | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

getHashTags 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| page | number | Non |
Réponse
Renvoie : GetHashTags200Response
Exemple

patchHashTag 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tag | string | Oui | |
| tenantId | string | Non | |
| updateHashTagBody | UpdateHashTagBody | Non |
Réponse
Renvoie: PatchHashTag200Response
Exemple

createModerator 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createModeratorBody | CreateModeratorBody | Oui |
Réponse
Renvoie : CreateModerator200Response
Exemple

deleteModerator 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| sendEmail | string | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

getModerator 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : GetModerator200Response
Exemple

getModerators 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Renvoie: GetModerators200Response
Exemple

sendInvite 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| fromName | string | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

updateModerator 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateModeratorBody | UpdateModeratorBody | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

deleteNotificationCount 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

getCachedNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetCachedNotificationCount200Response
Exemple

getNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| urlId | string | Non | |
| fromCommentId | string | Non | |
| viewed | boolean | Non | |
| type | string | Non |
Réponse
Retourne : GetNotificationCount200Response
Exemple

getNotifications 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| urlId | string | Non | |
| fromCommentId | string | Non | |
| viewed | boolean | Non | |
| type | string | Non | |
| skip | number | Non |
Réponse
Renvoie : GetNotifications200Response
Exemple

updateNotification 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateNotificationBody | UpdateNotificationBody | Oui | |
| userId | string | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

createV1PageReact 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| title | string | Non |
Réponse
Retourne : CreateV1PageReact200Response
Exemple

createV2PageReact 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| id | string | Oui | |
| title | string | Non |
Réponse
Renvoie : CreateV2PageReact200Response
Exemple

deleteV1PageReact 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie : DeleteV1PageReact200Response
Exemple

deleteV2PageReact 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: DeleteV2PageReact200Response
Exemple

getV1PageLikes 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie: GetV1PageLikes200Response
Exemple

getV2PageReacts 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Retourne : GetV2PageReacts200Response
Exemple

getV2PageReactUsers 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes |
Réponse
Renvoie : GetV2PageReactUsers200Response
Exemple

addPage 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIPageData | CreateAPIPageData | Oui |
Réponse
Retourne: AddPageAPIResponse
deletePage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : DeletePageAPIResponse
getOfflineUsers 
Commentateurs précédents sur la page qui NE sont PAS actuellement en ligne. Triés par displayName. Utilisez ceci après avoir épuisé /users/online pour afficher une section "Membres". Pagination par curseur sur commenterName: le serveur parcourt l'index partiel {tenantId, urlId, commenterName} à partir de afterName vers l'avant via $gt, sans coût $skip.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| afterName | string | Non | |
| afterUserId | string | Non |
Réponse
Retourne: GetOfflineUsers200Response
Exemple

getOnlineUsers 
Visiteurs actuellement en ligne d'une page : personnes dont la session websocket est abonnée à la page en ce moment. Renvoie anonCount + totalCount (abonnés de la salle, y compris les spectateurs anonymes que nous n'énumérons pas).
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| afterName | string | Non | |
| afterUserId | string | Non |
Réponse
Renvoie : GetOnlineUsers200Response
Exemple

getPageByURLId 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie : GetPageByURLIdAPIResponse
getPagesPublic 
Lister les pages pour un tenant. Utilisé par le client de bureau FChat pour remplir sa liste de salons.
Nécessite que enableFChat soit true sur la configuration personnalisée résolue pour chaque page.
Les pages qui requièrent SSO sont filtrées en fonction de l'accès par groupe de l'utilisateur demandeur.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| cursor | string | Non | |
| limit | number | Non | |
| q | string | Non | |
| sortBy | PagesSortBy | Non | |
| hasComments | boolean | Non |
Réponse
Renvoie: GetPagesPublic200Response
Exemple

getUsersInfo 
Informations groupées sur les utilisateurs pour un locataire. Étant donné des userIds, renvoie les informations d'affichage provenant de User / SSOUser. Utilisé par le widget de commentaires pour enrichir les utilisateurs qui viennent d'apparaître via un événement de présence. Pas de contexte de page : la confidentialité est appliquée uniformément (les profils privés sont masqués).
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| ids | string | Oui |
Réponse
Renvoie : GetUsersInfo200Response
Exemple

patchPage 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPIPageData | UpdateAPIPageData | Oui |
Réponse
Renvoie: PatchPageAPIResponse
deletePendingWebhookEvent 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

getPendingWebhookEventCount 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Non | |
| externalId | string | Non | |
| eventType | string | Non | |
| type | string | Non | |
| domain | string | Non | |
| attemptCountGT | number | Non |
Réponse
Renvoie : GetPendingWebhookEventCount200Response
Exemple

getPendingWebhookEvents 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Non | |
| externalId | string | Non | |
| eventType | string | Non | |
| type | string | Non | |
| domain | string | Non | |
| attemptCountGT | number | Non | |
| skip | number | Non |
Réponse
Renvoie : GetPendingWebhookEvents200Response
Exemple

createQuestionConfig 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createQuestionConfigBody | CreateQuestionConfigBody | Oui |
Réponse
Renvoie : CreateQuestionConfig200Response
Exemple

deleteQuestionConfig 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

getQuestionConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetQuestionConfig200Response
Exemple

getQuestionConfigs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Renvoie : GetQuestionConfigs200Response
Exemple

updateQuestionConfig 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

createQuestionResult 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createQuestionResultBody | CreateQuestionResultBody | Oui |
Réponse
Renvoie : CreateQuestionResult200Response
Exemple

deleteQuestionResult 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

getQuestionResult 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : GetQuestionResult200Response
Exemple

getQuestionResults 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Non | |
| userId | string | Non | |
| startDate | string | Non | |
| questionId | string | Non | |
| questionIds | string | Non | |
| skip | number | Non |
Réponse
Renvoie : GetQuestionResults200Response
Exemple

updateQuestionResult 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateQuestionResultBody | UpdateQuestionResultBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

aggregateQuestionResults 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| questionId | string | Non | |
| questionIds | Array | Non | |
| urlId | string | Non | |
| timeBucket | AggregateTimeBucket | Non | |
| startDate | Date | Non | |
| forceRecalculate | boolean | Non |
Réponse
Renvoie : AggregateQuestionResults200Response
Exemple

bulkAggregateQuestionResults 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Oui | |
| forceRecalculate | boolean | Non |
Réponse
Retourne: BulkAggregateQuestionResults200Response
Exemple

combineCommentsWithQuestionResults 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| questionId | string | Non | |
| questionIds | Array | Non | |
| urlId | string | Non | |
| startDate | Date | Non | |
| forceRecalculate | boolean | Non | |
| minValue | number | Non | |
| maxValue | number | Non | |
| limit | number | Non |
Réponse
Retourne: CombineCommentsWithQuestionResults200Response
Exemple

addSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPISSOUserData | CreateAPISSOUserData | Oui |
Réponse
Renvoie : AddSSOUserAPIResponse
deleteSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| deleteComments | boolean | Non | |
| commentDeleteMode | string | Non |
Réponse
Renvoie: DeleteSSOUserAPIResponse
getSSOUserByEmail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| string | Oui |
Réponse
Renvoie : GetSSOUserByEmailAPIResponse
getSSOUserById 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetSSOUserByIdAPIResponse
getSSOUsers 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Retourne: GetSSOUsers200Response
patchSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPISSOUserData | UpdateAPISSOUserData | Oui | |
| updateComments | boolean | Non |
Réponse
Renvoie: PatchSSOUserAPIResponse
putSSOUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPISSOUserData | UpdateAPISSOUserData | Oui | |
| updateComments | boolean | Non |
Response
Renvoie : PutSSOUserAPIResponse
Exemple

createSubscription 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Oui |
Réponse
Renvoie: CreateSubscriptionAPIResponse
Exemple

deleteSubscription 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non |
Réponse
Retourne: DeleteSubscriptionAPIResponse
getSubscriptions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non |
Réponse
Renvoie: GetSubscriptionsAPIResponse
Exemple

updateSubscription 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPIUserSubscriptionData | UpdateAPIUserSubscriptionData | Oui | |
| userId | string | Non |
Réponse
Renvoie : UpdateSubscriptionAPIResponse
Exemple

getTenantDailyUsages 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| yearNumber | number | Non | |
| monthNumber | number | Non | |
| dayNumber | number | Non | |
| skip | number | Non |
Response
Retourne: GetTenantDailyUsages200Response
Exemple

createTenantPackage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantPackageBody | CreateTenantPackageBody | Oui |
Réponse
Renvoie : CreateTenantPackage200Response
Exemple

deleteTenantPackage 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

getTenantPackage 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetTenantPackage200Response
Exemple

getTenantPackages 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Renvoie: GetTenantPackages200Response
Exemple

replaceTenantPackage 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

updateTenantPackage 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateTenantPackageBody | UpdateTenantPackageBody | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

createTenantUser 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantUserBody | CreateTenantUserBody | Oui |
Réponse
Retourne : CreateTenantUser200Response
Exemple

deleteTenantUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| deleteComments | string | Non | |
| commentDeleteMode | string | Non |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

getTenantUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetTenantUser200Response
Exemple

getTenantUsers 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Renvoie : GetTenantUsers200Response
Exemple

replaceTenantUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| replaceTenantUserBody | ReplaceTenantUserBody | Oui | |
| updateComments | string | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

sendLoginLink 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| redirectURL | string | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

updateTenantUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateTenantUserBody | UpdateTenantUserBody | Oui | |
| updateComments | string | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

createTenant 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantBody | CreateTenantBody | Oui |
Réponse
Renvoie: CreateTenant200Response
Exemple

deleteTenant 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| sure | string | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

getTenant 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetTenant200Response
Exemple

getTenants 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| meta | string | Non | |
| skip | number | Non |
Réponse
Retourne: GetTenants200Response
Exemple

updateTenant 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateTenantBody | UpdateTenantBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

changeTicketState 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Oui | |
| id | string | Oui | |
| changeTicketStateBody | ChangeTicketStateBody | Oui |
Réponse
Renvoie : ChangeTicketState200Response
Exemple

createTicket 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Oui | |
| createTicketBody | CreateTicketBody | Oui |
Réponse
Renvoie: CreateTicket200Response
Exemple

getTicket 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non |
Réponse
Retourne: GetTicket200Response
Exemple

getTickets 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| state | number | Non | |
| skip | number | Non | |
| limit | number | Non |
Réponse
Retourne: GetTickets200Response
Exemple

getTranslations 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| namespace | string | Oui | |
| component | string | Oui | |
| locale | string | Non | |
| useFullTranslationIds | boolean | Non |
Réponse
Renvoie : GetTranslations200Response
Exemple

uploadImage 
Téléverser et redimensionner une image
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| file | Blob | Oui | |
| sizePreset | SizePreset | Non | |
| urlId | string | Non |
Réponse
Renvoie: UploadImageResponse
getUserBadgeProgressById 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Renvoie : GetUserBadgeProgressById200Response
Exemple

getUserBadgeProgressByUserId 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Oui |
Réponse
Renvoie: GetUserBadgeProgressById200Response
Exemple

getUserBadgeProgressList 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| limit | number | Non | |
| skip | number | Non |
Réponse
Renvoie : GetUserBadgeProgressList200Response
Exemple

createUserBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createUserBadgeParams | CreateUserBadgeParams | Oui |
Réponse
Renvoie: CreateUserBadge200Response
Exemple

deleteUserBadge 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: UpdateUserBadge200Response
Exemple

getUserBadge 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetUserBadge200Response
Exemple

getUserBadges 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| badgeId | string | Non | |
| type | number | Non | |
| displayedOnComments | boolean | Non | |
| limit | number | Non | |
| skip | number | Non |
Réponse
Renvoie : GetUserBadges200Response
Exemple

updateUserBadge 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateUserBadgeParams | UpdateUserBadgeParams | Oui |
Réponse
Renvoie : UpdateUserBadge200Response
Exemple

getUserNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Retourne : GetUserNotificationCount200Response
Exemple

getUserNotifications 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Non | |
| pageSize | number | Non | |
| afterId | string | Non | |
| includeContext | boolean | Non | |
| afterCreatedAt | number | Non | |
| unreadOnly | boolean | Non | |
| dmOnly | boolean | Non | |
| noDm | boolean | Non | |
| includeTranslations | boolean | Non | |
| includeTenantNotifications | boolean | Non | |
| sso | string | Non |
Réponse
Renvoie: GetUserNotifications200Response
Exemple

resetUserNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: ResetUserNotifications200Response
Exemple

resetUserNotifications 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| afterCreatedAt | number | Non | |
| unreadOnly | boolean | Non | |
| dmOnly | boolean | Non | |
| noDm | boolean | Non | |
| sso | string | Non |
Réponse
Renvoie : ResetUserNotifications200Response
Exemple

updateUserNotificationCommentSubscriptionStatus 
Activer ou désactiver les notifications pour un commentaire spécifique.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Oui | |
| optedInOrOut | UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum | Oui | |
| commentId | string | Oui | |
| sso | string | Non |
Réponse
Retourne : UpdateUserNotificationStatus200Response
Exemple

updateUserNotificationPageSubscriptionStatus 
Activer ou désactiver les notifications pour une page. Lorsqu'un utilisateur est abonné à une page, des notifications sont créées pour les nouveaux commentaires racines, et aussi
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| url | string | Oui | |
| pageTitle | string | Oui | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Oui | |
| sso | string | Non |
Réponse
Renvoie : UpdateUserNotificationStatus200Response
Exemple

updateUserNotificationStatus 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Oui | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Oui | |
| sso | string | Non |
Réponse
Renvoie : UpdateUserNotificationStatus200Response
Exemple

getUserPresenceStatuses 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlIdWS | string | Oui | |
| userIds | string | Oui |
Réponse
Renvoie : GetUserPresenceStatuses200Response
Exemple

searchUsers 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| usernameStartsWith | string | Non | |
| mentionGroupIds | Array | Non | |
| sso | string | Non | |
| searchSection | SearchUsersSearchSectionEnum | Non |
Réponse
Retourne : SearchUsers200Response
Exemple

getUser 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetUser200Response
Exemple

createVote 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| direction | CreateVoteDirectionEnum | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : VoteComment200Response
Exemple

deleteVote 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| editKey | string | Non |
Réponse
Renvoie : DeleteCommentVote200Response
Exemple

getVotes 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie : GetVotes200Response
Exemple

getVotesForUser 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : GetVotesForUser200Response
Exemple

Besoin d'aide ?
Si vous rencontrez des problèmes ou avez des questions concernant le SDK JavaScript/TypeScript, veuillez :
Contribuer
Les contributions sont les bienvenues ! Veuillez consulter le dépôt GitHub pour les consignes de contribution.