
Taal 🇳🇱 Nederlands
Aan de slag
Documentatie
Aggregatie
Auditlogboeken
Blokkeren van reactie
Controleer geblokkeerde reacties
Reacties
Domeinconfiguraties
E-mailsjablonen
Gebeurtenislogboek
Feedberichten
Opmerking melden
Hashtags
Moderatoren
Meldingsaantal
Meldingen
Pagina's
Wachtende webhook-gebeurtenissen
Vraagconfiguraties
Vraagresultaten
Aggregatie van vraagresultaten
SSO-gebruikers
Abonnementen
Dagelijks gebruik per tenant
Tenantpakketten
Tenantgebruikers
Tenants
Tickets
Afbeelding uploaden
Gebruikersbadge-voortgang
Gebruikersbadges
Gebruikersmeldingen
Aanwezigheidsstatus gebruikers
Gebruikers zoeken
Gebruikers
Stemmen
FastComments Rust SDK
Dit is de officiële Rust SDK voor FastComments.
Officiële Rust SDK voor de FastComments API
Repository
Bibliotheekinhoud 
De FastComments Rust SDK bestaat uit meerdere modules:
Client Module - Automatisch gegenereerde API-client voor de FastComments REST-API's
- Volledige type-definities voor alle API-modellen
- Zowel geauthenticeerde (
DefaultApi) als openbare (PublicApi) endpoints - Volledige async/await-ondersteuning met tokio
- Zie client/README.md voor gedetailleerde API-documentatie
SSO Module - Server-side Single Sign-On-hulpmiddelen
- Veilige tokengeneratie voor gebruikersauthenticatie
- Ondersteuning voor zowel eenvoudige als veilige SSO-modi
- Op HMAC-SHA256 gebaseerde tokenondertekening
Core Types - Gedeelde type-definities en hulpmiddelen
- Commentaarmodellen en metadata-structuren
- Gebruikers- en tenantconfiguraties
- Hulpfuncties voor veelvoorkomende bewerkingen
Snel aan de slag 
Gebruik van de publieke API
use fastcomments_sdk::client::apis::configuration::Configuration;
use fastcomments_sdk::client::apis::public_api;
#[tokio::main]
async fn main() {
// Maak API-configuratie
let config = Configuration::new();
// Haal reacties op voor een 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),
}
}
Gebruik van de geauthenticeerde API
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::default_api;
#[tokio::main]
async fn main() {
// Maak configuratie met API-sleutel
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// Haal reacties op met de geauthenticeerde API
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),
}
}
SSO gebruiken voor authenticatie
use fastcomments_sdk::sso::{
fastcomments_sso::FastCommentsSSO,
secure_sso_user_data::SecureSSOUserData,
};
fn main() {
let api_key = "your-api-key".to_string();
// Maak beveiligde SSO-gebruikersgegevens aan (alleen aan de serverzijde!)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // Gebruikers-ID
"user@example.com".to_string(), // E-mail
"John Doe".to_string(), // Gebruikersnaam
"https://example.com/avatar.jpg".to_string(), // Avatar-URL
);
// Genereer SSO-token
let sso = FastCommentsSSO::new_secure(api_key, &user_data).unwrap();
let token = sso.create_token().unwrap();
println!("SSO Token: {}", token);
// Geef dit token door aan je frontend voor authenticatie
}
Veelvoorkomende problemen 
401 Ongeautoriseerde fouten
Als u 401-fouten krijgt bij het gebruik van de geauthenticeerde API:
- Controleer uw API key: Zorg dat u de juiste API key uit uw FastComments-dashboard gebruikt
- Verifieer de tenant ID: Zorg dat de tenant ID overeenkomt met uw account
- API key-formaat: De API key moet worden doorgegeven in de Configuration:
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY".to_string(),
});
Problemen met SSO-tokens
Als SSO-tokens niet werken:
- Gebruik veilige modus voor productie: Gebruik altijd
FastCommentsSSO::new_secure()met uw API key in productie - Alleen server-side: Genereer SSO-tokens op uw server, stel uw API key nooit bloot aan clients
- Controleer gebruikersgegevens: Zorg dat alle vereiste velden (id, email, username) zijn opgegeven
Fouten van de async-runtime
De SDK gebruikt tokio voor async-bewerkingen. Zorg ervoor dat u:
Voeg tokio toe aan uw afhankelijkheden:
[dependencies] tokio = { version = "1", features = ["full"] }Gebruik de tokio-runtime:
#[tokio::main] async fn main() { // Your async code here }
Opmerkingen 
Broadcast IDs
Je zult zien dat je in sommige API-aanroepen een broadcastId moet meegeven. Wanneer je events ontvangt, krijg je deze ID terug, zodat je het event kunt negeren als je van plan bent wijzigingen optimistisch op de client toe te passen (wat je waarschijnlijk wilt doen, omdat het de beste ervaring biedt). Geef hier een UUID door. De ID moet uniek genoeg zijn zodat deze niet twee keer voorkomt in een browsersessie.
aggregate 
Aggregeert documenten door ze te groeperen (als groupBy is opgegeven) en meerdere bewerkingen toe te passen. Verschillende bewerkingen (bijv. sum, countDistinct, avg, enz.) worden ondersteund.
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| aggregation_request | models::AggregationRequest | Ja | |
| parent_tenant_id | String | Nee | |
| include_stats | bool | Nee |
Response
Retourneert: AggregationResponse
get_audit_logs 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| limit | f64 | Nee | |
| skip | f64 | Nee | |
| order | models::SortDir | Nee | |
| after | f64 | Nee | |
| before | f64 | Nee |
Respons
Retourneert: GetAuditLogs200Response
Voorbeeld

block_from_comment_public 
Parameters
| Naam | Type | Vereist | Omschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Ja | |
| sso | String | Nee |
Respons
Geeft terug: BlockFromCommentPublic200Response
Voorbeeld

un_block_comment_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Ja | |
| sso | String | Nee |
Antwoord
Retourneert: UnBlockCommentPublic200Response
Voorbeeld

checked_comments_for_blocked 
Parameters
| Naam | Type | Vereist | Omschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_ids | String | Ja | |
| sso | String | Nee |
Antwoord
Geeft terug: CheckedCommentsForBlocked200Response
Voorbeeld

block_user_from_comment 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| block_from_comment_params | models::BlockFromCommentParams | Ja | |
| user_id | String | Nee | |
| anon_user_id | String | Nee |
Respons
Retourneert: BlockFromCommentPublic200Response
Voorbeeld

create_comment_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| broadcast_id | String | Ja | |
| comment_data | models::CommentData | Ja | |
| session_id | String | Nee | |
| sso | String | Nee |
Antwoord
Retourneert: CreateCommentPublic200Response
Voorbeeld

delete_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| context_user_id | String | Nee | |
| is_live | bool | Nee |
Antwoord
Geeft terug: DeleteComment200Response
Voorbeeld

delete_comment_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| edit_key | String | Nee | |
| sso | String | Nee |
Response
Retourneert: DeleteCommentPublic200Response
Voorbeeld

delete_comment_vote 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| vote_id | String | Ja | |
| url_id | String | Ja | |
| broadcast_id | String | Ja | |
| edit_key | String | Nee | |
| sso | String | Nee |
Respons
Retourneert: DeleteCommentVote200Response
Voorbeeld

flag_comment 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| user_id | String | Nee | |
| anon_user_id | String | Nee |
Respons
Geeft terug: FlagComment200Response
Voorbeeld

get_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Respons
Retourneert: GetComment200Response
Voorbeeld

get_comment_text 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| edit_key | String | Nee | |
| sso | String | Nee |
Respons
Geeft terug: GetCommentText200Response
Voorbeeld

get_comment_vote_user_names 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| dir | i32 | Ja | |
| sso | String | Nee |
Antwoord
Retourneert: GetCommentVoteUserNames200Response
Voorbeeld

get_comments 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| page | i32 | Nee | |
| limit | i32 | Nee | |
| skip | i32 | Nee | |
| as_tree | bool | Nee | |
| skip_children | i32 | Nee | |
| limit_children | i32 | Nee | |
| max_tree_depth | i32 | Nee | |
| url_id | String | Nee | |
| user_id | String | Nee | |
| anon_user_id | String | Nee | |
| context_user_id | String | Nee | |
| hash_tag | String | Nee | |
| parent_id | String | Nee | |
| direction | models::SortDirections | Nee |
Respons
Retourneert: GetComments200Response
Voorbeeld

get_comments_public 
verplicht tenantId urlId
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| page | i32 | Nee | |
| direction | models::SortDirections | Nee | |
| sso | String | Nee | |
| skip | i32 | Nee | |
| skip_children | i32 | Nee | |
| limit | i32 | Nee | |
| limit_children | i32 | Nee | |
| count_children | bool | Nee | |
| fetch_page_for_comment_id | String | Nee | |
| include_config | bool | Nee | |
| count_all | bool | Nee | |
| includei10n | bool | Nee | |
| locale | String | Nee | |
| modules | String | Nee | |
| is_crawler | bool | Nee | |
| include_notification_count | bool | Nee | |
| as_tree | bool | Nee | |
| max_tree_depth | i32 | Nee | |
| use_full_translation_ids | bool | Nee | |
| parent_id | String | Nee | |
| search_text | String | Nee | |
| hash_tags | Vec |
Nee | |
| user_id | String | Nee | |
| custom_config_str | String | Nee | |
| after_comment_id | String | Nee | |
| before_comment_id | String | Nee |
Antwoord
Retourneert: GetCommentsPublic200Response
Voorbeeld

lock_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nee |
Antwoord
Retourneert: LockComment200Response
Voorbeeld

pin_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nee |
Respons
Retourneert: PinComment200Response
Voorbeeld

save_comment 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_comment_params | models::CreateCommentParams | Ja | |
| is_live | bool | Nee | |
| do_spam_check | bool | Nee | |
| send_emails | bool | Nee | |
| populate_notifications | bool | Nee |
Respons
Retourneert: SaveComment200Response
Voorbeeld

save_comments_bulk 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| 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 |
Respons
Retourneert: Vec<models::SaveComment200Response>
Voorbeeld

set_comment_text 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| comment_text_update_request | models::CommentTextUpdateRequest | Ja | |
| edit_key | String | Nee | |
| sso | String | Nee |
Reactie
Geeft terug: SetCommentText200Response
Voorbeeld

un_block_user_from_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| un_block_from_comment_params | models::UnBlockFromCommentParams | Ja | |
| user_id | String | Nee | |
| anon_user_id | String | Nee |
Response
Retourneert: UnBlockCommentPublic200Response
Voorbeeld

un_flag_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Respons
Retourneert: FlagComment200Response
Voorbeeld

un_lock_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nee |
Respons
Retourneert: LockComment200Response
Voorbeeld

un_pin_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| broadcast_id | String | Ja | |
| sso | String | Nee |
Respons
Retourneert: PinComment200Response
Voorbeeld

update_comment 
Parameters
| Name | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| updatable_comment_params | models::UpdatableCommentParams | Ja | |
| context_user_id | String | Nee | |
| do_spam_check | bool | Nee | |
| is_live | bool | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

vote_comment 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| url_id | String | Ja | |
| broadcast_id | String | Ja | |
| vote_body_params | models::VoteBodyParams | Ja | |
| session_id | String | Nee | |
| sso | String | Nee |
Antwoord
Retourneert: VoteComment200Response
Voorbeeld

add_domain_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| add_domain_config_params | models::AddDomainConfigParams | Ja |
Respons
Retourneert: AddDomainConfig200Response
delete_domain_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain | String | Ja |
Antwoord
Retourneert: DeleteDomainConfig200Response
get_domain_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain | String | Ja |
Antwoord
Retourneert: GetDomainConfig200Response
get_domain_configs 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja |
Respons
Geeft terug: GetDomainConfigs200Response
patch_domain_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain_to_update | String | Ja | |
| patch_domain_config_params | models::PatchDomainConfigParams | Ja |
Antwoord
Retourneert: GetDomainConfig200Response
put_domain_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| domain_to_update | String | Ja | |
| update_domain_config_params | models::UpdateDomainConfigParams | Ja |
Antwoord
Geeft terug: GetDomainConfig200Response
create_email_template 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_email_template_body | models::CreateEmailTemplateBody | Ja |
Respons
Retourneert: CreateEmailTemplate200Response
Voorbeeld

delete_email_template 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwoord
Geeft terug: FlagCommentPublic200Response
Voorbeeld

delete_email_template_render_error 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| error_id | String | Ja |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_email_template 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwoord
Geeft terug: GetEmailTemplate200Response
Voorbeeld

get_email_template_definitions 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja |
Respons
Retourneert: GetEmailTemplateDefinitions200Response
Voorbeeld

get_email_template_render_errors 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| skip | f64 | Nee |
Response
Retourneert: GetEmailTemplateRenderErrors200Response
Voorbeeld

get_email_templates 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nee |
Respons
Geeft terug: GetEmailTemplates200Response
Voorbeeld

render_email_template 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| render_email_template_body | models::RenderEmailTemplateBody | Yes | |
| locale | String | No |
Respons
Retourneert: RenderEmailTemplate200Response
Voorbeeld

update_email_template 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_email_template_body | models::UpdateEmailTemplateBody | Ja |
Antwoord
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_event_log 
req tenantId urlId userIdWS
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| user_id_ws | String | Ja | |
| start_time | i64 | Ja | |
| end_time | i64 | Ja |
Response
Retourneert: GetEventLog200Response
Voorbeeld

get_global_event_log 
req tenantId urlId userIdWS
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| user_id_ws | String | Ja | |
| start_time | i64 | Ja | |
| end_time | i64 | Ja |
Antwoord
Geeft terug: GetEventLog200Response
Voorbeeld

create_feed_post 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_feed_post_params | models::CreateFeedPostParams | Ja | |
| broadcast_id | String | Nee | |
| is_live | bool | Nee | |
| do_spam_check | bool | Nee | |
| skip_dup_check | bool | Nee |
Respons
Retourneert: CreateFeedPost200Response
Voorbeeld

create_feed_post_public 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_feed_post_params | models::CreateFeedPostParams | Ja | |
| broadcast_id | String | Nee | |
| sso | String | Nee |
Antwoord
Retourneert: CreateFeedPostPublic200Response
Voorbeeld

delete_feed_post_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_id | String | Ja | |
| broadcast_id | String | Nee | |
| sso | String | Nee |
Response
Retourneert: DeleteFeedPostPublic200Response
Voorbeeld

get_feed_posts 
req tenantId afterId
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| after_id | String | Nee | |
| limit | i32 | Nee | |
| tags | Vec |
Nee |
Respons
Retourneert: GetFeedPosts200Response
Voorbeeld

get_feed_posts_public 
req tenantId afterId
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| after_id | String | Nee | |
| limit | i32 | Nee | |
| tags | Vec |
Nee | |
| sso | String | Nee | |
| is_crawler | bool | Nee | |
| include_user_info | bool | Nee |
Antwoord
Retourneert: GetFeedPostsPublic200Response
Voorbeeld

get_feed_posts_stats 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_ids | Vec |
Ja | |
| sso | String | Nee |
Respons
Retourneert: GetFeedPostsStats200Response
Voorbeeld

get_user_reacts_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_ids | Vec |
Nee | |
| sso | String | Nee |
Antwoord
Retourneert: GetUserReactsPublic200Response
Voorbeeld

react_feed_post_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_id | String | Ja | |
| react_body_params | models::ReactBodyParams | Ja | |
| is_undo | bool | Nee | |
| broadcast_id | String | Nee | |
| sso | String | Nee |
Respons
Retourneert: ReactFeedPostPublic200Response
Voorbeeld

update_feed_post 
Parameteren
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| feed_post | models::FeedPost | Ja |
Antwoord
Retourneert: FlagCommentPublic200Response
Voorbeeld

update_feed_post_public 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| post_id | String | Ja | |
| update_feed_post_params | models::UpdateFeedPostParams | Ja | |
| broadcast_id | String | Nee | |
| sso | String | Nee |
Respons
Retourneert: CreateFeedPostPublic200Response
Voorbeeld

flag_comment_public 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| is_flagged | bool | Ja | |
| sso | String | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

add_hash_tag 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | No | |
| create_hash_tag_body | models::CreateHashTagBody | No |
Respons
Geeft terug: AddHashTag200Response
Voorbeeld

add_hash_tags_bulk 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Nee | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | Nee |
Respons
Retourneert: AddHashTagsBulk200Response
Voorbeeld

delete_hash_tag 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tag | String | Ja | |
| tenant_id | String | Nee | |
| delete_hash_tag_request | models::DeleteHashTagRequest | Nee |
Response
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_hash_tags 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| page | f64 | Nee |
Respons
Retourneert: GetHashTags200Response
Voorbeeld

patch_hash_tag 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tag | String | Ja | |
| tenant_id | String | Nee | |
| update_hash_tag_body | models::UpdateHashTagBody | Nee |
Response
Retourneert: PatchHashTag200Response
Voorbeeld

create_moderator 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_moderator_body | models::CreateModeratorBody | Ja |
Respons
Geeft terug: CreateModerator200Response
Voorbeeld

delete_moderator 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| send_email | String | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_moderator 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Antwoord
Retourneert: GetModerator200Response
Voorbeeld

get_moderators 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nee |
Reactie
Retourneert: GetModerators200Response
Voorbeeld

send_invite 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| from_name | String | Ja |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

update_moderator 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_moderator_body | models::UpdateModeratorBody | Yes |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

delete_notification_count 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Geeft terug: FlagCommentPublic200Response
Voorbeeld

get_cached_notification_count 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Response
Retourneert: GetCachedNotificationCount200Response
Voorbeeld

get_notification_count 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nee | |
| url_id | String | Nee | |
| from_comment_id | String | Nee | |
| viewed | bool | Nee |
Respons
Retourneert: GetNotificationCount200Response
Voorbeeld

get_notifications 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nee | |
| url_id | String | Nee | |
| from_comment_id | String | Nee | |
| viewed | bool | Nee | |
| skip | f64 | Nee |
Respons
Retourneert: GetNotifications200Response
Voorbeeld

update_notification 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_notification_body | models::UpdateNotificationBody | Ja | |
| user_id | String | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

add_page 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_api_page_data | models::CreateApiPageData | Ja |
Antwoord
Retourneert: AddPageApiResponse
delete_page 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: DeletePageApiResponse
get_page_by_urlid 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja |
Respons
Retourneert: GetPageByUrlidApiResponse
get_pages 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja |
Respons
Retourneert: GetPagesApiResponse
patch_page 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_api_page_data | models::UpdateApiPageData | Ja |
Antwoord
Retourneert: PatchPageApiResponse
delete_pending_webhook_event 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_pending_webhook_event_count 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Nee | |
| external_id | String | Nee | |
| event_type | String | Nee | |
| domain | String | Nee | |
| attempt_count_gt | f64 | Nee |
Antwoord
Retourneert: GetPendingWebhookEventCount200Response
Voorbeeld

get_pending_webhook_events 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Nee | |
| external_id | String | Nee | |
| event_type | String | Nee | |
| domain | String | Nee | |
| attempt_count_gt | f64 | Nee | |
| skip | f64 | Nee |
Respons
Retourneert: GetPendingWebhookEvents200Response
Voorbeeld

create_question_config 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_question_config_body | models::CreateQuestionConfigBody | Ja |
Antwoord
Retourneert: CreateQuestionConfig200Response
Voorbeeld

delete_question_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_question_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: GetQuestionConfig200Response
Voorbeeld

get_question_configs 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nee |
Respons
Retourneert: GetQuestionConfigs200Response
Voorbeeld

update_question_config 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_question_config_body | models::UpdateQuestionConfigBody | Ja |
Antwoord
Retourneert: FlagCommentPublic200Response
Voorbeeld

create_question_result 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_question_result_body | models::CreateQuestionResultBody | Ja |
Response
Geeft terug: CreateQuestionResult200Response
Voorbeeld

delete_question_result 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_question_result 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: GetQuestionResult200Response
Voorbeeld

get_question_results 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Nee | |
| user_id | String | Nee | |
| start_date | String | Nee | |
| question_id | String | Nee | |
| question_ids | String | Nee | |
| skip | f64 | Nee |
Respons
Retourneert: GetQuestionResults200Response
Voorbeeld

update_question_result 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_question_result_body | models::UpdateQuestionResultBody | Ja |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

aggregate_question_results 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| question_id | String | Nee | |
| question_ids | Vec |
Nee | |
| url_id | String | Nee | |
| time_bucket | models::AggregateTimeBucket | Nee | |
| start_date | String | Nee | |
| force_recalculate | bool | Nee |
Respons
Retourneert: AggregateQuestionResults200Response
Voorbeeld

bulk_aggregate_question_results 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Ja | |
| force_recalculate | bool | Nee |
Antwoord
Retourneert: BulkAggregateQuestionResults200Response
Voorbeeld

combine_comments_with_question_results 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| question_id | String | Nee | |
| question_ids | Vec |
Nee | |
| url_id | String | Nee | |
| start_date | String | Nee | |
| force_recalculate | bool | Nee | |
| min_value | f64 | Nee | |
| max_value | f64 | Nee | |
| limit | f64 | Nee |
Antwoord
Retourneert: CombineCommentsWithQuestionResults200Response
Voorbeeld

add_sso_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_apisso_user_data | models::CreateApissoUserData | Ja |
Respons
Retourneert: AddSsoUserApiResponse
delete_sso_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| delete_comments | bool | Nee | |
| comment_delete_mode | String | Nee |
Antwoord
Retourneert: DeleteSsoUserApiResponse
get_sso_user_by_email 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| String | Ja |
Respons
Geeft terug: GetSsoUserByEmailApiResponse
get_sso_user_by_id 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwoord
Geeft terug: GetSsoUserByIdApiResponse
get_sso_users 
Parameters
| Name | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | i32 | Nee |
Respons
Retourneert: GetSsoUsers200Response
patch_sso_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_apisso_user_data | models::UpdateApissoUserData | Ja | |
| update_comments | bool | Nee |
Respons
Geeft terug: PatchSsoUserApiResponse
put_sso_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_apisso_user_data | models::UpdateApissoUserData | Ja | |
| update_comments | bool | Nee |
Antwoord
Retourneert: PutSsoUserApiResponse
create_subscription 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | Ja |
Antwoord
Geeft terug: CreateSubscriptionApiResponse
Voorbeeld

delete_subscription 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| user_id | String | Nee |
Antwoord
Retourneert: DeleteSubscriptionApiResponse
get_subscriptions 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nee |
Reactie
Retourneert: GetSubscriptionsApiResponse
Voorbeeld

update_subscription 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_api_user_subscription_data | models::UpdateApiUserSubscriptionData | Ja | |
| user_id | String | Nee |
Antwoord
Retourneert: UpdateSubscriptionApiResponse
Voorbeeld

get_tenant_daily_usages 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Ja | |
| year_number | f64 | Nee | |
| month_number | f64 | Nee | |
| day_number | f64 | Nee | |
| skip | f64 | Nee |
Response
Retourneert: GetTenantDailyUsages200Response
Voorbeeld

create_tenant_package 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_tenant_package_body | models::CreateTenantPackageBody | Ja |
Antwoord
Geeft terug: CreateTenantPackage200Response
Voorbeeld

delete_tenant_package 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_tenant_package 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
Respons
Retourneert: GetTenantPackage200Response
Voorbeeld

get_tenant_packages 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nee |
Respons
Retourneert: GetTenantPackages200Response
Voorbeeld

replace_tenant_package 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Ja |
Respons
Geeft terug: FlagCommentPublic200Response
Voorbeeld

update_tenant_package 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Yes |
Response
Retourneert: FlagCommentPublic200Response
Voorbeeld

create_tenant_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_tenant_user_body | models::CreateTenantUserBody | Ja |
Respons
Retourneert: CreateTenantUser200Response
Voorbeeld

delete_tenant_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| delete_comments | String | Nee | |
| comment_delete_mode | String | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_tenant_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: GetTenantUser200Response
Voorbeeld

get_tenant_users 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| skip | f64 | Nee |
Antwoord
Retourneert: GetTenantUsers200Response
Voorbeeld

replace_tenant_user 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Ja | |
| update_comments | String | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

send_login_link 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| redirect_url | String | Nee |
Antwoord
Geeft terug: FlagCommentPublic200Response
Voorbeeld

update_tenant_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_tenant_user_body | models::UpdateTenantUserBody | Ja | |
| update_comments | String | Nee |
Antwoord
Retourneert: FlagCommentPublic200Response
Voorbeeld

create_tenant 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_tenant_body | models::CreateTenantBody | Ja |
Antwoord
Retourneert: CreateTenant200Response
Voorbeeld

delete_tenant 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| sure | String | Nee |
Respons
Retourneert: FlagCommentPublic200Response
Voorbeeld

get_tenant 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: GetTenant200Response
Voorbeeld

get_tenants 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| meta | String | Nee | |
| skip | f64 | Nee |
Antwoord
Retourneert: GetTenants200Response
Voorbeeld

update_tenant 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_tenant_body | models::UpdateTenantBody | Yes |
Antwoord
Retourneert: FlagCommentPublic200Response
Voorbeeld

change_ticket_state 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Ja | |
| id | String | Ja | |
| change_ticket_state_body | models::ChangeTicketStateBody | Ja |
Response
Retourneert: ChangeTicketState200Response
Voorbeeld

create_ticket 
Parameters
| Name | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Ja | |
| create_ticket_body | models::CreateTicketBody | Ja |
Respons
Geeft terug: CreateTicket200Response
Voorbeeld

get_ticket 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| user_id | String | Nee |
Antwoord
Geeft terug: GetTicket200Response
Voorbeeld

get_tickets 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| state | f64 | No | |
| skip | f64 | No | |
| limit | f64 | No |
Antwoord
Geeft terug: GetTickets200Response
Voorbeeld

upload_image 
Een afbeelding uploaden en schalen
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| file | std::path::PathBuf | Ja | |
| size_preset | models::SizePreset | Nee | |
| url_id | String | Nee |
Respons
Retourneert: UploadImageResponse
get_user_badge_progress_by_id 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwoord
Retourneert: GetUserBadgeProgressById200Response
Voorbeeld

get_user_badge_progress_by_user_id 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Ja |
Respons
Retourneert: GetUserBadgeProgressById200Response
Voorbeeld

get_user_badge_progress_list 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nee | |
| limit | f64 | Nee | |
| skip | f64 | Nee |
Respons
Retourneert: GetUserBadgeProgressList200Response
Voorbeeld

create_user_badge 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| create_user_badge_params | models::CreateUserBadgeParams | Ja |
Respons
Retourneert: CreateUserBadge200Response
Voorbeeld

delete_user_badge 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Respons
Retourneert: UpdateUserBadge200Response
Voorbeeld

get_user_badge 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwoord
Retourneert: GetUserBadge200Response
Voorbeeld

get_user_badges 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| user_id | String | Nee | |
| badge_id | String | Nee | |
| displayed_on_comments | bool | Nee | |
| limit | f64 | Nee | |
| skip | f64 | Nee |
Respons
Geeft terug: GetUserBadges200Response
Voorbeeld

update_user_badge 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| update_user_badge_params | models::UpdateUserBadgeParams | Ja |
Response
Geeft terug: UpdateUserBadge200Response
Voorbeeld

get_user_notification_count 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| sso | String | Nee |
Antwoord
Retourneert: GetUserNotificationCount200Response
Voorbeeld

get_user_notifications 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| page_size | i32 | Nee | |
| after_id | String | Nee | |
| include_context | bool | Nee | |
| after_created_at | i64 | Nee | |
| unread_only | bool | Nee | |
| dm_only | bool | Nee | |
| no_dm | bool | Nee | |
| include_translations | bool | Nee | |
| sso | String | Nee |
Respons
Retourneert: GetUserNotifications200Response
Voorbeeld

reset_user_notification_count 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| sso | String | Nee |
Antwoord
Geeft terug: ResetUserNotifications200Response
Voorbeeld

reset_user_notifications 
Parameters
| Naam | Type | Verplicht | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| after_id | String | Nee | |
| after_created_at | i64 | Nee | |
| unread_only | bool | Nee | |
| dm_only | bool | Nee | |
| no_dm | bool | Nee | |
| sso | String | Nee |
Respons
Retourneert: ResetUserNotifications200Response
Voorbeeld

update_user_notification_comment_subscription_status 
Meldingen voor een specifieke opmerking in- of uitschakelen.
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Yes | |
| notification_id | String | Yes | |
| opted_in_or_out | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
Respons
Retourneert: UpdateUserNotificationStatus200Response
Voorbeeld

update_user_notification_page_subscription_status 
Schakel meldingen voor een pagina in of uit. Wanneer gebruikers zich op een pagina abonneren, worden meldingen gemaakt voor nieuwe root-opmerkingen, en ook
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| url | String | Ja | |
| page_title | String | Ja | |
| subscribed_or_unsubscribed | String | Ja | |
| sso | String | Nee |
Antwoord
Retourneert: UpdateUserNotificationStatus200Response
Voorbeeld

update_user_notification_status 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| notification_id | String | Ja | |
| new_status | String | Ja | |
| sso | String | Nee |
Response
Retourneert: UpdateUserNotificationStatus200Response
Voorbeeld

get_user_presence_statuses 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id_ws | String | Ja | |
| user_ids | String | Ja |
Response
Retourneert: GetUserPresenceStatuses200Response
Voorbeeld

search_users 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| username_starts_with | String | Nee | |
| mention_group_ids | Vec |
Nee | |
| sso | String | Nee | |
| search_section | String | Nee |
Antwoord
Retourneert: SearchUsers200Response
Voorbeeld

get_user 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja |
Antwoord
Geeft terug: GetUser200Response
Voorbeeld

create_vote 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| comment_id | String | Ja | |
| direction | String | Ja | |
| user_id | String | Nee | |
| anon_user_id | String | Nee |
Respons
Retourneert: VoteComment200Response
Voorbeeld

delete_vote 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| id | String | Ja | |
| edit_key | String | Nee |
Respons
Retourneert: DeleteCommentVote200Response
Voorbeeld

get_votes 
Parameters
| Naam | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja |
Respons
Retourneert: GetVotes200Response
Voorbeeld

get_votes_for_user 
Parameters
| Name | Type | Vereist | Beschrijving |
|---|---|---|---|
| tenant_id | String | Ja | |
| url_id | String | Ja | |
| user_id | String | Nee | |
| anon_user_id | String | Nee |
Respons
Geeft terug: GetVotesForUser200Response
Voorbeeld

Hulp nodig?
Als u problemen tegenkomt of vragen heeft over de Rust SDK, neem dan:
Bijdragen
Bijdragen zijn welkom! Bezoek de GitHub-repository voor richtlijnen voor bijdragen.