
Langue 🇨🇦 Français (Canada)
Prise en main
Documentation
Agrégation
Journaux d'audit
Bloquer depuis un commentaire
Vérifier les commentaires bloqués
Commentaires
Configurations de domaine
Modèles de courriel
Journal d'événements
Publications de flux
Signaler un commentaire
Mots-clic
Modérateurs
Nombre de notifications
Notifications
Pages
Événements webhook en attente
Configurations de question
Résultats de question
Agrégation des résultats de question
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Forfaits du locataire
Utilisateurs du locataire
Locataires
Tickets
Téléverser une image
Progression du badge utilisateur
Badges utilisateur
Notifications utilisateur
Statut de présence utilisateur
Recherche d'utilisateurs
Utilisateurs
Votes
FastComments Rust SDK
Ceci est le SDK Rust officiel pour FastComments.
SDK Rust officiel pour l'API FastComments
Dépôt
Installation 
cargo add fastcomments-sdk
Le SDK nécessite l'édition Rust 2021 ou une version ultérieure.
Contenu de la bibliothèque 
Le FastComments Rust SDK se compose de plusieurs modules :
Client Module - Client d'API généré automatiquement pour les FastComments REST APIs
- Définitions complètes des types pour tous les modèles d'API
- Points de terminaison authentifiés (
DefaultApi) et publics (PublicApi) - Prise en charge complète d'async/await avec tokio
- Voir client/README.md pour la documentation détaillée de l'API
SSO Module - Utilitaires Single Sign-On côté serveur
- Génération sécurisée de jetons pour l'authentification des utilisateurs
- Prise en charge des modes SSO simple et sécurisé
- Signature de jetons basée sur HMAC-SHA256
Core Types - Définitions de types et utilitaires partagés
- Modèles de commentaires et structures de métadonnées
- Configurations des utilisateurs et des locataires
- Fonctions utilitaires pour les opérations courantes
Démarrage rapide 
Utilisation de l'API publique
use fastcomments_sdk::client::apis::configuration::Configuration;
use fastcomments_sdk::client::apis::public_api;
#[tokio::main]
async fn main() {
// Crée la configuration de l'API
let config = Configuration::new();
// Récupérer les commentaires d'une page
let result = public_api::get_comments_public(
&config,
public_api::GetCommentsPublicParams {
tenant_id: "your-tenant-id".to_string(),
urlid: Some("page-url-id".to_string()),
url: None,
count_only: None,
skip: None,
limit: None,
sort_dir: None,
page: None,
sso_hash: None,
simple_sso_hash: None,
has_no_comment: None,
has_comment: None,
comment_id_filter: None,
child_ids: None,
start_date_time: None,
starts_with: None,
},
)
.await;
match result {
Ok(response) => {
println!("Found {} comments", response.comments.len());
for comment in response.comments {
println!("Comment: {:?}", comment);
}
}
Err(e) => eprintln!("Error fetching comments: {:?}", e),
}
}
Utilisation de l'API authentifiée
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::default_api;
#[tokio::main]
async fn main() {
// Créer la configuration avec la clé API
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// Récupérer les commentaires en utilisant l'API authentifiée
let result = default_api::get_comments(
&config,
default_api::GetCommentsParams {
tenant_id: "your-tenant-id".to_string(),
skip: None,
limit: None,
sort_dir: None,
urlid: Some("page-url-id".to_string()),
url: None,
is_spam: None,
user_id: None,
all_comments: None,
for_moderation: None,
parent_id: None,
is_flagged: None,
is_flagged_tag: None,
is_by_verified: None,
is_pinned: None,
asc: None,
include_imported: None,
origin: None,
tags: None,
},
)
.await;
match result {
Ok(response) => {
println!("Total comments: {}", response.count);
for comment in response.comments {
println!("Comment ID: {}, Text: {}", comment.id, comment.comment);
}
}
Err(e) => eprintln!("Error: {:?}", e),
}
}
Utilisation du SSO pour l'authentification
use fastcomments_sdk::sso::{
fastcomments_sso::FastCommentsSSO,
secure_sso_user_data::SecureSSOUserData,
};
fn main() {
let api_key = "your-api-key".to_string();
// Créer les données utilisateur SSO sécurisées (côté serveur seulement !)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // ID de l'utilisateur
"user@example.com".to_string(), // Courriel
"John Doe".to_string(), // Nom d'utilisateur
"https://example.com/avatar.jpg".to_string(), // URL de l'avatar
);
// Générer le jeton SSO
let sso = FastCommentsSSO::new_secure(api_key, &user_data).unwrap();
let token = sso.create_token().unwrap();
println!("SSO Token: {}", token);
// Transmettez ce jeton à votre frontend pour l'authentification
}
Problèmes courants 
401 Unauthorized Errors
If you're getting 401 errors when using the authenticated API:
- Vérifiez votre clé API : Assurez-vous d'utiliser la bonne clé API depuis votre FastComments dashboard
- Vérifiez l'ID du locataire : Assurez-vous que l'ID du locataire correspond à votre compte
- Format de la clé API : La clé API doit être fournie dans la Configuration :
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY".to_string(),
});
SSO Token Issues
If SSO tokens aren't working:
- Utilisez le mode sécurisé en production : Utilisez toujours
FastCommentsSSO::new_secure()avec votre clé API en production - Côté serveur uniquement : Générez les jetons SSO sur votre serveur, n'exposez jamais votre clé API aux clients
- Vérifiez les données utilisateur : Assurez-vous que tous les champs requis (id, email, username) sont fournis
Async Runtime Errors
The SDK uses tokio for async operations. Make sure to:
Add tokio to your dependencies:
[dependencies] tokio = { version = "1", features = ["full"] }Use the tokio runtime:
#[tokio::main] async fn main() { // Votre code asynchrone ici }
Notes 
IDs de diffusion
Vous verrez qu'il faut passer un broadcastId dans certains appels d'API. Quand vous recevrez des événements, vous obtiendrez ce même ID en retour, ce qui vous permet d'ignorer l'événement si vous prévoyez d'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 apparaître deux fois lors d'une session de navigateur.
agréger 
Aggrè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.
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| aggregation_request | models::AggregationRequest | Oui | |
| parent_tenant_id | String | Non | |
| include_stats | bool | Non |
Réponse
Renvoie: AggregationResponse
obtenir_journaux_d'audit 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| limit | f64 | Non | |
| skip | f64 | Non | |
| order | models::SortDir | Non | |
| after | f64 | Non | |
| before | f64 | Non |
Réponse
Renvoie: GetAuditLogs200Response
Exemple

bloquer_depuis_commentaire_public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Oui | |
| sso | String | Non |
Réponse
Renvoie : BlockFromCommentPublic200Response
Exemple

débloquer_commentaire_public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Oui | |
| sso | String | Non |
Réponse
Retourne: UnBlockCommentPublic200Response
Exemple

vérifier_commentaires_bloqués 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_ids | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: CheckedCommentsForBlocked200Response
Exemple

bloquer_utilisateur_depuis_commentaire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| block_from_comment_params | models::BlockFromCommentParams | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie : BlockFromCommentPublic200Response
Exemple

créer_commentaire_public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| broadcast_id | String | Oui | |
| comment_data | models::CommentData | Oui | |
| session_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : CreateCommentPublic200Response
Exemple

supprimer_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| context_user_id | String | Non | |
| is_live | bool | Non |
Réponse
Renvoie : DeleteComment200Response
Exemple

supprimer_commentaire_public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Renvoie: DeleteCommentPublic200Response
Exemple

supprimer_vote_commentaire 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| vote_id | String | Oui | |
| url_id | String | Oui | |
| broadcast_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Renvoie : DeleteCommentVote200Response
Exemple

signaler_commentaire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie : FlagComment200Response
Exemple

obtenir_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetComment200Response
Exemple

obtenir_texte_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Retourne : GetCommentText200Response
Exemple

obtenir_noms_utilisateurs_vote_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| dir | i32 | Oui | |
| sso | String | Non |
Réponse
Renvoie: GetCommentVoteUserNames200Response
Exemple

obtenir_commentaires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| page | i32 | Non | |
| limit | i32 | Non | |
| skip | i32 | Non | |
| as_tree | bool | Non | |
| skip_children | i32 | Non | |
| limit_children | i32 | Non | |
| max_tree_depth | i32 | Non | |
| url_id | String | Non | |
| user_id | String | Non | |
| anon_user_id | String | Non | |
| context_user_id | String | Non | |
| hash_tag | String | Non | |
| parent_id | String | Non | |
| direction | models::SortDirections | Non |
Réponse
Retourne: GetComments200Response
Exemple

obtenir_commentaires_publics 
req tenantId urlId
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| page | i32 | Non | |
| direction | models::SortDirections | Non | |
| sso | String | Non | |
| skip | i32 | Non | |
| skip_children | i32 | Non | |
| limit | i32 | Non | |
| limit_children | i32 | Non | |
| count_children | bool | Non | |
| fetch_page_for_comment_id | String | Non | |
| include_config | bool | Non | |
| count_all | bool | Non | |
| includei10n | bool | Non | |
| locale | String | Non | |
| modules | String | Non | |
| is_crawler | bool | Non | |
| include_notification_count | bool | Non | |
| as_tree | bool | Non | |
| max_tree_depth | i32 | Non | |
| use_full_translation_ids | bool | Non | |
| parent_id | String | Non | |
| search_text | String | Non | |
| hash_tags | Vec |
Non | |
| user_id | String | Non | |
| custom_config_str | String | Non | |
| after_comment_id | String | Non | |
| before_comment_id | String | Non |
Réponse
Renvoie : GetCommentsPublic200Response
Exemple

verrouiller_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : LockComment200Response
Exemple

épingler_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne: PinComment200Response
Exemple

enregistrer_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_comment_params | models::CreateCommentParams | Oui | |
| is_live | bool | Non | |
| do_spam_check | bool | Non | |
| send_emails | bool | Non | |
| populate_notifications | bool | Non |
Réponse
Retourne: SaveComment200Response
Exemple

enregistrer_commentaires_en_masse 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_comment_params | Vecmodels::CreateCommentParams | Oui | |
| is_live | bool | Non | |
| do_spam_check | bool | Non | |
| send_emails | bool | Non | |
| populate_notifications | bool | Non |
Réponse
Retourne : Vec<models::SaveComment200Response>
Exemple

définir_texte_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| comment_text_update_request | models::CommentTextUpdateRequest | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Renvoie: SetCommentText200Response
Exemple

débloquer_utilisateur_depuis_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| un_block_from_comment_params | models::UnBlockFromCommentParams | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie: UnBlockCommentPublic200Response
Exemple

annuler_signalement_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie: FlagComment200Response
Exemple

déverrouiller_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : LockComment200Response
Exemple

désépingler_commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : PinComment200Response
Exemple

mettre_à_jour_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| updatable_comment_params | models::UpdatableCommentParams | Oui | |
| context_user_id | String | Non | |
| do_spam_check | bool | Non | |
| is_live | bool | Non |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

voter_commentaire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| url_id | String | Oui | |
| broadcast_id | String | Oui | |
| vote_body_params | models::VoteBodyParams | Oui | |
| session_id | String | Non | |
| sso | String | Non |
Réponse
Retourne: VoteComment200Response
Exemple

ajouter_configuration_domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| add_domain_config_params | models::AddDomainConfigParams | Oui |
Réponse
Renvoie: AddDomainConfig200Response
supprimer_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain | String | Oui |
Réponse
Renvoie : DeleteDomainConfig200Response
obtenir_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain | String | Oui |
Réponse
Renvoie: GetDomainConfig200Response
obtenir_configurations_de_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie: GetDomainConfigs200Response
modifier_partiellement_configuration_domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain_to_update | String | Oui | |
| patch_domain_config_params | models::PatchDomainConfigParams | Oui |
Réponse
Renvoie : GetDomainConfig200Response
remplacer_configuration_domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain_to_update | String | Oui | |
| update_domain_config_params | models::UpdateDomainConfigParams | Oui |
Réponse
Renvoie : GetDomainConfig200Response
créer_modèle_de_courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_email_template_body | models::CreateEmailTemplateBody | Oui |
Réponse
Retourne : CreateEmailTemplate200Response
Exemple

supprimer_modèle_de_courriel 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | Chaîne | Oui | |
| id | Chaîne | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

supprimer_erreur_rendu_modèle_courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| error_id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

obtenir_modèle_de_courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetEmailTemplate200Response
Exemple

obtenir_définitions_des_modèles_de_courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie : GetEmailTemplateDefinitions200Response
Exemple

obtenir_erreurs_rendu_modèles_courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetEmailTemplateRenderErrors200Response
Exemple

obtenir_modèles_de_courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetEmailTemplates200Response
Exemple

générer_modèle_de_courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| render_email_template_body | models::RenderEmailTemplateBody | Oui | |
| locale | String | Non |
Réponse
Renvoie : RenderEmailTemplate200Response
Exemple

mettre_à_jour_modèle_de_courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_email_template_body | models::UpdateEmailTemplateBody | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

obtenir_journal_d'événements 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| user_id_ws | String | Oui | |
| start_time | i64 | Oui | |
| end_time | i64 | Oui |
Réponse
Renvoie : GetEventLog200Response
Exemple

obtenir_journal_d'événements_global 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| user_id_ws | String | Oui | |
| start_time | i64 | Oui | |
| end_time | i64 | Oui |
Réponse
Retourne : GetEventLog200Response
Exemple

créer_publication_de_flux 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_feed_post_params | models::CreateFeedPostParams | Oui | |
| broadcast_id | String | Non | |
| is_live | bool | Non | |
| do_spam_check | bool | Non | |
| skip_dup_check | bool | Non |
Réponse
Retourne: CreateFeedPost200Response
Exemple

créer_publication_de_flux_publique 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_feed_post_params | models::CreateFeedPostParams | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie: CreateFeedPostPublic200Response
Exemple

supprimer_publication_de_flux_publique 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_id | String | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Response
Renvoie : DeleteFeedPostPublic200Response
Exemple

obtenir_publications_de_flux 
req tenantId afterId
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| after_id | String | Non | |
| limit | i32 | Non | |
| tags | Vec |
Non |
Réponse
Renvoie : GetFeedPosts200Response
Exemple

obtenir_publications_de_flux_publiques 
req tenantId afterId
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| after_id | String | Non | |
| limit | i32 | Non | |
| tags | Vec |
Non | |
| sso | String | Non | |
| is_crawler | bool | Non | |
| include_user_info | bool | Non |
Réponse
Renvoie : GetFeedPostsPublic200Response
Exemple

obtenir_statistiques_publications_de_flux 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec |
Oui | |
| sso | String | Non |
Réponse
Retourne: GetFeedPostsStats200Response
Exemple

obtenir_réactions_utilisateur_publiques 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec |
Non | |
| sso | String | Non |
Réponse
Retourne: GetUserReactsPublic200Response
Exemple

réagir_publication_de_flux_publique 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_id | String | Oui | |
| react_body_params | models::ReactBodyParams | Oui | |
| is_undo | bool | Non | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : ReactFeedPostPublic200Response
Exemple

mettre_à_jour_publication_de_flux 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| feed_post | models::FeedPost | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

mettre_à_jour_publication_de_flux_publique 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_id | String | Oui | |
| update_feed_post_params | models::UpdateFeedPostParams | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie: CreateFeedPostPublic200Response
Exemple

signaler_commentaire_public 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| is_flagged | bool | Oui | |
| sso | String | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

ajouter_mot_clic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Non | |
| create_hash_tag_body | models::CreateHashTagBody | Non |
Réponse
Renvoie : AddHashTag200Response
Exemple

ajouter_mots_clic_en_masse 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Non | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | Non |
Réponse
Renvoie: AddHashTagsBulk200Response
Exemple

supprimer_mot_clic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tag | String | Oui | |
| tenant_id | String | Non | |
| delete_hash_tag_request | models::DeleteHashTagRequest | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir_mots_clic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| page | f64 | Non |
Réponse
Renvoie : GetHashTags200Response
Exemple

modifier_partiellement_mot_clic 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tag | String | Oui | |
| tenant_id | String | Non | |
| update_hash_tag_body | models::UpdateHashTagBody | Non |
Réponse
Renvoie : PatchHashTag200Response
Exemple

créer_modérateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_moderator_body | models::CreateModeratorBody | Oui |
Réponse
Renvoie : CreateModerator200Response
Exemple

supprimer_modérateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| send_email | String | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

obtenir_modérateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetModerator200Response
Exemple

obtenir_modérateurs 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetModerators200Response
Exemple

envoyer_invitation 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| from_name | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

mettre_à_jour_modérateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_moderator_body | models::UpdateModeratorBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

supprimer_nombre_de_notifications 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

obtenir_nombre_de_notifications_en_cache 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne: GetCachedNotificationCount200Response
Exemple

obtenir_nombre_de_notifications 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| url_id | String | Non | |
| from_comment_id | String | Non | |
| viewed | bool | Non |
Réponse
Renvoie: GetNotificationCount200Response
Exemple

obtenir_notifications 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| url_id | String | Non | |
| from_comment_id | String | Non | |
| viewed | bool | Non | |
| skip | f64 | Non |
Réponse
Renvoie : GetNotifications200Response
Exemple

mettre_à_jour_notification 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_notification_body | models::UpdateNotificationBody | Oui | |
| user_id | String | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

ajouter_page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_page_data | models::CreateApiPageData | Oui |
Réponse
Retourne: AddPageApiResponse
supprimer_page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : DeletePageApiResponse
obtenir_page_par_urlid 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Retourne: GetPageByUrlidApiResponse
modifier_partiellement_page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_api_page_data | models::UpdateApiPageData | Oui |
Réponse
Renvoie: PatchPageApiResponse
supprimer_événement_webhook_en_attente 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir_nombre_événements_webhook_en_attente 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Non | |
| external_id | String | Non | |
| event_type | String | Non | |
| domain | String | Non | |
| attempt_count_gt | f64 | Non |
Réponse
Renvoie : GetPendingWebhookEventCount200Response
Exemple

obtenir_événements_webhook_en_attente 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Non | |
| external_id | String | Non | |
| event_type | String | Non | |
| domain | String | Non | |
| attempt_count_gt | f64 | Non | |
| skip | f64 | Non |
Réponse
Retourne : GetPendingWebhookEvents200Response
Exemple

créer_configuration_de_question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_config_body | models::CreateQuestionConfigBody | Oui |
Réponse
Renvoie : CreateQuestionConfig200Response
Exemple

supprimer_configuration_de_question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir_configuration_de_question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetQuestionConfig200Response
Exemple

obtenir_configurations_de_question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne: GetQuestionConfigs200Response
Exemple

mettre_à_jour_configuration_de_question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_question_config_body | models::UpdateQuestionConfigBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

créer_résultat_de_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_result_body | models::CreateQuestionResultBody | Oui |
Réponse
Renvoie : CreateQuestionResult200Response
Exemple

supprimer_résultat_de_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir_résultat_de_question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetQuestionResult200Response
Exemple

obtenir_résultats_de_question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Non | |
| user_id | String | Non | |
| start_date | String | Non | |
| question_id | String | Non | |
| question_ids | String | Non | |
| skip | f64 | Non |
Réponse
Renvoie: GetQuestionResults200Response
Exemple

mettre_à_jour_résultat_de_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_question_result_body | models::UpdateQuestionResultBody | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

agréger_résultats_de_question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| question_id | String | Non | |
| question_ids | Vec |
Non | |
| url_id | String | Non | |
| time_bucket | models::AggregateTimeBucket | Non | |
| start_date | String | Non | |
| force_recalculate | bool | Non |
Réponse
Renvoie : AggregateQuestionResults200Response
Exemple

agréger_résultats_de_question_en_masse 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Oui | |
| force_recalculate | bool | Non |
Réponse
Renvoie : BulkAggregateQuestionResults200Response
Exemple

combiner_commentaires_avec_résultats_de_question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| question_id | String | Non | |
| question_ids | Vec |
Non | |
| url_id | String | Non | |
| start_date | String | Non | |
| force_recalculate | bool | Non | |
| min_value | f64 | Non | |
| max_value | f64 | Non | |
| limit | f64 | Non |
Réponse
Renvoie: CombineCommentsWithQuestionResults200Response
Exemple

ajouter_utilisateur_SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_apisso_user_data | models::CreateApissoUserData | Oui |
Réponse
Retourne : AddSsoUserApiResponse
supprimer_utilisateur_SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| delete_comments | bool | Non | |
| comment_delete_mode | String | Non |
Réponse
Renvoie : DeleteSsoUserApiResponse
obtenir_utilisateur_SSO_par_courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| String | Oui |
Réponse
Renvoie : GetSsoUserByEmailApiResponse
obtenir_utilisateur_SSO_par_id 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetSsoUserByIdApiResponse
obtenir_utilisateurs_SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | i32 | Non |
Réponse
Renvoie : GetSsoUsers200Response
modifier_partiellement_utilisateur_SSO 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_apisso_user_data | models::UpdateApissoUserData | Oui | |
| update_comments | bool | Non |
Réponse
Renvoie: PatchSsoUserApiResponse
remplacer_utilisateur_SSO 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_apisso_user_data | models::UpdateApissoUserData | Oui | |
| update_comments | bool | Non |
Réponse
Renvoie : PutSsoUserApiResponse
créer_abonnement 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Oui |
Réponse
Renvoie : CreateSubscriptionApiResponse
Exemple

supprimer_abonnement 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie: DeleteSubscriptionApiResponse
obtenir_abonnements 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie: GetSubscriptionsApiResponse
Exemple

mettre_à_jour_abonnement 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_api_user_subscription_data | models::UpdateApiUserSubscriptionData | Oui | |
| user_id | String | Non |
Réponse
Renvoie : UpdateSubscriptionApiResponse
Exemple

obtenir_utilisations_journalières_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| year_number | f64 | Non | |
| month_number | f64 | Non | |
| day_number | f64 | Non | |
| skip | f64 | Non |
Réponse
Renvoie : GetTenantDailyUsages200Response
Exemple

créer_forfait_locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_package_body | models::CreateTenantPackageBody | Oui |
Réponse
Renvoie : CreateTenantPackage200Response
Exemple

supprimer_forfait_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir_forfait_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetTenantPackage200Response
Exemple

obtenir_forfaits_locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetTenantPackages200Response
Exemple

remplacer_forfait_locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

mettre_à_jour_forfait_locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

créer_utilisateur_locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_user_body | models::CreateTenantUserBody | Oui |
Réponse
Renvoie: CreateTenantUser200Response
Exemple

supprimer_utilisateur_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| delete_comments | String | Non | |
| comment_delete_mode | String | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir_utilisateur_locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Response
Retourne: GetTenantUser200Response
Exemple

obtenir_utilisateurs_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetTenantUsers200Response
Exemple

remplacer_utilisateur_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Oui | |
| update_comments | String | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

envoyer_lien_de_connexion 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| redirect_url | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

mettre_à_jour_utilisateur_locataire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_user_body | models::UpdateTenantUserBody | Oui | |
| update_comments | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

créer_locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_body | models::CreateTenantBody | Oui |
Réponse
Retourne: CreateTenant200Response
Exemple

supprimer_locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| sure | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

obtenir_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetTenant200Response
Exemple

obtenir_locataires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| meta | String | Non | |
| skip | f64 | Non |
Réponse
Retourne: GetTenants200Response
Exemple

mettre_à_jour_locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_body | models::UpdateTenantBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

changer_état_ticket 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Oui | |
| id | String | Oui | |
| change_ticket_state_body | models::ChangeTicketStateBody | Oui |
Réponse
Renvoie : ChangeTicketState200Response
Exemple

créer_ticket 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Oui | |
| create_ticket_body | models::CreateTicketBody | Oui |
Réponse
Renvoie: CreateTicket200Response
Exemple

obtenir_ticket 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie : GetTicket200Response
Exemple

obtenir_tickets 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| state | f64 | Non | |
| skip | f64 | Non | |
| limit | f64 | Non |
Réponse
Retourne : GetTickets200Response
Exemple

téléverser_image 
Téléverser et redimensionner une image
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| file | std::path::PathBuf | Oui | |
| size_preset | models::SizePreset | Non | |
| url_id | String | Non |
Réponse
Renvoie: UploadImageResponse
obtenir_progression_badge_utilisateur_par_id 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetUserBadgeProgressById200Response
Exemple

obtenir_progression_badge_par_id_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Oui |
Réponse
Renvoie: GetUserBadgeProgressById200Response
Exemple

obtenir_liste_progression_badge_utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| limit | f64 | Non | |
| skip | f64 | Non |
Réponse
Renvoie : GetUserBadgeProgressList200Response
Exemple

créer_badge_utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_user_badge_params | models::CreateUserBadgeParams | Oui |
Réponse
Renvoie : CreateUserBadge200Response
Exemple

supprimer_badge_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : UpdateUserBadge200Response
Exemple

obtenir_badge_utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetUserBadge200Response
Exemple

obtenir_badges_utilisateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| badge_id | String | Non | |
| displayed_on_comments | bool | Non | |
| limit | f64 | Non | |
| skip | f64 | Non |
Réponse
Renvoie: GetUserBadges200Response
Exemple

mettre_à_jour_badge_utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_user_badge_params | models::UpdateUserBadgeParams | Oui |
Réponse
Renvoie : UpdateUserBadge200Response
Exemple

obtenir_nombre_notifications_utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : GetUserNotificationCount200Response
Exemple

obtenir_notifications_utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| page_size | i32 | Non | |
| after_id | String | Non | |
| include_context | bool | Non | |
| after_created_at | i64 | Non | |
| unread_only | bool | Non | |
| dm_only | bool | Non | |
| no_dm | bool | Non | |
| include_translations | bool | Non | |
| sso | String | Non |
Réponse
Renvoie : GetUserNotifications200Response
Exemple

réinitialiser_nombre_notifications_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: ResetUserNotifications200Response
Exemple

réinitialiser_notifications_utilisateur 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| after_id | String | Non | |
| after_created_at | i64 | Non | |
| unread_only | bool | Non | |
| dm_only | bool | Non | |
| no_dm | bool | Non | |
| sso | String | Non |
Réponse
Renvoie : ResetUserNotifications200Response
Exemple

mettre_à_jour_statut_abonnement_commentaires_notification_utilisateur 
Activer ou désactiver les notifications pour un commentaire spécifique.
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| notification_id | String | Oui | |
| opted_in_or_out | String | Oui | |
| comment_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : UpdateUserNotificationStatus200Response
Exemple

mettre_à_jour_statut_abonnement_page_notification_utilisateur 
Activer ou désactiver les notifications pour une page. Lorsque des utilisateurs sont abonnés à une page, des notifications sont créées pour les nouveaux commentaires racine, et aussi
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| url | String | Yes | |
| page_title | String | Yes | |
| subscribed_or_unsubscribed | String | Yes | |
| sso | String | No |
Réponse
Retourne: UpdateUserNotificationStatus200Response
Exemple

mettre_à_jour_statut_notification_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| notification_id | String | Oui | |
| new_status | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: UpdateUserNotificationStatus200Response
Exemple

obtenir_statuts_de_présence_utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id_ws | String | Oui | |
| user_ids | String | Oui |
Réponse
Renvoie : GetUserPresenceStatuses200Response
Exemple

rechercher_utilisateurs 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| username_starts_with | String | Non | |
| mention_group_ids | Vec |
Non | |
| sso | String | Non | |
| search_section | String | Non |
Réponse
Renvoie : SearchUsers200Response
Exemple

obtenir_utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetUser200Response
Exemple

créer_vote 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| direction | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie: VoteComment200Response
Exemple

supprimer_vote 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| edit_key | String | Non |
Response
Retourne : DeleteCommentVote200Response
Exemple

obtenir_votes 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Renvoie : GetVotes200Response
Exemple

obtenir_votes_pour_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie : GetVotesForUser200Response
Exemple

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