
Lingua 🇮🇹 Italiano
Introduzione
Documentazione
Aggregazione
API
Log di audit
Blocca dal commento
Verifica commenti bloccati
Commenti
Commenti per utente
Configurazioni dominio
Modelli email
Registro eventi
Post del feed
Segnala commento
GIF
Hashtag
Moderazione
Moderatori
Conteggio notifiche
Notifiche
Reazioni alle pagine
Pagine
Eventi webhook in sospeso
Configurazioni domande
Risultati domande
Aggregazione risultati domande
Utenti SSO
Abbonamenti
Utilizzo giornaliero tenant
Pacchetti tenant
Utenti tenant
Tenant
Ticket
Traduzioni
Carica immagine
Progresso badge utente
Badge utente
Notifiche utente
Stato presenza utente
Ricerca utenti
Utenti
Voti
FastComments SDK per Rust
Questo è l'SDK ufficiale in Rust per FastComments.
SDK ufficiale in Rust per l'API di FastComments
Repository
Contenuto della libreria 
The FastComments Rust SDK consists of several modules:
-
Client Module - Client API per le API REST di FastComments
- Definizioni di tipo complete per tutti i modelli API
- Tre client API che coprono tutti i metodi di FastComments:
default_api(DefaultApi) - Metodi autenticati con chiave API per uso server-sidepublic_api(PublicApi) - Metodi pubblici, senza chiave API, sicuri da chiamare da browser e app mobilemoderation_api(ModerationApi) - Una suite completa di API di moderazione in tempo reale e veloci. Ogni metodo di Moderazione accetta un parametrossoe può autenticarsi tramite SSO o un cookie di sessione FastComments.com.
- Supporto completo async/await con tokio
- Vedi client/README.md per la documentazione dettagliata delle API
-
SSO Module - Utilità di Single Sign-On lato server
- Generazione sicura di token per l'autenticazione degli utenti
- Supporto per entrambi i modi SSO semplici e sicuri
- Firma di token basata su HMAC-SHA256
-
Core Types - Definizioni di tipo condivise e utilità
- Modelli di commento e strutture di metadati
- Configurazioni di utenti e tenant
- Funzioni di supporto per operazioni comuni
Avvio rapido 
Utilizzo 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 dell'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),
}
}
Utilizzo 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),
}
}
Utilizzo dell'API di moderazione
I metodi di moderazione supportano la dashboard dei moderatori. Usano una Configuration con chiave API proprio come l'API autenticata, e ciascun metodo accetta un token sso opzionale in modo che la chiamata possa essere effettuata per conto di un moderatore autenticato tramite SSO.
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::moderation_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(),
});
// Conta i commenti in attesa nella coda di moderazione
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, // passa un token SSO per agire come moderatore autenticato tramite SSO
},
)
.await;
match result {
Ok(response) => println!("Comments to moderate: {}", response.count),
Err(e) => eprintln!("Error: {:?}", e),
}
}
Utilizzo 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.
aggregate 
Aggrega documenti raggruppandoli (se groupBy è fornito) e applicando più operazioni.
Sono supportate diverse operazioni (ad es. sum, countDistinct, avg, ecc.).
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| aggregation_request | models::AggregationRequest | Sì | |
| parent_tenant_id | String | No | |
| include_stats | bool | No |
Response
Returns: AggregateResponse
Esempio

get_api_comments 
Parameters
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| 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 |
Response
Restituisce: ModerationApiGetCommentsResponse
Example

get_api_export_status 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| batch_job_id | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationExportStatusResponse
Esempio

get_api_ids 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: ModerationApiGetCommentIdsResponse
Esempio

post_api_export 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| text_search | String | No | |
| by_ip_from_comment | String | No | |
| filters | String | No | |
| search_filters | String | No | |
| sorts | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationExportResponse
Esempio

get_audit_logs 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| limit | f64 | No | |
| skip | f64 | No | |
| order | models::SortDir | No | |
| after | f64 | No | |
| before | f64 | No |
Risposta
Restituisce: GetAuditLogsResponse
Esempio

block_from_comment_public 
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: BlockSuccess
Esempio

un_block_comment_public 
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: UnblockSuccess
Esempio

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

block_user_from_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| block_from_comment_params | models::BlockFromCommentParams | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: BlockSuccess
Esempio

create_comment_public 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| broadcast_id | String | Yes | |
| comment_data | models::CommentData | Yes | |
| session_id | String | No | |
| sso | String | No |
Risposta
Restituisce: SaveCommentsResponseWithPresence
Esempio

delete_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| context_user_id | String | No | |
| is_live | bool | No |
Risposta
Restituisce: DeleteCommentResult
Esempio

delete_comment_public 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| edit_key | String | No | |
| sso | String | No |
Risposta
Restituisce: PublicApiDeleteCommentResponse
Esempio

delete_comment_vote 
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: VoteDeleteResponse
Esempio

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

get_comment 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: ApiGetCommentResponse
Esempio

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

get_comment_vote_user_names 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| dir | i32 | Yes | |
| sso | String | No |
Risposta
Restituisce: GetCommentVoteUserNamesSuccessResponse
Esempio

get_comments 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: ApiGetCommentsResponse
Esempio

get_comments_public 
req tenantId urlId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: GetCommentsResponseWithPresencePublicComment
Esempio

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

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

save_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_comment_params | models::CreateCommentParams | Yes | |
| is_live | bool | No | |
| do_spam_check | bool | No | |
| send_emails | bool | No | |
| populate_notifications | bool | No |
Risposta
Restituisce: ApiSaveCommentResponse
Esempio

save_comments_bulk 
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::SaveCommentsBulkResponse>
Esempio

set_comment_text 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: PublicApiSetCommentTextResponse
Esempio

un_block_user_from_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| un_block_from_comment_params | models::UnBlockFromCommentParams | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: UnblockSuccess
Esempio

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

un_lock_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| broadcast_id | String | Sì | |
| sso | String | No |
Risposta
Ritorna: ApiEmptyResponse
Esempio

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

update_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| updatable_comment_params | models::UpdatableCommentParams | Yes | |
| context_user_id | String | No | |
| do_spam_check | bool | No | |
| is_live | bool | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

vote_comment 
Parametri
| Nome | Tipo | Obbligatorio | 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: VoteResponse
Esempio

get_comments_for_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| user_id | String | No | |
| direction | models::SortDirections | No | |
| replies_to_user_id | String | No | |
| page | f64 | No | |
| includei10n | bool | No | |
| locale | String | No | |
| is_crawler | bool | No |
Risposta
Restituisce: GetCommentsForUserResponse
Esempio

add_domain_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| add_domain_config_params | models::AddDomainConfigParams | Yes |
Risposta
Restituisce: AddDomainConfigResponse
Esempio

delete_domain_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| domain | String | Yes |
Risposta
Restituisce: DeleteDomainConfigResponse
Esempio

get_domain_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| domain | String | Yes |
Risposta
Restituisce: GetDomainConfigResponse
Esempio

get_domain_configs 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì |
Risposta
Restituisce: GetDomainConfigsResponse
Esempio

patch_domain_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| domain_to_update | String | Yes | |
| patch_domain_config_params | models::PatchDomainConfigParams | Yes |
Risposta
Restituisce: PatchDomainConfigResponse
Esempio

put_domain_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| domain_to_update | String | Sì | |
| update_domain_config_params | models::UpdateDomainConfigParams | Sì |
Risposta
Restituisce: PutDomainConfigResponse
Esempio

create_email_template 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_email_template_body | models::CreateEmailTemplateBody | Yes |
Risposta
Restituisce: CreateEmailTemplateResponse
Esempio

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

delete_email_template_render_error 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| error_id | String | Sì |
Risposta
Restituisce: ApiEmptyResponse
Esempio

get_email_template 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: GetEmailTemplateResponse
Esempio

get_email_template_definitions 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì |
Risposta
Restituisce: GetEmailTemplateDefinitionsResponse
Esempio

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

get_email_templates 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| skip | f64 | No |
Risposta
Restituisce: GetEmailTemplatesResponse
Esempio

render_email_template 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| render_email_template_body | models::RenderEmailTemplateBody | Yes | |
| locale | String | No |
Risposta
Restituisce: RenderEmailTemplateResponse
Esempio

update_email_template 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_email_template_body | models::UpdateEmailTemplateBody | Sì |
Risposta
Restituisce: ApiEmptyResponse
Esempio

get_event_log 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| user_id_ws | String | Sì | |
| start_time | i64 | Sì | |
| end_time | i64 | No |
Risposta
Restituisce: GetEventLogResponse
Esempio

get_global_event_log 
req tenantId urlId userIdWS
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| user_id_ws | String | Sì | |
| start_time | i64 | Sì | |
| end_time | i64 | No |
Risposta
Restituisce: GetEventLogResponse
Esempio

create_feed_post 
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: CreateFeedPostsResponse
Esempio

create_feed_post_public 
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: CreateFeedPostResponse
Esempio

delete_feed_post_public 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| post_id | String | Sì | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: DeleteFeedPostPublicResponse
Esempio

get_feed_posts 
req tenantId afterId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| after_id | String | No | |
| limit | i32 | No | |
| tags | Vec | No |
Risposta
Restituisce: GetFeedPostsResponse
Esempio

get_feed_posts_public 
req tenantId afterId
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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
Returns: PublicFeedPostsResponse
Esempio

get_feed_posts_stats 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_ids | Vec | Yes | |
| sso | String | No |
Risposta
Restituisce: FeedPostsStatsResponse
Esempio

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

react_feed_post_public 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_id | String | Yes | |
| react_body_params | models::ReactBodyParams | Yes | |
| is_undo | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: ReactFeedPostResponse
Esempio

update_feed_post 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| feed_post | models::FeedPost | Yes |
Risposta
Restituisce: ApiEmptyResponse
Esempio

update_feed_post_public 
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: CreateFeedPostResponse
Esempio

flag_comment_public 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| is_flagged | bool | Yes | |
| sso | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

get_gif_large 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| large_internal_url_sanitized | String | Yes |
Risposta
Restituisce: GifGetLargeResponse
Esempio

get_gifs_search 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| search | String | Yes | |
| locale | String | No | |
| rating | String | No | |
| page | f64 | No |
Risposta
Restituisce: GetGifsSearchResponse
Esempio

get_gifs_trending 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| locale | String | No | |
| rating | String | No | |
| page | f64 | No |
Risposta
Restituisce: GetGifsTrendingResponse
Esempio

add_hash_tag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_hash_tag_body | models::CreateHashTagBody | No |
Risposta
Restituisce: CreateHashTagResponse
Esempio

add_hash_tags_bulk 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | No |
Risposta
Restituisce: BulkCreateHashTagsResponse
Esempio

delete_hash_tag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| tag | String | Yes | |
| delete_hash_tag_request_body | models::DeleteHashTagRequestBody | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

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

patch_hash_tag 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| tag | String | Sì | |
| update_hash_tag_body | models::UpdateHashTagBody | No |
Risposta
Ritorna: UpdateHashTagResponse
Esempio

delete_moderation_vote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| vote_id | String | Sì | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: VoteDeleteResponse
Esempio

get_ban_users_from_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Risposta
Restituisce: GetBannedUsersFromCommentResponse
Esempio

get_comment_ban_status 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: GetCommentBanStatusResponse
Esempio

get_comment_children 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Risposta
Restituisce: ModerationApiChildCommentsResponse
Esempio

get_count 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| text_search | String | No | |
| by_ip_from_comment | String | No | |
| filter | String | No | |
| search_filters | String | No | |
| demo | bool | No | |
| sso | String | No |
Risposta
Restituisce: ModerationApiCountCommentsResponse
Esempio

get_counts 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
Risposta
Restituisce: GetBannedUsersCountResponse
Esempio

get_logs 
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Response
Restituisce: ModerationApiGetLogsResponse
Esempio

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

get_manual_badges_for_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| badges_user_id | String | No | |
| comment_id | String | No | |
| sso | String | No |
Risposta
Restituisce: GetUserManualBadgesResponse
Esempio

get_moderation_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| include_email | bool | No | |
| include_ip | bool | No | |
| sso | String | No |
Risposta
Restituisce: ModerationApiCommentResponse
Esempio

get_moderation_comment_text 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: GetCommentTextResponse
Esempio

get_pre_ban_summary 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| include_by_user_id_and_email | bool | No | |
| include_by_ip | bool | No | |
| include_by_email_domain | bool | No | |
| sso | String | No |
Risposta
Restituisce: PreBanSummary
Esempio

get_search_comments_summary 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| value | String | No | |
| filters | String | No | |
| search_filters | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationCommentSearchResponse
Esempio

get_search_pages 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| value | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationPageSearchResponse
Esempio

get_search_sites 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| value | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationSiteSearchResponse
Esempio

get_search_suggest 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| text_search | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationSuggestResponse
Esempio

get_search_users 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| value | String | No | |
| sso | String | No |
Risposta
Restituisce: ModerationUserSearchResponse
Esempio

get_trust_factor 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| sso | String | No |
Risposta
Restituisce: GetUserTrustFactorResponse
Esempio

get_user_ban_preference 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
Risposta
Restituisce: ApiModerateGetUserBanPreferencesResponse
Esempio

get_user_internal_profile 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | No | |
| sso | String | No |
Risposta
Restituisce: GetUserInternalProfileResponse
Esempio

post_adjust_comment_votes 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| adjust_comment_votes_params | models::AdjustCommentVotesParams | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: AdjustVotesResponse
Esempio

post_ban_user_from_comment 
Parametri
| Name | Type | Required | 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 |
Risposta
Returns: BanUserFromCommentResult
Esempio

post_ban_user_undo 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| ban_user_undo_params | models::BanUserUndoParams | Yes | |
| sso | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

post_bulk_pre_ban_summary 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| bulk_pre_ban_params | models::BulkPreBanParams | Sì | |
| include_by_user_id_and_email | bool | No | |
| include_by_ip | bool | No | |
| include_by_email_domain | bool | No | |
| sso | String | No |
Risposta
Restituisce: BulkPreBanSummary
Esempio

post_comments_by_ids 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comments_by_ids_params | models::CommentsByIdsParams | Sì | |
| sso | String | No |
Risposta
Restituisce: ModerationApiChildCommentsResponse
Esempio

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

post_remove_comment 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: PostRemoveCommentApiResponse
Esempio

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

post_set_comment_approval_status 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| approved | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: SetCommentApprovedResponse
Esempio

post_set_comment_review_status 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| comment_id | String | Sì | |
| reviewed | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

post_set_comment_spam_status 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| spam | bool | No | |
| perm_not_spam | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

post_set_comment_text 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| set_comment_text_params | models::SetCommentTextParams | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: SetCommentTextResponse
Esempio

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

post_vote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| direction | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: VoteResponse
Esempio

put_award_badge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: AwardUserBadgeResponse
Esempio

put_close_thread 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| sso | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

put_remove_badge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| badge_id | String | Sì | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Risposta
Restituisce: RemoveUserBadgeResponse
Esempio

put_reopen_thread 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| sso | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

set_trust_factor 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| trust_factor | String | No | |
| sso | String | No |
Risposta
Restituisce: SetUserTrustFactorResponse
Esempio

create_moderator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_moderator_body | models::CreateModeratorBody | Yes |
Risposta
Restituisce: CreateModeratorResponse
Esempio

delete_moderator 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| send_email | String | No |
Response
Restituisce: ApiEmptyResponse
Example

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

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

send_invite 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| from_name | String | Yes |
Risposta
Restituisce: ApiEmptyResponse
Esempio

update_moderator 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_moderator_body | models::UpdateModeratorBody | Yes |
Risposta
Restituisce: ApiEmptyResponse
Esempio

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

get_cached_notification_count 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: GetCachedNotificationCountResponse
Esempio

get_notification_count 
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: GetNotificationCountResponse
Esempio

get_notifications 
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: GetNotificationsResponse
Esempio

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

create_v1_page_react 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| title | String | No |
Risposta
Restituisce: CreateV1PageReact
Esempio

create_v2_page_react 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes | |
| title | String | No |
Risposta
Restituisce: CreateV1PageReact
Esempio

delete_v1_page_react 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
Risposta
Restituisce: CreateV1PageReact
Esempio

delete_v2_page_react 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: CreateV1PageReact
Esempio

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

get_v2_page_react_users 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| id | String | Sì |
Risposta
Restituisce: GetV2PageReactUsersResponse
Esempio

get_v2_page_reacts 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
Risposta
Restituisce: GetV2PageReacts
Esempio

add_page 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_api_page_data | models::CreateApiPageData | Yes |
Risposta
Restituisce: AddPageApiResponse
Esempio

delete_page 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: DeletePageApiResponse
Esempio

get_offline_users 
Past commenters on the page who are NOT currently online. Sorted by displayName.
Usa questo dopo aver esaurito /users/online per visualizzare una sezione "Members".
Paginazione con cursore su commenterName: il server attraversa l'indice parziale {tenantId, urlId, commenterName} da afterName in avanti tramite $gt, senza costo $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

get_online_users 
Attualmente-online visualizzatori di una pagina: persone la cui sessione websocket è iscritta alla pagina in questo momento. Restituisce anonCount + totalCount (abbonati a livello di stanza, inclusi gli spettatori anonimi che non enumeriamo).
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| after_name | String | No | |
| after_user_id | String | No |
Risposta
Restituisce: PageUsersOnlineResponse
Esempio

get_page_by_urlid 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
Risposta
Restituisce: GetPageByUrlidApiResponse
Esempio

get_pages 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì |
Risposta
Restituisce: GetPagesApiResponse
Esempio

get_pages_public 
Elenca le pagine per un tenant. Utilizzato dal client desktop FChat per popolare l'elenco delle stanze.
Richiede che enableFChat sia true nella configurazione personalizzata risolta per ogni pagina.
Le pagine che richiedono SSO sono filtrate in base all'accesso ai gruppi dell'utente richiedente.
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| cursor | String | No | |
| limit | i32 | No | |
| q | String | No | |
| sort_by | models::PagesSortBy | No | |
| has_comments | bool | No |
Risposta
Restituisce: GetPublicPagesResponse
Esempio

get_users_info 
Informazioni di massa sugli utenti per un tenant. Dati gli userIds, restituisce le informazioni di visualizzazione da User / SSOUser.
Utilizzato dal widget dei commenti per arricchire gli utenti appena comparsi tramite un evento di presenza.
Nessun contesto di pagina: la privacy è applicata uniformemente (i profili privati sono mascherati).
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| ids | String | Sì |
Risposta
Restituisce: PageUsersInfoResponse
Esempio

patch_page 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_api_page_data | models::UpdateApiPageData | Yes |
Risposta
Restituisce: PatchPageApiResponse
Esempio

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

get_pending_webhook_event_count 
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: GetPendingWebhookEventCountResponse
Esempio

get_pending_webhook_events 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: GetPendingWebhookEventsResponse
Esempio

create_question_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_question_config_body | models::CreateQuestionConfigBody | Sì |
Risposta
Restituisce: CreateQuestionConfigResponse
Esempio

delete_question_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: ApiEmptyResponse
Esempio

get_question_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: GetQuestionConfigResponse
Esempio

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

update_question_config 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_question_config_body | models::UpdateQuestionConfigBody | Yes |
Risposta
Restituisce: ApiEmptyResponse
Esempio

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

delete_question_result 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | Stringa | Sì | |
| id | Stringa | Sì |
Risposta
Restituisce: ApiEmptyResponse
Esempio

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

get_question_results 
Parametri
| Name | Type | Required | 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 |
Risposta
Restituisce: GetQuestionResultsResponse
Esempio

update_question_result 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_question_result_body | models::UpdateQuestionResultBody | Yes |
Risposta
Restituisce: ApiEmptyResponse
Esempio

aggregate_question_results 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: AggregateQuestionResultsResponse
Esempio

bulk_aggregate_question_results 
Parametri
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Yes | |
| force_recalculate | bool | No |
Risposta
Restituisce: BulkAggregateQuestionResultsResponse
Esempio

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

add_sso_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_apisso_user_data | models::CreateApissoUserData | Sì |
Risposta
Restituisce: AddSsoUserApiResponse
Esempio

delete_sso_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| delete_comments | bool | No | |
| comment_delete_mode | String | No |
Risposta
Restituisce: DeleteSsoUserApiResponse
Esempio

get_sso_user_by_email 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| String | Sì |
Risposta
Restituisce: GetSsoUserByEmailApiResponse
Esempio

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

get_sso_users 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| skip | i32 | No |
Risposta
Restituisce: GetSsoUsersResponse
Esempio

patch_sso_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_apisso_user_data | models::UpdateApissoUserData | Yes | |
| update_comments | bool | No |
Risposta
Restituisce: PatchSsoUserApiResponse
Esempio

put_sso_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_apisso_user_data | models::UpdateApissoUserData | Yes | |
| update_comments | bool | No |
Risposta
Restituisce: PutSsoUserApiResponse
Esempio

create_subscription 
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Sì |
Response
Restituisce: CreateSubscriptionApiResponse
Example

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

get_subscriptions 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No |
Risposta
Restituisce: GetSubscriptionsApiResponse
Esempio

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

get_tenant_daily_usages 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| year_number | f64 | No | |
| month_number | f64 | No | |
| day_number | f64 | No | |
| skip | f64 | No |
Risposta
Restituisce: GetTenantDailyUsagesResponse
Esempio

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

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

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

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

replace_tenant_package 
Parametri
| Nome | Tipo | Richiesto | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Sì |
Risposta
Restituisce: ApiEmptyResponse
Esempio

update_tenant_package 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Sì |
Risposta
Restituisce: ApiEmptyResponse
Esempio

create_tenant_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_user_body | models::CreateTenantUserBody | Yes |
Risposta
Restituisce: CreateTenantUserResponse
Esempio

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

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

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

replace_tenant_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| id | String | Sì | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Sì | |
| update_comments | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

send_login_link 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| redirect_url | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

update_tenant_user 
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: ApiEmptyResponse
Esempio

create_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| create_tenant_body | models::CreateTenantBody | Sì |
Risposta
Restituisce: CreateTenantResponse
Esempio

delete_tenant 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| sure | String | No |
Risposta
Restituisce: ApiEmptyResponse
Esempio

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

get_tenants 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| meta | String | No | |
| skip | f64 | No |
Response
Restituisce: GetTenantsResponse
Example

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

change_ticket_state 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | Yes | |
| id | String | Yes | |
| change_ticket_state_body | models::ChangeTicketStateBody | Yes |
Risposta
Restituisce: ChangeTicketStateResponse
Esempio

create_ticket 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | Sì | |
| create_ticket_body | models::CreateTicketBody | Sì |
Risposta
Restituisce: CreateTicketResponse
Esempio

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

get_tickets 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| state | f64 | No | |
| skip | f64 | No | |
| limit | f64 | No |
Risposta
Restituisce: GetTicketsResponse
Esempio

get_translations 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| namespace | String | Sì | |
| component | String | Sì | |
| locale | String | No | |
| use_full_translation_ids | bool | No |
Risposta
Restituisce: GetTranslationsResponse
Esempio

upload_image 
Upload and resize an image
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Sì | |
| file | std::path::PathBuf | Sì | |
| size_preset | models::SizePreset | No | |
| url_id | String | No |
Response
Restituisce: UploadImageResponse
Example

get_user_badge_progress_by_id 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Risposta
Restituisce: ApiGetUserBadgeProgressResponse
Esempio

get_user_badge_progress_by_user_id 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | Sì |
Risposta
Restituisce: ApiGetUserBadgeProgressResponse
Esempio

get_user_badge_progress_list 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| user_id | String | No | |
| limit | f64 | No | |
| skip | f64 | No |
Risposta
Restituisce: ApiGetUserBadgeProgressListResponse
Esempio

create_user_badge 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_user_badge_params | models::CreateUserBadgeParams | Yes |
Risposta
Restituisce: ApiCreateUserBadgeResponse
Esempio

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

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

get_user_badges 
Parameters
| 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 |
Response
Restituisce: ApiGetUserBadgesResponse
Example

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

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

get_user_notifications 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | No | |
| 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 | |
| include_tenant_notifications | bool | No | |
| sso | String | No |
Response
Restituisce: GetMyNotificationsResponse
Esempio

reset_user_notification_count 
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
Response
Restituisce: ResetUserNotificationsResponse
Example

reset_user_notifications 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| 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 |
Risposta
Restituisce: ResetUserNotificationsResponse
Esempio

update_user_notification_comment_subscription_status 
Abilita o disabilita le notifiche per un commento specifico.
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| notification_id | String | Yes | |
| opted_in_or_out | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Response
Restituisce: UpdateUserNotificationCommentSubscriptionStatusResponse
Esempio

update_user_notification_page_subscription_status 
Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| url | String | Yes | |
| page_title | String | Yes | |
| subscribed_or_unsubscribed | String | Yes | |
| sso | String | No |
Risposta
Restituisce: UpdateUserNotificationPageSubscriptionStatusResponse
Esempio

update_user_notification_status 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| notification_id | String | Sì | |
| new_status | String | Sì | |
| sso | String | No |
Risposta
Restituisce: UpdateUserNotificationStatusResponse
Esempio

get_user_presence_statuses 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id_ws | String | Yes | |
| user_ids | String | Yes |
Risposta
Restituisce: GetUserPresenceStatusesResponse
Esempio

search_users 
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: SearchUsersResult
Esempio

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

create_vote 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| direction | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: VoteResponse
Esempio

delete_vote 
Parameters
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| edit_key | String | No |
Response
Restituisce: VoteDeleteResponse
Example

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

get_votes_for_user 
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
| tenant_id | String | Sì | |
| url_id | String | Sì | |
| user_id | String | No | |
| anon_user_id | String | No |
Risposta
Restituisce: GetVotesForUserResponse
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.