
Langue 🇨🇦 Français (Canada)
Prise en main
Documentation
Agrégation
Journaux d'audit
Blocage depuis un commentaire
Vérifier les commentaires bloqués
Commentaires
Configurations de domaine
Modèles de courriel
Journal d'événements
Publications du fil
Signaler un commentaire
Mots-clics
Modérateurs
Nombre de notifications
Notifications
Pages
Événements webhook en attente
Configurations de questions
Résultats des questions
Agrégation des résultats de questions
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Forfaits du locataire
Utilisateurs du locataire
Locataires
Téléversement d'image
Progression du badge utilisateur
Badges utilisateur
Notifications de l'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 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 }
Remarques 
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 les 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
Bloquer depuis un 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
Débloquer 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: UnBlockCommentPublic200Response
Vérifier les commentaires bloqués 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_ids | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: CheckedCommentsForBlocked200Response
Bloquer un 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
Créer un commentaire (public) 
Paramètres
| Name | Type | Obligatoire | 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
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
Supprimer un commentaire (public) 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Renvoie : DeleteCommentPublic200Response
Supprimer un vote de commentaire 
Paramètres
| Nom | 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
Renvoie : DeleteCommentVote200Response
Signaler un commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Renvoie : FlagComment200Response
Obtenir un commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetComment200Response
Obtenir le texte du commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Retourne : GetCommentText200Response
Obtenir les noms des utilisateurs ayant voté 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
Retourne: GetCommentVoteUserNames200Response
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
Retourne: GetComments200Response
Obtenir des 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
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
Épingler 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: PinComment200Response
Enregistrer un commentaire 
Paramètres
| Nom | Type | Requis | 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
Enregistrer plusieurs commentaires 
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>
Définir le texte du 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
Débloquer un 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
Annuler le signalement d'un 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
Retourne: FlagComment200Response
Dé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
Renvoie : LockComment200Response
Désé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
Retourne: PinComment200Response
Mettre à jour un commentaire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| body | models::PickApiCommentPeriodUpdatableCommentFields | Oui | |
| context_user_id | String | Non | |
| do_spam_check | bool | Non | |
| is_live | bool | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Voter pour un commentaire 
Paramètres
| Nom | Type | Obligatoire | 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
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 une configuration de domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain | String | Oui |
Réponse
Renvoie: GetDomainConfig200Response
Obtenir les configurations de domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie: GetDomainConfigs200Response
Modifier partiellement une 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
Renvoie : GetDomainConfig200Response
Remplacer une 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 de courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_email_template_body | models::CreateEmailTemplateBody | Oui |
Réponse
Renvoie : CreateEmailTemplate200Response
Exemple

Supprimer un modèle de courriel 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

Supprimer une erreur de rendu du modèle de courriel 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| error_id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

Obtenir un modèle de courriel 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne: GetEmailTemplate200Response
Exemple

Obtenir les définitions des modèles de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Renvoie : GetEmailTemplateDefinitions200Response
Exemple

Obtenir les erreurs de rendu des modèles de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetEmailTemplateRenderErrors200Response
Exemple

Obtenir les modèles de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetEmailTemplates200Response
Exemple

Rendre un 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 un modèle de courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_email_template_body | models::UpdateEmailTemplateBody | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

Obtenir le journal d'événements 
req tenantId urlId userIdWS
Paramètres
| Name | 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
Obtenir le 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
Renvoie: GetEventLog200Response
Créer une publication du fil 
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
Créer une publication du fil (publique) 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_feed_post_params | models::CreateFeedPostParams | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : CreateFeedPostPublic200Response
Supprimer une publication du fil (publique) 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_id | String | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : DeleteFeedPostPublic200Response
Obtenir les publications du fil 
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
Retourne : GetFeedPosts200Response
Obtenir les publications du fil (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
Obtenir les statistiques des publications du fil 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec |
Oui | |
| sso | String | Non |
Réponse
Retourne: GetFeedPostsStats200Response
Obtenir les réactions d'utilisateurs (publiques) 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec |
Non | |
| sso | String | Non |
Réponse
Renvoie: GetUserReactsPublic200Response
Réagir à une publication du fil (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
Mettre à jour une publication du fil 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| feed_post | models::FeedPost | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Mettre à jour une publication du fil (publique) 
Paramètres
| Nom | 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
Retourne: CreateFeedPostPublic200Response
Signaler un commentaire (public) 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| is_flagged | bool | Oui | |
| sso | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Ajouter un mot-clic 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Non | |
| create_hash_tag_body | models::CreateHashTagBody | Non |
Réponse
Retourne: AddHashTag200Response
Exemple

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

Supprimer un mot-clic 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tag | String | Oui | |
| tenant_id | String | Non | |
| delete_hash_tag_request | models::DeleteHashTagRequest | Non |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

Obtenir les mots-clics 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| page | f64 | Non |
Réponse
Renvoie: GetHashTags200Response
Exemple

Modifier partiellement un mot-clic 
Paramètres
| Nom | Type | Requis | 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
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_moderator_body | models::CreateModeratorBody | Oui |
Réponse
Renvoie: CreateModerator200Response
Exemple

Supprimer un modérateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| send_email | String | Non |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

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

Obtenir les modérateurs 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne: GetModerators200Response
Exemple

Envoyer une invitation 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| from_name | String | Oui |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

Mettre à jour un modérateur 
Paramètres
| Name | Type | Required | 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 | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : FlagCommentPublic200Response
Exemple

Obtenir le nombre de notifications 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 | Obligatoire | 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
| Name | Type | Required | 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 | 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 une page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_page_data | models::CreateApiPageData | Oui |
Réponse
Retourne: AddPageApiResponse
Supprimer une page 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : DeletePageApiResponse
Obtenir la page par URLid 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Retourne: GetPageByUrlidApiResponse
Modifier partiellement une 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 un événement webhook en attente 
Paramètres
| Nom | Type | Requis | 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 | Requis | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | No | |
| external_id | String | No | |
| event_type | String | No | |
| domain | String | No | |
| attempt_count_gt | f64 | No |
Réponse
Renvoie : GetPendingWebhookEventCount200Response
Exemple

Obtenir les é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
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
Renvoie : CreateQuestionConfig200Response
Exemple

Supprimer une configuration de question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne: FlagCommentPublic200Response
Exemple

Obtenir une 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
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie: GetQuestionConfigs200Response
Exemple

Mettre à jour une 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
Retourne : FlagCommentPublic200Response
Exemple

Créer un résultat de question 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_result_body | models::CreateQuestionResultBody | Oui |
Réponse
Retourne : CreateQuestionResult200Response
Exemple

Supprimer un résultat de question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

Obtenir un résultat de question 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Réponse
Retourne : GetQuestionResult200Response
Exemple

Obtenir les résultats de questions 
Paramètres
| Name | Type | Obligatoire | 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 de questions 
Paramètres
| Nom | Type | Obligatoire | 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
Agréger en masse les résultats de 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
Combiner les commentaires avec les résultats de 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
Ajouter un utilisateur SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_apisso_user_data | models::CreateApissoUserData | Oui |
Réponse
Retourne : AddSsoUserApiResponse
Supprimer un 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 un utilisateur SSO par courriel 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| String | Oui |
Réponse
Renvoie : GetSsoUserByEmailApiResponse
Obtenir un utilisateur SSO par identifiant 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetSsoUserByIdApiResponse
Obtenir les utilisateurs SSO 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | i32 | Non |
Réponse
Renvoie : GetSsoUsers200Response
Modifier partiellement un 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 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 : 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
Renvoie: CreateSubscriptionApiResponse
Supprimer un abonnement 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie: DeleteSubscriptionApiResponse
Obtenir les abonnements 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non |
Réponse
Retourne: GetSubscriptionsApiResponse
Obtenir l'utilisation quotidienne du 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
Retourne: GetTenantDailyUsages200Response
Exemple

Créer un forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_package_body | models::CreateTenantPackageBody | Yes |
Réponse
Retourne: CreateTenantPackage200Response
Exemple

Supprimer un forfait du locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

Obtenir un forfait du locataire 
Paramètres
| Nom | Type | Obligatoire | 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 | Yes | |
| skip | f64 | No |
Réponse
Renvoie : GetTenantPackages200Response
Exemple

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

Mettre à jour un forfait du locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Oui |
Réponse
Retourne : FlagCommentPublic200Response
Exemple

Créer un utilisateur du locataire 
Paramètres
| Name | Type | Requis | 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 | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| delete_comments | String | Non | |
| comment_delete_mode | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

Obtenir un 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 | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Renvoie : GetTenantUsers200Response
Exemple

Remplacer un utilisateur du locataire 
Paramètres
| Name | Type | Requis | 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 un lien de connexion 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| redirect_url | String | Non |
Réponse
Renvoie: FlagCommentPublic200Response
Exemple

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

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

Obtenir un locataire 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetTenant200Response
Exemple

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

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

Téléverser une 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 la progression du badge utilisateur par identifiant 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: GetUserBadgeProgressById200Response
Obtenir la progression du badge utilisateur par identifiant d'utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Oui |
Réponse
Retourne: GetUserBadgeProgressById200Response
Obtenir la liste de progression des badges utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| limit | f64 | Non | |
| skip | f64 | Non |
Réponse
Renvoie: GetUserBadgeProgressList200Response
Créer un badge utilisateur 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_user_badge_params | models::CreateUserBadgeParams | Oui |
Réponse
Renvoie: CreateUserBadge200Response
Supprimer un badge utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie: UpdateUserBadge200Response
Obtenir un badge utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetUserBadge200Response
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
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
Renvoie: UpdateUserBadge200Response
Obtenir le nombre de notifications de l'utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: GetUserNotificationCount200Response
Obtenir les notifications de l'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
Réinitialiser le nombre de notifications de l'utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: ResetUserNotifications200Response
Réinitialiser les notifications de l'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
Mettre à jour le statut d'abonnement aux commentaires de notification de l'utilisateur 
Activer ou désactiver les notifications pour un commentaire spécifique.
Paramètres
| Nom | Type | Obligatoire | 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
Mettre à jour le statut d'abonnement aux pages de notification de l'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 racines, et aussi
Paramètres
| Nom | Type | Obligatoire | 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
Mettre à jour le statut de notification de l'utilisateur 
Paramètres
| Name | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| notification_id | String | Oui | |
| new_status | String | Oui | |
| sso | String | Non |
Réponse
Renvoie: UpdateUserNotificationStatus200Response
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
Rechercher des utilisateurs 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| username_starts_with | String | Oui | |
| mention_group_ids | Vec |
Non | |
| sso | String | Non |
Réponse
Retourne: SearchUsers200Response
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 | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| direction | String | Oui | |
| user_id | String | Non | |
| anon_user_id | String | Non |
Réponse
Retourne: VoteComment200Response
Exemple

Supprimer un vote 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| edit_key | String | Non |
Réponse
Retourne : DeleteCommentVote200Response
Exemple

Obtenir les votes 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Renvoie: GetVotes200Response
Exemple

Obtenir les votes pour un 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.