
Lingua 🇮🇹 Italiano
Primi passi
Documentazione
Aggregazione
Log di audit
Blocca dal commento
Controlla commenti bloccati
Commenti
Configurazioni dominio
Modelli email
Log eventi
Post del feed
Segnala commento
Hashtag
Moderatori
Conteggio notifiche
Notifiche
Pagine
Eventi webhook in sospeso
Configurazioni domande
Risultati delle domande
Aggregazione risultati domande
Utenti SSO
Abbonamenti
Utilizzo giornaliero tenant
Pacchetti tenant
Utenti tenant
Tenant
Ticket
Carica immagine
Avanzamento badge utente
Badge utente
Notifiche utente
Stato presenza utente
Ricerca utenti
Utenti
Voti
FastComments Rust SDK
Questo è l'SDK ufficiale in Rust per FastComments.
SDK ufficiale in Rust per l'API di FastComments
Repository
Contenuto della libreria 
Lo SDK Rust di FastComments è composto da diversi moduli:
Client Module - Client API generato automaticamente per le REST APIs di FastComments
- Definizioni di tipo complete per tutti i modelli API
- Endpoint sia autenticati (
DefaultApi) che pubblici (PublicApi) - Supporto completo per async/await con tokio
- Vedi client/README.md per la documentazione dettagliata delle API
SSO Module - Utility Single Sign-On lato server
- Generazione sicura di token per l'autenticazione degli utenti
- Supporto per modalità SSO sia semplici che sicure
- Firma dei token basata su HMAC-SHA256
Core Types - Definizioni di tipo condivise e utility
- Modelli di commento e strutture di metadata
- Configurazioni di utenti e tenant
- Funzioni di aiuto per operazioni comuni
Avvio rapido 
Uso dell'API pubblica
use fastcomments_sdk::client::apis::configuration::Configuration;
use fastcomments_sdk::client::apis::public_api;
#[tokio::main]
async fn main() {
// Crea la configurazione API
let config = Configuration::new();
// Recupera i commenti per una pagina
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),
}
}
Uso dell'API autenticata
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::default_api;
#[tokio::main]
async fn main() {
// Crea la configurazione con la chiave API
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// Recupera i commenti usando l'API autenticata
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),
}
}
Uso di SSO per l'autenticazione
use fastcomments_sdk::sso::{
fastcomments_sso::FastCommentsSSO,
secure_sso_user_data::SecureSSOUserData,
};
fn main() {
let api_key = "your-api-key".to_string();
// Crea i dati utente SSO sicuri (solo lato server!)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // ID utente
"user@example.com".to_string(), // Email
"John Doe".to_string(), // Nome utente
"https://example.com/avatar.jpg".to_string(), // URL dell'avatar
);
// Genera il token SSO
let sso = FastCommentsSSO::new_secure(api_key, &user_data).unwrap();
let token = sso.create_token().unwrap();
println!("SSO Token: {}", token);
// Passa questo token al tuo frontend per l'autenticazione
}
Problemi comuni 
401 Errori Non Autorizzati
Se ricevi errori 401 quando usi l'API autenticata:
- Controlla la tua API key: Assicurati di usare la API key corretta dalla dashboard di FastComments
- Verifica il tenant ID: Assicurati che il tenant ID corrisponda al tuo account
- Formato della API key: La API key deve essere passata nella Configuration:
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY".to_string(),
});
Problemi con i token SSO
Se i token SSO non funzionano:
- Usa la modalità sicura in produzione: Usa sempre
FastCommentsSSO::new_secure()con la tua API key per la produzione - Solo lato server: Genera i token SSO sul tuo server, non esporre mai la tua API key ai client
- Controlla i dati dell'utente: Assicurati che tutti i campi obbligatori (id, email, username) siano forniti
Errori del runtime asincrono
Lo SDK usa tokio per operazioni asincrone. Assicurati di:
Aggiungi tokio alle tue dipendenze:
[dependencies] tokio = { version = "1", features = ["full"] }Usa il runtime tokio:
#[tokio::main] async fn main() { // Il tuo codice asincrono qui }
Note 
ID di broadcast
Vedrai che dovrai passare un broadcastId in alcune chiamate API. Quando ricevi eventi, riavrai questo ID, così saprai di ignorare l'evento se prevedi di applicare le modifiche in modo ottimistico sul client (cosa che probabilmente vorrai fare perché offre la migliore esperienza). Passa qui un UUID. L'ID dovrebbe essere abbastanza unico da non verificarsi due volte durante una sessione del browser.
aggregazione 
Aggrega documenti raggruppandoli (se viene fornito groupBy) e applicando più operazioni. Sono supportate diverse operazioni (es. sum, countDistinct, avg, ecc.).
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| aggregation_request | models::AggregationRequest | Sì | |
| parent_tenant_id | String | No | |
| include_stats | bool | No |
Risposta
Restituisce: AggregationResponse
ottieni_log_audit 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| limit | f64 | No | |
| skip | f64 | No | |
| order | models::SortDir | No | |
| after | f64 | No | |
| before | f64 | No |
Risposta
Restituisce: GetAuditLogs200Response
Esempio

blocca_da_commento_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Sì | |
| sso | String | No |
Risposta
Restituisce: BlockFromCommentPublic200Response
Esempio

sblocca_commento_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Sì | |
| sso | String | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
Esempio

controlla_commenti_bloccati 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_ids | String | Sì | |
| sso | String | No |
Risposta
Restituisce: CheckedCommentsForBlocked200Response
Esempio

blocca_utente_da_commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| block_from_comment_params | models::BlockFromCommentParams | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: BlockFromCommentPublic200Response
Esempio

crea_commento_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| broadcast_id | String | Sì | |
| comment_data | models::CommentData | Sì | |
| session_id | String | No | |
| sso | String | No |
Risposta
Restituisce: CreateCommentPublic200Response
Esempio

elimina_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| context_user_id | String | No | |
| is_live | bool | No |
Risposta
Restituisce: DeleteComment200Response
Esempio

elimina_commento_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| edit_key | String | No | |
| sso | String | No |
Risposta
Restituisce: DeleteCommentPublic200Response
Esempio

elimina_voto_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| vote_id | String | Sì | |
| url_id | String | Sì | |
| broadcast_id | String | Sì | |
| edit_key | String | No | |
| sso | String | No |
Risposta
Restituisce: DeleteCommentVote200Response
Esempio

segnala_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: FlagComment200Response
Esempio

ottieni_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetComment200Response
Esempio

ottieni_testo_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| edit_key | String | No | |
| sso | String | No |
Risposta
Restituisce: GetCommentText200Response
Esempio

ottieni_nomi_utenti_voto_commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| dir | i32 | Sì | |
| sso | String | No |
Risposta
Restituisce: GetCommentVoteUserNames200Response
Esempio

ottieni_commenti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| 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 |
Risposta
Restituisce: GetComments200Response
Esempio

ottieni_commenti_pubblici 
req tenantId urlId
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| 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 |
Risposta
Restituisce: GetCommentsPublic200Response
Esempio

blocca_commento 
Parametri
| Nome | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: LockComment200Response
Esempio

fissa_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: PinComment200Response
Esempio

salva_commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_comment_params | models::CreateCommentParams | Sì | |
| is_live | bool | No | |
| do_spam_check | bool | No | |
| send_emails | bool | No | |
| populate_notifications | bool | No |
Risposta
Restituisce: SaveComment200Response
Esempio

salva_commenti_in_blocco 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_comment_params | Vecmodels::CreateCommentParams | Sì | |
| is_live | bool | No | |
| do_spam_check | bool | No | |
| send_emails | bool | No | |
| populate_notifications | bool | No |
Risposta
Restituisce: Vec<models::SaveComment200Response>
Esempio

imposta_testo_commento 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| comment_text_update_request | models::CommentTextUpdateRequest | Sì | |
| edit_key | String | No | |
| sso | String | No |
Risposta
Restituisce: SetCommentText200Response
Esempio

sblocca_utente_da_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| un_block_from_comment_params | models::UnBlockFromCommentParams | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: UnBlockCommentPublic200Response
Esempio

rimuovi_segnalazione_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: FlagComment200Response
Esempio

sblocca_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: LockComment200Response
Esempio

rimuovi_pin_commento 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: PinComment200Response
Esempio

aggiorna_commento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| updatable_comment_params | models::UpdatableCommentParams | Sì | |
| context_user_id | String | No | |
| do_spam_check | bool | No | |
| is_live | bool | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

vota_commento 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| url_id | String | Sì | |
| broadcast_id | String | Sì | |
| vote_body_params | models::VoteBodyParams | Sì | |
| session_id | String | No | |
| sso | String | No |
Risposta
Restituisce: VoteComment200Response
Esempio

aggiungi_config_dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| add_domain_config_params | models::AddDomainConfigParams | Sì |
Risposta
Restituisce: AddDomainConfig200Response
elimina_config_dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| domain | String | Sì |
Risposta
Restituisce: DeleteDomainConfig200Response
ottieni_config_dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| domain | String | Sì |
Risposta
Restituisce: GetDomainConfig200Response
ottieni_configurazioni_dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì |
Risposta
Restituisce: GetDomainConfigs200Response
modifica_parziale_config_dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| domain_to_update | String | Sì | |
| patch_domain_config_params | models::PatchDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
sostituisci_config_dominio 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| domain_to_update | String | Sì | |
| update_domain_config_params | models::UpdateDomainConfigParams | Sì |
Risposta
Restituisce: GetDomainConfig200Response
crea_modello_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_email_template_body | models::CreateEmailTemplateBody | Sì |
Risposta
Restituisce: CreateEmailTemplate200Response
Esempio

elimina_modello_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

elimina_errore_render_modello_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| error_id | String | Yes |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_modello_email 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetEmailTemplate200Response
Esempio

ottieni_definizioni_modello_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì |
Risposta
Restituisce: GetEmailTemplateDefinitions200Response
Esempio

ottieni_errori_render_modello_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| skip | f64 | No |
Risposta
Restituisce: GetEmailTemplateRenderErrors200Response
Esempio

ottieni_modelli_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| skip | f64 | No |
Risposta
Restituisce: GetEmailTemplates200Response
Esempio

renderizza_modello_email 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| render_email_template_body | models::RenderEmailTemplateBody | Sì | |
| locale | String | No |
Risposta
Restituisce: RenderEmailTemplate200Response
Esempio

aggiorna_modello_email 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_email_template_body | models::UpdateEmailTemplateBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_log_eventi 
req tenantId urlId userIdWS
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| user_id_ws | String | Sì | |
| start_time | i64 | Sì | |
| end_time | i64 | Sì |
Risposta
Restituisce: GetEventLog200Response
Esempio

ottieni_log_eventi_globali 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| user_id_ws | String | Sì | |
| start_time | i64 | Sì | |
| end_time | i64 | Sì |
Risposta
Restituisce: GetEventLog200Response
Esempio

crea_post_feed 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_feed_post_params | models::CreateFeedPostParams | Sì | |
| broadcast_id | String | No | |
| is_live | bool | No | |
| do_spam_check | bool | No | |
| skip_dup_check | bool | No |
Risposta
Restituisce: CreateFeedPost200Response
Esempio

crea_post_feed_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_feed_post_params | models::CreateFeedPostParams | Sì | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: CreateFeedPostPublic200Response
Esempio

elimina_post_feed_pubblico 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| post_id | String | Sì | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: DeleteFeedPostPublic200Response
Esempio

ottieni_post_feed 
req tenantId afterId
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| after_id | String | No | |
| limit | i32 | No | |
| tags | Vec |
No |
Risposta
Restituisce: GetFeedPosts200Response
Esempio

ottieni_post_feed_pubblici 
req tenantId afterId
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| after_id | String | No | |
| limit | i32 | No | |
| tags | Vec |
No | |
| sso | String | No | |
| is_crawler | bool | No | |
| include_user_info | bool | No |
Risposta
Restituisce: GetFeedPostsPublic200Response
Esempio

ottieni_statistiche_post_feed 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| post_ids | Vec |
Sì | |
| sso | String | No |
Risposta
Restituisce: GetFeedPostsStats200Response
Esempio

ottieni_reazioni_utente_pubbliche 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| post_ids | Vec |
No | |
| sso | String | No |
Risposta
Restituisce: GetUserReactsPublic200Response
Esempio

reagisci_post_feed_pubblico 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| post_id | String | Sì | |
| react_body_params | models::ReactBodyParams | Sì | |
| is_undo | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: ReactFeedPostPublic200Response
Esempio

aggiorna_post_feed 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| feed_post | models::FeedPost | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggiorna_post_feed_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| post_id | String | Sì | |
| update_feed_post_params | models::UpdateFeedPostParams | Sì | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: CreateFeedPostPublic200Response
Esempio

segnala_commento_pubblico 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| is_flagged | bool | Sì | |
| sso | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggiungi_hashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | No | |
| create_hash_tag_body | models::CreateHashTagBody | No |
Risposta
Restituisce: AddHashTag200Response
Esempio

aggiungi_hashtag_in_blocco 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | No | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | No |
Risposta
Restituisce: AddHashTagsBulk200Response
Esempio

elimina_hashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | String | Sì | |
| tenant_id | String | No | |
| delete_hash_tag_request | models::DeleteHashTagRequest | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_hashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| page | f64 | No |
Risposta
Restituisce: GetHashTags200Response
Esempio

modifica_parziale_hashtag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tag | String | Sì | |
| tenant_id | String | No | |
| update_hash_tag_body | models::UpdateHashTagBody | No |
Risposta
Restituisce: PatchHashTag200Response
Esempio

crea_moderatore 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_moderator_body | models::CreateModeratorBody | Sì |
Risposta
Restituisce: CreateModerator200Response
Esempio

elimina_moderatore 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| send_email | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_moderatore 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: GetModerator200Response
Esempio

ottieni_moderatori 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| skip | f64 | No |
Risposta
Restituisce: GetModerators200Response
Esempio

invia_invito 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| from_name | String | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggiorna_moderatore 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_moderator_body | models::UpdateModeratorBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

elimina_conteggio_notifiche 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_conteggio_notifiche_cache 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetCachedNotificationCount200Response
Esempio

ottieni_conteggio_notifiche 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No | |
| url_id | String | No | |
| from_comment_id | String | No | |
| viewed | bool | No |
Risposta
Restituisce: GetNotificationCount200Response
Esempio

ottieni_notifiche 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No | |
| url_id | String | No | |
| from_comment_id | String | No | |
| viewed | bool | No | |
| skip | f64 | No |
Risposta
Restituisce: GetNotifications200Response
Esempio

aggiorna_notifica 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_notification_body | models::UpdateNotificationBody | Sì | |
| user_id | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggiungi_pagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_api_page_data | models::CreateApiPageData | Sì |
Risposta
Restituisce: AddPageApiResponse
elimina_pagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: DeletePageApiResponse
ottieni_pagina_per_urlid 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì |
Risposta
Restituisce: GetPageByUrlidApiResponse
ottieni_pagine 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì |
Risposta
Restituisce: GetPagesApiResponse
modifica_parziale_pagina 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_api_page_data | models::UpdateApiPageData | Sì |
Risposta
Restituisce: PatchPageApiResponse
elimina_evento_webhook_in_sospeso 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_conteggio_eventi_webhook_in_sospeso 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | No | |
| external_id | String | No | |
| event_type | String | No | |
| domain | String | No | |
| attempt_count_gt | f64 | No |
Risposta
Restituisce: GetPendingWebhookEventCount200Response
Esempio

ottieni_eventi_webhook_in_sospeso 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | No | |
| external_id | String | No | |
| event_type | String | No | |
| domain | String | No | |
| attempt_count_gt | f64 | No | |
| skip | f64 | No |
Risposta
Restituisce: GetPendingWebhookEvents200Response
Esempio

crea_config_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_question_config_body | models::CreateQuestionConfigBody | Sì |
Response
Restituisce: CreateQuestionConfig200Response
Esempio

elimina_config_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_config_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetQuestionConfig200Response
Esempio

ottieni_configurazioni_domande 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| skip | f64 | No |
Risposta
Restituisce: GetQuestionConfigs200Response
Esempio

aggiorna_config_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_question_config_body | models::UpdateQuestionConfigBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

crea_risultato_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_question_result_body | models::CreateQuestionResultBody | Yes |
Risposta
Restituisce: CreateQuestionResult200Response
Esempio

elimina_risultato_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_risultato_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetQuestionResult200Response
Esempio

ottieni_risultati_domande 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | No | |
| user_id | String | No | |
| start_date | String | No | |
| question_id | String | No | |
| question_ids | String | No | |
| skip | f64 | No |
Risposta
Restituisce: GetQuestionResults200Response
Esempio

aggiorna_risultato_domanda 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_question_result_body | models::UpdateQuestionResultBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggregazione_risultati_domande 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| question_id | String | No | |
| question_ids | Vec |
No | |
| url_id | String | No | |
| time_bucket | models::AggregateTimeBucket | No | |
| start_date | String | No | |
| force_recalculate | bool | No |
Risposta
Restituisce: AggregateQuestionResults200Response
Esempio

aggregazione_in_blocco_risultati_domande 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Sì | |
| force_recalculate | bool | No |
Risposta
Restituisce: BulkAggregateQuestionResults200Response
Esempio

combina_commenti_con_risultati_domande 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| question_id | String | No | |
| question_ids | Vec |
No | |
| url_id | String | No | |
| start_date | String | No | |
| force_recalculate | bool | No | |
| min_value | f64 | No | |
| max_value | f64 | No | |
| limit | f64 | No |
Risposta
Restituisce: CombineCommentsWithQuestionResults200Response
Esempio

aggiungi_utente_sso 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_apisso_user_data | models::CreateApissoUserData | Sì |
Risposta
Restituisce: AddSsoUserApiResponse
elimina_utente_sso 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| delete_comments | bool | No | |
| comment_delete_mode | String | No |
Risposta
Restituisce: DeleteSsoUserApiResponse
ottieni_utente_sso_per_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| String | Sì |
Risposta
Restituisce: GetSsoUserByEmailApiResponse
ottieni_utente_sso_per_id 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetSsoUserByIdApiResponse
ottieni_utenti_sso 
Parametri
| Name | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| skip | i32 | No |
Risposta
Restituisce: GetSsoUsers200Response
modifica_parziale_utente_sso 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_apisso_user_data | models::UpdateApissoUserData | Sì | |
| update_comments | bool | No |
Risposta
Restituisce: PatchSsoUserApiResponse
sostituisci_utente_sso 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_apisso_user_data | models::UpdateApissoUserData | Sì | |
| update_comments | bool | No |
Risposta
Restituisce: PutSsoUserApiResponse
crea_abbonamento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Sì |
Risposta
Restituisce: CreateSubscriptionApiResponse
Esempio

elimina_abbonamento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| user_id | String | No |
Risposta
Restituisce: DeleteSubscriptionApiResponse
ottieni_abbonamenti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No |
Risposta
Restituisce: GetSubscriptionsApiResponse
Esempio

aggiorna_abbonamento 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_api_user_subscription_data | models::UpdateApiUserSubscriptionData | Sì | |
| user_id | String | No |
Risposta
Restituisce: UpdateSubscriptionApiResponse
Esempio

ottieni_utilizzi_giornalieri_tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| year_number | f64 | No | |
| month_number | f64 | No | |
| day_number | f64 | No | |
| skip | f64 | No |
Risposta
Restituisce: GetTenantDailyUsages200Response
Esempio

crea_pacchetto_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_tenant_package_body | models::CreateTenantPackageBody | Sì |
Risposta
Restituisce: CreateTenantPackage200Response
Esempio

elimina_pacchetto_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_pacchetto_tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetTenantPackage200Response
Esempio

ottieni_pacchetti_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| skip | f64 | No |
Risposta
Restituisce: GetTenantPackages200Response
Esempio

sostituisci_pacchetto_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggiorna_pacchetto_tenant 
Parameters
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Sì |
Response
Restituisce: FlagCommentPublic200Response
Esempio

crea_utente_tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_tenant_user_body | models::CreateTenantUserBody | Sì |
Risposta
Restituisce: CreateTenantUser200Response
Esempio

elimina_utente_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| delete_comments | String | No | |
| comment_delete_mode | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_utente_tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetTenantUser200Response
Esempio

ottieni_utenti_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| skip | f64 | No |
Risposta
Restituisce: GetTenantUsers200Response
Esempio

sostituisci_utente_tenant 
Parametri
| Name | Type | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Sì | |
| update_comments | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

invia_link_accesso 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| redirect_url | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

aggiorna_utente_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_tenant_user_body | models::UpdateTenantUserBody | Sì | |
| update_comments | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

crea_tenant 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_tenant_body | models::CreateTenantBody | Sì |
Risposta
Restituisce: CreateTenant200Response
Esempio

elimina_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| sure | String | No |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

ottieni_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetTenant200Response
Esempio

ottieni_tenant 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| meta | String | No | |
| skip | f64 | No |
Risposta
Restituisce: GetTenants200Response
Esempio

aggiorna_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_tenant_body | models::UpdateTenantBody | Sì |
Risposta
Restituisce: FlagCommentPublic200Response
Esempio

cambia_stato_ticket 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | Sì | |
| id | String | Sì | |
| change_ticket_state_body | models::ChangeTicketStateBody | Sì |
Risposta
Restituisce: ChangeTicketState200Response
Esempio

crea_ticket 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | Sì | |
| create_ticket_body | models::CreateTicketBody | Sì |
Risposta
Restituisce: CreateTicket200Response
Esempio

ottieni_ticket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| user_id | String | No |
Risposta
Restituisce: GetTicket200Response
Esempio

ottieni_ticket 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No | |
| state | f64 | No | |
| skip | f64 | No | |
| limit | f64 | No |
Risposta
Restituisce: GetTickets200Response
Esempio

carica_immagine 
Carica e ridimensiona un'immagine
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| file | std::path::PathBuf | Sì | |
| size_preset | models::SizePreset | No | |
| url_id | String | No |
Risposta
Restituisce: UploadImageResponse
ottieni_avanzamento_badge_utente_per_id 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
Esempio

ottieni_avanzamento_badge_utente_per_id_utente 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | Sì |
Risposta
Restituisce: GetUserBadgeProgressById200Response
Esempio

ottieni_lista_avanzamenti_badge_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No | |
| limit | f64 | No | |
| skip | f64 | No |
Response
Restituisce: GetUserBadgeProgressList200Response
Esempio

crea_badge_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_user_badge_params | models::CreateUserBadgeParams | Sì |
Risposta
Restituisce: CreateUserBadge200Response
Esempio

elimina_badge_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
Esempio

ottieni_badge_utente 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetUserBadge200Response
Esempio

ottieni_badge_utenti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No | |
| badge_id | String | No | |
| displayed_on_comments | bool | No | |
| limit | f64 | No | |
| skip | f64 | No |
Risposta
Restituisce: GetUserBadges200Response
Esempio

aggiorna_badge_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_user_badge_params | models::UpdateUserBadgeParams | Sì |
Risposta
Restituisce: UpdateUserBadge200Response
Esempio

ottieni_conteggio_notifiche_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: GetUserNotificationCount200Response
Esempio

ottieni_notifiche_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| page_size | i32 | No | |
| after_id | String | No | |
| include_context | bool | No | |
| after_created_at | i64 | No | |
| unread_only | bool | No | |
| dm_only | bool | No | |
| no_dm | bool | No | |
| include_translations | bool | No | |
| sso | String | No |
Risposta
Restituisce: GetUserNotifications200Response
Esempio

azzera_conteggio_notifiche_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: ResetUserNotifications200Response
Esempio

azzera_notifiche_utente 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| after_id | String | No | |
| after_created_at | i64 | No | |
| unread_only | bool | No | |
| dm_only | bool | No | |
| no_dm | bool | No | |
| sso | String | No |
Risposta
Restituisce: ResetUserNotifications200Response
Esempio

aggiorna_stato_iscrizione_commento_notifica_utente 
Abilita o disabilita le notifiche per un commento specifico.
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| notification_id | String | Sì | |
| opted_in_or_out | String | Sì | |
| comment_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

aggiorna_stato_iscrizione_pagina_notifica_utente 
Abilita o disabilita le notifiche per una pagina. Quando gli utenti sono iscritti a una pagina, vengono create notifiche per nuovi commenti principali, e anche
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| url | String | Sì | |
| page_title | String | Sì | |
| subscribed_or_unsubscribed | String | Sì | |
| sso | String | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

aggiorna_stato_notifica_utente 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| notification_id | String | Sì | |
| new_status | String | Sì | |
| sso | String | No |
Risposta
Restituisce: UpdateUserNotificationStatus200Response
Esempio

ottieni_stati_presenza_utente 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id_ws | String | Sì | |
| user_ids | String | Sì |
Risposta
Restituisce: GetUserPresenceStatuses200Response
Esempio

cerca_utenti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| username_starts_with | String | No | |
| mention_group_ids | Vec |
No | |
| sso | String | No | |
| search_section | String | No |
Risposta
Restituisce: SearchUsers200Response
Esempio

ottieni_utente 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetUser200Response
Esempio

crea_voto 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| direction | String | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: VoteComment200Response
Esempio

elimina_voto 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| edit_key | String | No |
Risposta
Restituisce: DeleteCommentVote200Response
Esempio

ottieni_voti 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì |
Risposta
Restituisce: GetVotes200Response
Esempio

ottieni_voti_per_utente 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: GetVotesForUser200Response
Esempio

Hai bisogno di aiuto?
Se riscontri problemi o hai domande sul SDK Rust, per favore:
Contribuire
I contributi sono benvenuti! Visita il repository GitHub per le linee guida sui contributi.