
Langue 🇫🇷 Français (France)
Prise en main
Documentation
Agrégat
Journaux d'audit
Bloquer depuis un commentaire
Vérifier les commentaires bloqués
Commentaires
Configurations de domaine
Modèles d'e-mail
Journal d'événements
Publications
Signaler un commentaire
Hashtags
Modérateurs
Nombre de notifications
Notifications
Pages
Événements webhook en attente
Configurations de questions
Résultats des questions
Agrégation des résultats des questions
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
Statuts 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 SDK Rust de FastComments se compose de plusieurs modules :
Client Module - Client API généré automatiquement pour les API REST de FastComments
- Définitions de types complètes pour tous les modèles d'API
- Points de terminaison à la fois 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 des jetons basée sur HMAC-SHA256
Core Types - Définitions de types partagées et utilitaires
- 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éer 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 de 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 uniquement !)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // ID utilisateur
"user@example.com".to_string(), // Adresse e-mail
"John Doe".to_string(), // Nom d'utilisateur
"https://example.com/avatar.jpg".to_string(), // URL de l'avatar
);
// Générer le token SSO
let sso = FastCommentsSSO::new_secure(api_key, &user_data).unwrap();
let token = sso.create_token().unwrap();
println!("SSO Token: {}", token);
// Transmettez ce token à votre frontend pour l'authentification
}
Problèmes courants 
401 Unauthorized Errors
Si vous obtenez des erreurs 401 lorsque vous utilisez l'API authentifiée :
- Vérifiez votre clé API : Assurez-vous d'utiliser la clé API correcte depuis votre tableau de bord FastComments
- Vérifiez le tenant ID : Assurez-vous que le tenant ID correspond à votre compte
- Format de la clé API : La clé API doit être passée dans la Configuration :
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY".to_string(),
});
SSO Token Issues
Si les jetons SSO ne fonctionnent pas :
- Utilisez le mode sécurisé en production : Toujours utiliser
FastCommentsSSO::new_secure()avec votre clé API pour la 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
Le SDK utilise tokio pour les opérations asynchrones. Assurez-vous de :
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 
Identifiants de diffusion
Vous verrez que vous devez passer un broadcastId dans certains appels d'API. Lorsque vous recevez des événements, vous récupérerez cet ID, ce qui vous permet d'ignorer l'événement si vous prévoyez d'appliquer les modifications de manière optimiste côté client
(ce que vous souhaiterez 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 au cours d'une même session du navigateur.
agréger 
Agrège les documents en les groupant (si groupBy est fourni) et en appliquant plusieurs opérations. Différentes opérations (p. ex. sum, countDistinct, avg, etc.) sont prises en charge.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| aggregation_request | models::AggregationRequest | Oui | |
| parent_tenant_id | String | Non | |
| include_stats | bool | Non |
Réponse
Retourne : AggregationResponse
obtenir les journaux d'audit 
Paramètres
| Name | 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
Retourne : GetAuditLogs200Response
Exemple

bloquer depuis un commentaire (public) 
Paramètres
| Nom | Type | Obligatoire | 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 le commentaire (public) 
Paramètres
| Name | 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 : UnBlockCommentPublic200Response
Exemple

vérifier les commentaires bloqués 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_ids | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : CheckedCommentsForBlocked200Response
Exemple

bloquer l'utilisateur depuis un commentaire 
Paramètres
| Nom | 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 un commentaire (public) 
Paramètres
| Name | 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 un commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| context_user_id | String | Non | |
| is_live | bool | Non |
Réponse
Renvoie : DeleteComment200Response
Exemple

supprimer un commentaire (public) 
Paramètres
| Name | Type | Required | 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 le vote sur un commentaire 
Paramètres
| Name | Type | Requis | 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
Retourne : DeleteCommentVote200Response
Exemple

signaler un 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 un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetComment200Response
Exemple

obtenir le texte du commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Renvoie : GetCommentText200Response
Exemple

obtenir les noms d'utilisateur des votes sur le 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 des commentaires 
Paramètres
| Nom | Type | Requis | 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
Renvoie : GetComments200Response
Exemple

obtenir des commentaires (publics) 
req tenantId urlId
Paramètres
| Name | Type | Obligatoire | 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 un 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 un commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : PinComment200Response
Exemple

enregistrer un 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
Renvoie : SaveComment200Response
Exemple

enregistrer des commentaires en lot 
Paramètres
| Nom | 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 le texte du commentaire 
Paramètres
| Name | 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
Retourne : SetCommentText200Response
Exemple

débloquer l'utilisateur depuis un 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 le signalement du commentaire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie : FlagComment200Response
Exemple

déverrouiller un 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 un commentaire 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : PinComment200Response
Exemple

mettre à jour un 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 pour un commentaire 
Paramètres
| Nom | 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
Renvoie : VoteComment200Response
Exemple

ajouter une configuration de domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| add_domain_config_params | models::AddDomainConfigParams | Oui |
Réponse
Renvoie : AddDomainConfig200Response
supprimer une configuration de domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain | String | Oui |
Réponse
Renvoie: DeleteDomainConfig200Response
obtenir la configuration de domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain | String | Oui |
Réponse
Renvoie : GetDomainConfig200Response
obtenir les configurations de domaine 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie: GetDomainConfigs200Response
mettre à jour partiellement la configuration de 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
Retourne: GetDomainConfig200Response
remplacer la configuration de 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 un modèle d'e-mail 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_email_template_body | models::CreateEmailTemplateBody | Oui |
Réponse
Renvoie : CreateEmailTemplate200Response
Exemple

supprimer un modèle d'e-mail 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

supprimer une erreur de rendu de modèle d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| error_id | String | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

obtenir un modèle d'e-mail 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetEmailTemplate200Response
Exemple

obtenir les définitions de modèles d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie : GetEmailTemplateDefinitions200Response
Exemple

obtenir les erreurs de rendu des modèles d'e-mail 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetEmailTemplateRenderErrors200Response
Exemple

obtenir les modèles d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne: GetEmailTemplates200Response
Exemple

générer un modèle d'e-mail 
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 un modèle d'e-mail 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_email_template_body | models::UpdateEmailTemplateBody | Oui |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

obtenir le journal d'événements 
req tenantId urlId userIdWS
Paramètres
| Name | Type | Required | 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 le journal d'événements global 
req tenantId urlId userIdWS
Paramètres
| Name | Type | Obligatoire | 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

créer une publication 
Paramètres
| Nom | Type | Requis | 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
Renvoie: CreateFeedPost200Response
Exemple

créer une publication (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
Retourne: CreateFeedPostPublic200Response
Exemple

supprimer une publication (publique) 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_id | String | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Retourne: DeleteFeedPostPublic200Response
Exemple

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

obtenir les publications (publiques) 
req tenantId afterId
Paramètres
| Nom | Type | Obligatoire | 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 les statistiques des publications 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec |
Oui | |
| sso | String | Non |
Réponse
Renvoie: GetFeedPostsStats200Response
Exemple

obtenir les réactions des utilisateurs (public) 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec |
Non | |
| sso | String | Non |
Réponse
Renvoie: GetUserReactsPublic200Response
Exemple

réagir à une publication (publique) 
Paramètres
| Nom | Type | Obligatoire | 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 une publication 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| feed_post | models::FeedPost | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

mettre à jour une publication (publique) 
Paramètres
| Nom | Type | Requis | 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
Retourne : CreateFeedPostPublic200Response
Exemple

signaler un commentaire (public) 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| is_flagged | bool | Oui | |
| sso | String | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

ajouter un hashtag 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Non | |
| create_hash_tag_body | models::CreateHashTagBody | Non |
Réponse
Renvoie : AddHashTag200Response
Exemple

ajouter des hashtags en masse 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Non | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | Non |
Réponse
Renvoie : AddHashTagsBulk200Response
Exemple

supprimer un hashtag 
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 les hashtags 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| page | f64 | Non |
Réponse
Renvoie : GetHashTags200Response
Exemple

mettre à jour partiellement un hashtag 
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 un modérateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_moderator_body | models::CreateModeratorBody | Oui |
Réponse
Renvoie : CreateModerator200Response
Exemple

supprimer un modérateur 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| send_email | String | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

obtenir un modérateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetModerator200Response
Exemple

obtenir les modérateurs 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetModerators200Response
Exemple

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

mettre à jour un modérateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_moderator_body | models::UpdateModeratorBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

supprimer le nombre de notifications 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

obtenir le nombre de notifications mis en cache 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetCachedNotificationCount200Response
Exemple

obtenir le nombre de notifications 
Paramètres
| Name | Type | Required | 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 les 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 une notification 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_notification_body | models::UpdateNotificationBody | Yes | |
| user_id | String | No |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

ajouter une page 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_page_data | models::CreateApiPageData | Oui |
Réponse
Renvoie: AddPageApiResponse
supprimer une page 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : DeletePageApiResponse
obtenir la page par URLID 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Retourne: GetPageByUrlidApiResponse
obtenir les pages 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie: GetPagesApiResponse
mettre à jour partiellement une page 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_api_page_data | models::UpdateApiPageData | Oui |
Réponse
Retourne : PatchPageApiResponse
supprimer un événement webhook en attente 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir le nombre d'é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 |
Réponse
Renvoie : GetPendingWebhookEventCount200Response
Exemple

obtenir les é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 | |
| skip | f64 | Non |
Réponse
Renvoie : GetPendingWebhookEvents200Response
Exemple

créer une configuration de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_config_body | models::CreateQuestionConfigBody | Oui |
Réponse
Retourne: CreateQuestionConfig200Response
Exemple

supprimer une configuration de question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir la configuration de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetQuestionConfig200Response
Exemple

obtenir les configurations de questions 
Paramètres
| Name | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetQuestionConfigs200Response
Exemple

mettre à jour la configuration de question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_question_config_body | models::UpdateQuestionConfigBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

créer un résultat de question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_result_body | models::CreateQuestionResultBody | Oui |
Réponse
Renvoie : CreateQuestionResult200Response
Exemple

supprimer un résultat de question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

obtenir un résultat de question 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetQuestionResult200Response
Exemple

obtenir les résultats des questions 
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 un 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 les résultats des questions 
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égation en masse des résultats des questions 
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 les commentaires avec les résultats des questions 
Paramètres
| Nom | Type | Obligatoire | 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
Retourne: CombineCommentsWithQuestionResults200Response
Exemple

ajouter un utilisateur SSO 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_apisso_user_data | models::CreateApissoUserData | Oui |
Réponse
Renvoie: AddSsoUserApiResponse
supprimer un utilisateur SSO 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| delete_comments | bool | Non | |
| comment_delete_mode | String | Non |
Réponse
Renvoie: DeleteSsoUserApiResponse
obtenir l'utilisateur SSO par e-mail 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| String | Oui |
Réponse
Renvoie : GetSsoUserByEmailApiResponse
obtenir l'utilisateur SSO par ID 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetSsoUserByIdApiResponse
obtenir les utilisateurs SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | i32 | Non |
Réponse
Renvoie : GetSsoUsers200Response
mettre à jour partiellement un 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 : PatchSsoUserApiResponse
remplacer un utilisateur SSO 
Paramètres
| Nom | Type | Requis | 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 un abonnement 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Oui |
Réponse
Retourne : CreateSubscriptionApiResponse
Exemple

supprimer un abonnement 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non |
Réponse
Retourne: DeleteSubscriptionApiResponse
obtenir les abonnements 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie : GetSubscriptionsApiResponse
Exemple

mettre à jour un abonnement 
Paramètres
| Nom | Type | Obligatoire | 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 les utilisations quotidiennes du locataire 
Paramètres
| Name | Type | Required | 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 un forfait pour le locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_package_body | models::CreateTenantPackageBody | Oui |
Réponse
Renvoie : CreateTenantPackage200Response
Exemple

supprimer un forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

obtenir le forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetTenantPackage200Response
Exemple

obtenir les forfaits du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetTenantPackages200Response
Exemple

remplacer le forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

mettre à jour le forfait du locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

créer un utilisateur du locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_user_body | models::CreateTenantUserBody | Oui |
Réponse
Renvoie: CreateTenantUser200Response
Exemple

supprimer un utilisateur du locataire 
Paramètres
| Name | 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 l'utilisateur du locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetTenantUser200Response
Exemple

obtenir les utilisateurs du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetTenantUsers200Response
Exemple

remplacer l'utilisateur du locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Oui | |
| update_comments | String | Non |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

envoyer le lien de connexion 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| redirect_url | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

mettre à jour l'utilisateur du locataire 
Paramètres
| Nom | Type | Obligatoire | 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 un locataire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_body | models::CreateTenantBody | Oui |
Réponse
Renvoie : CreateTenant200Response
Exemple

supprimer un locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| sure | String | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

obtenir le locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetTenant200Response
Exemple

obtenir les locataires 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| meta | String | Non | |
| skip | f64 | Non |
Réponse
Renvoie : GetTenants200Response
Exemple

mettre à jour le locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_body | models::UpdateTenantBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

changer l'état du ticket 
Paramètres
| Name | Type | Requis | 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 un ticket 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Oui | |
| create_ticket_body | models::CreateTicketBody | Oui |
Réponse
Retourne : CreateTicket200Response
Exemple

obtenir un ticket 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie : GetTicket200Response
Exemple

obtenir les 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
Renvoie : GetTickets200Response
Exemple

téléverser une image 
Téléverser et redimensionner une image
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| file | std::path::PathBuf | Oui | |
| size_preset | models::SizePreset | Non | |
| url_id | String | Non |
Réponse
Renvoie: UploadImageResponse
obtenir la progression du badge utilisateur par ID 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne: GetUserBadgeProgressById200Response
Exemple

obtenir la progression du badge utilisateur par ID utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Oui |
Réponse
Renvoie: GetUserBadgeProgressById200Response
Exemple

obtenir la liste de progression des badges 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 un badge utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_user_badge_params | models::CreateUserBadgeParams | Oui |
Réponse
Renvoie: CreateUserBadge200Response
Exemple

supprimer un badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: UpdateUserBadge200Response
Exemple

obtenir un badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne: GetUserBadge200Response
Exemple

obtenir les badges utilisateur 
Paramètres
| Nom | Type | Obligatoire | 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 un badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_user_badge_params | models::UpdateUserBadgeParams | Oui |
Réponse
Retourne: UpdateUserBadge200Response
Exemple

obtenir le nombre de notifications utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : GetUserNotificationCount200Response
Exemple

obtenir les 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 le nombre de notifications utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : ResetUserNotifications200Response
Exemple

réinitialiser les notifications utilisateur 
Paramètres
| Nom | Type | Requis | 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 le statut d'abonnement aux commentaires de notification utilisateur 
Activer ou désactiver les notifications pour un commentaire spécifique.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| notification_id | String | Oui | |
| opted_in_or_out | String | Oui | |
| comment_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : UpdateUserNotificationStatus200Response
Exemple

mettre à jour le statut d'abonnement aux pages de notification utilisateur 
Activer ou désactiver les notifications pour une page. Lorsque les utilisateurs sont abonnés à une page, des notifications sont créées pour les nouveaux commentaires racines, et aussi
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| url | String | Oui | |
| page_title | String | Oui | |
| subscribed_or_unsubscribed | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : UpdateUserNotificationStatus200Response
Exemple

mettre à jour le statut de notification utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| notification_id | String | Oui | |
| new_status | String | Oui | |
| sso | String | Non |
Réponse
Renvoie : UpdateUserNotificationStatus200Response
Exemple

obtenir les statuts de présence utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id_ws | String | Oui | |
| user_ids | String | Oui |
Réponse
Renvoie : GetUserPresenceStatuses200Response
Exemple

rechercher des utilisateurs 
Paramètres
| Nom | Type | Obligatoire | 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 un utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetUser200Response
Exemple

créer un vote 
Paramètres
| Nom | Type | Requis | 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 un vote 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| edit_key | String | Non |
Réponse
Renvoie : DeleteCommentVote200Response
Exemple

obtenir les votes 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Renvoie : GetVotes200Response
Exemple

obtenir les votes pour un utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Retourne : GetVotesForUser200Response
Exemple

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