
Langue 🇨🇦 Français (Canada)
Prise en main
Référence de l'API
Documentation
Utilisation
Agrégation
Journaux d'audit
Blocage par commentaire
Vérifier les commentaires bloqués
Commentaires
Commentaires pour l'utilisateur
Configurations de domaine
Modèles de courriel
Journal d'événements
Publications du flux
Signaler un commentaire
GIFs
Mots-clics
Modération
Modérateurs
Nombre de notifications
Notifications
Réactions de page
Pages
Événements webhook en attente
Configurations de question
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 utilisateur
Recherche d'utilisateurs
Utilisateurs
Votes
SDK JavaScript/TypeScript de 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
Documentation de l'API 
Référence complète de l’API : docs/api/README.md
Compatibilité navigateur vs 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 adaptée au navigateur utilisantfetchnatiffastcomments-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 séparés 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 côté navigateur/front-end, utilisez l'export sécurisé pour le navigateur qui exclut les dépendances Node.js :
// Import sécurisé pour le navigateur (aucune dépendance Node.js)
import { createFastCommentsBrowserSDK } from 'fastcomments-sdk/browser';
// Crée une instance du SDK pour le navigateur
const sdk = createFastCommentsBrowserSDK({
basePath: 'https://fastcomments.com' // optionnel, utilise https://fastcomments.com par défaut
});
// Utilise des API publiques (aucune clé API requise - 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 côté serveur/back-end, utilisez le SDK complet avec les fonctionnalités SSO et d'authentification :
// Import côté serveur (inclut le SSO et est conçu pour fonctionner avec NodeJS)
import { createFastCommentsSDK } from 'fastcomments-sdk/server';
// Crée une instance du SDK côté serveur
const sdk = createFastCommentsSDK({
apiKey: 'your-api-key', // Gardez ceci secret sur le serveur !
basePath: 'https://fastcomments.com' // optionnel, utilise https://fastcomments.com par défaut
});
// Utilise les API sécurisées avec votre clé API
const comments = await sdk.defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Importation des types uniquement
Si vous avez seulement besoin des types TypeScript (aucun code à l'exécution), utilisez l'importation par défaut :
// Uniquement les types (aucune dépendance à l'exécution - sûr partout)
import type {
PublicComment,
CreateCommentParams,
GetCommentsPublic200Response
} from 'fastcomments-sdk';
Utilisation des classes 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 clé API pour l'authentification. Utilisez-les pour les opérations côté serveur.PublicApi- Points de terminaison publics qui peuvent être accédés sans clé API. Ils peuvent être appelés directement depuis des navigateurs/appareils mobiles/etc.ModerationApi- Points de terminaison du tableau de bord de modération (modération des commentaires, bannissements, badges, facteur de confiance, recherche). Authentifié par la session du modérateur ; transmettez le paramètre de requêtessopour les modérateurs authentifiés par SSO.HiddenApi- Points de terminaison internes/admin pour des cas d'utilisation avancés.
Exemple : Utiliser Public API (sécuritaire pour le navigateur)
import { PublicApi } from 'fastcomments-sdk/browser';
const publicApi = new PublicApi();
// Obtenir les commentaires d'une page (aucune clé API requise)
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Exemple : Utiliser Default API (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);
// Obtenir les commentaires avec un accès administrateur complet
const response = await defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Exemple : Utiliser Moderation API
import { createFastCommentsSDK } from 'fastcomments-sdk/server';
const sdk = createFastCommentsSDK({ /* basePath, etc. */ });
// Appels authentifiés par le modérateur (cookie de session, ou passer `sso` pour un modérateur authentifié via SSO).
const comments = await sdk.moderationApi.getApiComments({
tenantId: 'your-tenant-id'
});
await sdk.moderationApi.postSetCommentSpamStatus({
commentId: 'comment-id',
spam: true
});
Intégration SSO (authentification unique) 
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 serveur car elle requiert 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/back-end)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Crée 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/back-end)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Crée 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 des appels d'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 point de terminaison 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)
// Recherche d'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 sur les commentaires, les votes et d'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',
};
// S'abonner aux événements en direct pour une page
const subscription = subscribeToChanges(
config,
'your-tenant-id', // tenantIdWS
'page-url-id', // urlIdWS
'user-session-id', // userIdWS (obtenez ceci à partir de la réponse de getComments)
(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 utilisateur avec le nouveau commentaire
break;
case LiveEventType.new_vote:
console.log('New vote:', event.vote);
// Mettez à jour les compteurs de votes dans votre interface utilisateur
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');
}
);
// Fermez l'abonnement lorsque terminé
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', // Obtenez ceci à partir de la réponse de getComments
};
// Abonnez-vous au fil personnel de l'utilisateur
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 utilisateur
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');
}
);
// Fermez lorsque terminé
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'
});
// Extraire userIdWS de la réponse
const userIdWS = response.data?.userSessionInfo?.userIdWS;
if (userIdWS) {
// Vous pouvez maintenant vous abonner aux événements en direct
const subscription = subscribeToChanges(config, tenantIdWS, urlIdWS, userIdWS, handleEvent);
}
ID de diffusion 
Vous verrez que vous devez transmettre un broadcastId dans certains appels d'API. Lorsque vous recevrez des événements, vous recevrez cet ID en retour, ce qui vous permet d'ignorer l'événement si vous prévoyez d'appliquer les modifications de façon optimiste sur le client (ce que vous voudrez probablement faire, car cela offre la meilleure expérience). Fournissez un UUID ici. L'ID doit être suffisamment unique pour ne pas apparaître deux fois lors d'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 
Agrège les documents en les regroupant (si groupBy est fourni) et en appliquant plusieurs opérations.
Différents types d’opérations (par ex. somme, countDistinct, moyenne, etc.) sont pris en charge.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| aggregationRequest | AggregationRequest | Oui | |
| parentTenantId | string | Non | |
| includeStats | boolean | Non |
Réponse
Renvoie : AggregateResponse
Exemple

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

blockFromCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Oui | |
| sso | string | Non |
Réponse
Retourne : BlockFromCommentPublicResponse
Exemple

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

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

blockUserFromComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| blockFromCommentParams | BlockFromCommentParams | Yes | |
| userId | string | No | |
| anonUserId | string | No |
Réponse
Renvoie : BlockUserFromCommentResponse
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 : CreateCommentPublicResponse
Exemple

deleteComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| contextUserId | string | Non | |
| isLive | boolean | Non |
Réponse
Retourne : DeleteCommentResponse
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 : DeleteCommentPublicResponse
Exemple

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

flagComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
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 | 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 : GetCommentsPublicResponse
Exemple

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

getCommentVoteUserNames 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| dir | number | Oui | |
| sso | string | Non |
Réponse
Renvoie : GetCommentVoteUserNamesResponse
Exemple

lockComment 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| broadcastId | string | Yes | |
| sso | string | No |
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
Renvoie : 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 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| createCommentParams | Array | Yes | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| sendEmails | boolean | No | |
| populateNotifications | boolean | No |
Réponse
Renvoie : 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
Renvoie : 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
Renvoie : 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
Renvoie : UpdateCommentResponse
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 : VoteCommentResponse
Exemple

getCommentsForUser 
Paramètres
| Nom | Type | Obligatoire | 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 : 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
Renvoie : DeleteDomainConfigResponse
Exemple

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

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

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

putDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Oui | |
| updateDomainConfigParams | UpdateDomainConfigParams | Oui |
Réponse
Renvoie : 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 | Oui | |
| id | string | Oui |
Réponse
Retourne : DeleteEmailTemplateResponse
Exemple

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

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

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

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

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

renderEmailTemplate 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Yes | |
| locale | string | No |
Response
Retourne : RenderEmailTemplateResponse1
Example

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

getEventLog 
req tenantId urlId userIdWS
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| userIdWS | string | Yes | |
| startTime | number | Yes | |
| endTime | number | No |
Réponse
Renvoie : GetEventLogResponse1
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
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
Renvoie : CreateFeedPostPublicResponse
Exemple

deleteFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteFeedPostPublicResponse
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
Retourne : GetFeedPostsResponse1
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 : 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
Renvoie : GetUserReactsPublicResponse
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
Retourne : ReactFeedPostPublicResponse
Exemple

updateFeedPost 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| feedPost | FeedPost | Oui |
Réponse
Renvoie : UpdateFeedPostResponse
Exemple

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

flagCommentPublic 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| isFlagged | boolean | Yes | |
| sso | string | No |
Réponse
Retourne : FlagCommentPublicResponse
Exemple

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

getGifsSearch 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| search | string | Yes | |
| locale | string | No | |
| rating | string | No | |
| page | number | No |
Réponse
Retourne : 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
Renvoie : AddHashTagResponse
Exemple

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

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

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

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

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

getApiComments 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| page | number | Non | |
| count | number | Non | |
| textSearch | string | Non | |
| byIPFromComment | string | Non | |
| filters | string | Non | |
| searchFilters | string | Non | |
| sorts | string | Non | |
| demo | boolean | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : GetApiCommentsResponse
Exemple

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
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Yes | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetBanUsersFromCommentResponse
Exemple

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

getCommentChildren 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| commentId | string | Yes | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Retourne : GetCommentChildrenResponse
Exemple

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

getCounts 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : 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 | Non | |
| sso | string | Non |
Réponse
Renvoie : GetManualBadgesResponse
Exemple

getManualBadgesForUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| badgesUserId | string | Non | |
| commentId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : 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
Retourne : GetModerationCommentResponse
Exemple

getModerationCommentText 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| tenantId | string | No | |
| sso | string | No |
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
Renvoie : GetPreBanSummaryResponse
Exemple

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

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

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

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

getSearchUsers 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| value | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Response
Returns: GetSearchUsersResponse
Example

getTrustFactor 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| userId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
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 | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : GetUserInternalProfileResponse1
Exemple

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

postApiExport 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| textSearch | string | No | |
| byIPFromComment | string | No | |
| filters | string | No | |
| searchFilters | string | No | |
| sorts | string | No | |
| tenantId | string | No | |
| sso | string | No |
Response
Renvoie : PostApiExportResponse
Exemple

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

postBanUserUndo 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| banUserUndoParams | BanUserUndoParams | Oui | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Retourne : 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
Retourne : PostFlagCommentResponse
Exemple

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

postRestoreDeletedComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Oui | |
| broadcastId | string | Non | |
| tenantId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : 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
Renvoie : PostSetCommentApprovalStatusResponse
Exemple

postSetCommentReviewStatus 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| commentId | string | Yes | |
| reviewed | boolean | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Response
Retourne : PostSetCommentReviewStatusResponse
Example

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

postSetCommentText 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| commentId | string | Yes | |
| setCommentTextParams | SetCommentTextParams | Yes | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : PostSetCommentTextResponse
Exemple

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

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

putAwardBadge 
Paramètres
| Nom | Type | Obligatoire | 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 | Yes | |
| userId | string | No | |
| commentId | string | No | |
| broadcastId | string | No | |
| tenantId | string | No | |
| sso | string | No |
Réponse
Renvoie : PutRemoveBadgeResponse
Exemple

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

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

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

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

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

getModerators 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| skip | number | No |
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 | Oui | |
| id | string | Oui |
Réponse
Renvoie : DeleteNotificationCountResponse
Exemple

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

getNotificationCount 
Parameters
| 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 : GetNotificationCountResponse1
Exemple

getNotifications 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| urlId | string | Non | |
| fromCommentId | string | Non | |
| viewed | boolean | Non | |
| type | string | Non | |
| skip | number | Non |
Response
Renvoie : GetNotificationsResponse1
Exemple

updateNotification 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateNotificationBody | UpdateNotificationBody | Oui | |
| userId | string | Non |
Réponse
Retourne : UpdateNotificationResponse
Exemple

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

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

deleteV1PageReact 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Response
Renvoie : DeleteV1PageReactResponse
Exemple

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

getV2PageReactUsers 
Paramètres
| Nom | Type | Requis | 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 
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 rendre une section « Membres ».
Pagination par curseur sur commenterName : le serveur parcourt le partiel {tenantId, urlId, commenterName}
indice à partir de afterName vers l’avant via $gt, aucun coût $skip.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| afterName | string | No | |
| afterUserId | string | No |
Réponse
Renvoie : GetOfflineUsersResponse
Exemple

getOnlineUsers 
Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| afterName | string | Non | |
| afterUserId | string | Non |
Réponse
Renvoie : GetOnlineUsersResponse
Exemple

getPageByURLId 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes |
Response
Renvoie : GetPageByURLIdAPIResponse
Example

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

getPagesPublic 
Liste des pages pour un locataire. Utilisé par le client de bureau FChat pour remplir sa liste de salles.
Exige que enableFChat soit vrai dans la configuration personnalisée résolue pour chaque page.
Les pages nécessitant SSO sont filtrées en fonction de l’accès aux groupes 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 : GetPagesPublicResponse
Exemple

getUsersInfo 
Informations d'utilisateur en masse 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 | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| ids | string | Oui |
Réponse
Renvoie : 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 | Yes | |
| id | string | Yes |
Réponse
Renvoie : DeletePendingWebhookEventResponse
Exemple

getPendingWebhookEventCount 
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 |
Réponse
Renvoie : GetPendingWebhookEventCountResponse1
Exemple

getPendingWebhookEvents 
Paramètres
| Nom | Type | Obligatoire | 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 : GetPendingWebhookEventsResponse1
Exemple

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

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

getQuestionConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Renvoie : 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
Renvoie : UpdateQuestionConfigResponse
Exemple

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

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

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

getQuestionResults 
Paramètres
| Nom | Type | Obligatoire | 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 : GetQuestionResultsResponse1
Exemple

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

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

bulkAggregateQuestionResults 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Oui | |
| forceRecalculate | boolean | Non |
Réponse
Renvoie : 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
Renvoie : CombineCommentsWithQuestionResultsResponse
Exemple

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

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

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

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

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

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

putSSOUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateAPISSOUserData | UpdateAPISSOUserData | Yes | |
| updateComments | boolean | No |
Réponse
Retourne : PutSSOUserAPIResponse
Exemple

createSubscription 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Oui |
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 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| userId | string | No |
Réponse
Renvoie : GetSubscriptionsAPIResponse
Exemple

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

getTenantDailyUsages 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| yearNumber | number | No | |
| monthNumber | number | No | |
| dayNumber | number | No | |
| skip | number | No |
Réponse
Renvoie : GetTenantDailyUsagesResponse1
Exemple

createTenantPackage 
Paramètres
| Nom | Type | Requis | 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
Renvoie : GetTenantPackagesResponse1
Exemple

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

updateTenantPackage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateTenantPackageBody | UpdateTenantPackageBody | Oui |
Réponse
Retourne : 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
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
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 | Oui | |
| id | string | Oui | |
| replaceTenantUserBody | ReplaceTenantUserBody | Oui | |
| updateComments | string | Non |
Réponse
Renvoie : ReplaceTenantUserResponse
Exemple

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

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

createTenant 
Paramètres
| Nom | Type | Requis | 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 | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : GetTenantResponse1
Exemple

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

updateTenant 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateTenantBody | UpdateTenantBody | Oui |
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
Retourne : 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
Renvoie : GetTicketResponse1
Exemple

getTickets 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| state | number | Non | |
| skip | number | Non | |
| limit | number | Non |
Response
Renvoie : GetTicketsResponse1
Exemple

getTranslations 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| namespace | string | Yes | |
| component | string | Yes | |
| locale | string | No | |
| useFullTranslationIds | boolean | No |
Réponse
Renvoie : GetTranslationsResponse1
Exemple

uploadImage 
Téléverser et redimensionner une image
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| file | Blob | Yes | |
| sizePreset | SizePreset | No | |
| urlId | string | No |
Réponse
Retourne : UploadImageResponse
Exemple

getUserBadgeProgressById 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
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
Renvoie : CreateUserBadgeResponse
Exemple

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

getUserBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes |
Réponse
Retourne : GetUserBadgeResponse
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 : GetUserBadgesResponse
Exemple

updateUserBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateUserBadgeParams | UpdateUserBadgeParams | Yes |
Réponse
Renvoie : 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 | Yes | |
| urlId | string | No | |
| pageSize | number | No | |
| afterId | string | No | |
| includeContext | boolean | No | |
| afterCreatedAt | number | No | |
| unreadOnly | boolean | No | |
| dmOnly | boolean | No | |
| noDm | boolean | No | |
| includeTranslations | boolean | No | |
| includeTenantNotifications | boolean | No | |
| sso | string | No |
Réponse
Retourne : GetUserNotificationsResponse
Exemple

resetUserNotificationCount 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| sso | string | No |
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 
Enable or disable notifications for a specific comment.
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 
Enable 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 racines, ainsi que
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| url | string | Oui | |
| pageTitle | string | Oui | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Oui | |
| sso | string | Non |
Réponse
Retourne : UpdateUserNotificationPageSubscriptionStatusResponse
Exemple

updateUserNotificationStatus 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Oui | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Oui | |
| sso | string | Non |
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 | Oui | |
| urlId | string | Oui | |
| usernameStartsWith | string | Non | |
| mentionGroupIds | Array | Non | |
| sso | string | Non | |
| searchSection | SearchUsersSearchSectionEnum | Non |
Réponse
Retourne : SearchUsersResponse1
Exemple

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

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

deleteVote 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| editKey | string | No |
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 | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| urlId | string | Yes | |
| userId | string | No | |
| anonUserId | string | No |
Réponse
Retourne : GetVotesForUserResponse1
Exemple

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