
Langue 🇨🇦 Français (Canada)
Documentation
Premiers pas
Référence de l'API
Utilisation
Agrégation
Journaux d'audit
Bloquer depuis le commentaire
Vérifier les commentaires bloqués
Commentaires
Configurations de domaine
Modèles de courriel
Journal des événements
Publications
Signaler le commentaire
Mots-clics
Modérateurs
Nombre de notifications
Notifications
Pages
Événements webhook en attente
Configurations des questions
Résultats des questions
Agrégation des résultats des questions
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Forfaits du locataire
Utilisateurs du locataire
Locataires
Téléverser une image
Progression des badges utilisateur
Badges utilisateur
Notifications utilisateur
Statuts de présence des utilisateurs
Recherche d'utilisateurs
Utilisateurs
Votes
FastComments Nim SDK
Ceci est le SDK Nim officiel pour FastComments.
SDK Nim officiel pour l'API FastComments
Dépôt
Installation 
Utilisation de Nimble
nimble install fastcomments
Compilation à partir du code source
nimble build
Contenu de la bibliothèque
Cette bibliothèque contient le client API généré et les utilitaires SSO pour faciliter l'utilisation de l'API.
APIs publiques vs sécurisées
Pour le client API, il y a deux modules API, api_default et api_public. Le module api_default contient des méthodes qui nécessitent votre clé API, et api_public contient des appels d'API qui peuvent être effectués directement depuis un navigateur, un appareil mobile, etc., sans authentification.
Démarrage rapide 
Utilisation des API authentifiées (DefaultAPI)
Important : Les points de terminaison authentifiés exigent que votre clé API soit définie dans l'en-tête x-api-key.
import httpclient
import fastcomments
import fastcomments/apis/api_default
import fastcomments/models/model_comment_data
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
# Effectuer des appels d'API authentifiés
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
Utilisation des API publiques (PublicAPI)
Les points de terminaison publics ne nécessitent pas d'authentification :
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# Effectuer des appels d'API publics
let (response, httpResponse) = getCommentsPublic(
httpClient = client,
tenantId = "your-tenant-id",
urlId = "your-url-id",
page = 0,
direction = SortDirections.DESC,
sso = "",
skip = 0,
skipChildren = 0,
limit = 0,
limitChildren = 0,
countChildren = false,
fetchPageForCommentId = "",
includeConfig = false,
countAll = false,
includei10n = false,
locale = "",
modules = "",
isCrawler = false,
includeNotificationCount = false,
asTree = false,
maxTreeDepth = 0,
useFullTranslationIds = false,
parentId = "",
searchText = "",
hashTags = @[],
userId = "",
customConfigStr = "",
afterCommentId = "",
beforeCommentId = ""
)
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
Problèmes courants
- Erreur d'authentification 401 : Assurez-vous de définir l'en-tête
x-api-keysur votre HttpClient avant d'effectuer des requêtes DefaultAPI :client.headers["x-api-key"] = "your-api-key" - Mauvaise classe d'API : Utilisez
api_defaultpour les requêtes authentifiées côté serveur, etapi_publicpour les requêtes côté client/public.
Appels API 
Toutes les méthodes d'API dans ce SDK renvoient des tuples de (Option[ResponseType], Response). Le premier élément contient la réponse analysée si la requête réussit, et le deuxième élément est la réponse HTTP brute.
Exemple : Récupération des commentaires
import httpclient
import options
import fastcomments
import fastcomments/apis/api_default
let client = newHttpClient()
client.headers["x-api-key"] = "your-api-key"
let (response, httpResponse) = getComments(
httpClient = client,
tenantId = "your-tenant-id",
page = 0,
limit = 0,
skip = 0,
asTree = false,
skipChildren = 0,
limitChildren = 0,
maxTreeDepth = 0,
urlId = "your-url-id",
userId = "",
anonUserId = "",
contextUserId = "",
hashTag = "",
parentId = "",
direction = SortDirections.DESC
)
if httpResponse.code == Http200:
if response.isSome:
let resp = response.get()
if resp.comments.isSome:
echo "Found ", resp.comments.get().len, " comments"
Notes 
Identifiants de diffusion
Vous verrez que vous devez transmettre un broadcastId dans certains appels d'API. Lorsque vous recevez des événements, vous recevrez cet ID en retour, ce qui vous permet de savoir quand ignorer l'événement si vous prévoyez d'appliquer des modifications de façon optimiste côté client
(ce que vous voudrez probablement faire, car cela offre la meilleure expérience). Transmettez un UUID ici. L'ID doit être suffisamment unique pour ne pas apparaître deux fois au cours d'une session de navigateur.
SSO (Authentification unique)
Pour des exemples d'authentification unique, voir ci‑dessous.
Utilisation SSO 
SSO simple
import fastcomments/sso
let user = newSimpleSSOUserData(
userId = "user-123",
email = "user@example.com",
avatar = "https://example.com/avatar.jpg"
)
let sso = newSimple(simpleUserData = user)
let token = sso.createToken()
echo "SSO Token: ", token
SSO sécurisé
import fastcomments/sso
let user = newSecureSSOUserData(
userId = "user-123",
email = "user@example.com",
username = "johndoe",
avatar = "https://example.com/avatar.jpg"
)
let apiKey = "your-api-key"
let sso = newSecure(apiKey = apiKey, secureUserData = user)
let token = sso.createToken()
echo "Secure SSO Token: ", token
Documentation pour FastComments 
Documentation pour fastcomments
Documentation pour les points de terminaison de l'API
Toutes les URI sont relatives à https://fastcomments.com
| Classe | Méthode | Requête HTTP | Description |
|---|---|---|---|
| DefaultApi | addDomainConfig | POST /api/v1/domain-configs | |
| DefaultApi | addPage | POST /api/v1/pages | |
| DefaultApi | addSSOUser | POST /api/v1/sso-users | |
| DefaultApi | aggregate | POST /api/v1/aggregate | Agrège des 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. |
| DefaultApi | aggregateQuestionResults | GET /api/v1/question-results-aggregation | |
| DefaultApi | blockUserFromComment | POST /api/v1/comments/{id}/block | |
| DefaultApi | bulkAggregateQuestionResults | POST /api/v1/question-results-aggregation/bulk | |
| DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
| DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
| DefaultApi | createSubscription | POST /api/v1/subscriptions | |
| DefaultApi | createUserBadge | POST /api/v1/user-badges | |
| DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
| DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
| DefaultApi | deletePage | DELETE /api/v1/pages/{id} | |
| DefaultApi | deleteSSOUser | DELETE /api/v1/sso-users/{id} | |
| DefaultApi | deleteSubscription | DELETE /api/v1/subscriptions/{id} | |
| DefaultApi | deleteUserBadge | DELETE /api/v1/user-badges/{id} | |
| DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
| DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
| DefaultApi | getComment | GET /api/v1/comments/{id} | |
| DefaultApi | getComments | GET /api/v1/comments | |
| DefaultApi | getDomainConfig | GET /api/v1/domain-configs/{domain} | |
| DefaultApi | getDomainConfigs | GET /api/v1/domain-configs | |
| DefaultApi | getFeedPosts | GET /api/v1/feed-posts | requiert tenantId afterId |
| DefaultApi | getPageByURLId | GET /api/v1/pages/by-url-id | |
| DefaultApi | getPages | GET /api/v1/pages | |
| DefaultApi | getSSOUserByEmail | GET /api/v1/sso-users/by-email/{email} | |
| DefaultApi | getSSOUserById | GET /api/v1/sso-users/by-id/{id} | |
| DefaultApi | getSSOUsers | GET /api/v1/sso-users | |
| DefaultApi | getSubscriptions | GET /api/v1/subscriptions | |
| DefaultApi | getUserBadge | GET /api/v1/user-badges/{id} | |
| DefaultApi | getUserBadgeProgressById | GET /api/v1/user-badge-progress/{id} | |
| DefaultApi | getUserBadgeProgressByUserId | GET /api/v1/user-badge-progress/user/{userId} | |
| DefaultApi | getUserBadgeProgressList | GET /api/v1/user-badge-progress | |
| DefaultApi | getUserBadges | GET /api/v1/user-badges | |
| DefaultApi | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | patchPage | PATCH /api/v1/pages/{id} | |
| DefaultApi | patchSSOUser | PATCH /api/v1/sso-users/{id} | |
| DefaultApi | putDomainConfig | PUT /api/v1/domain-configs/{domainToUpdate} | |
| DefaultApi | putSSOUser | PUT /api/v1/sso-users/{id} | |
| DefaultApi | saveComment | POST /api/v1/comments | |
| DefaultApi | saveCommentsBulk | POST /api/v1/comments/bulk | |
| DefaultApi | unBlockUserFromComment | POST /api/v1/comments/{id}/un-block | |
| DefaultApi | unFlagComment | POST /api/v1/comments/{id}/un-flag | |
| DefaultApi | updateComment | PATCH /api/v1/comments/{id} | |
| DefaultApi | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
| DefaultApi | updateUserBadge | PUT /api/v1/user-badges/{id} | |
| PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
| PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
| PublicApi | createCommentPublic | POST /comments/{tenantId} | |
| PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
| PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
| PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| PublicApi | deleteFeedPostPublic | DELETE /feed-posts/{tenantId}/{postId} | |
| PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
| PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
| PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
| PublicApi | getCommentsPublic | GET /comments/{tenantId} | requiert tenantId urlId |
| PublicApi | getEventLog | GET /event-log/{tenantId} | requiert tenantId urlId userIdWS |
| PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | requiert tenantId afterId |
| PublicApi | getFeedPostsStats | GET /feed-posts/{tenantId}/stats | |
| PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | requiert tenantId urlId userIdWS |
| PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
| PublicApi | getUserNotifications | GET /user-notifications | |
| PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
| PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
| PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
| PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
| PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
| PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
| PublicApi | resetUserNotifications | POST /user-notifications/reset | |
| PublicApi | searchUsers | GET /user-search/{tenantId} | |
| PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
| PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
| PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
| PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
| PublicApi | updateFeedPostPublic | PUT /feed-posts/{tenantId}/{postId} | |
| PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | Activer ou désactiver les notifications pour un commentaire spécifique. |
| PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | 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 |
| PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| PublicApi | uploadImage | POST /upload-image/{tenantId} | Téléverse et redimensionne une image |
| PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
Documentation des modèles
- APIAuditLog
- APIComment
- APICommentBase
- APICreateUserBadgeResponse
- APIEmptyResponse
- APIEmptySuccessResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIGetUserBadgeProgressListResponse
- APIGetUserBadgeProgressResponse
- APIGetUserBadgeResponse
- APIGetUserBadgesResponse
- APIPage
- APISSOUser
- APIStatus
- APIUserSubscription
- AddDomainConfigParams
- AddDomainConfig_200_response
- AddDomainConfig_200_response_anyOf
- AddPageAPIResponse
- AddSSOUserAPIResponse
- AggregateQuestionResultsResponse
- AggregateQuestionResults_200_response
- AggregateTimeBucket
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequest_sort
- AggregationResponse
- AggregationResponse_stats
- AggregationValue
- BlockFromCommentParams
- BlockFromCommentPublic_200_response
- BlockSuccess
- BulkAggregateQuestionItem
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- BulkAggregateQuestionResults_200_response
- ChangeCommentPinStatusResponse
- CheckBlockedCommentsResponse
- CheckedCommentsForBlocked_200_response
- CombineCommentsWithQuestionResults_200_response
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentLogData
- CommentLogEntry
- CommentLogType
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CreateAPIPageData
- CreateAPISSOUserData
- CreateAPIUserSubscriptionData
- CreateCommentParams
- CreateCommentPublic_200_response
- CreateFeedPostParams
- CreateFeedPostPublic_200_response
- CreateFeedPostResponse
- CreateFeedPost_200_response
- CreateFeedPostsResponse
- CreateSubscriptionAPIResponse
- CreateUserBadgeParams
- CreateUserBadge_200_response
- CustomConfigParameters
- DeleteCommentAction
- DeleteCommentPublic_200_response
- DeleteCommentResult
- DeleteCommentVote_200_response
- DeleteComment_200_response
- DeleteDomainConfig_200_response
- DeleteFeedPostPublic_200_response
- DeleteFeedPostPublic_200_response_anyOf
- DeletePageAPIResponse
- DeleteSSOUserAPIResponse
- DeleteSubscriptionAPIResponse
- DeletedCommentResultComment
- EventLogEntry
- FComment
- FComment_meta
- FeedPost
- FeedPostLink
- FeedPostMediaItem
- FeedPostMediaItemAsset
- FeedPostStats
- FeedPostsStatsResponse
- FindCommentsByRangeItem
- FindCommentsByRangeResponse
- FlagCommentPublic_200_response
- FlagCommentResponse
- FlagComment_200_response
- GetAuditLogsResponse
- GetAuditLogs_200_response
- GetCommentText_200_response
- GetCommentVoteUserNamesSuccessResponse
- GetCommentVoteUserNames_200_response
- GetComment_200_response
- GetCommentsPublic_200_response
- GetCommentsResponseWithPresence_PublicComment_
- GetCommentsResponse_PublicComment_
- GetComments_200_response
- GetDomainConfig_200_response
- GetDomainConfigs_200_response
- GetDomainConfigs_200_response_anyOf
- GetDomainConfigs_200_response_anyOf_1
- GetEventLogResponse
- GetEventLog_200_response
- GetFeedPostsPublic_200_response
- GetFeedPostsResponse
- GetFeedPostsStats_200_response
- GetFeedPosts_200_response
- GetMyNotificationsResponse
- GetPageByURLIdAPIResponse
- GetPagesAPIResponse
- GetPublicFeedPostsResponse
- GetSSOUserByEmailAPIResponse
- GetSSOUserByIdAPIResponse
- GetSSOUsers_200_response
- GetSubscriptionsAPIResponse
- GetUserBadgeProgressById_200_response
- GetUserBadgeProgressList_200_response
- GetUserBadge_200_response
- GetUserBadges_200_response
- GetUserNotificationCountResponse
- GetUserNotificationCount_200_response
- GetUserNotifications_200_response
- GetUserPresenceStatusesResponse
- GetUserPresenceStatuses_200_response
- GetUserReactsPublic_200_response
- GifRating
- HeaderState
- IgnoredResponse
- ImageContentProfanityLevel
- LiveEvent
- LiveEventType
- LiveEvent_extraInfo
- LockComment_200_response
- MediaAsset
- MetaItem
- NotificationAndCount
- NotificationObjectType
- NotificationType
- PatchDomainConfigParams
- PatchPageAPIResponse
- PatchSSOUserAPIResponse
- PinComment_200_response
- PubSubComment
- PubSubCommentBase
- PubSubVote
- PublicAPIDeleteCommentResponse
- PublicAPIGetCommentTextResponse
- PublicAPISetCommentTextResponse
- PublicBlockFromCommentParams
- PublicComment
- PublicCommentBase
- PublicFeedPostsResponse
- PutSSOUserAPIResponse
- QueryPredicate
- QueryPredicate_value
- QuestionDatum
- QuestionRenderingType
- QuestionResult
- QuestionResultAggregationOverall
- QuestionSubQuestionVisibility
- QuestionWhenSave
- ReactBodyParams
- ReactFeedPostPublic_200_response
- ReactFeedPostResponse
- Record_string__before_string_or_null__after_string_or_null___value
- Record_string_string_or_number__value
- RenderableUserNotification
- RepeatCommentCheckIgnoredReason
- RepeatCommentHandlingAction
- ResetUserNotificationsResponse
- ResetUserNotifications_200_response
- SORT_DIR
- SSOSecurityLevel
- SaveCommentResponse
- SaveCommentResponseOptimized
- SaveComment_200_response
- SaveCommentsResponseWithPresence
- SearchUsersResponse
- SearchUsers_200_response
- SetCommentTextResult
- SetCommentText_200_response
- SizePreset
- SortDirections
- SpamRule
- UnBlockCommentPublic_200_response
- UnBlockFromCommentParams
- UnblockSuccess
- UpdatableCommentParams
- UpdateAPIPageData
- UpdateAPISSOUserData
- UpdateDomainConfigParams
- UpdateFeedPostParams
- UpdateUserBadgeParams
- UpdateUserBadge_200_response
- UpdateUserNotificationStatus_200_response
- UploadImageResponse
- UserBadge
- UserBadgeProgress
- UserNotification
- UserNotificationWriteResponse
- UserPresenceData
- UserReactsResponse
- UserSearchResult
- UserSessionInfo
- VoteBodyParams
- VoteComment_200_response
- VoteDeleteResponse
- VoteResponse
- VoteResponseUser
- VoteStyle
Documentation pour l'autorisation
api_key
- Type: Clé API
- Nom du paramètre de la clé API: x-api-key
- Emplacement: en-tête HTTP
Agréger 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| aggregationRequest | AggregationRequest | Non | |
| parentTenantId | string | Non | |
| includeStats | bool | Non |
Réponse
Renvoie : Option[AggregationResponse]
Exemple

Obtenir les journaux d'audit 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| limit | float64 | Non | |
| skip | float64 | Non | |
| order | SORTDIR | Non | |
| after | float64 | Non | |
| before | float64 | Non |
Réponse
Renvoie : Option[GetAuditLogs_200_response]
Exemple

Bloquer depuis un commentaire public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[BlockFromCommentPublic_200_response]
Exemple

Débloquer le commentaire public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[UnBlockCommentPublic_200_response]
Exemple

Vérifier les commentaires bloqués 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentIds | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[CheckedCommentsForBlocked_200_response]
Exemple

Bloquer l'utilisateur depuis un commentaire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| blockFromCommentParams | BlockFromCommentParams | No | |
| userId | string | No | |
| anonUserId | string | No |
Réponse
Renvoie : Option[BlockFromCommentPublic_200_response]
Exemple

Créer un commentaire public 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Non | |
| commentData | CommentData | Non | |
| sessionId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[CreateCommentPublic_200_response]
Exemple

Supprimer un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| contextUserId | string | Non | |
| isLive | bool | Non |
Réponse
Renvoie : Option[DeleteComment_200_response]
Exemple

Supprimer un commentaire public 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Non | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Retourne: Option[DeleteCommentPublic_200_response]
Exemple

Supprimer le vote sur un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| commentId | string | Yes | |
| voteId | string | No | |
| urlId | string | Yes | |
| broadcastId | string | No | |
| editKey | string | No | |
| sso | string | No |
Réponse
Retourne : Option[DeleteCommentVote_200_response]
Exemple

Signaler un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : Option[FlagComment_200_response]
Exemple

Obtenir un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetComment_200_response]
Exemple

Obtenir des commentaires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| page | int | Non | |
| limit | int | Non | |
| skip | int | Non | |
| asTree | bool | Non | |
| skipChildren | int | Non | |
| limitChildren | int | Non | |
| maxTreeDepth | int | Non | |
| urlId | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non | |
| contextUserId | string | Non | |
| hashTag | string | Non | |
| parentId | string | Non | |
| direction | SortDirections | Non |
Réponse
Retourne: Option[GetComments_200_response]
Exemple

Obtenir des commentaires publics 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| page | int | Non | |
| direction | SortDirections | Non | |
| sso | string | Non | |
| skip | int | Non | |
| skipChildren | int | Non | |
| limit | int | Non | |
| limitChildren | int | Non | |
| countChildren | bool | Non | |
| fetchPageForCommentId | string | Non | |
| includeConfig | bool | Non | |
| countAll | bool | Non | |
| includei10n | bool | Non | |
| locale | string | Non | |
| modules | string | Non | |
| isCrawler | bool | Non | |
| includeNotificationCount | bool | Non | |
| asTree | bool | Non | |
| maxTreeDepth | int | Non | |
| useFullTranslationIds | bool | Non | |
| parentId | string | Non | |
| searchText | string | Non | |
| hashTags | seq[string] | Non | |
| userId | string | Non | |
| customConfigStr | string | Non | |
| afterCommentId | string | Non | |
| beforeCommentId | string | Non |
Réponse
Retourne: Option[GetCommentsPublic_200_response]
Exemple

Obtenir le texte du commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Retourne : Option[GetCommentText_200_response]
Exemple

Obtenir les noms d'utilisateurs des votes de commentaires 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| dir | int | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[GetCommentVoteUserNames_200_response]
Exemple

Verrouiller le commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Retourne : Option[LockComment_200_response]
Exemple

Épingler le commentaire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[PinComment_200_response]
Exemple

Enregistrer le commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createCommentParams | CreateCommentParams | Non | |
| isLive | bool | Non | |
| doSpamCheck | bool | Non | |
| sendEmails | bool | Non | |
| populateNotifications | bool | Non |
Réponse
Renvoie : Option[SaveComment_200_response]
Exemple

Enregistrer des commentaires en masse 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createCommentParams | seq[CreateCommentParams] | Non | |
| isLive | bool | Non | |
| doSpamCheck | bool | Non | |
| sendEmails | bool | Non | |
| populateNotifications | bool): (Option[seq[SaveComment_200_response]] | Non | |
| id | string | Non | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: Option[UnBlockCommentPublic_200_response]
Exemple

Modifier le texte du commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Non | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Non | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[SetCommentText_200_response]
Exemple

Débloquer l'utilisateur depuis un commentaire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : Option[UnBlockCommentPublic_200_response]
Exemple

Retirer le signalement du commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: Option[FlagComment_200_response]
Exemple

Déverrouiller le commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[LockComment_200_response]
Exemple

Désépingler le commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[PinComment_200_response]
Exemple

Mettre à jour le commentaire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updatableCommentParams | UpdatableCommentParams | Non | |
| contextUserId | string | Non | |
| doSpamCheck | bool | Non | |
| isLive | bool | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Voter pour un commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| urlId | string | Oui | |
| broadcastId | string | Non | |
| voteBodyParams | VoteBodyParams | Non | |
| sessionId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[VoteComment_200_response]
Exemple

Ajouter une configuration de domaine 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| addDomainConfigParams | AddDomainConfigParams | Non |
Réponse
Renvoie : Option[AddDomainConfig_200_response]
Exemple

Supprimer une configuration de domaine 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Non |
Réponse
Renvoie: Option[DeleteDomainConfig_200_response]
Exemple

Obtenir la configuration de domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Non |
Réponse
Renvoie: Option[GetDomainConfig_200_response]
Exemple

Obtenir les configurations de domaine 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Renvoie: Option[GetDomainConfigs_200_response]
Exemple

Mettre à jour partiellement une configuration de domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Non | |
| patchDomainConfigParams | PatchDomainConfigParams | Non |
Réponse
Renvoie: Option[GetDomainConfig_200_response]
Exemple

Remplacer la configuration de domaine 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domainToUpdate | string | Non | |
| updateDomainConfigParams | UpdateDomainConfigParams | Non |
Réponse
Renvoie : Option[GetDomainConfig_200_response]
Exemple

Créer un modèle de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createEmailTemplateBody | CreateEmailTemplateBody | Non |
Réponse
Retourne: Option[CreateEmailTemplate_200_response]
Exemple

Supprimer un modèle de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Supprimer une erreur de rendu du modèle de courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| errorId | string | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Obtenir le modèle de courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[GetEmailTemplate_200_response]
Exemple

Obtenir les définitions de modèles de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Retourne : Option[GetEmailTemplateDefinitions_200_response]
Exemple

Obtenir les erreurs de rendu des modèles de courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| skip | float64 | Non |
Réponse
Retourne : Option[GetEmailTemplateRenderErrors_200_response]
Exemple

Obtenir les modèles de courriel 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Retourne: Option[GetEmailTemplates_200_response]
Exemple

Rendre le modèle de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Non | |
| locale | string | Non |
Réponse
Retourne: Option[RenderEmailTemplate_200_response]
Exemple

Mettre à jour le modèle de courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Obtenir le journal des événements 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userIdWS | string | Non | |
| startTime | int64 | Non | |
| endTime | int64 | Non |
Réponse
Renvoie: Option[GetEventLog_200_response]
Exemple

Obtenir le journal d'événements global 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userIdWS | string | Non | |
| startTime | int64 | Non | |
| endTime | int64 | Non |
Réponse
Retourne: Option[GetEventLog_200_response]
Exemple

Créer une publication 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Non | |
| broadcastId | string | Non | |
| isLive | bool | Non | |
| doSpamCheck | bool | Non | |
| skipDupCheck | bool | Non |
Réponse
Retourne: Option[CreateFeedPost_200_response]
Exemple

Créer une publication publique 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createFeedPostParams | CreateFeedPostParams | Non | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[CreateFeedPostPublic_200_response]
Exemple

Supprimer une publication publique 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Non | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Retourne: Option[DeleteFeedPostPublic_200_response]
Exemple

Obtenir les publications 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | int | Non | |
| tags | seq[string] | Non |
Réponse
Renvoie : Option[GetFeedPosts_200_response]
Exemple

Obtenir les publications publiques 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| limit | int | Non | |
| tags | seq[string] | Non | |
| sso | string | Non | |
| isCrawler | bool | Non | |
| includeUserInfo | bool | Non |
Réponse
Renvoie : Option[GetFeedPostsPublic_200_response]
Exemple

Obtenir les statistiques des publications 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | seq[string] | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[GetFeedPostsStats_200_response]
Exemple

Obtenir les réactions des utilisateurs (publiques) 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | seq[string] | Non | |
| sso | string | Non |
Réponse
Retourne: Option[GetUserReactsPublic_200_response]
Exemple

Réagir à une publication publique 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Non | |
| reactBodyParams | ReactBodyParams | Non | |
| isUndo | bool | Non | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[ReactFeedPostPublic_200_response]
Exemple

Mettre à jour une publication 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| feedPost | FeedPost | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Mettre à jour une publication publique 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postId | string | Non | |
| updateFeedPostParams | UpdateFeedPostParams | Non | |
| broadcastId | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[CreateFeedPostPublic_200_response]
Exemple

Signaler un commentaire public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| isFlagged | bool | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Ajouter un mot-clic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createHashTagBody | CreateHashTagBody | Non |
Réponse
Renvoie: Option[AddHashTag_200_response]
Exemple

Ajouter des mots-clics en masse 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | Non |
Réponse
Renvoie : Option[AddHashTagsBulk_200_response]
Exemple

Supprimer un mot-clic 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tag | string | Non | |
| tenantId | string | Oui | |
| deleteHashTagRequest | DeleteHashTagRequest | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Obtenir les mots-clics 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| page | float64 | Non |
Réponse
Renvoie: Option[GetHashTags_200_response]
Exemple

Mettre à jour partiellement un mot-clic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tag | string | Non | |
| tenantId | string | Oui | |
| updateHashTagBody | UpdateHashTagBody | Non |
Réponse
Retourne: Option[PatchHashTag_200_response]
Exemple

Créer un modérateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createModeratorBody | CreateModeratorBody | Non |
Réponse
Renvoie: Option[CreateModerator_200_response]
Exemple

Supprimer un modérateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| sendEmail | string | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Obtenir le modérateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne : Option[GetModerator_200_response]
Exemple

Obtenir les modérateurs 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetModerators_200_response]
Exemple

Mettre à jour le modérateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateModeratorBody | UpdateModeratorBody | Non |
Réponse
Retourne : Option[FlagCommentPublic_200_response]
Exemple

Supprimer le nombre de notifications 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Obtenir le nombre de notifications en cache 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetCachedNotificationCount_200_response]
Exemple

Obtenir le nombre de notifications 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| urlId | string | Oui | |
| fromCommentId | string | Non | |
| viewed | bool | Non |
Réponse
Renvoie: Option[GetNotificationCount_200_response]
Exemple

Obtenir les notifications 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| urlId | string | Oui | |
| fromCommentId | string | Non | |
| viewed | bool | Non | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetNotifications_200_response]
Exemple

Mettre à jour la notification 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateNotificationBody | UpdateNotificationBody | Non | |
| userId | string | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Ajouter une page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIPageData | CreateAPIPageData | Non |
Réponse
Retourne : Option[AddPageAPIResponse]
Exemple

Supprimer une page 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[DeletePageAPIResponse]
Exemple

Obtenir la page par ID d'URL 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Retourne: Option[GetPageByURLIdAPIResponse]
Exemple

Obtenir les pages 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Renvoie: Option[GetPagesAPIResponse]
Exemple

Mettre à jour partiellement la page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateAPIPageData | UpdateAPIPageData | Non |
Réponse
Renvoie : Option[PatchPageAPIResponse]
Exemple

Supprimer un événement webhook en attente 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Obtenir le nombre d'événements webhook en attente 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| externalId | string | Non | |
| eventType | string | Non | |
| domain | string | Non | |
| attemptCountGT | float64 | Non |
Réponse
Renvoie: Option[GetPendingWebhookEventCount_200_response]
Exemple

Obtenir les événements webhook en attente 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| externalId | string | Non | |
| eventType | string | Non | |
| domain | string | Non | |
| attemptCountGT | float64 | Non | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetPendingWebhookEvents_200_response]
Exemple

Créer une configuration de question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createQuestionConfigBody | CreateQuestionConfigBody | Non |
Response
Renvoie : Option[CreateQuestionConfig_200_response]
Exemple

Supprimer une configuration de question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Obtenir la configuration de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetQuestionConfig_200_response]
Exemple

Obtenir les configurations de questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Renvoie : Option[GetQuestionConfigs_200_response]
Exemple

Mettre à jour la configuration de question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Créer un résultat de question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createQuestionResultBody | CreateQuestionResultBody | Non |
Réponse
Renvoie: Option[CreateQuestionResult_200_response]
Exemple

Supprimer un résultat de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Obtenir le résultat de la question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne : Option[GetQuestionResult_200_response]
Exemple

Obtenir les résultats des questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userId | string | Non | |
| startDate | string | Non | |
| questionId | string | Non | |
| questionIds | string | Non | |
| skip | float64 | Non |
Réponse
Retourne : Option[GetQuestionResults_200_response]
Exemple

Mettre à jour le résultat de la question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateQuestionResultBody | UpdateQuestionResultBody | Non |
Réponse
Retourne : Option[FlagCommentPublic_200_response]
Exemple

Agréger les résultats des questions 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| questionId | string | Non | |
| questionIds | seq[string] | Non | |
| urlId | string | Oui | |
| timeBucket | AggregateTimeBucket | Non | |
| startDate | string | Non | |
| forceRecalculate | bool | Non |
Réponse
Retourne : Option[AggregateQuestionResults_200_response]
Exemple

Agréger en masse les résultats des questions 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Non | |
| forceRecalculate | bool | Non |
Réponse
Retourne : Option[BulkAggregateQuestionResults_200_response]
Exemple

Combiner les commentaires avec les résultats des questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| questionId | string | Non | |
| questionIds | seq[string] | Non | |
| urlId | string | Oui | |
| startDate | string | Non | |
| forceRecalculate | bool | Non | |
| minValue | float64 | Non | |
| maxValue | float64 | Non | |
| limit | float64 | Non |
Réponse
Renvoie: Option[CombineCommentsWithQuestionResults_200_response]
Exemple

Ajouter un utilisateur SSO 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPISSOUserData | CreateAPISSOUserData | Non |
Réponse
Retourne: Option[AddSSOUserAPIResponse]
Exemple

Supprimer un utilisateur SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| deleteComments | bool | Non | |
| commentDeleteMode | string | Non |
Réponse
Renvoie : Option[DeleteSSOUserAPIResponse]
Exemple

Obtenir l'utilisateur SSO par courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| string | Non |
Réponse
Renvoie: Option[GetSSOUserByEmailAPIResponse]
Exemple

Obtenir l'utilisateur SSO par ID 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetSSOUserByIdAPIResponse]
Exemple

Obtenir les utilisateurs SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | int | Non |
Réponse
Renvoie : Option[GetSSOUsers_200_response]
Exemple

Mettre à jour partiellement l'utilisateur SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateAPISSOUserData | UpdateAPISSOUserData | Non | |
| updateComments | bool | Non |
Réponse
Retourne: Option[PatchSSOUserAPIResponse]
Exemple

Remplacer l'utilisateur SSO 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateAPISSOUserData | UpdateAPISSOUserData | Non | |
| updateComments | bool | Non |
Réponse
Renvoie : Option[PutSSOUserAPIResponse]
Exemple

Créer un abonnement 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Non |
Réponse
Renvoie : Option[CreateSubscriptionAPIResponse]
Exemple

Supprimer un abonnement 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| userId | string | Non |
Réponse
Renvoie : Option[DeleteSubscriptionAPIResponse]
Exemple

Obtenir les abonnements 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non |
Réponse
Retourne: Option[GetSubscriptionsAPIResponse]
Exemple

Obtenir l'utilisation quotidienne du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| yearNumber | float64 | Non | |
| monthNumber | float64 | Non | |
| dayNumber | float64 | Non | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetTenantDailyUsages_200_response]
Exemple

Créer un forfait du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantPackageBody | CreateTenantPackageBody | Non |
Réponse
Renvoie : Option[CreateTenantPackage_200_response]
Exemple

Supprimer un forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Obtenir le forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[GetTenantPackage_200_response]
Exemple

Obtenir les forfaits du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Retourne : Option[GetTenantPackages_200_response]
Exemple

Remplacer le forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Mettre à jour le forfait du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateTenantPackageBody | UpdateTenantPackageBody | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Créer un utilisateur du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantUserBody | CreateTenantUserBody | Non |
Réponse
Renvoie: Option[CreateTenantUser_200_response]
Exemple

Supprimer un utilisateur du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| deleteComments | string | Non | |
| commentDeleteMode | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Obtenir l'utilisateur du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[GetTenantUser_200_response]
Exemple

Obtenir les utilisateurs du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Retourne: Option[GetTenantUsers_200_response]
Exemple

Remplacer l'utilisateur du locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| replaceTenantUserBody | ReplaceTenantUserBody | Non | |
| updateComments | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Envoyer le lien de connexion 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| redirectURL | string | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Mettre à jour l'utilisateur du locataire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateTenantUserBody | UpdateTenantUserBody | Non | |
| updateComments | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Créer un locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantBody | CreateTenantBody | Non |
Réponse
Renvoie : Option[CreateTenant_200_response]
Exemple

Supprimer un locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| sure | string | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Obtenir le locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[GetTenant_200_response]
Exemple

Obtenir les locataires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| meta | string | Non | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetTenants_200_response]
Exemple

Mettre à jour le locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateTenantBody | UpdateTenantBody | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Téléverser une image 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| file | string | Non | |
| sizePreset | SizePreset | Non | |
| urlId | string | Oui |
Réponse
Renvoie : Option[UploadImageResponse]
Exemple

Obtenir la progression du badge utilisateur par ID 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[GetUserBadgeProgressById_200_response]
Exemple

Obtenir la progression du badge utilisateur par ID d'utilisateur 
Parameters
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non |
Response
Renvoie : Option[GetUserBadgeProgressById_200_response]
Exemple

Obtenir la liste de progression des badges utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| limit | float64 | Non | |
| skip | float64 | Non |
Réponse
Retourne: Option[GetUserBadgeProgressList_200_response]
Exemple

Créer un badge utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createUserBadgeParams | CreateUserBadgeParams | Non |
Réponse
Renvoie : Option[CreateUserBadge_200_response]
Exemple

Supprimer un badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[UpdateUserBadge_200_response]
Exemple

Obtenir le badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetUserBadge_200_response]
Exemple

Obtenir les badges utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| badgeId | string | Non | |
| displayedOnComments | bool | Non | |
| limit | float64 | Non | |
| skip | float64 | Non |
Réponse
Retourne: Option[GetUserBadges_200_response]
Exemple

Mettre à jour le badge utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateUserBadgeParams | UpdateUserBadgeParams | Non |
Réponse
Renvoie : Option[UpdateUserBadge_200_response]
Exemple

Obtenir le nombre de notifications de l'utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: Option[GetUserNotificationCount_200_response]
Exemple

Obtenir les notifications de l'utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| pageSize | int | No | |
| afterId | string | No | |
| includeContext | bool | No | |
| afterCreatedAt | int64 | No | |
| unreadOnly | bool | No | |
| dmOnly | bool | No | |
| noDm | bool | No | |
| includeTranslations | bool | No | |
| sso | string | No |
Réponse
Retourne: Option[GetUserNotifications_200_response]
Exemple

Réinitialiser le nombre de notifications de l'utilisateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : Option[ResetUserNotifications_200_response]
Exemple

Réinitialiser les notifications de l'utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| afterId | string | Non | |
| afterCreatedAt | int64 | Non | |
| unreadOnly | bool | Non | |
| dmOnly | bool | Non | |
| noDm | bool | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[ResetUserNotifications_200_response]
Exemple

Mettre à jour le statut d'abonnement aux notifications de commentaire de l'utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Non | |
| optedInOrOut | string | Non | |
| commentId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie: Option[UpdateUserNotificationStatus_200_response]
Exemple

Mettre à jour le statut d'abonnement aux pages de notification de l'utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| url | string | Non | |
| pageTitle | string | Non | |
| subscribedOrUnsubscribed | string | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[UpdateUserNotificationStatus_200_response]
Exemple

Mettre à jour le statut de notification de l'utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| notificationId | string | Non | |
| newStatus | string | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[UpdateUserNotificationStatus_200_response]
Exemple

Obtenir les statuts de présence des utilisateurs 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlIdWS | string | Non | |
| userIds | string | Non |
Réponse
Renvoie : Option[GetUserPresenceStatuses_200_response]
Exemple

Rechercher des utilisateurs 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| usernameStartsWith | string | Non | |
| mentionGroupIds | seq[string] | Non | |
| sso | string | Non |
Réponse
Retourne: Option[SearchUsers_200_response]
Exemple

Obtenir l'utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetUser_200_response]
Exemple

Créer un vote 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| direction | string | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: Option[VoteComment_200_response]
Exemple

Supprimer un vote 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| editKey | string | Non |
Réponse
Renvoie : Option[DeleteCommentVote_200_response]
Exemple

Obtenir les votes 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie: Option[GetVotes_200_response]
Exemple

Obtenir les votes pour l'utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : Option[GetVotesForUser_200_response]
Exemple

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