
Langue 🇫🇷 Français (France)
Premiers pas
Référence API
Documentation
Utilisation
Agrégation
Journaux d'audit
Bloquer depuis un commentaire
Vérifier les commentaires bloqués
Commentaires
Configurations de domaine
Modèles d'e-mail
Journal d'événements
Publications du flux
Signaler le commentaire
Hashtags
Modérateurs
Nombre de notifications
Notifications
Pages
Événements webhook en attente
Configurations de questions
Résultats des questions
Agrégation des résultats de questions
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Forfaits du locataire
Utilisateurs du locataire
Locataires
Téléverser une image
Progression du badge utilisateur
Badges utilisateur
Notifications utilisateur
Statuts de présence utilisateur
Recherche d'utilisateurs
Utilisateurs
Votes
FastComments JavaScript/TypeScript SDK
Il s'agit du SDK officiel JavaScript/TypeScript pour FastComments.
SDK officiel JavaScript/TypeScript pour l'API FastComments
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 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 trois classes d'API principales :
DefaultApi- Points de terminaison sécurisés qui nécessitent votre clé API pour l'authentification. Utilisez-les pour les opérations côté serveur.PublicApi- Points de terminaison publics accessibles sans clé API. Ils peuvent être appelés directement depuis des navigateurs, appareils mobiles, etc.HiddenApi- Points de terminaison internes/admin pour des cas d'utilisation avancés.
Exemple : Utilisation de l'API publique (adaptée au navigateur)
import { PublicApi } from 'fastcomments-sdk/browser';
const publicApi = new PublicApi();
// Récupérer les commentaires d'une page (pas de clé API requise)
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Exemple : Utilisation de l'API par défaut (côté serveur uniquement)
import { DefaultApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key' // À garder secret !
});
const defaultApi = new DefaultApi(config);
// Récupérer les commentaires avec un accès administrateur complet
const response = await defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
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 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 
Agrège les documents en les regroupant (si groupBy est fourni) et en appliquant plusieurs opérations. Différentes opérations (p. ex. sum, countDistinct, avg, etc.) sont prises en charge.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| aggregationRequest | AggregationRequest | Oui | |
| parentTenantId | string | Non | |
| includeStats | boolean | Non |
Réponse
Renvoie : AggregationResponse
getAuditLogs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| limit | number | Non | |
| skip | number | Non | |
| order | SORTDIR | Non | |
| after | number | Non | |
| before | number | Non |
Réponse
Renvoie : GetAuditLogs200Response
blockFromCommentPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Oui | |
| sso | string | Non |
Réponse
Renvoie: BlockFromCommentPublic200Response
unBlockCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Oui | |
| sso | string | Non |
Réponse
Renvoie: UnBlockCommentPublic200Response
checkedCommentsForBlocked 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentIds | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : CheckedCommentsForBlocked200Response
blockUserFromComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| blockFromCommentParams | BlockFromCommentParams | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: BlockFromCommentPublic200Response
createCommentPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Oui | |
| commentData | CommentData | Oui | |
| sessionId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : CreateCommentPublic200Response
deleteComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| contextUserId | string | Non | |
| isLive | boolean | Non |
Réponse
Retourne: DeleteComment200Response
deleteCommentPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteCommentPublic200Response
deleteCommentVote 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| voteId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteCommentVote200Response
flagComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : FlagComment200Response
getComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : GetComment200Response
getComments 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| page | number | Non | |
| limit | number | Non | |
| skip | number | Non | |
| asTree | boolean | Non | |
| skipChildren | number | Non | |
| limitChildren | number | Non | |
| maxTreeDepth | number | Non | |
| urlId | string | Non | |
| userId | string | Non | |
| anonUserId | string | Non | |
| contextUserId | string | Non | |
| hashTag | string | Non | |
| parentId | string | Non | |
| direction | SortDirections | Non |
Réponse
Retourne: GetComments200Response
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 : GetCommentsPublic200Response
getCommentText 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie : GetCommentText200Response
getCommentVoteUserNames 
Parameters
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| dir | number | Oui | |
| sso | string | Non |
Réponse
Renvoie: GetCommentVoteUserNames200Response
lockComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: LockComment200Response
pinComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : PinComment200Response
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 : SaveComment200Response
saveCommentsBulk 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createCommentParams | Array |
Oui | |
| isLive | boolean | Non | |
| doSpamCheck | boolean | Non | |
| sendEmails | boolean | Non | |
| populateNotifications | boolean | Non |
Réponse
Renvoie: Array<SaveComment200Response
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 : SetCommentText200Response
unBlockUserFromComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: UnBlockCommentPublic200Response
unFlagComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: FlagComment200Response
unLockComment 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Retourne: LockComment200Response
unPinComment 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: PinComment200Response
updateComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| body | PickAPICommentUpdatableCommentFields | Oui | |
| contextUserId | string | Non | |
| doSpamCheck | boolean | Non | |
| isLive | boolean | Non |
Réponse
Renvoie: FlagCommentPublic200Response
voteComment 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Oui | |
| voteBodyParams | VoteBodyParams | Oui | |
| sessionId | string | Non | |
| sso | string | Non |
Réponse
Renvoie: VoteComment200Response
addDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| addDomainConfigParams | AddDomainConfigParams | Oui |
Réponse
Renvoie: AddDomainConfig200Response
deleteDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Oui |
Réponse
Retourne: DeleteDomainConfig200Response
getDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Oui |
Réponse
Renvoie: GetDomainConfig200Response
getDomainConfigs 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Renvoie : GetDomainConfigs200Response
patchDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Oui | |
| patchDomainConfigParams | PatchDomainConfigParams | Oui |
Réponse
Retourne : GetDomainConfig200Response
putDomainConfig 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Oui | |
| updateDomainConfigParams | UpdateDomainConfigParams | Oui |
Réponse
Renvoie: GetDomainConfig200Response
createEmailTemplate 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createEmailTemplateBody | CreateEmailTemplateBody | Oui |
Réponse
Renvoie : CreateEmailTemplate200Response
Exemple

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

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

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

getEmailTemplateDefinitions 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes |
Réponse
Renvoie : GetEmailTemplateDefinitions200Response
Exemple

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

getEmailTemplates 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Response
Retourne : GetEmailTemplates200Response
Exemple

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

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

getEventLog 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userIdWS | string | Oui | |
| startTime | number | Oui | |
| endTime | number | Oui |
Réponse
Retourne : GetEventLog200Response
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 | Oui |
Réponse
Retourne : GetEventLog200Response
createFeedPost 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| isLive | boolean | Non | |
| doSpamCheck | boolean | Non | |
| skipDupCheck | boolean | Non |
Réponse
Renvoie : CreateFeedPost200Response
createFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie: CreateFeedPostPublic200Response
deleteFeedPostPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : DeleteFeedPostPublic200Response
getFeedPosts 
req tenantId afterId
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | number | Non | |
| tags | Array |
Non |
Réponse
Renvoie : GetFeedPosts200Response
getFeedPostsPublic 
req tenantId afterId
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | number | Non | |
| tags | Array |
Non | |
| sso | string | Non | |
| isCrawler | boolean | Non | |
| includeUserInfo | boolean | Non |
Réponse
Renvoie : GetFeedPostsPublic200Response
getFeedPostsStats 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | Array |
Oui | |
| sso | string | Non |
Response
Retourne: GetFeedPostsStats200Response
getUserReactsPublic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | Array |
Non | |
| sso | string | Non |
Réponse
Retourne: GetUserReactsPublic200Response
reactFeedPostPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| reactBodyParams | ReactBodyParams | Oui | |
| isUndo | boolean | Non | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : ReactFeedPostPublic200Response
updateFeedPost 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| feedPost | FeedPost | Oui |
Réponse
Retourne : FlagCommentPublic200Response
updateFeedPostPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Oui | |
| updateFeedPostParams | UpdateFeedPostParams | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie: CreateFeedPostPublic200Response
flagCommentPublic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| isFlagged | boolean | Oui | |
| sso | string | Non |
Réponse
Retourne : FlagCommentPublic200Response
addHashTag 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Non | |
| createHashTagBody | CreateHashTagBody | Non |
Réponse
Renvoie : AddHashTag200Response
Exemple

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

deleteHashTag 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tag | string | Oui | |
| tenantId | string | Non | |
| deleteHashTagRequest | DeleteHashTagRequest | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

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

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

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

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

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

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

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

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

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

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

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

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

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

addPage 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIPageData | CreateAPIPageData | Oui |
Réponse
Retourne: AddPageAPIResponse
deletePage 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : DeletePageAPIResponse
getPageByURLId 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie : GetPageByURLIdAPIResponse
getPages 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Renvoie : GetPagesAPIResponse
patchPage 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPIPageData | UpdateAPIPageData | Oui |
Réponse
Renvoie: PatchPageAPIResponse
deletePendingWebhookEvent 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

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

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

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

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

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

getQuestionConfigs 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Retourne: GetQuestionConfigs200Response
Exemple

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

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

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

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

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

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

aggregateQuestionResults 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| questionId | string | No | |
| questionIds | Array |
No | |
| urlId | string | No | |
| timeBucket | AggregateTimeBucket | No | |
| startDate | Date | No | |
| forceRecalculate | boolean | No |
Réponse
Retourne: AggregateQuestionResults200Response
bulkAggregateQuestionResults 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Oui | |
| forceRecalculate | boolean | Non |
Réponse
Renvoie : BulkAggregateQuestionResults200Response
combineCommentsWithQuestionResults 
Paramètres
| Nom | Type | Requis | 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 : CombineCommentsWithQuestionResults200Response
addSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPISSOUserData | CreateAPISSOUserData | Oui |
Réponse
Renvoie : AddSSOUserAPIResponse
deleteSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| deleteComments | boolean | Non | |
| commentDeleteMode | string | Non |
Réponse
Renvoie: DeleteSSOUserAPIResponse
getSSOUserByEmail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| string | Oui |
Réponse
Renvoie : GetSSOUserByEmailAPIResponse
getSSOUserById 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetSSOUserByIdAPIResponse
getSSOUsers 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | number | Non |
Réponse
Retourne: GetSSOUsers200Response
patchSSOUser 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPISSOUserData | UpdateAPISSOUserData | Oui | |
| updateComments | boolean | Non |
Réponse
Renvoie: PatchSSOUserAPIResponse
putSSOUser 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateAPISSOUserData | UpdateAPISSOUserData | Oui | |
| updateComments | boolean | Non |
Réponse
Renvoie: PutSSOUserAPIResponse
createSubscription 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Oui |
Réponse
Retourne: CreateSubscriptionAPIResponse
deleteSubscription 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| userId | string | Non |
Réponse
Retourne: DeleteSubscriptionAPIResponse
getSubscriptions 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non |
Réponse
Renvoie : GetSubscriptionsAPIResponse
getTenantDailyUsages 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| yearNumber | number | Non | |
| monthNumber | number | Non | |
| dayNumber | number | Non | |
| skip | number | Non |
Réponse
Renvoie: GetTenantDailyUsages200Response
Exemple

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

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

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

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

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

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

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

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

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

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

replaceTenantUser 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| replaceTenantUserBody | ReplaceTenantUserBody | Oui | |
| updateComments | string | Non |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

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

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

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

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

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

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

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

uploadImage 
Téléverser et redimensionner une image
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| file | Blob | Oui | |
| sizePreset | SizePreset | Non | |
| urlId | string | Non |
Réponse
Renvoie: UploadImageResponse
getUserBadgeProgressById 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetUserBadgeProgressById200Response
getUserBadgeProgressByUserId 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Oui |
Réponse
Retourne : GetUserBadgeProgressById200Response
getUserBadgeProgressList 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| limit | number | Non | |
| skip | number | Non |
Réponse
Renvoie: GetUserBadgeProgressList200Response
createUserBadge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createUserBadgeParams | CreateUserBadgeParams | Oui |
Réponse
Renvoie : CreateUserBadge200Response
deleteUserBadge 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : UpdateUserBadge200Response
getUserBadge 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie : GetUserBadge200Response
getUserBadges 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| badgeId | string | Non | |
| type | number | Non | |
| displayedOnComments | boolean | Non | |
| limit | number | Non | |
| skip | number | Non |
Réponse
Renvoie : GetUserBadges200Response
updateUserBadge 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui | |
| updateUserBadgeParams | UpdateUserBadgeParams | Oui |
Réponse
Retourne: UpdateUserBadge200Response
getUserNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: GetUserNotificationCount200Response
getUserNotifications 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| pageSize | number | Non | |
| afterId | string | Non | |
| includeContext | boolean | Non | |
| afterCreatedAt | number | Non | |
| unreadOnly | boolean | Non | |
| dmOnly | boolean | Non | |
| noDm | boolean | Non | |
| includeTranslations | boolean | Non | |
| sso | string | Non |
Réponse
Renvoie : GetUserNotifications200Response
resetUserNotificationCount 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : ResetUserNotifications200Response
resetUserNotifications 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| afterCreatedAt | number | Non | |
| unreadOnly | boolean | Non | |
| dmOnly | boolean | Non | |
| noDm | boolean | Non | |
| sso | string | Non |
Réponse
Retourne: ResetUserNotifications200Response
updateUserNotificationCommentSubscriptionStatus 
Activer ou désactiver les notifications pour un commentaire spécifique.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Oui | |
| optedInOrOut | UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum | Oui | |
| commentId | string | Oui | |
| sso | string | Non |
Réponse
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 racines, et aussi
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| url | string | Oui | |
| pageTitle | string | Oui | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Oui | |
| sso | string | Non |
Réponse
Renvoie : UpdateUserNotificationStatus200Response
updateUserNotificationStatus 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Oui | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Oui | |
| sso | string | Non |
Réponse
Renvoie: UpdateUserNotificationStatus200Response
getUserPresenceStatuses 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlIdWS | string | Oui | |
| userIds | string | Oui |
Réponse
Renvoie: GetUserPresenceStatuses200Response
searchUsers 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| usernameStartsWith | string | Oui | |
| mentionGroupIds | Array |
Non | |
| sso | string | Non |
Réponse
Renvoie : SearchUsers200Response
getUser 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Oui |
Réponse
Renvoie: GetUser200Response
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
Renvoie : VoteComment200Response
Exemple

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

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

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

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