
Langue 🇫🇷 Français (France)
Démarrage
Documentation
Agrégation
API
Journaux d'audit
Bloquer depuis le commentaire
Vérifier les commentaires bloqués
Commentaires
Commentaires pour l'utilisateur
Configurations de domaine
Modèles d'e-mail
Journal d'événements
Publications
Signaler un commentaire
GIFs
Hashtags
Modération
Modérateurs
Nombre de notifications
Notifications
Réactions de page
Pages
Événements webhook en attente
Configurations des questions
Résultats des questions
Agrégation des résultats des questions
Utilisateurs SSO
Abonnements
Utilisation quotidienne du locataire
Forfaits du locataire
Utilisateurs du locataire
Locataires
Tickets
Traductions
Téléverser une image
Progression des badges utilisateur
Badges utilisateur
Notifications utilisateur
Statuts de présence des utilisateurs
Recherche d'utilisateurs
Utilisateurs
Votes
SDK Rust FastComments
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 FastComments Rust comprend plusieurs modules :
-
Module Client - client API pour les API REST FastComments
- Définitions complètes des types pour tous les modèles d'API
- Trois clients API couvrant toutes les méthodes FastComments :
default_api(DefaultApi) – méthodes authentifiées par clé API pour une utilisation côté serveurpublic_api(PublicApi) – méthodes publiques, sans clé API, sécurisées pour être appelées depuis les navigateurs et les applications mobilesmoderation_api(ModerationApi) – une suite étendue d’API de modération en temps réel et rapide. Chaque méthode de modération accepte un paramètressoet peut s’authentifier via SSO ou un cookie de session FastComments.com.
- Support complet async/await avec tokio
- Voir client/README.md pour une documentation détaillée de l'API
-
Module SSO – utilitaires d’authentification unique 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
-
Types de base – définitions de types partagés et utilitaires
- Modèles de commentaires et structures de métadonnées
- Configurations d’utilisateur et de locataire
- Fonctions d’assistance 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 pour 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 l'API de modération
Les méthodes de modération alimentent le tableau de bord du modérateur. Elles utilisent une Configuration par clé API, comme l'API authentifiée, et chaque méthode accepte un token sso optionnel afin que l'appel puisse être effectué au nom d'un modérateur authentifié via SSO.
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::moderation_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(),
});
// Compter les commentaires en attente dans la file de modération
let result = moderation_api::get_count(
&config,
moderation_api::GetCountParams {
text_search: None,
by_ip_from_comment: None,
filter: None,
search_filters: None,
demo: None,
sso: None, // passer un token SSO pour agir en tant que modérateur authentifié via SSO
},
)
.await;
match result {
Ok(response) => println!("Comments to moderate: {}", response.count),
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 SSO sécurisées de l'utilisateur (côté serveur uniquement !)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // ID utilisateur
"user@example.com".to_string(), // Email
"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 regroupant (si groupBy est fourni) et en appliquant plusieurs opérations.
Différentes opérations (par ex. sum, countDistinct, avg, etc.) sont prises en charge.
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| aggregation_request | models::AggregationRequest | Yes | |
| parent_tenant_id | String | No | |
| include_stats | bool | No |
Réponse
Retourne : AggregateResponse
Exemple

récupérer_api_comments 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| page | f64 | No | |
| count | f64 | No | |
| text_search | String | No | |
| by_ip_from_comment | String | No | |
| filters | String | No | |
| search_filters | String | No | |
| sorts | String | No | |
| demo | bool | No | |
| sso | String | No |
Réponse
Renvoie : ModerationApiGetCommentsResponse
Exemple

récupérer_api_export_status 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| batch_job_id | String | Non | |
| sso | String | Non |
Réponse
Retourne : ModerationExportStatusResponse
Exemple

récupérer_api_ids 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| text_search | String | No | |
| by_ip_from_comment | String | No | |
| filters | String | No | |
| search_filters | String | No | |
| after_id | String | No | |
| demo | bool | No | |
| sso | String | No |
Réponse
Retourne : ModerationApiGetCommentIdsResponse
Exemple

créer_api_export 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| text_search | String | Non | |
| by_ip_from_comment | String | Non | |
| filters | String | Non | |
| search_filters | String | Non | |
| sorts | String | Non | |
| sso | String | Non |
Réponse
Retourne : ModerationExportResponse
Exemple

récupérer_journaux_audit 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| limit | f64 | No | |
| skip | f64 | No | |
| order | models::SortDir | No | |
| after | f64 | No | |
| before | f64 | No |
Réponse
Retourne : GetAuditLogsResponse
Exemple

bloquer_depuis_commentaire_public 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Yes | |
| sso | String | No |
Réponse
Retourne : BlockSuccess
Exemple

débloquer_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 : UnblockSuccess
Exemple

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

bloquer_utilisateur_depuis_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| block_from_comment_params | models::BlockFromCommentParams | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Réponse
Retourne : BlockSuccess
Exemple

créer_commentaire_public 
Paramètres
| Nom | 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
Retourne : SaveCommentsResponseWithPresence
Exemple

supprimer_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 : DeleteCommentResult
Exemple

supprimer_commentaire_public 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| edit_key | String | No | |
| sso | String | No |
Réponse
Renvoie : PublicApiDeleteCommentResponse
Exemple

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

signaler_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Réponse
Renvoie : FlagCommentResponse
Exemple

récupérer_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : ApiGetCommentResponse
Exemple

récupérer_texte_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| edit_key | String | Non | |
| sso | String | Non |
Réponse
Renvoie : PublicApiGetCommentTextResponse
Exemple

récupérer_noms_utilisateurs_vote_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| dir | i32 | Oui | |
| sso | String | Non |
Réponse
Renvoie : GetCommentVoteUserNamesSuccessResponse
Exemple

récupérer_commentaires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| page | i32 | No | |
| limit | i32 | No | |
| skip | i32 | No | |
| as_tree | bool | No | |
| skip_children | i32 | No | |
| limit_children | i32 | No | |
| max_tree_depth | i32 | No | |
| url_id | String | No | |
| user_id | String | No | |
| anon_user_id | String | No | |
| context_user_id | String | No | |
| hash_tag | String | No | |
| parent_id | String | No | |
| direction | models::SortDirections | No | |
| from_date | i64 | No | |
| to_date | i64 | No |
Réponse
Renvoie : ApiGetCommentsResponse
Exemple

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

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

épingler_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| sso | String | No |
Réponse
Renvoie : ChangeCommentPinStatusResponse
Exemple

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

sauvegarder_commentaires_en_vrac 
Paramètres
| Nom | Type | Obligatoire | 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::SaveCommentsBulkResponse>
Exemple

définir_texte_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| comment_text_update_request | models::CommentTextUpdateRequest | Yes | |
| edit_key | String | No | |
| sso | String | No |
Réponse
Retourne : PublicApiSetCommentTextResponse
Exemple

débloquer_utilisateur_depuis_commentaire 
Paramètres
| Nom | Type | Obligatoire | 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
Retourne : UnblockSuccess
Exemple

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

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

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

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

voter_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
Retourne : VoteResponse
Exemple

récupérer_commentaires_pour_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| user_id | String | Non | |
| direction | models::SortDirections | Non | |
| replies_to_user_id | String | Non | |
| page | f64 | Non | |
| includei10n | bool | Non | |
| locale | String | Non | |
| is_crawler | bool | Non |
Réponse
Renvoie : GetCommentsForUserResponse
Exemple

ajouter_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| add_domain_config_params | models::AddDomainConfigParams | Yes |
Réponse
Renvoie : AddDomainConfigResponse
Exemple

supprimer_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain | String | Oui |
Réponse
Retourne : DeleteDomainConfigResponse
Exemple

récupérer_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| domain | String | Yes |
Réponse
Retour : GetDomainConfigResponse
Exemple

récupérer_configurations_domaine 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes |
Réponse
Renvoie : GetDomainConfigsResponse
Exemple

modifier_partiellement_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| domain_to_update | String | Oui | |
| patch_domain_config_params | models::PatchDomainConfigParams | Oui |
Réponse
Retourne : PatchDomainConfigResponse
Exemple

remplacer_configuration_domaine 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| domain_to_update | String | Yes | |
| update_domain_config_params | models::UpdateDomainConfigParams | Yes |
Réponse
Renvoie : PutDomainConfigResponse
Exemple

créer_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_email_template_body | models::CreateEmailTemplateBody | Yes |
Réponse
Retourne : CreateEmailTemplateResponse
Exemple

supprimer_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : ApiEmptyResponse
Exemple

supprimer_erreur_rendu_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| error_id | String | Yes |
Réponse
Renvoie : ApiEmptyResponse
Exemple

récupérer_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetEmailTemplateResponse
Exemple

récupérer_définitions_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Retourne : GetEmailTemplateDefinitionsResponse
Exemple

récupérer_erreurs_rendu_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetEmailTemplateRenderErrorsResponse
Exemple

récupérer_modèles_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| skip | f64 | No |
Réponse
Retourne : GetEmailTemplatesResponse
Exemple

rendre_modèle_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| render_email_template_body | models::RenderEmailTemplateBody | Yes | |
| locale | String | No |
Réponse
Renvoie : RenderEmailTemplateResponse
Exemple

mettre_à_jour_modèle_email 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_email_template_body | models::UpdateEmailTemplateBody | Yes |
Réponse
Renvoie : ApiEmptyResponse
Exemple

récupérer_journal_événements 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| user_id_ws | String | Yes | |
| start_time | i64 | Yes | |
| end_time | i64 | No |
Réponse
Retourne : GetEventLogResponse
Exemple

récupérer_journal_événements_global 
req tenantId urlId userIdWS
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| user_id_ws | String | Oui | |
| start_time | i64 | Oui | |
| end_time | i64 | Non |
Réponse
Renvoie : GetEventLogResponse
Exemple

créer_publication_flux 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_feed_post_params | models::CreateFeedPostParams | Yes | |
| broadcast_id | String | No | |
| is_live | bool | No | |
| do_spam_check | bool | No | |
| skip_dup_check | bool | No |
Réponse
Retour : CreateFeedPostsResponse
Exemple

créer_publication_flux_publique 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_feed_post_params | models::CreateFeedPostParams | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Retourne : CreateFeedPostResponse
Exemple

supprimer_publication_flux_publique 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Retourne : DeleteFeedPostPublicResponse
Exemple

récupérer_publications_flux 
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
Retourne : GetFeedPostsResponse
Exemple

récupérer_publications_flux_publiques 
req tenantId afterId
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| after_id | String | No | |
| limit | i32 | No | |
| tags | Vec | No | |
| sso | String | No | |
| is_crawler | bool | No | |
| include_user_info | bool | No |
Réponse
Renvoie : PublicFeedPostsResponse
Exemple

récupérer_stats_publications_flux 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_ids | Vec | Yes | |
| sso | String | No |
Réponse
Renvoie : FeedPostsStatsResponse
Exemple

récupérer_réactions_utilisateur_publiques 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| post_ids | Vec | Non | |
| sso | String | Non |
Réponse
Renvoie : UserReactsResponse
Exemple

réagir_publication_flux_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 : ReactFeedPostResponse
Exemple

mettre_à_jour_publication_flux 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| feed_post | models::FeedPost | Oui |
Réponse
Retourne : ApiEmptyResponse
Exemple

mettre_à_jour_publication_flux_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 : CreateFeedPostResponse
Exemple

signaler_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
Retourne : ApiEmptyResponse
Exemple

récupérer_gif_grand 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| large_internal_url_sanitized | String | Yes |
Réponse
Renvoie : GifGetLargeResponse
Exemple

rechercher_gifs 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| search | String | Yes | |
| locale | String | No | |
| rating | String | No | |
| page | f64 | No |
Réponse
Retourne : GetGifsSearchResponse
Exemple

récupérer_gifs_tendance 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| locale | String | Non | |
| rating | String | Non | |
| page | f64 | Non |
Réponse
Returns: GetGifsTrendingResponse
Exemple

ajouter_hashtag 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_hash_tag_body | models::CreateHashTagBody | Non |
Réponse
Retourne : CreateHashTagResponse
Exemple

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

supprimer_hashtag 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| tag | String | Yes | |
| delete_hash_tag_request_body | models::DeleteHashTagRequestBody | No |
Réponse
Renvoie : ApiEmptyResponse
Exemple

récupérer_hashtags 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| page | f64 | No |
Réponse
Retourne : GetHashTagsResponse
Exemple

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

supprimer_vote_modération 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| vote_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Renvoie : VoteDeleteResponse
Exemple

récupérer_utilisateurs_bannie_depuis_commentaire 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Réponse
Renvoie : GetBannedUsersFromCommentResponse
Exemple

récupérer_statut_bannissement_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : GetCommentBanStatusResponse
Exemple

récupérer_enfants_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Réponse
Renvoie : ModerationApiChildCommentsResponse
Exemple

récupérer_compte 
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| text_search | String | Non | |
| by_ip_from_comment | String | Non | |
| filter | String | Non | |
| search_filters | String | Non | |
| demo | bool | Non | |
| sso | String | Non |
Response
Retourne : ModerationApiCountCommentsResponse
Exemple

récupérer_comptes 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Returns: GetBannedUsersCountResponse
Exemple

récupérer_journaux 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : ModerationApiGetLogsResponse
Exemple

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

récupérer_badges_manuel_pour_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| badges_user_id | String | Non | |
| comment_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : GetUserManualBadgesResponse
Exemple

récupérer_commentaire_modération 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| include_email | bool | No | |
| include_ip | bool | No | |
| sso | String | No |
Réponse
Renvoie : ModerationApiCommentResponse
Exemple

récupérer_texte_commentaire_modération 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Réponse
Retourne : GetCommentTextResponse
Exemple

récupérer_résumé_pré_bannissement 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| include_by_user_id_and_email | bool | Non | |
| include_by_ip | bool | Non | |
| include_by_email_domain | bool | Non | |
| sso | String | Non |
Réponse
Renvoie : PreBanSummary
Exemple

récupérer_résumé_recherche_commentaires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| value | String | Non | |
| filters | String | Non | |
| search_filters | String | Non | |
| sso | String | Non |
Réponse
Renvoie : ModerationCommentSearchResponse
Exemple

récupérer_pages_recherche 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| value | String | Non | |
| sso | String | Non |
Réponse
Retourne : ModerationPageSearchResponse
Exemple

récupérer_sites_recherche 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| value | String | Non | |
| sso | String | Non |
Réponse
Retourne : ModerationSiteSearchResponse
Exemple

récupérer_suggestions_recherche 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| text_search | String | Non | |
| sso | String | Non |
Réponse
Retourne : ModerationSuggestResponse
Exemple

récupérer_utilisateurs_recherche 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| value | String | Non | |
| sso | String | Non |
Réponse
Retourne : ModerationUserSearchResponse
Exemple

récupérer_facteur_confiance 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| sso | String | Non |
Réponse
Retourne : GetUserTrustFactorResponse
Exemple

récupérer_préférence_bannissement_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| sso | String | Non |
Réponse
Retourne : ApiModerateGetUserBanPreferencesResponse
Exemple

récupérer_profil_interne_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : GetUserInternalProfileResponse
Exemple

poster_ajustement_votes_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| adjust_comment_votes_params | models::AdjustCommentVotesParams | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : AdjustVotesResponse
Exemple

poster_bannir_utilisateur_depuis_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| ban_email | bool | No | |
| ban_email_domain | bool | No | |
| ban_ip | bool | No | |
| delete_all_users_comments | bool | No | |
| banned_until | String | No | |
| is_shadow_ban | bool | No | |
| update_id | String | No | |
| ban_reason | String | No | |
| sso | String | No |
Réponse
Renvoie : BanUserFromCommentResult
Exemple

annuler_bannissement_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| ban_user_undo_params | models::BanUserUndoParams | Oui | |
| sso | String | Non |
Réponse
Retourne : ApiEmptyResponse
Exemple

poster_résumé_pré_bannissement_en_vrac 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| bulk_pre_ban_params | models::BulkPreBanParams | Yes | |
| include_by_user_id_and_email | bool | No | |
| include_by_ip | bool | No | |
| include_by_email_domain | bool | No | |
| sso | String | No |
Réponse
Renvoie : BulkPreBanSummary
Exemple

poster_commentaires_par_ids 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comments_by_ids_params | models::CommentsByIdsParams | Oui | |
| sso | String | Non |
Réponse
Retourne : ModerationApiChildCommentsResponse
Exemple

poster_signaler_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : ApiEmptyResponse
Exemple

poster_supprimer_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Retourne : PostRemoveCommentApiResponse
Exemple

poster_restaurer_commentaire_supprimé 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Returns: ApiEmptyResponse
Exemple

poster_définir_statut_approbation_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| approved | bool | Non | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Retourne : SetCommentApprovedResponse
Exemple

poster_définir_statut_revision_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| reviewed | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Renvoie : ApiEmptyResponse
Exemple

poster_définir_statut_spam_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| spam | bool | No | |
| perm_not_spam | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Renvoie : ApiEmptyResponse
Exemple

poster_définir_texte_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| set_comment_text_params | models::SetCommentTextParams | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : SetCommentTextResponse
Exemple

poster_retirer_signalement_commentaire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : ApiEmptyResponse
Exemple

poster_vote 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| comment_id | String | Oui | |
| direction | String | Non | |
| broadcast_id | String | Non | |
| sso | String | Non |
Réponse
Renvoie : VoteResponse
Exemple

mettre_attribuer_badge 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Renvoie : AwardUserBadgeResponse
Exemple

mettre_fermer_fil 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| sso | String | No |
Réponse
Renvoie : ApiEmptyResponse
Exemple

mettre_supprimer_badge 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Réponse
Retourne : RemoveUserBadgeResponse
Exemple

mettre_rouvrir_fil 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| sso | String | No |
Réponse
Retourne : ApiEmptyResponse
Exemple

définir_facteur_confiance 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non | |
| trust_factor | String | Non | |
| sso | String | Non |
Réponse
Retourne : SetUserTrustFactorResponse
Exemple

créer_moderateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_moderator_body | models::CreateModeratorBody | Oui |
Réponse
Renvoie : CreateModeratorResponse
Exemple

supprimer_moderateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| send_email | String | No |
Réponse
Retourne : ApiEmptyResponse
Exemple

récupérer_moderateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetModeratorResponse
Exemple

récupérer_modérateurs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetModeratorsResponse
Exemple

envoyer_invitation 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| from_name | String | Yes |
Réponse
Renvoie : ApiEmptyResponse
Exemple

mettre_à_jour_moderateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_moderator_body | models::UpdateModeratorBody | Oui |
Réponse
Retourne : ApiEmptyResponse
Exemple

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

récupérer_compte_notifications_cache 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetCachedNotificationCountResponse
Exemple

récupérer_compte_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 |
Réponse
Renvoie : GetNotificationCountResponse
Exemple

récupérer_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 : GetNotificationsResponse
Exemple

mettre_à_jour_notification 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_notification_body | models::UpdateNotificationBody | Yes | |
| user_id | String | No |
Réponse
Renvoie : ApiEmptyResponse
Exemple

créer_réaction_page_v1 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| title | String | No |
Réponse
Renvoie : CreateV1PageReact
Exemple

créer_réaction_page_v2 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes | |
| title | String | No |
Réponse
Renvoie : CreateV1PageReact
Exemple

supprimer_réaction_page_v1 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Renvoie : CreateV1PageReact
Exemple

supprimer_réaction_page_v2 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : CreateV1PageReact
Exemple

récupérer_likes_page_v1 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
Réponse
Retourne : GetV1PageLikes
Exemple

récupérer_utilisateurs_réaction_page_v2 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetV2PageReactUsersResponse
Exemple

récupérer_réactions_page_v2 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Renvoie : GetV2PageReacts
Exemple

ajouter_page 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_page_data | models::CreateApiPageData | Oui |
Réponse
Retourne : AddPageApiResponse
Exemple

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

récupérer_utilisateurs_hors_ligne 
Past commentateurs sur la page qui ne sont PAS actuellement en ligne. Triés par displayName.
Utilisez ceci après avoir épuisé /users/online pour afficher une section "Members".
Pagination par curseur sur commenterName : le serveur parcourt le fragment {tenantId, urlId, commenterName} à partir de afterName vers l’avant via $gt, sans coût $skip.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| after_name | String | No | |
| after_user_id | String | No |
Response
Returns: PageUsersOfflineResponse
Example

récupérer_utilisateurs_en_ligne 
Visionneurs actuellement en ligne d'une page : les personnes dont la session websocket est abonnée à la page en ce moment.
Renvoie anonCount + totalCount (abonnés de la salle, y compris les visionneurs anonymes que nous n'énumérons pas).
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui | |
| after_name | String | Non | |
| after_user_id | String | Non |
Réponse
Renvoie : PageUsersOnlineResponse
Exemple

récupérer_page_par_urlid 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Renvoie : GetPageByUrlidApiResponse
Exemple

récupérer_pages 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui |
Réponse
Retourne : GetPagesApiResponse
Exemple

récupérer_pages_publiques 
Lister les pages d'un locataire. Utilisé par le client de bureau FChat pour remplir sa liste de salons.
Nécessite que enableFChat soit vrai dans la configuration personnalisée résolue pour chaque page.
Les pages nécessitant SSO sont filtrées en fonction de l'accès aux groupes de l'utilisateur demandeur.
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| cursor | String | Non | |
| limit | i32 | Non | |
| q | String | Non | |
| sort_by | models::PagesSortBy | Non | |
| has_comments | bool | Non |
Response
Renvoie : GetPublicPagesResponse
Exemple

récupérer_infos_utilisateurs 
Informations utilisateur en masse pour un locataire. Étant donné des userIds, renvoie les informations d'affichage depuis User / SSOUser.
Utilisé par le widget de commentaires pour enrichir les utilisateurs qui viennent d'apparaître via un événement de présence.
Pas de contexte de page : la confidentialité est appliquée uniformément (les profils privés sont masqués).
Parameters
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| ids | String | Yes |
Response
Retourne : PageUsersInfoResponse
Example

modifier_partiellement_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
Exemple

supprimer_événement_webhook_en_attente 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Réponse
Renvoie : ApiEmptyResponse
Exemple

récupérer_compte_é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
Retourne : GetPendingWebhookEventCountResponse
Exemple

récupérer_événements_webhook_en_attente 
Paramètres
| Nom | Type | Obligatoire | 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 | |
| skip | f64 | No |
Réponse
Retourne : GetPendingWebhookEventsResponse
Exemple

créer_configuration_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_config_body | models::CreateQuestionConfigBody | Oui |
Réponse
Renvoie : CreateQuestionConfigResponse
Exemple

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

récupérer_configuration_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetQuestionConfigResponse
Exemple

récupérer_configurations_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetQuestionConfigsResponse
Exemple

mettre_à_jour_configuration_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_question_config_body | models::UpdateQuestionConfigBody | Yes |
Réponse
Retourne : ApiEmptyResponse
Exemple

créer_résultat_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_question_result_body | models::CreateQuestionResultBody | Oui |
Réponse
Retourne : CreateQuestionResultResponse
Exemple

supprimer_résultat_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : ApiEmptyResponse
Exemple

récupérer_résultat_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Réponse
Retourne : GetQuestionResultResponse
Exemple

récupérer_résultats_questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | No | |
| user_id | String | No | |
| start_date | String | No | |
| question_id | String | No | |
| question_ids | String | No | |
| skip | f64 | No |
Réponse
Renvoie : GetQuestionResultsResponse
Exemple

mettre_à_jour_résultat_question 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_question_result_body | models::UpdateQuestionResultBody | Yes |
Réponse
Retourne: ApiEmptyResponse
Exemple

agréger_résultats_questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| question_id | String | No | |
| question_ids | Vec | No | |
| url_id | String | No | |
| time_bucket | models::AggregateTimeBucket | No | |
| start_date | chrono::DateTimechrono::FixedOffset | No | |
| force_recalculate | bool | No |
Réponse
Renvoie : AggregateQuestionResultsResponse
Exemple

agréger_en_vrac_résultats_questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Oui | |
| force_recalculate | bool | Non |
Réponse
Retourne : BulkAggregateQuestionResultsResponse
Exemple

combiner_commentaires_avec_résultats_questions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| question_id | String | No | |
| question_ids | Vec | No | |
| url_id | String | No | |
| start_date | chrono::DateTimechrono::FixedOffset | No | |
| force_recalculate | bool | No | |
| min_value | f64 | No | |
| max_value | f64 | No | |
| limit | f64 | No |
Réponse
Renvoie : CombineQuestionResultsWithCommentsResponse
Exemple

ajouter_utilisateur_sso 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_apisso_user_data | models::CreateApissoUserData | Yes |
Réponse
Retourne : AddSsoUserApiResponse
Exemple

supprimer_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
Exemple

récupérer_utilisateur_sso_par_email 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| String | Yes |
Réponse
Renvoie : GetSsoUserByEmailApiResponse
Exemple

récupérer_utilisateur_sso_par_id 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetSsoUserByIdApiResponse
Exemple

récupérer_utilisateurs_sso 
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| skip | i32 | No |
Réponse
Renvoie : GetSsoUsersResponse
Exemple

modifier_partiellement_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
Exemple

remplacer_utilisateur_sso 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_apisso_user_data | models::UpdateApissoUserData | Oui | |
| update_comments | bool | Non |
Réponse
Renvoie : PutSsoUserApiResponse
Exemple

créer_abonnement 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Oui |
Réponse
Renvoie : CreateSubscriptionApiResponse
Exemple

supprimer_abonnement 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No |
Réponse
Retourne : DeleteSubscriptionApiResponse
Exemple

récupérer_abonnements 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| user_id | String | Non |
Réponse
Renvoie : GetSubscriptionsApiResponse
Exemple

mettre_à_jour_abonnement 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_api_user_subscription_data | models::UpdateApiUserSubscriptionData | Yes | |
| user_id | String | No |
Réponse
Retourne : UpdateSubscriptionApiResponse
Exemple

récupérer_utilisations_quotidiennes_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| year_number | f64 | No | |
| month_number | f64 | No | |
| day_number | f64 | No | |
| skip | f64 | No |
Réponse
Renvoie : GetTenantDailyUsagesResponse
Exemple

créer_forfait_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_package_body | models::CreateTenantPackageBody | Oui |
Réponse
Retourne : CreateTenantPackageResponse
Exemple

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

récupérer_forfait_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Réponse
Renvoie : GetTenantPackageResponse
Exemple

récupérer_forfaits_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetTenantPackagesResponse
Exemple

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

mettre_à_jour_forfait_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Oui |
Réponse
Renvoie : ApiEmptyResponse
Exemple

créer_utilisateur_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_user_body | models::CreateTenantUserBody | Oui |
Réponse
Retourne : CreateTenantUserResponse
Exemple

supprimer_utilisateur_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| delete_comments | String | No | |
| comment_delete_mode | String | No |
Réponse
Retourne : ApiEmptyResponse
Exemple

récupérer_utilisateur_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : GetTenantUserResponse
Exemple

récupérer_utilisateurs_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| skip | f64 | Non |
Réponse
Retourne : GetTenantUsersResponse
Exemple

remplacer_utilisateur_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Yes | |
| update_comments | String | No |
Réponse
Retourne : ApiEmptyResponse
Exemple

envoyer_lien_connexion 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| redirect_url | String | No |
Réponse
Renvoie : ApiEmptyResponse
Exemple

mettre_à_jour_utilisateur_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
Retourne : ApiEmptyResponse
Exemple

créer_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_tenant_body | models::CreateTenantBody | Oui |
Réponse
Retourne : CreateTenantResponse
Exemple

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

récupérer_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Réponse
Renvoie : GetTenantResponse
Exemple

récupérer_locataires 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| meta | String | Non | |
| skip | f64 | Non |
Réponse
Retourne : GetTenantsResponse
Exemple

mettre_à_jour_locataire 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_tenant_body | models::UpdateTenantBody | Oui |
Réponse
Retourne : ApiEmptyResponse
Exemple

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

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

récupérer_ticket 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No |
Réponse
Retourne : GetTicketResponse
Exemple

récupérer_tickets 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| state | f64 | No | |
| skip | f64 | No | |
| limit | f64 | No |
Réponse
Retourne : GetTicketsResponse
Exemple

récupérer_traductions 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| namespace | String | Oui | |
| component | String | Oui | |
| locale | String | Non | |
| use_full_translation_ids | bool | Non |
Réponse
Renvoie : GetTranslationsResponse
Exemple

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

récupérer_progression_badge_utilisateur_par_id 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : ApiGetUserBadgeProgressResponse
Exemple

récupérer_progression_badge_par_id_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | Yes |
Réponse
Retourne : ApiGetUserBadgeProgressResponse
Exemple

récupérer_liste_progression_badges_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| limit | f64 | No | |
| skip | f64 | No |
Réponse
Renvoie : ApiGetUserBadgeProgressListResponse
Exemple

créer_badge_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| create_user_badge_params | models::CreateUserBadgeParams | Oui |
Réponse
Retourne : ApiCreateUserBadgeResponse
Exemple

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

récupérer_badge_utilisateur 
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Renvoie : ApiGetUserBadgeResponse
Exemple

récupérer_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
Retourne : ApiGetUserBadgesResponse
Exemple

mettre_à_jour_badge_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| update_user_badge_params | models::UpdateUserBadgeParams | Oui |
Réponse
Retourne : ApiEmptySuccessResponse
Exemple

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

récupérer_notifications_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Non | |
| 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 | |
| include_tenant_notifications | bool | Non | |
| sso | String | Non |
Réponse
Retourne : GetMyNotificationsResponse
Exemple

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

réinitialiser_notifications_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| after_id | String | No | |
| after_created_at | i64 | No | |
| unread_only | bool | No | |
| dm_only | bool | No | |
| no_dm | bool | No | |
| sso | String | No |
Réponse
Renvoie : ResetUserNotificationsResponse
Exemple

mettre_à_jour_statut_abonnement_commentaire_utilisateur 
Enable ou désactive 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
Renvoie : UpdateUserNotificationCommentSubscriptionStatusResponse
Exemple

mettre_à_jour_statut_abonnement_page_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 racine, et également
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| url | String | Yes | |
| page_title | String | Yes | |
| subscribed_or_unsubscribed | String | Yes | |
| sso | String | No |
Réponse
Renvoie : UpdateUserNotificationPageSubscriptionStatusResponse
Exemple

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

récupérer_statuts_presence_utilisateurs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id_ws | String | Yes | |
| user_ids | String | Yes |
Réponse
Retourne : GetUserPresenceStatusesResponse
Exemple

rechercher_utilisateurs 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| username_starts_with | String | No | |
| mention_group_ids | Vec | No | |
| sso | String | No | |
| search_section | String | No |
Réponse
Renvoie : SearchUsersResult
Exemple

récupérer_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui |
Réponse
Retourne : GetUserResponse
Exemple

créer_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: VoteResponse
Exemple

supprimer_vote 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| id | String | Oui | |
| edit_key | String | Non |
Réponse
Renvoie : VoteDeleteResponse
Exemple

récupérer_votes 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Oui | |
| url_id | String | Oui |
Réponse
Retourne : GetVotesResponse
Exemple

récupérer_votes_pour_utilisateur 
Paramètres
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Réponse
Renvoie : GetVotesForUserResponse
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.