
Sprache 🇩🇪 Deutsch
Erste Schritte
Dokumentation
Aggregation
API
Audit-Protokolle
Vom Kommentar sperren
Gesperrte Kommentare prüfen
Kommentare
Kommentare für Benutzer
Domain-Konfigurationen
E-Mail-Vorlagen
Ereignisprotokoll
Feed-Beiträge
Kommentar melden
GIFs
Hashtags
Moderation
Moderatoren
Benachrichtigungsanzahl
Benachrichtigungen
Seitenreaktionen
Seiten
Ausstehende Webhook-Ereignisse
Fragekonfigurationen
Frageergebnisse
Aggregation von Frageergebnissen
SSO-Benutzer
Abonnements
Tägliche Mandantennutzung
Mandantenpakete
Mandantenbenutzer
Mandanten
Tickets
Übersetzungen
Bild hochladen
Benutzer-Abzeichen-Fortschritt
Benutzerabzeichen
Benutzerbenachrichtigungen
Benutzer-Anwesenheitsstatus
Benutzersuche
Benutzer
Stimmen
FastComments Rust-SDK
Dies ist das offizielle Rust SDK für FastComments.
Offizielles Rust SDK für die FastComments API
Repository
Bibliotheksinhalte 
Das FastComments Rust SDK besteht aus mehreren Modulen:
-
Client‑Modul – API‑Client für die FastComments REST‑APIs
- Vollständige Typdefinitionen für alle API‑Modelle
- Drei API‑Clients, die alle FastComments‑Methoden abdecken:
default_api(DefaultApi) – API‑Key‑authentifizierte Methoden für die serverseitige Nutzungpublic_api(PublicApi) – öffentliche, keine API‑Key‑Methoden, die sicher aus Browsern und mobilen Apps aufgerufen werden könnenmoderation_api(ModerationApi) – eine umfangreiche Suite von Live‑ und schnellen Moderations‑APIs. Jede Moderations‑Methode akzeptiert einensso‑Parameter und kann über SSO oder ein FastComments.com‑Session‑Cookie authentifizieren.
- Vollständige async/await‑Unterstützung mit Tokio
- Siehe client/README.md für die detaillierte API‑Dokumentation
-
SSO‑Modul – serverseitige Single Sign‑On‑Hilfsmittel
- Sichere Token‑Erstellung für die Benutzer‑Authentifizierung
- Unterstützung für einfache und sichere SSO‑Modi
- Auf HMAC‑SHA256 basierende Token‑Signierung
-
Core‑Typen – gemeinsam genutzte Typdefinitionen und Hilfsprogramme
- Kommentarmodelle und Metadaten‑Strukturen
- Benutzer‑ und Mandanten‑Konfigurationen
- Hilfsfunktionen für gängige Vorgänge
Schnellstart 
Verwendung der öffentlichen API
use fastcomments_sdk::client::apis::configuration::Configuration;
use fastcomments_sdk::client::apis::public_api;
#[tokio::main]
async fn main() {
// API-Konfiguration erstellen
let config = Configuration::new();
// Kommentare für eine Seite abrufen
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),
}
}
Verwendung der authentifizierten API
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::default_api;
#[tokio::main]
async fn main() {
// Konfiguration mit API-Schlüssel erstellen
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// Kommentare mit dem authentifizierten API abrufen
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),
}
}
Verwendung der Moderations-API
Die Moderationsmethoden unterstützen das Moderatoren-Dashboard. Sie verwenden eine API-key Configuration genauso wie die authentifizierte API, und jede Methode akzeptiert ein optionales sso-Token, damit der Aufruf im Namen eines SSO-authentifizierten Moderators durchgeführt werden kann.
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::moderation_api;
#[tokio::main]
async fn main() {
// Konfiguration mit API-Schlüssel erstellen
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// Anzahl der Kommentare zählen, die in der Moderationswarteschlange warten
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, // übergeben Sie ein SSO-Token, um im Namen eines SSO-authentifizierten Moderators zu handeln
},
)
.await;
match result {
Ok(response) => println!("Comments to moderate: {}", response.count),
Err(e) => eprintln!("Error: {:?}", e),
}
}
Verwendung von SSO zur Authentifizierung
use fastcomments_sdk::sso::{
fastcomments_sso::FastCommentsSSO,
secure_sso_user_data::SecureSSOUserData,
};
fn main() {
let api_key = "your-api-key".to_string();
// Sichere SSO-Benutzerdaten erstellen (nur serverseitig!)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // Benutzer-ID
"user@example.com".to_string(), // E-Mail
"John Doe".to_string(), // Benutzername
"https://example.com/avatar.jpg".to_string(), // Avatar-URL
);
// SSO-Token erstellen
let sso = FastCommentsSSO::new_secure(api_key, &user_data).unwrap();
let token = sso.create_token().unwrap();
println!("SSO Token: {}", token);
// Übergeben Sie dieses Token an Ihr Frontend zur Authentifizierung
}
Häufige Probleme 
401 Unauthorized-Fehler
Wenn Sie 401-Fehler erhalten, wenn Sie die authentifizierte API verwenden:
- Überprüfen Sie Ihren API-Schlüssel: Stellen Sie sicher, dass Sie den richtigen API-Schlüssel aus Ihrem FastComments-Dashboard verwenden
- Überprüfen Sie die Tenant-ID: Stellen Sie sicher, dass die Tenant-ID mit Ihrem Konto übereinstimmt
- API-Schlüssel-Format: Der API-Schlüssel sollte in der Configuration übergeben werden:
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY".to_string(),
});
SSO-Token-Probleme
Wenn SSO-Tokens nicht funktionieren:
- Sicheren Modus in Produktionsumgebungen verwenden: Verwenden Sie in der Produktion immer
FastCommentsSSO::new_secure()mit Ihrem API-Schlüssel - Nur serverseitig: Erzeugen Sie SSO-Tokens auf Ihrem Server, geben Sie Ihren API-Schlüssel niemals an Clients weiter
- Überprüfen Sie Benutzerdaten: Stellen Sie sicher, dass alle erforderlichen Felder (id, email, username) vorhanden sind
Async-Runtime-Fehler
Das SDK verwendet tokio für asynchrone Operationen. Stellen Sie sicher, dass Sie:
- Fügen Sie tokio zu Ihren Abhängigkeiten hinzu:
[dependencies]
tokio = { version = "1", features = ["full"] }
- Verwenden Sie die tokio-Runtime:
#[tokio::main]
async fn main() {
// Ihr asynchroner Code hier
}
Hinweise 
Broadcast-IDs
Sie werden sehen, dass Sie in einigen API-Aufrufen eine broadcastId übergeben sollen. Wenn Sie Events erhalten, bekommen Sie diese ID zurück, sodass Sie das Event ignorieren können, falls Sie vorhaben, Änderungen auf dem Client optimistisch anzuwenden
(was Sie wahrscheinlich tun möchten, da es die beste Erfahrung bietet). Geben Sie hier eine UUID an. Die ID sollte ausreichend einzigartig sein, damit sie in einer Browsersitzung nicht zweimal vorkommt.
aggregate 
Aggregiert Dokumente, indem sie (wenn groupBy angegeben ist) gruppiert und mehrere Operationen angewendet werden. Verschiedene Operationen (z. B. sum, countDistinct, avg usw.) werden unterstützt.
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| aggregation_request | models::AggregationRequest | Ja | |
| parent_tenant_id | String | Nein | |
| include_stats | bool | Nein |
Response
Rückgabe: AggregateResponse
Beispiel

get_api_comments 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| page | f64 | Nein | |
| count | f64 | Nein | |
| text_search | String | Nein | |
| by_ip_from_comment | String | Nein | |
| filters | String | Nein | |
| search_filters | String | Nein | |
| sorts | String | Nein | |
| demo | bool | Nein | |
| sso | String | Nein |
Antwort
Returns: ModerationApiGetCommentsResponse
Beispiel

get_api_export_status 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| batch_job_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationExportStatusResponse
Beispiel

get_api_ids 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| text_search | String | Nein | |
| by_ip_from_comment | String | Nein | |
| filters | String | Nein | |
| search_filters | String | Nein | |
| after_id | String | Nein | |
| demo | bool | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationApiGetCommentIdsResponse
Beispiel

post_api_export 
Parameter
| Name | Type | Required | Beschreibung |
|---|---|---|---|
| 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 |
Antwort
Rückgabe: ModerationExportResponse
Beispiel

get_audit_logs 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| limit | f64 | Nein | |
| skip | f64 | Nein | |
| order | models::SortDir | Nein | |
| after | f64 | Nein | |
| before | f64 | Nein |
Antwort
Rückgabe: GetAuditLogsResponse
Beispiel

block_from_comment_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: BlockSuccess
Beispiel

un_block_comment_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Yes | |
| sso | String | No |
Antwort
Rückgabe: UnblockSuccess
Beispiel

checked_comments_for_blocked 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_ids | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: CheckBlockedCommentsResponse
Beispiel

block_user_from_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| block_from_comment_params | models::BlockFromCommentParams | Ja | |
| user_id | String | Nein | |
| anon_user_id | String | Nein |
Antwort
Rückgabe: BlockSuccess
Beispiel

create_comment_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| broadcast_id | String | Yes | |
| comment_data | models::CommentData | Yes | |
| session_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: SaveCommentsResponseWithPresence
Beispiel

delete_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| context_user_id | String | No | |
| is_live | bool | No |
Antwort
Rückgabe: DeleteCommentResult
Beispiel

delete_comment_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| edit_key | String | No | |
| sso | String | No |
Antwort
Rückgabe: PublicApiDeleteCommentResponse
Beispiel

delete_comment_vote 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| vote_id | String | Ja | |
| url_id | String | Ja | |
| broadcast_id | String | Ja | |
| edit_key | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: VoteDeleteResponse
Beispiel

flag_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| user_id | String | Nein | |
| anon_user_id | String | Nein |
Antwort
Rückgabe: FlagCommentResponse
Beispiel

get_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: ApiGetCommentResponse
Beispiel

get_comment_text 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| edit_key | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: PublicApiGetCommentTextResponse
Beispiel

get_comment_vote_user_names 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| dir | i32 | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: GetCommentVoteUserNamesSuccessResponse
Beispiel

get_comments 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| page | i32 | Nein | |
| limit | i32 | Nein | |
| skip | i32 | Nein | |
| as_tree | bool | Nein | |
| skip_children | i32 | Nein | |
| limit_children | i32 | Nein | |
| max_tree_depth | i32 | Nein | |
| url_id | String | Nein | |
| user_id | String | Nein | |
| anon_user_id | String | Nein | |
| context_user_id | String | Nein | |
| hash_tag | String | Nein | |
| parent_id | String | Nein | |
| direction | models::SortDirections | Nein | |
| from_date | i64 | Nein | |
| to_date | i64 | Nein |
Antwort
Gibt zurück: ApiGetCommentsResponse
Beispiel

get_comments_public 
req tenantId urlId
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| page | i32 | No | |
| direction | models::SortDirections | No | |
| sso | String | No | |
| skip | i32 | No | |
| skip_children | i32 | No | |
| limit | i32 | No | |
| limit_children | i32 | No | |
| count_children | bool | No | |
| fetch_page_for_comment_id | String | No | |
| include_config | bool | No | |
| count_all | bool | No | |
| includei10n | bool | No | |
| locale | String | No | |
| modules | String | No | |
| is_crawler | bool | No | |
| include_notification_count | bool | No | |
| as_tree | bool | No | |
| max_tree_depth | i32 | No | |
| use_full_translation_ids | bool | No | |
| parent_id | String | No | |
| search_text | String | No | |
| hash_tags | Vec | No | |
| user_id | String | No | |
| custom_config_str | String | No | |
| after_comment_id | String | No | |
| before_comment_id | String | No |
Antwort
Returns: GetCommentsResponseWithPresencePublicComment
Beispiel

lock_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

pin_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ChangeCommentPinStatusResponse
Beispiel

save_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| 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 |
Antwort
Rückgabe: ApiSaveCommentResponse
Beispiel

save_comments_bulk 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_comment_params | Vecmodels::CreateCommentParams | Yes | |
| is_live | bool | No | |
| do_spam_check | bool | No | |
| send_emails | bool | No | |
| populate_notifications | bool | No |
Antwort
Rückgabe: Vec<models::SaveCommentsBulkResponse>
Beispiel

set_comment_text 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| comment_text_update_request | models::CommentTextUpdateRequest | Ja | |
| edit_key | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: PublicApiSetCommentTextResponse
Beispiel

un_block_user_from_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| un_block_from_comment_params | models::UnBlockFromCommentParams | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Antwort
Rückgabe: UnblockSuccess
Beispiel

un_flag_comment 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Antwort
Rückgabe: FlagCommentResponse
Beispiel

un_lock_comment 
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nein |
Response
Rückgabe: ApiEmptyResponse
Beispiel

un_pin_comment 
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ChangeCommentPinStatusResponse
Beispiel

update_comment 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| updatable_comment_params | models::UpdatableCommentParams | Ja | |
| context_user_id | String | Nein | |
| do_spam_check | bool | Nein | |
| is_live | bool | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

vote_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| url_id | String | Yes | |
| broadcast_id | String | Yes | |
| vote_body_params | models::VoteBodyParams | Yes | |
| session_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: VoteResponse
Beispiel

get_comments_for_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| 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 |
Antwort
Rückgabe: GetCommentsForUserResponse
Beispiel

add_domain_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| add_domain_config_params | models::AddDomainConfigParams | Yes |
Antwort
Rückgabe: AddDomainConfigResponse
Beispiel

delete_domain_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain | String | Ja |
Antwort
Rückgabe: DeleteDomainConfigResponse
Beispiel

get_domain_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| domain | String | Yes |
Antwort
Rückgabe: GetDomainConfigResponse
Beispiel

get_domain_configs 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja |
Antwort
Rückgabe: GetDomainConfigsResponse
Beispiel

patch_domain_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain_to_update | String | Ja | |
| patch_domain_config_params | models::PatchDomainConfigParams | Ja |
Antwort
Rückgabe: PatchDomainConfigResponse
Beispiel

put_domain_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain_to_update | String | Ja | |
| update_domain_config_params | models::UpdateDomainConfigParams | Ja |
Antwort
Rückgabe: PutDomainConfigResponse
Beispiel

create_email_template 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_email_template_body | models::CreateEmailTemplateBody | Ja |
Antwort
Rückgabe: CreateEmailTemplateResponse
Beispiel

delete_email_template 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

delete_email_template_render_error 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| error_id | String | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_email_template 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: GetEmailTemplateResponse
Beispiel

get_email_template_definitions 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja |
Antwort
Rückgabe: GetEmailTemplateDefinitionsResponse
Beispiel

get_email_template_render_errors 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetEmailTemplateRenderErrorsResponse
Beispiel

get_email_templates 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetEmailTemplatesResponse
Beispiel

render_email_template 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| render_email_template_body | models::RenderEmailTemplateBody | Ja | |
| locale | String | Nein |
Antwort
Rückgabe: RenderEmailTemplateResponse
Beispiel

update_email_template 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_email_template_body | models::UpdateEmailTemplateBody | Yes |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_event_log 
req tenantId urlId userIdWS
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| user_id_ws | String | Ja | |
| start_time | i64 | Ja | |
| end_time | i64 | Nein |
Antwort
Rückgabe: GetEventLogResponse
Beispiel

get_global_event_log 
req tenantId urlId userIdWS
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| user_id_ws | String | Yes | |
| start_time | i64 | Yes | |
| end_time | i64 | No |
Antwort
Rückgabe: GetEventLogResponse
Beispiel

create_feed_post 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_feed_post_params | models::CreateFeedPostParams | Ja | |
| broadcast_id | String | Nein | |
| is_live | bool | Nein | |
| do_spam_check | bool | Nein | |
| skip_dup_check | bool | Nein |
Antwort
Rückgabe: CreateFeedPostsResponse
Beispiel

create_feed_post_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_feed_post_params | models::CreateFeedPostParams | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: CreateFeedPostResponse
Beispiel

delete_feed_post_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_id | String | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: DeleteFeedPostPublicResponse
Beispiel

get_feed_posts 
req tenantId afterId
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| after_id | String | Nein | |
| limit | i32 | Nein | |
| tags | Vec | Nein |
Antwort
Rückgabe: GetFeedPostsResponse
Beispiel

get_feed_posts_public 
req tenantId afterId
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| after_id | String | Nein | |
| limit | i32 | Nein | |
| tags | Vec | Nein | |
| sso | String | Nein | |
| is_crawler | bool | Nein | |
| include_user_info | bool | Nein |
Antwort
Rückgabe: PublicFeedPostsResponse
Beispiel

get_feed_posts_stats 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_ids | Vec | Yes | |
| sso | String | No |
Antwort
Returns: FeedPostsStatsResponse
Beispiel

get_user_reacts_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_ids | Vec | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: UserReactsResponse
Beispiel

react_feed_post_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| 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 |
Antwort
Rückgabe: ReactFeedPostResponse
Beispiel

update_feed_post 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| feed_post | models::FeedPost | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

update_feed_post_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_id | String | Ja | |
| update_feed_post_params | models::UpdateFeedPostParams | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: CreateFeedPostResponse
Beispiel

flag_comment_public 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| is_flagged | bool | Ja | |
| sso | String | Nein |
Antwort
Returns: ApiEmptyResponse
Beispiel

get_gif_large 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| large_internal_url_sanitized | String | Ja |
Antwort
Rückgabe: GifGetLargeResponse
Beispiel

get_gifs_search 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| search | String | Ja | |
| locale | String | Nein | |
| rating | String | Nein | |
| page | f64 | Nein |
Antwort
Returns: GetGifsSearchResponse
Beispiel

get_gifs_trending 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| locale | String | Nein | |
| rating | String | Nein | |
| page | f64 | Nein |
Antwort
Rückgabe: GetGifsTrendingResponse
Beispiel

add_hash_tag 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_hash_tag_body | models::CreateHashTagBody | Nein |
Antwort
Rückgabe: CreateHashTagResponse
Beispiel

add_hash_tags_bulk 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | No |
Antwort
Rückgabe: BulkCreateHashTagsResponse
Beispiel

delete_hash_tag 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| tag | String | Ja | |
| delete_hash_tag_request_body | models::DeleteHashTagRequestBody | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_hash_tags 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| page | f64 | Nein |
Antwort
Rückgabe: GetHashTagsResponse
Beispiel

patch_hash_tag 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| tag | String | Ja | |
| update_hash_tag_body | models::UpdateHashTagBody | Nein |
Antwort
Rückgabe: UpdateHashTagResponse
Beispiel

delete_moderation_vote 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| vote_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: VoteDeleteResponse
Beispiel

get_ban_users_from_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: GetBannedUsersFromCommentResponse
Beispiel

get_comment_ban_status 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Antwort
Returns: GetCommentBanStatusResponse
Beispiel

get_comment_children 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Antwort
Rückgabe: ModerationApiChildCommentsResponse
Beispiel

get_count 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| 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 |
Antwort
Rückgabe: ModerationApiCountCommentsResponse
Beispiel

get_counts 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: GetBannedUsersCountResponse
Beispiel

get_logs 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationApiGetLogsResponse
Beispiel

get_manual_badges 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| sso | String | Nein |
Antwort
Returns: GetTenantManualBadgesResponse
Beispiel

get_manual_badges_for_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| badges_user_id | String | Nein | |
| comment_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: GetUserManualBadgesResponse
Beispiel

get_moderation_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| include_email | bool | Nein | |
| include_ip | bool | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationApiCommentResponse
Beispiel

get_moderation_comment_text 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Antwort
Rückgabe: GetCommentTextResponse
Beispiel

get_pre_ban_summary 
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| include_by_user_id_and_email | bool | No | |
| include_by_ip | bool | No | |
| include_by_email_domain | bool | No | |
| sso | String | No |
Response
Rückgabe: PreBanSummary
Example

get_search_comments_summary 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| value | String | Nein | |
| filters | String | Nein | |
| search_filters | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationCommentSearchResponse
Beispiel

get_search_pages 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| value | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationPageSearchResponse
Beispiel

get_search_sites 
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| value | String | Nein | |
| sso | String | Nein |
Response
Rückgabe: ModerationSiteSearchResponse
Example

get_search_suggest 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| text_search | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationSuggestResponse
Beispiel

get_search_users 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| value | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ModerationUserSearchResponse
Beispiel

get_trust_factor 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: GetUserTrustFactorResponse
Beispiel

get_user_ban_preference 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ApiModerateGetUserBanPreferencesResponse
Beispiel

get_user_internal_profile 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: GetUserInternalProfileResponse
Beispiel

post_adjust_comment_votes 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| adjust_comment_votes_params | models::AdjustCommentVotesParams | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: AdjustVotesResponse
Beispiel

post_ban_user_from_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| ban_email | bool | Nein | |
| ban_email_domain | bool | Nein | |
| ban_ip | bool | Nein | |
| delete_all_users_comments | bool | Nein | |
| banned_until | String | Nein | |
| is_shadow_ban | bool | Nein | |
| update_id | String | Nein | |
| ban_reason | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: BanUserFromCommentResult
Beispiel

post_ban_user_undo 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| ban_user_undo_params | models::BanUserUndoParams | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

post_bulk_pre_ban_summary 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| bulk_pre_ban_params | models::BulkPreBanParams | Yes | |
| include_by_user_id_and_email | bool | No | |
| include_by_ip | bool | No | |
| include_by_email_domain | bool | No | |
| sso | String | No |
Antwort
Rückgabe: BulkPreBanSummary
Beispiel

post_comments_by_ids 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comments_by_ids_params | models::CommentsByIdsParams | Ja | |
| sso | String | Nein |
Antwort
Gibt zurück: ModerationApiChildCommentsResponse
Beispiel

post_flag_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

post_remove_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: PostRemoveCommentApiResponse
Beispiel

post_restore_deleted_comment 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

post_set_comment_approval_status 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| approved | bool | Nein | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: SetCommentApprovedResponse
Beispiel

post_set_comment_review_status 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| reviewed | bool | Nein | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

post_set_comment_spam_status 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| spam | bool | No | |
| perm_not_spam | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

post_set_comment_text 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| set_comment_text_params | models::SetCommentTextParams | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: SetCommentTextResponse
Beispiel

post_un_flag_comment 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

post_vote 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| direction | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: VoteResponse
Beispiel

put_award_badge 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: AwardUserBadgeResponse
Beispiel

put_close_thread 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

put_remove_badge 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
Antwort
Rückgabe: RemoveUserBadgeResponse
Beispiel

put_reopen_thread 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

set_trust_factor 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nein | |
| trust_factor | String | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: SetUserTrustFactorResponse
Beispiel

create_moderator 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_moderator_body | models::CreateModeratorBody | Ja |
Antwort
Gibt zurück: CreateModeratorResponse
Beispiel

delete_moderator 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| send_email | String | No |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_moderator 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: GetModeratorResponse
Beispiel

get_moderators 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nein |
Antwort
Returns: GetModeratorsResponse
Beispiel

send_invite 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| from_name | String | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

update_moderator 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_moderator_body | models::UpdateModeratorBody | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

delete_notification_count 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_cached_notification_count 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: GetCachedNotificationCountResponse
Beispiel

get_notification_count 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| url_id | String | No | |
| from_comment_id | String | No | |
| viewed | bool | No |
Antwort
Rückgabe: GetNotificationCountResponse
Beispiel

get_notifications 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nein | |
| url_id | String | Nein | |
| from_comment_id | String | Nein | |
| viewed | bool | Nein | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetNotificationsResponse
Beispiel

update_notification 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_notification_body | models::UpdateNotificationBody | Ja | |
| user_id | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

create_v1_page_react 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| title | String | Nein |
Antwort
Rückgabe: CreateV1PageReact
Beispiel

create_v2_page_react 
Parameter
| Name | Type | Required | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes | |
| title | String | No |
Antwort
Rückgabe: CreateV1PageReact
Beispiel

delete_v1_page_react 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
Antwort
Rückgabe: CreateV1PageReact
Beispiel

delete_v2_page_react 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: CreateV1PageReact
Beispiel

get_v1_page_likes 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
Antwort
Rückgabe: GetV1PageLikes
Beispiel

get_v2_page_react_users 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: GetV2PageReactUsersResponse
Beispiel

get_v2_page_reacts 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja |
Antwort
Rückgabe: GetV2PageReacts
Beispiel

add_page 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_api_page_data | models::CreateApiPageData | Ja |
Antwort
Rückgabe: AddPageApiResponse
Beispiel

delete_page 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: DeletePageApiResponse
Beispiel

get_offline_users 
Frühere Kommentatoren auf der Seite, die momentan NICHT online sind. Sortiert nach displayName.
Verwenden Sie dies, nachdem /users/online erschöpft wurde, um einen „Members“-Abschnitt zu rendern.
Cursor‑Paginierung über commenterName: Der Server durchläuft den Teil {tenantId, urlId, commenterName} Index ab afterName vorwärts via $gt, ohne $skip‑Kosten.
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| after_name | String | No | |
| after_user_id | String | No |
Antwort
Rückgabe: PageUsersOfflineResponse
Beispiel

get_online_users 
Aktuell online betrachtende Besucher einer Seite: Personen, deren Websocket‑Sitzung derzeit für die Seite abonniert ist. Gibt anonCount + totalCount zurück (räumweite Abonnenten, einschließlich anonymer Betrachter, die wir nicht aufzählen).
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| after_name | String | Nein | |
| after_user_id | String | Nein |
Antwort
Rückgabe: PageUsersOnlineResponse
Beispiel

get_page_by_urlid 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja |
Antwort
Rückgabe: GetPageByUrlidApiResponse
Beispiel

get_pages 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja |
Antwort
Rückgabe: GetPagesApiResponse
Beispiel

get_pages_public 
List pages for a tenant. Used by the FChat desktop client to populate its room list.
Erfordert, dass enableFChat in der aufgelösten benutzerdefinierten Konfiguration für jede Seite auf true gesetzt ist.
Seiten, die SSO erfordern, werden anhand des Gruppen‑Zugriffs des anfordernden Benutzers gefiltert.
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| cursor | String | Nein | |
| limit | i32 | Nein | |
| q | String | Nein | |
| sort_by | models::PagesSortBy | Nein | |
| has_comments | bool | Nein |
Response
Returns: GetPublicPagesResponse
Example

get_users_info 
Bulk-Benutzerinformationen für einen Mandanten. Angesichts von userIds wird Anzeiginformationen von User / SSOUser zurückgegeben.
Wird vom Kommentar‑Widget verwendet, um Benutzer, die gerade über ein Präsenzereignis erschienen sind, anzureichern.
Kein Seitenkontext: Datenschutz wird einheitlich durchgesetzt (private Profile werden maskiert).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| ids | String | Yes |
Response
Returns: PageUsersInfoResponse
Example

patch_page 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_api_page_data | models::UpdateApiPageData | Yes |
Antwort
Rückgabe: PatchPageApiResponse
Beispiel

delete_pending_webhook_event 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_pending_webhook_event_count 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | No | |
| external_id | String | No | |
| event_type | String | No | |
| domain | String | No | |
| attempt_count_gt | f64 | No |
Antwort
Rückgabe: GetPendingWebhookEventCountResponse
Beispiel

get_pending_webhook_events 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Nein | |
| external_id | String | Nein | |
| event_type | String | Nein | |
| domain | String | Nein | |
| attempt_count_gt | f64 | Nein | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetPendingWebhookEventsResponse
Beispiel

create_question_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_question_config_body | models::CreateQuestionConfigBody | Ja |
Antwort
Rückgabe: CreateQuestionConfigResponse
Beispiel

delete_question_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Gibt zurück: ApiEmptyResponse
Beispiel

get_question_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: GetQuestionConfigResponse
Beispiel

get_question_configs 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetQuestionConfigsResponse
Beispiel

update_question_config 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_question_config_body | models::UpdateQuestionConfigBody | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

create_question_result 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_question_result_body | models::CreateQuestionResultBody | Ja |
Antwort
Rückgabe: CreateQuestionResultResponse
Beispiel

delete_question_result 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Response
Returns: ApiEmptyResponse
Example

get_question_result 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: GetQuestionResultResponse
Beispiel

get_question_results 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Nein | |
| user_id | String | Nein | |
| start_date | String | Nein | |
| question_id | String | Nein | |
| question_ids | String | Nein | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetQuestionResultsResponse
Beispiel

update_question_result 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_question_result_body | models::UpdateQuestionResultBody | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

aggregate_question_results 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| 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 |
Antwort
Rückgabe: AggregateQuestionResultsResponse
Beispiel

bulk_aggregate_question_results 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Ja | |
| force_recalculate | bool | Nein |
Antwort
Rückgabe: BulkAggregateQuestionResultsResponse
Beispiel

combine_comments_with_question_results 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| question_id | String | No | |
| question_ids | Vec | No | |
| url_id | String | No | |
| start_date | chrono::DateTimechrono::FixedOffset | No | |
| force_recalculate | bool | No | |
| min_value | f64 | No | |
| max_value | f64 | No | |
| limit | f64 | No |
Antwort
Rückgabe: CombineQuestionResultsWithCommentsResponse
Beispiel

add_sso_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_apisso_user_data | models::CreateApissoUserData | Yes |
Antwort
Rückgabe: AddSsoUserApiResponse
Beispiel

delete_sso_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| delete_comments | bool | No | |
| comment_delete_mode | String | No |
Antwort
Rückgabe: DeleteSsoUserApiResponse
Beispiel

get_sso_user_by_email 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| String | Ja |
Antwort
Returns: GetSsoUserByEmailApiResponse
Beispiel

get_sso_user_by_id 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: GetSsoUserByIdApiResponse
Beispiel

get_sso_users 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| skip | i32 | No |
Antwort
Rückgabe: GetSsoUsersResponse
Beispiel

patch_sso_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_apisso_user_data | models::UpdateApissoUserData | Ja | |
| update_comments | bool | Nein |
Antwort
Rückgabe: PatchSsoUserApiResponse
Beispiel

put_sso_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_apisso_user_data | models::UpdateApissoUserData | Ja | |
| update_comments | bool | Nein |
Antwort
Rückgabe: PutSsoUserApiResponse
Beispiel

create_subscription 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Yes |
Antwort
Rückgabe: CreateSubscriptionApiResponse
Beispiel

delete_subscription 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| user_id | String | Nein |
Antwort
Rückgabe: DeleteSubscriptionApiResponse
Beispiel

get_subscriptions 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nein |
Antwort
Rückgabe: GetSubscriptionsApiResponse
Beispiel

update_subscription 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_api_user_subscription_data | models::UpdateApiUserSubscriptionData | Ja | |
| user_id | String | Nein |
Antwort
Rückgabe: UpdateSubscriptionApiResponse
Beispiel

get_tenant_daily_usages 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| year_number | f64 | Nein | |
| month_number | f64 | Nein | |
| day_number | f64 | Nein | |
| skip | f64 | Nein |
Antwort
Gibt zurück: GetTenantDailyUsagesResponse
Beispiel

create_tenant_package 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_tenant_package_body | models::CreateTenantPackageBody | Ja |
Antwort
Rückgabe: CreateTenantPackageResponse
Beispiel

delete_tenant_package 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_tenant_package 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: GetTenantPackageResponse
Beispiel

get_tenant_packages 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetTenantPackagesResponse
Beispiel

replace_tenant_package 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

update_tenant_package 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

create_tenant_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_user_body | models::CreateTenantUserBody | Yes |
Antwort
Rückgabe: CreateTenantUserResponse
Beispiel

delete_tenant_user 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| delete_comments | String | No | |
| comment_delete_mode | String | No |
Response
Rückgabe: ApiEmptyResponse
Example

get_tenant_user 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: GetTenantUserResponse
Beispiel

get_tenant_users 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetTenantUsersResponse
Beispiel

replace_tenant_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Ja | |
| update_comments | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

send_login_link 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| redirect_url | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

update_tenant_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_tenant_user_body | models::UpdateTenantUserBody | Ja | |
| update_comments | String | Nein |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

create_tenant 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_body | models::CreateTenantBody | Yes |
Antwort
Rückgabe: CreateTenantResponse
Beispiel

delete_tenant 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| sure | String | No |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

get_tenant 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: GetTenantResponse
Beispiel

get_tenants 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| meta | String | Nein | |
| skip | f64 | Nein |
Antwort
Rückgabe: GetTenantsResponse
Beispiel

update_tenant 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_tenant_body | models::UpdateTenantBody | Ja |
Antwort
Rückgabe: ApiEmptyResponse
Beispiel

change_ticket_state 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Ja | |
| id | String | Ja | |
| change_ticket_state_body | models::ChangeTicketStateBody | Ja |
Antwort
Rückgabe: ChangeTicketStateResponse
Beispiel

create_ticket 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | Yes | |
| create_ticket_body | models::CreateTicketBody | Yes |
Antwort
Rückgabe: CreateTicketResponse
Beispiel

get_ticket 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| user_id | String | Nein |
Antwort
Rückgabe: GetTicketResponse
Beispiel

get_tickets 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nein | |
| state | f64 | Nein | |
| skip | f64 | Nein | |
| limit | f64 | Nein |
Antwort
Rückgabe: GetTicketsResponse
Beispiel

get_translations 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| namespace | String | Yes | |
| component | String | Yes | |
| locale | String | No | |
| use_full_translation_ids | bool | No |
Antwort
Rückgabe: GetTranslationsResponse
Beispiel

upload_image 
Upload and resize an image
Parameters
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| file | std::path::PathBuf | Yes | |
| size_preset | models::SizePreset | No | |
| url_id | String | No |
Response
Rückgabe: UploadImageResponse
Example

get_user_badge_progress_by_id 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: ApiGetUserBadgeProgressResponse
Beispiel

get_user_badge_progress_by_user_id 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Ja |
Antwort
Rückgabe: ApiGetUserBadgeProgressResponse
Beispiel

get_user_badge_progress_list 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| limit | f64 | No | |
| skip | f64 | No |
Antwort
Rückgabe: ApiGetUserBadgeProgressListResponse
Beispiel

create_user_badge 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_user_badge_params | models::CreateUserBadgeParams | Ja |
Antwort
Rückgabe: ApiCreateUserBadgeResponse
Beispiel

delete_user_badge 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: ApiEmptySuccessResponse
Beispiel

get_user_badge 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwort
Rückgabe: ApiGetUserBadgeResponse
Beispiel

get_user_badges 
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| badge_id | String | No | |
| displayed_on_comments | bool | No | |
| limit | f64 | No | |
| skip | f64 | No |
Antwort
Rückgabe: ApiGetUserBadgesResponse
Beispiel

update_user_badge 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_user_badge_params | models::UpdateUserBadgeParams | Yes |
Antwort
Rückgabe: ApiEmptySuccessResponse
Beispiel

get_user_notification_count 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
Antwort
Rückgabe: GetUserNotificationCountResponse
Beispiel

get_user_notifications 
Parameter
| 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 |
Antwort
Rückgabe: GetMyNotificationsResponse
Beispiel

reset_user_notification_count 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: ResetUserNotificationsResponse
Beispiel

reset_user_notifications 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| after_id | String | Nein | |
| after_created_at | i64 | Nein | |
| unread_only | bool | Nein | |
| dm_only | bool | Nein | |
| no_dm | bool | Nein | |
| sso | String | Nein |
Antwort
Rückgabe: ResetUserNotificationsResponse
Beispiel

update_user_notification_comment_subscription_status 
Enable or disable notifications for a specific comment.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| notification_id | String | Yes | |
| opted_in_or_out | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Response
Returns: UpdateUserNotificationCommentSubscriptionStatusResponse
Example

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
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| url | String | Ja | |
| page_title | String | Ja | |
| subscribed_or_unsubscribed | String | Ja | |
| sso | String | Nein |
Rückgabe
Rückgabe: UpdateUserNotificationPageSubscriptionStatusResponse
Beispiel

update_user_notification_status 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| notification_id | String | Ja | |
| new_status | String | Ja | |
| sso | String | Nein |
Antwort
Rückgabe: UpdateUserNotificationStatusResponse
Beispiel

get_user_presence_statuses 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id_ws | String | Ja | |
| user_ids | String | Ja |
Antwort
Rückgabe: GetUserPresenceStatusesResponse
Beispiel

search_users 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| username_starts_with | String | No | |
| mention_group_ids | Vec | No | |
| sso | String | No | |
| search_section | String | No |
Antwort
Rückgabe: SearchUsersResult
Beispiel

get_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwort
Rückgabe: GetUserResponse
Beispiel

create_vote 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| direction | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Antwort
Rückgabe: VoteResponse
Beispiel

delete_vote 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| edit_key | String | Nein |
Antwort
Rückgabe: VoteDeleteResponse
Beispiel

get_votes 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja |
Antwort
Rückgabe: GetVotesResponse
Beispiel

get_votes_for_user 
Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| user_id | String | Nein | |
| anon_user_id | String | Nein |
Antwort
Rückgabe: GetVotesForUserResponse
Beispiel

Brauchen Sie Hilfe?
Wenn Sie auf Probleme stoßen oder Fragen zum Rust-SDK haben, tun Sie bitte Folgendes:
Mitwirken
Beiträge sind willkommen! Bitte besuchen Sie das GitHub-Repository für Richtlinien zur Mitwirkung.