
Langue 🇫🇷 Français (France)
Prise en main
Référence de l'API
Documentation
Utilisation
Agrégation
Journaux d'audit
Blocage du commentaire
Vérifier les commentaires bloqués
Commentaires
Commentaires pour l'utilisateur
Configurations de domaine
Modèles d'e-mail
Journal d'événements
Publications
Signaler un commentaire
Gifs
Hashtags
Modération
Modérateurs
Nombre de notifications
Notifications
Réactions à la page
Pages
Événements webhook en attente
Configurations des questions
Résultats des questions
Agrégation des résultats des questions
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Forfaits du locataire
Utilisateurs du locataire
Locataires
Tickets
Traductions
Téléverser une image
Progression des badges utilisateur
Badges utilisateur
Notifications utilisateur
Statuts de présence des utilisateurs
Recherche d'utilisateurs
Utilisateurs
Votes
FastComments SDK JavaScript/TypeScript
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
Documentation de l'API 
Référence complète de l'API: docs/api/README.md
Compatibilité navigateur/serveur 
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ù
Utilisation 
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);
API publiques vs sécurisées 
Le SDK fournit ces classes d'API :
DefaultApi- Points de terminaison sécurisés qui nécessitent votre API key pour l'authentification. Utilisez-les pour les opérations côté serveur.PublicApi- Points de terminaison publics accessibles sans API key. Ils peuvent être appelés directement depuis des navigateurs, appareils mobiles, etc.ModerationApi- Points de terminaison du tableau de bord des modérateurs (modération des commentaires, bannissements, badges, facteur de confiance, recherche). Authentifié par la session du modérateur ; passez le paramètre de requêtessopour les modérateurs authentifiés via SSO.HiddenApi- Points de terminaison internes/admin pour des cas d'utilisation avancés.
Exemple : Utilisation de l'API publique (compatible navigateur)
import { PublicApi } from 'fastcomments-sdk/browser';
const publicApi = new PublicApi();
// Récupère les commentaires d'une page (pas d'API key requise)
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Exemple : Utilisation de l'API Default (côté serveur uniquement)
import { DefaultApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key' // Gardez ceci secret!
});
const defaultApi = new DefaultApi(config);
// Récupère les commentaires avec un accès administrateur complet
const response = await defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Exemple : Utilisation de l'API de modération
import { createFastCommentsSDK } from 'fastcomments-sdk/server';
const sdk = createFastCommentsSDK({ /* basePath, etc. */ });
// Appels authentifiés par le modérateur (cookie de session, ou passez `sso` pour un modérateur SSO).
const comments = await sdk.moderationApi.getApiComments({
tenantId: 'your-tenant-id'
});
await sdk.moderationApi.postSetCommentSpamStatus({
commentId: 'comment-id',
spam: true
});
Intégration SSO (Single Sign-On) 
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)
});
Cas d'utilisation courants 
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'
});
Événements en direct (mises à jour en temps réel) 
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);
}
Identifiants de diffusion 
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
}
});
Gestion des erreurs 
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 
Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| aggregationRequest | AggregationRequest | Oui | |
| parentTenantId | string | Non | |
| includeStats | boolean | Non |
Réponse
Retourne : AggregateResponse
Exemple

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

blockFromCommentPublic 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Oui | |
| sso | string | Non |
Response
Retourne : BlockFromCommentPublicResponse
Exemple

unBlockCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Yes | |
| sso | string | No |
Réponse
Retourne : UnBlockCommentPublicResponse
Exemple

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

blockUserFromComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| blockFromCommentParams | BlockFromCommentParams | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Retourne : BlockUserFromCommentResponse
Exemple

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

deleteComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| contextUserId | string | No | |
| isLive | boolean | No |
Réponse
Retourne : DeleteCommentResponse
Exemple

deleteCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| editKey | string | No | |
| sso | string | No |
Réponse
Renvoie : DeleteCommentPublicResponse
Exemple

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

flagComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| userId | string | No | |
| anonUserId | string | No |
Réponse
Renvoie : FlagCommentResponse1
Exemple

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

getComments 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| page | number | No | |
| limit | number | No | |
| skip | number | No | |
| asTree | boolean | No | |
| skipChildren | number | No | |
| limitChildren | number | No | |
| maxTreeDepth | number | No | |
| urlId | string | No | |
| userId | string | No | |
| anonUserId | string | No | |
| contextUserId | string | No | |
| hashTag | string | No | |
| parentId | string | No | |
| direction | SortDirections | No | |
| fromDate | number | No | |
| toDate | number | No |
Réponse
Retourne : GetCommentsResponse
Exemple

getCommentsPublic 
req tenantId urlId
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| 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 |
Réponse
Retourne : GetCommentsPublicResponse
Exemple

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

getCommentVoteUserNames 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| dir | number | Yes | |
| sso | string | No |
Réponse
Retourne : GetCommentVoteUserNamesResponse
Exemple

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

pinComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Retourne : PinCommentResponse
Exemple

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

saveCommentsBulk 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createCommentParams | Array | Oui | |
| isLive | boolean | Non | |
| doSpamCheck | boolean | Non | |
| sendEmails | boolean | Non | |
| populateNotifications | boolean | Non |
Response
Retourne : Array<SaveCommentsBulkResponse
Exemple

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

unBlockUserFromComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Retourne : UnBlockUserFromCommentResponse
Exemple

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

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

unPinComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Retourne : UnPinCommentResponse
Exemple

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

voteComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| urlId | string | Yes | |
| broadcastId | string | Yes | |
| voteBodyParams | VoteBodyParams | Yes | |
| sessionId | string | No | |
| sso | string | No |
Réponse
Retourne : VoteCommentResponse
Exemple

getCommentsForUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| userId | string | No | |
| direction | SortDirections | No | |
| repliesToUserId | string | No | |
| page | number | No | |
| includei10n | boolean | No | |
| locale | string | No | |
| isCrawler | boolean | No |
Réponse
Retourne : GetCommentsForUserResponse1
Exemple

addDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| addDomainConfigParams | AddDomainConfigParams | Yes |
Réponse
Renvoie : AddDomainConfigResponse
Exemple

deleteDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Oui |
Réponse
Retourne : DeleteDomainConfigResponse
Exemple

getDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Oui |
Réponse
Renvoie : GetDomainConfigResponse
Exemple

getDomainConfigs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes |
Réponse
Renvoie : GetDomainConfigsResponse
Exemple

patchDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Oui | |
| patchDomainConfigParams | PatchDomainConfigParams | Oui |
Réponse
Retourne : PatchDomainConfigResponse
Exemple

putDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| domainToUpdate | string | Yes | |
| updateDomainConfigParams | UpdateDomainConfigParams | Yes |
Réponse
Retourne : PutDomainConfigResponse
Exemple

createEmailTemplate 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createEmailTemplateBody | CreateEmailTemplateBody | Oui |
Réponse
Renvoie : CreateEmailTemplateResponse1
Exemple

deleteEmailTemplate 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : DeleteEmailTemplateResponse
Exemple

deleteEmailTemplateRenderError 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| errorId | string | Yes |
Réponse
Retourne : DeleteEmailTemplateRenderErrorResponse
Exemple

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

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

getEmailTemplateRenderErrors 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| skip | number | No |
Réponse
Retourne : GetEmailTemplateRenderErrorsResponse1
Exemple

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

renderEmailTemplate 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Oui | |
| locale | string | Non |
Réponse
Retourne : RenderEmailTemplateResponse1
Exemple

updateEmailTemplate 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Yes |
Réponse
Retourne : UpdateEmailTemplateResponse
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
Retourne : GetEventLogResponse1
Exemple

getGlobalEventLog 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| userIdWS | string | Yes | |
| startTime | number | Yes | |
| endTime | number | No |
Réponse
Retourne : GetGlobalEventLogResponse
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 : CreateFeedPostResponse1
Exemple

createFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Retourne: CreateFeedPostPublicResponse
Exemple

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

getFeedPosts 
requête tenantId afterId
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | number | Non | |
| tags | Array | Non |
Réponse
Retourne : GetFeedPostsResponse1
Exemple

getFeedPostsPublic 
req tenantId afterId
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| afterId | string | No | |
| limit | number | No | |
| tags | Array | No | |
| sso | string | No | |
| isCrawler | boolean | No | |
| includeUserInfo | boolean | No |
Réponse
Retourne: GetFeedPostsPublicResponse
Exemple

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

getUserReactsPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | Array | Non | |
| sso | string | Non |
Réponse
Retourne : GetUserReactsPublicResponse
Exemple

reactFeedPostPublic 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| reactBodyParams | ReactBodyParams | Yes | |
| isUndo | boolean | No | |
| broadcastId | string | No | |
| sso | string | No |
Réponse
Renvoie : ReactFeedPostPublicResponse
Exemple

updateFeedPost 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| feedPost | FeedPost | Oui |
Réponse
Retourne : UpdateFeedPostResponse
Exemple

updateFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| postId | string | Yes | |
| updateFeedPostParams | UpdateFeedPostParams | Yes | |
| broadcastId | string | No | |
| sso | string | No |
Réponse
Retourne : UpdateFeedPostPublicResponse
Exemple

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

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

getGifsSearch 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| search | string | Oui | |
| locale | string | Non | |
| rating | string | Non | |
| page | number | Non |
Réponse
Renvoie : GetGifsSearchResponse
Exemple

getGifsTrending 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| locale | string | Non | |
| rating | string | Non | |
| page | number | Non |
Réponse
Retourne : GetGifsTrendingResponse
Exemple

addHashTag 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Non | |
| createHashTagBody | CreateHashTagBody | Non |
Réponse
Retourne : AddHashTagResponse
Exemple

addHashTagsBulk 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Non | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Non |
Réponse
Retourne : AddHashTagsBulkResponse
Exemple

deleteHashTag 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tag | string | Oui | |
| tenantId | string | Non | |
| deleteHashTagRequestBody | DeleteHashTagRequestBody | Non |
Réponse
Retourne : DeleteHashTagResponse
Exemple

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

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

deleteModerationVote 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| voteId | string | Oui | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteModerationVoteResponse
Exemple

getApiComments 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| page | number | No | |
| count | number | No | |
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| sorts | string | No | |
| demo | boolean | No | |
| tenantId | string | No | |
| sso | string | No |
Response
Renvoie : GetApiCommentsResponse
Example

getApiExportStatus 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| batchJobId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : GetApiExportStatusResponse
Exemple

getApiIds 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| afterId | string | No | |
| demo | boolean | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetApiIdsResponse
Exemple

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

getCommentBanStatus 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetCommentBanStatusResponse1
Exemple

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

getCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| textSearch | string | Non | |
| byIPFromComment | string | Non | |
| filter | string | Non | |
| searchFilters | string | Non | |
| demo | boolean | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetCountResponse
Exemple

getCounts 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetCountsResponse
Exemple

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

getManualBadges 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetManualBadgesResponse
Exemple

getManualBadgesForUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| badgesUserId | string | No | |
| commentId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetManualBadgesForUserResponse
Exemple

getModerationComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| includeEmail | boolean | Non | |
| includeIP | boolean | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetModerationCommentResponse
Exemple

getModerationCommentText 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Oui | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetModerationCommentTextResponse
Exemple

getPreBanSummary 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| includeByUserIdAndEmail | boolean | No | |
| includeByIP | boolean | No | |
| includeByEmailDomain | boolean | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : GetPreBanSummaryResponse
Exemple

getSearchCommentsSummary 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| value | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetSearchCommentsSummaryResponse
Exemple

getSearchPages 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| value | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : GetSearchPagesResponse
Exemple

getSearchSites 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| value | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : GetSearchSitesResponse
Exemple

getSearchSuggest 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| textSearch | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : GetSearchSuggestResponse
Exemple

getSearchUsers 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| value | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : GetSearchUsersResponse
Exemple

getTrustFactor 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| userId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetTrustFactorResponse
Exemple

getUserBanPreference 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetUserBanPreferenceResponse
Exemple

getUserInternalProfile 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : GetUserInternalProfileResponse1
Exemple

postAdjustCommentVotes 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| adjustCommentVotesParams | AdjustCommentVotesParams | Oui | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : PostAdjustCommentVotesResponse
Exemple

postApiExport 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| sorts | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : PostApiExportResponse
Exemple

postBanUserFromComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| banEmail | boolean | Non | |
| banEmailDomain | boolean | Non | |
| banIP | boolean | Non | |
| deleteAllUsersComments | boolean | Non | |
| bannedUntil | string | Non | |
| isShadowBan | boolean | Non | |
| updateId | string | Non | |
| banReason | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : PostBanUserFromCommentResponse
Exemple

postBanUserUndo 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| banUserUndoParams | BanUserUndoParams | Yes | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : PostBanUserUndoResponse
Exemple

postBulkPreBanSummary 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| bulkPreBanParams | BulkPreBanParams | Oui | |
| includeByUserIdAndEmail | boolean | Non | |
| includeByIP | boolean | Non | |
| includeByEmailDomain | boolean | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : PostBulkPreBanSummaryResponse
Exemple

postCommentsByIds 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentsByIdsParams | CommentsByIdsParams | Oui | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : PostCommentsByIdsResponse
Exemple

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

postRemoveComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : PostRemoveCommentResponse
Exemple

postRestoreDeletedComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : PostRestoreDeletedCommentResponse
Exemple

postSetCommentApprovalStatus 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| approved | boolean | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : PostSetCommentApprovalStatusResponse
Exemple

postSetCommentReviewStatus 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| commentId | string | Yes | |
| reviewed | boolean | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : PostSetCommentReviewStatusResponse
Exemple

postSetCommentSpamStatus 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Yes | |
| spam | boolean | No | |
| permNotSpam | boolean | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie: PostSetCommentSpamStatusResponse
Exemple

postSetCommentText 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| setCommentTextParams | SetCommentTextParams | Oui | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : PostSetCommentTextResponse
Exemple

postUnFlagComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : PostUnFlagCommentResponse
Exemple

postVote 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| direction | string | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : PostVoteResponse
Exemple

putAwardBadge 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| badgeId | string | Yes | |
| userId | string | No | |
| commentId | string | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : PutAwardBadgeResponse
Exemple

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

putRemoveBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| badgeId | string | Oui | |
| userId | string | Non | |
| commentId | string | Non | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : PutRemoveBadgeResponse
Exemple

putReopenThread 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| urlId | string | Yes | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : PutReopenThreadResponse
Exemple

setTrustFactor 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| userId | string | No | |
| trustFactor | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : SetTrustFactorResponse
Exemple

createModerator 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createModeratorBody | CreateModeratorBody | Yes |
Réponse
Renvoie : CreateModeratorResponse1
Exemple

deleteModerator 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| sendEmail | string | No |
Réponse
Retourne : DeleteModeratorResponse
Exemple

getModerator 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : GetModeratorResponse1
Exemple

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

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

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

deleteNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Renvoie : DeleteNotificationCountResponse
Exemple

getCachedNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : GetCachedNotificationCountResponse1
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
Renvoie : GetNotificationCountResponse1
Exemple

getNotifications 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No | |
| urlId | string | No | |
| fromCommentId | string | No | |
| viewed | boolean | No | |
| type | string | No | |
| skip | number | No |
Réponse
Renvoie : GetNotificationsResponse1
Exemple

updateNotification 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateNotificationBody | UpdateNotificationBody | Yes | |
| userId | string | No |
Réponse
Retourne : UpdateNotificationResponse
Exemple

createV1PageReact 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| title | string | Non |
Réponse
Renvoie : CreateV1PageReactResponse
Exemple

createV2PageReact 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes | |
| title | string | No |
Réponse
Retourne : CreateV2PageReactResponse
Exemple

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

deleteV2PageReact 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : DeleteV2PageReactResponse
Exemple

getV1PageLikes 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie : GetV1PageLikesResponse
Exemple

getV2PageReacts 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
Réponse
Retourne : GetV2PageReactsResponse
Exemple

getV2PageReactUsers 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : GetV2PageReactUsersResponse1
Exemple

addPage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIPageData | CreateAPIPageData | Oui |
Réponse
Retourne : AddPageAPIResponse
Exemple

deletePage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : DeletePageAPIResponse
Exemple

getOfflineUsers 
Past commenters on the page who are NOT currently online. Sorted by displayName.
Utilisez ceci après avoir épuisé /users/online pour afficher une section « Members ».
Pagination par curseur sur commenterName : le serveur parcourt le partiel {tenantId, urlId, commenterName} index depuis afterName vers l’avant via $gt, aucun coût $skip.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| afterName | string | No | |
| afterUserId | string | No |
Réponse
Retourne : GetOfflineUsersResponse
Exemple

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

getPageByURLId 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
Réponse
Retourne : GetPageByURLIdAPIResponse
Exemple

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

getPagesPublic 
Lister les pages pour un locataire. Utilisé par le client de bureau FChat pour remplir sa liste de salons.
Nécessite enableFChat à true sur la configuration personnalisée résolue pour chaque page.
Les pages nécessitant le SSO sont filtrées en fonction de l'accès aux groupes de l'utilisateur demandeur.
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| cursor | string | No | |
| limit | number | No | |
| q | string | No | |
| sortBy | PagesSortBy | No | |
| hasComments | boolean | No |
Response
Retourne : GetPagesPublicResponse
Example

getUsersInfo 
Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| ids | string | Yes |
Response
Retourne : GetUsersInfoResponse
Exemple

patchPage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPIPageData | UpdateAPIPageData | Oui |
Réponse
Retourne : PatchPageAPIResponse
Exemple

deletePendingWebhookEvent 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : DeletePendingWebhookEventResponse
Exemple

getPendingWebhookEventCount 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | No | |
| externalId | string | No | |
| eventType | string | No | |
| type | string | No | |
| domain | string | No | |
| attemptCountGT | number | No |
Réponse
Retourne : GetPendingWebhookEventCountResponse1
Exemple

getPendingWebhookEvents 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | No | |
| externalId | string | No | |
| eventType | string | No | |
| type | string | No | |
| domain | string | No | |
| attemptCountGT | number | No | |
| skip | number | No |
Réponse
Retourne : GetPendingWebhookEventsResponse1
Exemple

createQuestionConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createQuestionConfigBody | CreateQuestionConfigBody | Oui |
Réponse
Retourne : CreateQuestionConfigResponse1
Exemple

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

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

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

updateQuestionConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Oui |
Réponse
Retourne : UpdateQuestionConfigResponse
Exemple

createQuestionResult 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createQuestionResultBody | CreateQuestionResultBody | Yes |
Réponse
Retourne : CreateQuestionResultResponse1
Exemple

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

getQuestionResult 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : GetQuestionResultResponse1
Exemple

getQuestionResults 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | No | |
| userId | string | No | |
| startDate | string | No | |
| questionId | string | No | |
| questionIds | string | No | |
| skip | number | No |
Réponse
Retourne : GetQuestionResultsResponse1
Exemple

updateQuestionResult 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateQuestionResultBody | UpdateQuestionResultBody | Yes |
Réponse
Retourne : UpdateQuestionResultResponse
Exemple

aggregateQuestionResults 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| questionId | string | Non | |
| questionIds | Array | Non | |
| urlId | string | Non | |
| timeBucket | AggregateTimeBucket | Non | |
| startDate | Date | Non | |
| forceRecalculate | boolean | Non |
Réponse
Retourne : AggregateQuestionResultsResponse1
Exemple

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

combineCommentsWithQuestionResults 
Paramètres
| Nom | 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 : CombineCommentsWithQuestionResultsResponse
Exemple

addSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPISSOUserData | CreateAPISSOUserData | Oui |
Réponse
Renvoie : AddSSOUserAPIResponse
Exemple

deleteSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| deleteComments | boolean | Non | |
| commentDeleteMode | string | Non |
Réponse
Retourne : DeleteSSOUserAPIResponse
Exemple

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

getSSOUserById 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : GetSSOUserByIdAPIResponse
Exemple

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

patchSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPISSOUserData | UpdateAPISSOUserData | Oui | |
| updateComments | boolean | Non |
Réponse
Renvoie : PatchSSOUserAPIResponse
Exemple

putSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPISSOUserData | UpdateAPISSOUserData | Oui | |
| updateComments | boolean | Non |
Réponse
Renvoie : PutSSOUserAPIResponse
Exemple

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

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

getSubscriptions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No |
Réponse
Retourne : GetSubscriptionsAPIResponse
Exemple

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

getTenantDailyUsages 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| yearNumber | number | Non | |
| monthNumber | number | Non | |
| dayNumber | number | Non | |
| skip | number | Non |
Réponse
Retourne : GetTenantDailyUsagesResponse1
Exemple

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

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

getTenantPackage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : GetTenantPackageResponse1
Exemple

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

replaceTenantPackage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Oui |
Réponse
Renvoie : ReplaceTenantPackageResponse
Exemple

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

createTenantUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantUserBody | CreateTenantUserBody | Oui |
Réponse
Renvoie : CreateTenantUserResponse1
Exemple

deleteTenantUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| deleteComments | string | No | |
| commentDeleteMode | string | No |
Réponse
Renvoie : DeleteTenantUserResponse
Exemple

getTenantUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Renvoie : GetTenantUserResponse1
Exemple

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

replaceTenantUser 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| replaceTenantUserBody | ReplaceTenantUserBody | Yes | |
| updateComments | string | No |
Réponse
Retourne : ReplaceTenantUserResponse
Exemple

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

updateTenantUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantUserBody | UpdateTenantUserBody | Yes | |
| updateComments | string | No |
Réponse
Retourne : UpdateTenantUserResponse
Exemple

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

deleteTenant 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| sure | string | Non |
Réponse
Retourne : DeleteTenantResponse
Exemple

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

getTenants 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| meta | string | No | |
| skip | number | No |
Réponse
Renvoie : GetTenantsResponse1
Exemple

updateTenant 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantBody | UpdateTenantBody | Yes |
Réponse
Retourne : UpdateTenantResponse
Exemple

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

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

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

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

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

uploadImage 
Upload and resize an image
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| file | Blob | Yes | |
| sizePreset | SizePreset | No | |
| urlId | string | No |
Response
Renvoie : UploadImageResponse
Example

getUserBadgeProgressById 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : GetUserBadgeProgressByIdResponse
Exemple

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

getUserBadgeProgressList 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| limit | number | Non | |
| skip | number | Non |
Réponse
Retourne : GetUserBadgeProgressListResponse
Exemple

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

deleteUserBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : DeleteUserBadgeResponse
Exemple

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

getUserBadges 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No | |
| badgeId | string | No | |
| type | number | No | |
| displayedOnComments | boolean | No | |
| limit | number | No | |
| skip | number | No |
Réponse
Retourne : GetUserBadgesResponse
Exemple

updateUserBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateUserBadgeParams | UpdateUserBadgeParams | Yes |
Réponse
Retourne : UpdateUserBadgeResponse
Exemple

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

getUserNotifications 
Paramètres
| Nom | 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
Retourne : GetUserNotificationsResponse
Exemple

resetUserNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : ResetUserNotificationCountResponse
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 : ResetUserNotificationsResponse1
Exemple

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

updateUserNotificationPageSubscriptionStatus 
Activer ou désactiver les notifications pour une page. Lorsque les utilisateurs sont abonnés à une page, des notifications sont créées pour les nouveaux commentaires racine, et aussi
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| url | string | Oui | |
| pageTitle | string | Oui | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Oui | |
| sso | string | Non |
Response
Returns: UpdateUserNotificationPageSubscriptionStatusResponse
Exemple

updateUserNotificationStatus 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| notificationId | string | Yes | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Yes | |
| sso | string | No |
Réponse
Retourne : UpdateUserNotificationStatusResponse
Exemple

getUserPresenceStatuses 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlIdWS | string | Yes | |
| userIds | string | Yes |
Réponse
Retourne : GetUserPresenceStatusesResponse1
Exemple

searchUsers 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| usernameStartsWith | string | No | |
| mentionGroupIds | Array | No | |
| sso | string | No | |
| searchSection | SearchUsersSearchSectionEnum | No |
Réponse
Renvoie : SearchUsersResponse1
Exemple

getUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : GetUserResponse1
Exemple

createVote 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| direction | CreateVoteDirectionEnum | Yes | |
| userId | string | No | |
| anonUserId | string | No |
Réponse
Retourne : CreateVoteResponse
Exemple

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

getVotes 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Retourne : GetVotesResponse1
Exemple

getVotesForUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Retourne : GetVotesForUserResponse1
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.