
Langue 🇫🇷 Français (France)
Documentation
Prise en main
Référence API
Utilisation
Agrégation
Journaux d'audit
Blocage depuis un commentaire
Vérification des commentaires bloqués
Commentaires
Configurations de domaine
Modèles d'e-mail
Journal d'événements
Publications
Signaler un commentaire
Hashtags
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
Statut 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 depuis les sources
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.
API publiques vs sécurisées
Pour le client API, il existe deux modules API, api_default et api_public. Le 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/appareil mobile/etc sans authentification.
Démarrage rapide 
Utilisation des API authentifiées (DefaultAPI)
Important : Les endpoints authentifiés nécessitent que votre clé API soit définie en tant qu'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 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 endpoints publics ne requièrent pas d'authentification :
import httpclient
import fastcomments
import fastcomments/apis/api_public
let client = newHttpClient()
# Effectuer des appels 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
- 401 authentication error : 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" - Wrong API class : Utilisez
api_defaultpour les requêtes authentifiées côté serveur,api_publicpour les requêtes côté client/publiques.
Effectuer des appels API 
Toutes les méthodes d'API de ce SDK renvoient des tuples de (Option[ResponseType], Response). Le premier élément contient la réponse parsée si elle a réussi, 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 passer un broadcastId dans certaines requêtes API. Lorsque vous recevrez des événements, vous récupérerez cet ID, ce qui vous permettra d'ignorer l'événement si vous comptez appliquer les changements de façon 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 se produire deux fois dans une session de navigateur.
SSO (Authentification unique)
Pour des exemples de SSO, 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 des points de terminaison de l'API
Tous les URI sont relatifs à 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 groupant (si groupBy est fourni) et en appliquant plusieurs opérations. Différentes opérations (par 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éverser et redimensionner 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
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| aggregationRequest | AggregationRequest | Non | |
| parentTenantId | string | Non | |
| includeStats | bool | Non |
Réponse
Renvoie : Option[AggregationResponse]
Exemple

Récupérer les journaux d'audit 
Paramètres
| Nom | Type | Obligatoire | 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
| Name | 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 un commentaire (public) 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Non | |
| sso | string | Non |
Réponse
Retourne: Option[UnBlockCommentPublic_200_response]
Exemple

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

Bloquer un utilisateur depuis un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| blockFromCommentParams | BlockFromCommentParams | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie : Option[BlockFromCommentPublic_200_response]
Exemple

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

Supprimer un commentaire 
Paramètres
| Name | Type | Required | 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 un vote de commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| voteId | string | Non | |
| urlId | string | Oui | |
| broadcastId | string | Non | |
| editKey | string | Non | |
| sso | string | Non |
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

Récupérer un commentaire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[GetComment_200_response]
Exemple

Récupérer des commentaires 
Paramètres
| Nom | Type | Requis | 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
Renvoie: Option[GetComments_200_response]
Exemple

Récupérer des commentaires publics 
Paramètres
| Nom | Type | Obligatoire | 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
Renvoie : Option[GetCommentsPublic_200_response]
Exemple

Récupérer le texte d'un commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| editKey | string | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[GetCommentText_200_response]
Exemple

Récupérer les noms d'utilisateur des votes de commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| dir | int | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[GetCommentVoteUserNames_200_response]
Exemple

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

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

Enregistrer un commentaire 
Paramètres
| Nom | Type | Obligatoire | 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 | Obligatoire | 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
Retourne : Option[UnBlockCommentPublic_200_response]
Exemple

Définir le texte d'un commentaire 
Paramètres
| Nom | Type | Obligatoire | 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 un utilisateur depuis un commentaire 
Paramètres
| Nom | Type | Obligatoire | 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 d'un commentaire 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Renvoie: Option[FlagComment_200_response]
Exemple

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

Désépingler un 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

Mettre à jour un 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
Retourne : Option[VoteComment_200_response]
Exemple

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

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

Récupérer une configuration de domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| domain | string | Non |
Réponse
Renvoie: Option[GetDomainConfig_200_response]
Exemple

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

Modifier 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 une 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 d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createEmailTemplateBody | CreateEmailTemplateBody | Non |
Réponse
Retourne : Option[CreateEmailTemplate_200_response]
Exemple

Supprimer un modèle d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Supprimer une erreur de rendu de modèle d'e-mail 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| errorId | string | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Récupérer un modèle d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetEmailTemplate_200_response]
Exemple

Récupérer les définitions de modèles d'e-mail 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui |
Réponse
Renvoie: Option[GetEmailTemplateDefinitions_200_response]
Exemple

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

Récupérer les modèles d'e-mail 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Renvoie : Option[GetEmailTemplates_200_response]
Exemple

Rendre un modèle d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Non | |
| locale | string | Non |
Réponse
Renvoie: Option[RenderEmailTemplate_200_response]
Exemple

Mettre à jour un modèle d'e-mail 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Récupérer le journal d'é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
Retourne: Option[GetEventLog_200_response]
Exemple

Récupérer le journal d'événements global 
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

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

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

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

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

Récupérer les publications publiques 
Paramètres
| Name | Type | Obligatoire | 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

Récupérer 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

Récupérer les réactions d'un utilisateur (public) 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| postIds | seq[string] | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[GetUserReactsPublic_200_response]
Exemple

Réagir à une publication (public) 
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
| Nom | Type | Obligatoire | 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 | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| commentId | string | Oui | |
| isFlagged | bool | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Ajouter un hashtag 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createHashTagBody | CreateHashTagBody | Non |
Réponse
Renvoie : Option[AddHashTag_200_response]
Exemple

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

Supprimer un hashtag 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tag | string | Non | |
| tenantId | string | Oui | |
| deleteHashTagRequest | DeleteHashTagRequest | Non |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

Récupérer les hashtags 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| page | float64 | Non |
Réponse
Renvoie: Option[GetHashTags_200_response]
Exemple

Modifier partiellement un hashtag 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tag | string | Non | |
| tenantId | string | Oui | |
| updateHashTagBody | UpdateHashTagBody | Non |
Réponse
Renvoie: Option[PatchHashTag_200_response]
Exemple

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

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

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

Récupérer les modérateurs 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetModerators_200_response]
Exemple

Mettre à jour un modérateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| updateModeratorBody | UpdateModeratorBody | No |
Réponse
Renvoie: Option[FlagCommentPublic_200_response]
Exemple

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

Récupérer le nombre de notifications mis en cache 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[GetCachedNotificationCount_200_response]
Exemple

Récupérer 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

Récupérer les notifications 
Paramètres
| Nom | Type | Requis | 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 une notification 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateNotificationBody | UpdateNotificationBody | Non | |
| userId | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

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

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

Récupérer une page par URL/ID 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui |
Réponse
Renvoie : Option[GetPageByURLIdAPIResponse]
Exemple

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

Modifier partiellement une page 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateAPIPageData | UpdateAPIPageData | Non |
Réponse
Retourne : Option[PatchPageAPIResponse]
Exemple

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

Récupérer 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

Récupérer 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 |
Réponse
Retourne : Option[CreateQuestionConfig_200_response]
Exemple

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

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

Récupérer les configurations de question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetQuestionConfigs_200_response]
Exemple

Mettre à jour une configuration de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Non |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Créer un résultat de question 
Paramètres
| Nom | Type | Requis | 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
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Récupérer un résultat de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[GetQuestionResult_200_response]
Exemple

Récupérer les résultats de question 
Paramètres
| Name | 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 un résultat de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateQuestionResultBody | UpdateQuestionResultBody | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

Agrégat des résultats de question 
Paramètres
| Nom | Type | Obligatoire | 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
Renvoie : Option[AggregateQuestionResults_200_response]
Exemple

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

Combiner les commentaires avec les résultats de question 
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 | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPISSOUserData | CreateAPISSOUserData | Non |
Réponse
Renvoie : 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
Retourne: Option[DeleteSSOUserAPIResponse]
Exemple

Récupérer un utilisateur SSO par e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| string | No |
Réponse
Renvoie : Option[GetSSOUserByEmailAPIResponse]
Exemple

Récupérer un utilisateur SSO par ID 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetSSOUserByIdAPIResponse]
Exemple

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

Modifier partiellement un utilisateur SSO 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateAPISSOUserData | UpdateAPISSOUserData | Non | |
| updateComments | bool | Non |
Réponse
Renvoie : Option[PatchSSOUserAPIResponse]
Exemple

Remplacer/mettre à jour un utilisateur SSO 
Paramètres
| Nom | Type | Requis | 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
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Non |
Réponse
Retourne: Option[CreateSubscriptionAPIResponse]
Exemple

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

Récupérer les abonnements 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non |
Réponse
Renvoie : Option[GetSubscriptionsAPIResponse]
Exemple

Récupérer l'utilisation quotidienne du locataire 
Paramètres
| Nom | Type | Obligatoire | 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 pour locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| createTenantPackageBody | CreateTenantPackageBody | Non |
Réponse
Renvoie : Option[CreateTenantPackage_200_response]
Exemple

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

Récupérer un forfait pour locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No |
Réponse
Renvoie: Option[GetTenantPackage_200_response]
Exemple

Récupérer les forfaits du locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| skip | float64 | Non |
Réponse
Renvoie: Option[GetTenantPackages_200_response]
Exemple

Remplacer un forfait pour locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | No | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | No |
Réponse
Retourne: Option[FlagCommentPublic_200_response]
Exemple

Mettre à jour un forfait pour locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateTenantPackageBody | UpdateTenantPackageBody | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

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

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

Récupérer un utilisateur de locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie: Option[GetTenantUser_200_response]
Exemple

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

Remplacer un utilisateur de locataire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| replaceTenantUserBody | ReplaceTenantUserBody | Non | |
| updateComments | string | Non |
Réponse
Renvoie : Option[FlagCommentPublic_200_response]
Exemple

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

Mettre à jour un utilisateur de locataire 
Paramètres
| Nom | 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
Retourne: Option[CreateTenant_200_response]
Exemple

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

Récupérer un locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Renvoie : Option[GetTenant_200_response]
Exemple

Récupérer 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 un locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateTenantBody | UpdateTenantBody | Non |
Réponse
Retourne : Option[FlagCommentPublic_200_response]
Exemple

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

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

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

Récupérer la liste de progression des badges utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| userId | string | Non | |
| limit | float64 | Non | |
| skip | float64 | Non |
Réponse
Renvoie : 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

Récupérer un badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne : Option[GetUserBadge_200_response]
Exemple

Récupérer les badges utilisateur 
Paramètres
| Nom | Type | Requis | 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 un badge utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| updateUserBadgeParams | UpdateUserBadgeParams | Non |
Réponse
Retourne : Option[UpdateUserBadge_200_response]
Exemple

Récupérer le nombre de notifications d'un utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| sso | string | Non |
Réponse
Renvoie : Option[GetUserNotificationCount_200_response]
Exemple

Récupérer les notifications d'un utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| pageSize | int | Non | |
| afterId | string | Non | |
| includeContext | bool | Non | |
| afterCreatedAt | int64 | Non | |
| unreadOnly | bool | Non | |
| dmOnly | bool | Non | |
| noDm | bool | Non | |
| includeTranslations | bool | Non | |
| sso | string | Non |
Réponse
Renvoie : Option[GetUserNotifications_200_response]
Exemple

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

Réinitialiser les notifications d'un 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
Retourne: Option[ResetUserNotifications_200_response]
Exemple

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

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

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

Récupérer les statuts de présence des utilisateurs 
Paramètres
| Nom | Type | Obligatoire | 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 | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| usernameStartsWith | string | Non | |
| mentionGroupIds | seq[string] | Non | |
| sso | string | Non |
Réponse
Renvoie: Option[SearchUsers_200_response]
Exemple

Récupérer un utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non |
Réponse
Retourne: Option[GetUser_200_response]
Exemple

Créer un vote 
Paramètres
| Nom | Type | Obligatoire | 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
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| id | string | Non | |
| editKey | string | Non |
Réponse
Renvoie : Option[DeleteCommentVote_200_response]
Exemple

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

Récupérer les votes d'un utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenantId | string | Oui | |
| urlId | string | Oui | |
| userId | string | Non | |
| anonUserId | string | Non |
Réponse
Retourne : Option[GetVotesForUser_200_response]
Exemple

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