
言語 🇯🇵 日本語
ドキュメント
はじめに
集計
API
監査ログ
コメントからのブロック
ブロックされたコメントの確認
コメント
コメント For User
ドメイン設定
メールテンプレート
イベントログ
フィード投稿
コメントのフラグ
GIF
ハッシュタグ
モデレーション
モデレーター
通知数
通知
ページリアクション
ページ
保留中のWebhookイベント
質問設定
質問結果
質問結果集計
SSOユーザー
サブスクリプション
テナント日次使用量
テナントパッケージ
テナントユーザー
テナント
チケット
翻訳
画像アップロード
ユーザーバッジ進捗
ユーザーバッジ
ユーザー通知
ユーザー在席状態
ユーザー検索
ユーザー
投票
FastComments Rust SDK
これは FastComments の公式 Rust SDK です。
FastComments API の公式 Rust SDK
リポジトリ
AI コーディングエージェント 
コーディングエージェントに必要な FastComments のコンテキストを提供します - ウィジェット、設定、Secure SSO、REST API、そして SDK:
npx skills add fastcomments/skills
Claude Code、Codex、Cursor、Copilot、Gemini、そして skills CLI がサポートするすべてのエージェントで動作します。
ライブラリ内容 
FastComments Rust SDK は複数のモジュールで構成されています:
-
Client Module - FastComments REST API の API クライアント
- すべての API モデルの完全な型定義
- FastComments のすべてのメソッドをカバーする 3 つの API クライアント:
default_api(DefaultApi) - サーバーサイドで使用するための API キー認証メソッドpublic_api(PublicApi) - ブラウザやモバイルアプリから安全に呼び出せる、API キー不要の公開メソッドmoderation_api(ModerationApi) - ライブかつ高速なモデレーション API の包括的スイート。すべての Moderation メソッドはssoパラメータを受け取り、SSO または FastComments.com のセッションクッキーで認証できます。
- tokio によるフル async/await サポート
- 詳細な API ドキュメントは client/README.md を参照してください
-
SSO Module - サーバーサイドのシングルサインオンユーティリティ
- ユーザー認証のための安全なトークン生成
- シンプルモードとセキュアモードの両方に対応
- HMAC-SHA256 に基づくトークン署名
-
Core Types - 共有型定義とユーティリティ
- コメントモデルとメタデータ構造
- ユーザーおよびテナント設定
- 共通操作のためのヘルパー関数
クイックスタート 
パブリック API の使用
use fastcomments_sdk::client::apis::configuration::Configuration;
use fastcomments_sdk::client::apis::public_api;
#[tokio::main]
async fn main() {
// API 設定を作成
let config = Configuration::new();
// ページのコメントを取得
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),
}
}
認証済み API の使用
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::default_api;
#[tokio::main]
async fn main() {
// API キーで設定を作成
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// 認証済み 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),
}
}
モデレーション API の使用
モデレーション用のメソッドはモデレーターダッシュボードのバックエンドで動作します。これらは認証済み API と同様に API キーの Configuration を使用し、各メソッドはオプションの sso トークンを受け付けるため、SSO 認証されたモデレータを代理して呼び出すことができます。
use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration};
use fastcomments_sdk::client::apis::moderation_api;
#[tokio::main]
async fn main() {
// API キーで設定を作成
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "your-api-key".to_string(),
});
// モデレーションキューで待機中のコメントをカウント
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, // SSO 認証されたモデレータとして動作するために SSO トークンを渡す
},
)
.await;
match result {
Ok(response) => println!("Comments to moderate: {}", response.count),
Err(e) => eprintln!("Error: {:?}", e),
}
}
SSO を使用した認証
use fastcomments_sdk::sso::{
fastcomments_sso::FastCommentsSSO,
secure_sso_user_data::SecureSSOUserData,
};
fn main() {
let api_key = "your-api-key".to_string();
// セキュアな SSO ユーザーデータを作成(サーバーサイドのみ!)
let user_data = SecureSSOUserData::new(
"user-123".to_string(), // ユーザー ID
"user@example.com".to_string(), // メールアドレス
"John Doe".to_string(), // ユーザー名
"https://example.com/avatar.jpg".to_string(), // アバター URL
);
// SSO トークンを生成
let sso = FastCommentsSSO::new_secure(api_key, &user_data).unwrap();
let token = sso.create_token().unwrap();
println!("SSO Token: {}", token);
// このトークンをフロントエンドに渡して認証に使用する
}
一般的な問題 
401 Unauthorized エラー
認証済み API を使用していて 401 エラーが発生している場合:
- APIキーを確認する: FastComments のダッシュボードにある正しい API キーを使用していることを確認してください
- テナント ID を確認する: テナント ID がアカウントと一致していることを確認してください
- API キーの形式: API キーは Configuration に渡す必要があります:
let mut config = Configuration::new();
config.api_key = Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY".to_string(),
});
SSO トークンの問題
SSO トークンが機能していない場合:
- 本番環境ではセキュアモードを使用する: 本番環境では必ず
FastCommentsSSO::new_secure()を API キーとともに使用してください - サーバー側のみで生成する: SSO トークンはサーバー上で生成し、API キーをクライアントに公開しないでください
- ユーザーデータを確認する: 必須フィールド (id, email, username) がすべて提供されていることを確認してください
非同期ランタイムのエラー
SDK は非同期処理に tokio を使用しています。次の点を確認してください:
- 依存関係に tokio を追加する:
[dependencies]
tokio = { version = "1", features = ["full"] }
- tokio ランタイムを使用する:
#[tokio::main]
async fn main() {
// ここに非同期コードを記述してください
}
ノート 
ブロードキャストID
一部のAPIコールでは broadcastId を渡す必要があることがわかります。イベントを受信するとこのIDが返されるので、クライアント側で楽観的に変更を適用するつもりならそのイベントを無視すべきか判断できます
(これは最良の体験を提供するため、おそらく行いたい操作です)。ここには UUID を渡してください。ID はブラウザセッション内で二回発生しない程度に十分に一意であるべきです。
集計 
Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
ドキュメントをグループ化(groupBy が提供されている場合)し、複数の操作を適用して集計します。sum、countDistinct、avg などのさまざまな操作がサポートされています。
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| aggregation_request | models::AggregationRequest | Yes | |
| parent_tenant_id | String | No | |
| include_stats | bool | No |
Response
Example

get_api_comments 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| page | f64 | No | |
| count | f64 | No | |
| text_search | String | No | |
| by_ip_from_comment | String | No | |
| filters | String | No | |
| search_filters | String | No | |
| sorts | String | No | |
| demo | bool | No | |
| sso | String | No |
レスポンス
返却: ModerationApiGetCommentsResponse
例

get_api_export_status 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| batch_job_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: ModerationExportStatusResponse
例

get_api_ids 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| text_search | String | No | |
| by_ip_from_comment | String | No | |
| filters | String | No | |
| search_filters | String | No | |
| after_id | String | No | |
| demo | bool | No | |
| sso | String | No |
レスポンス
返却: ModerationApiGetCommentIdsResponse
例

post_api_export 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| text_search | String | いいえ | |
| by_ip_from_comment | String | いいえ | |
| filters | String | いいえ | |
| search_filters | String | いいえ | |
| sorts | String | いいえ | |
| sso | String | いいえ |
レスポンス
例

get_audit_logs 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| limit | f64 | No | |
| skip | f64 | No | |
| order | models::SortDir | No | |
| after | f64 | No | |
| before | f64 | No |
レスポンス
返り値: GetAuditLogsResponse
例

block_from_comment_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Yes | |
| sso | String | No |
応答
返却: BlockSuccess
例

un_block_comment_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| public_block_from_comment_params | models::PublicBlockFromCommentParams | Yes | |
| sso | String | No |
応答
Returns: UnblockSuccess
例

checked_comments_for_blocked 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_ids | String | はい | |
| sso | String | いいえ |
レスポンス
戻り値: CheckBlockedCommentsResponse
例

block_user_from_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| block_from_comment_params | models::BlockFromCommentParams | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
レスポンス
返却: BlockSuccess
例

create_comment_public 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| broadcast_id | String | Yes | |
| comment_data | models::CommentData | Yes | |
| session_id | String | No | |
| sso | String | No |
応答
戻り値: SaveCommentsResponseWithPresence
例

delete_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| context_user_id | String | No | |
| is_live | bool | No |
レスポンス
戻り値: DeleteCommentResult
例

delete_comment_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| broadcast_id | String | はい | |
| edit_key | String | いいえ | |
| sso | String | いいえ |
レスポンス
戻り値: PublicApiDeleteCommentResponse
例

delete_comment_vote 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| vote_id | String | Yes | |
| url_id | String | Yes | |
| broadcast_id | String | Yes | |
| edit_key | String | No | |
| sso | String | No |
レスポンス
戻り値: VoteDeleteResponse
例

flag_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
レスポンス
戻り値: FlagCommentResponse
例

get_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
例

get_comment_text 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| edit_key | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: PublicApiGetCommentTextResponse
例

get_comment_vote_user_names 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| dir | i32 | Yes | |
| sso | String | No |
レスポンス
返却: GetCommentVoteUserNamesSuccessResponse
例

get_comments 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| page | i32 | いいえ | |
| limit | i32 | いいえ | |
| skip | i32 | いいえ | |
| as_tree | bool | いいえ | |
| skip_children | i32 | いいえ | |
| limit_children | i32 | いいえ | |
| max_tree_depth | i32 | いいえ | |
| url_id | String | いいえ | |
| user_id | String | いいえ | |
| anon_user_id | String | いいえ | |
| context_user_id | String | いいえ | |
| hash_tag | String | いいえ | |
| parent_id | String | いいえ | |
| direction | models::SortDirections | いいえ | |
| from_date | i64 | いいえ | |
| to_date | i64 | いいえ |
レスポンス
例

get_comments_public 
req tenantId urlId
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
戻り値: GetCommentsResponseWithPresencePublicComment
例

lock_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| sso | String | No |
レスポンス
戻り値: ApiEmptyResponse
例

pin_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| sso | String | No |
レスポンス
返却: ChangeCommentPinStatusResponse
例

save_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
例

save_comments_bulk 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_comment_params | Vecmodels::CreateCommentParams | はい | |
| is_live | bool | いいえ | |
| do_spam_check | bool | いいえ | |
| send_emails | bool | いいえ | |
| populate_notifications | bool | いいえ |
レスポンス
返り値: Vec<models::SaveCommentsBulkResponse>
例

set_comment_text 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | Yes | |
| comment_text_update_request | models::CommentTextUpdateRequest | Yes | |
| edit_key | String | No | |
| sso | String | No |
レスポンス
返却: PublicApiSetCommentTextResponse
例

un_block_user_from_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| un_block_from_comment_params | models::UnBlockFromCommentParams | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
レスポンス
戻り値: UnblockSuccess
例

un_flag_comment 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
Response
戻り値: FlagCommentResponse
Example

un_lock_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| broadcast_id | String | はい | |
| sso | String | いいえ |
レスポンス
返却: ApiEmptyResponse
例

un_pin_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| broadcast_id | String | はい | |
| sso | String | いいえ |
応答
返却: ChangeCommentPinStatusResponse
例

update_comment 
パラメーター
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| updatable_comment_params | models::UpdatableCommentParams | はい | |
| context_user_id | String | いいえ | |
| do_spam_check | bool | いいえ | |
| is_live | bool | いいえ |
レスポンス
返却: ApiEmptyResponse
例

vote_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| url_id | String | はい | |
| broadcast_id | String | はい | |
| vote_body_params | models::VoteBodyParams | はい | |
| session_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: VoteResponse
例

get_comments_for_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
戻り値: GetCommentsForUserResponse
例

add_domain_config 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| add_domain_config_params | models::AddDomainConfigParams | はい |
レスポンス
例

delete_domain_config 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| domain | String | はい |
レスポンス
Returns: DeleteDomainConfigResponse
例

get_domain_config 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| domain | String | はい |
レスポンス
例

get_domain_configs 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい |
レスポンス
例

patch_domain_config 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| domain_to_update | String | はい | |
| patch_domain_config_params | models::PatchDomainConfigParams | はい |
レスポンス
戻り値: PatchDomainConfigResponse
例

put_domain_config 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| domain_to_update | String | はい | |
| update_domain_config_params | models::UpdateDomainConfigParams | はい |
レスポンス
例

create_email_template 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_email_template_body | models::CreateEmailTemplateBody | はい |
レスポンス
返却: CreateEmailTemplateResponse
例

delete_email_template 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
返却: ApiEmptyResponse
例

delete_email_template_render_error 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| error_id | String | Yes |
レスポンス
戻り値: ApiEmptyResponse
例

get_email_template 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
例

get_email_template_definitions 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい |
レスポンス
戻り値: GetEmailTemplateDefinitionsResponse
例

get_email_template_render_errors 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| skip | f64 | No |
レスポンス
返り値: GetEmailTemplateRenderErrorsResponse
例

get_email_templates 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| skip | f64 | いいえ |
レスポンス
戻り値: GetEmailTemplatesResponse
例

render_email_template 
パラメータ
| 名前 | 種類 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| render_email_template_body | models::RenderEmailTemplateBody | Yes | |
| locale | String | No |
レスポンス
返却: RenderEmailTemplateResponse
例

update_email_template 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_email_template_body | models::UpdateEmailTemplateBody | はい |
応答
戻り値: ApiEmptyResponse
例

get_event_log 
リクエスト tenantId urlId userIdWS
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| user_id_ws | String | Yes | |
| start_time | i64 | Yes | |
| end_time | i64 | No |
レスポンス
戻り値: GetEventLogResponse
例

get_global_event_log 
req tenantId urlId userIdWS
パラメータ
| 名前 | 型 | 必要 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい | |
| user_id_ws | String | はい | |
| start_time | i64 | はい | |
| end_time | i64 | いいえ |
応答
例

create_feed_post 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_feed_post_params | models::CreateFeedPostParams | はい | |
| broadcast_id | String | いいえ | |
| is_live | bool | いいえ | |
| do_spam_check | bool | いいえ | |
| skip_dup_check | bool | いいえ |
レスポンス
例

create_feed_post_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_feed_post_params | models::CreateFeedPostParams | はい | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
例

delete_feed_post_public 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
戻り値: DeleteFeedPostPublicResponse
例

get_feed_posts 
req tenantId afterId
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| after_id | String | いいえ | |
| limit | i32 | いいえ | |
| tags | Vec | いいえ |
レスポンス
例

get_feed_posts_public 
req tenantId afterId
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| after_id | String | No | |
| limit | i32 | No | |
| tags | Vec | No | |
| sso | String | No | |
| is_crawler | bool | No | |
| include_user_info | bool | No |
レスポンス
例

get_feed_posts_stats 
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| post_ids | Vec | はい | |
| sso | String | いいえ |
Response
Example

get_user_reacts_public 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| post_ids | Vec | No | |
| sso | String | No |
レスポンス
戻り値: UserReactsResponse
例

react_feed_post_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
例

update_feed_post 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| feed_post | models::FeedPost | はい |
応答
返り値: ApiEmptyResponse
例

update_feed_post_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| post_id | String | はい | |
| update_feed_post_params | models::UpdateFeedPostParams | はい | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
例

flag_comment_public 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| is_flagged | bool | Yes | |
| sso | String | No |
レスポンス
戻り値: ApiEmptyResponse
例

get_gif_large 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | はい | |
| large_internal_url_sanitized | String | はい |
レスポンス
Returns: GifGetLargeResponse
例

get_gifs_search 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| search | String | Yes | |
| locale | String | No | |
| rating | String | No | |
| page | f64 | No |
レスポンス
例

get_gifs_trending 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| locale | String | No | |
| rating | String | No | |
| page | f64 | No |
レスポンス
例

add_hash_tag 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_hash_tag_body | models::CreateHashTagBody | No |
レスポンス
例

add_hash_tags_bulk 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| bulk_create_hash_tags_body | models::BulkCreateHashTagsBody | いいえ |
レスポンス
返却: BulkCreateHashTagsResponse
例

delete_hash_tag 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| tag | String | はい | |
| delete_hash_tag_request_body | models::DeleteHashTagRequestBody | いいえ |
レスポンス
返却: ApiEmptyResponse
例

get_hash_tags 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| page | f64 | いいえ |
応答
例

patch_hash_tag 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| tag | String | Yes | |
| update_hash_tag_body | models::UpdateHashTagBody | No |
レスポンス
例

delete_moderation_vote 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| vote_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
Returns: VoteDeleteResponse
例

get_ban_users_from_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| sso | String | いいえ |
レスポンス
返却: GetBannedUsersFromCommentResponse
例

get_comment_ban_status 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
レスポンス
返り値: GetCommentBanStatusResponse
例

get_comment_children 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
レスポンス
返り値: ModerationApiChildCommentsResponse
例

get_count 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
戻り値: ModerationApiCountCommentsResponse
例

get_counts 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
レスポンス
戻り値: GetBannedUsersCountResponse
例

get_logs 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
レスポンス
戻り値: ModerationApiGetLogsResponse
例

get_manual_badges 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
レスポンス
戻り値: GetTenantManualBadgesResponse
例

get_manual_badges_for_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| badges_user_id | String | No | |
| comment_id | String | No | |
| sso | String | No |
応答
戻り値: GetUserManualBadgesResponse
例

get_moderation_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| include_email | bool | いいえ | |
| include_ip | bool | いいえ | |
| sso | String | いいえ |
レスポンス
戻り値: ModerationApiCommentResponse
例

get_moderation_comment_text 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
レスポンス
例

get_pre_ban_summary 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| include_by_user_id_and_email | bool | いいえ | |
| include_by_ip | bool | いいえ | |
| include_by_email_domain | bool | いいえ | |
| sso | String | いいえ |
レスポンス
返り値: PreBanSummary
例

get_search_comments_summary 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| value | String | いいえ | |
| filters | String | いいえ | |
| search_filters | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: ModerationCommentSearchResponse
例

get_search_pages 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| value | String | No | |
| sso | String | No |
レスポンス
戻り値: ModerationPageSearchResponse
例

get_search_sites 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| value | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: ModerationSiteSearchResponse
例

get_search_suggest 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | はい | |
| text_search | String | いいえ | |
| sso | String | いいえ |
レスポンス
返り値: ModerationSuggestResponse
例

get_search_users 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| value | String | No | |
| sso | String | No |
レスポンス
返却: ModerationUserSearchResponse
例

get_trust_factor 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| user_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: GetUserTrustFactorResponse
例

get_user_ban_preference 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| sso | String | No |
レスポンス
返り値: ApiModerateGetUserBanPreferencesResponse
例

get_user_internal_profile 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
戻り値: GetUserInternalProfileResponse
例

post_adjust_comment_votes 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| adjust_comment_votes_params | models::AdjustCommentVotesParams | はい | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
例

post_ban_user_from_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| ban_email | bool | No | |
| ban_email_domain | bool | No | |
| ban_ip | bool | No | |
| delete_all_users_comments | bool | No | |
| banned_until | String | No | |
| is_shadow_ban | bool | No | |
| update_id | String | No | |
| ban_reason | String | No | |
| sso | String | No |
レスポンス
例

post_ban_user_undo 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| ban_user_undo_params | models::BanUserUndoParams | はい | |
| sso | String | いいえ |
レスポンス
返却: ApiEmptyResponse
例

post_bulk_pre_ban_summary 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| bulk_pre_ban_params | models::BulkPreBanParams | Yes | |
| include_by_user_id_and_email | bool | No | |
| include_by_ip | bool | No | |
| include_by_email_domain | bool | No | |
| sso | String | No |
応答
Returns: BulkPreBanSummary
例

post_comments_by_ids 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comments_by_ids_params | models::CommentsByIdsParams | はい | |
| sso | String | いいえ |
応答
返却: ModerationApiChildCommentsResponse
例

post_flag_comment 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
返却: ApiEmptyResponse
例

post_remove_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
返却: PostRemoveCommentApiResponse
例

post_restore_deleted_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
Returns: ApiEmptyResponse
例

post_set_comment_approval_status 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| approved | bool | いいえ | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
戻り値: SetCommentApprovedResponse
例

post_set_comment_review_status 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| reviewed | bool | No | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
返り値: ApiEmptyResponse
例

post_set_comment_spam_status 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| spam | bool | いいえ | |
| perm_not_spam | bool | いいえ | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: ApiEmptyResponse
例

post_set_comment_text 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| set_comment_text_params | models::SetCommentTextParams | Yes | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
例

post_un_flag_comment 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | はい | |
| broadcast_id | String | いいえ | |
| sso | String | いいえ |
レスポンス
返却: ApiEmptyResponse
例

post_vote 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| direction | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
戻り値: VoteResponse
例

put_award_badge 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
レスポンス
例

put_close_thread 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| sso | String | No |
レスポンス
戻り値: ApiEmptyResponse
例

put_remove_badge 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| badge_id | String | Yes | |
| user_id | String | No | |
| comment_id | String | No | |
| broadcast_id | String | No | |
| sso | String | No |
応答
例

put_reopen_thread 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい | |
| sso | String | いいえ |
レスポンス
戻り値: ApiEmptyResponse
例

set_trust_factor 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| trust_factor | String | No | |
| sso | String | No |
応答
返り値: SetUserTrustFactorResponse
例

create_moderator 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_moderator_body | models::CreateModeratorBody | はい |
レスポンス
例

delete_moderator 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| send_email | String | いいえ |
レスポンス
返却: ApiEmptyResponse
例

get_moderator 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
例

get_moderators 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| skip | f64 | いいえ |
レスポンス
例

send_invite 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| from_name | String | Yes |
レスポンス
返却: ApiEmptyResponse
例

update_moderator 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_moderator_body | models::UpdateModeratorBody | はい |
レスポンス
返り値: ApiEmptyResponse
例

delete_notification_count 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
戻り値: ApiEmptyResponse
例

get_cached_notification_count 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
戻り値: GetCachedNotificationCountResponse
例

get_notification_count 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| url_id | String | No | |
| from_comment_id | String | No | |
| viewed | bool | No |
レスポンス
戻り値: GetNotificationCountResponse
例

get_notifications 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| user_id | String | いいえ | |
| url_id | String | いいえ | |
| from_comment_id | String | いいえ | |
| viewed | bool | いいえ | |
| skip | f64 | いいえ |
レスポンス
例

update_notification 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_notification_body | models::UpdateNotificationBody | はい | |
| user_id | String | いいえ |
返り値
Returns: ApiEmptyResponse
例

create_v1_page_react 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい | |
| title | String | いいえ |
レスポンス
返り値: CreateV1PageReact
例

create_v2_page_react 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes | |
| title | String | No |
レスポンス
返却: CreateV1PageReact
例

delete_v1_page_react 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
レスポンス
返却: CreateV1PageReact
例

delete_v2_page_react 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい | |
| id | String | はい |
レスポンス
戻り値: CreateV1PageReact
例

get_v1_page_likes 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
レスポンス
Returns: GetV1PageLikes
例

get_v2_page_react_users 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| id | String | Yes |
レスポンス
戻り値: GetV2PageReactUsersResponse
例

get_v2_page_reacts 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい |
レスポンス
戻り値: GetV2PageReacts
例

add_page 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_api_page_data | models::CreateApiPageData | Yes |
レスポンス
例

delete_page 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
例

get_offline_users 
ページ上の過去のコメント投稿者で、現在オンラインではないもの。displayNameでソートされます。
このエンドポイントは、/users/online を使い切った後に、"Members" セクションを表示するために使用します。
commenterName に対するカーソルページング: サーバーは部分的な {tenantId, urlId, commenterName} インデックスを afterName から $gt で前方に走査し、$skip のコストはかかりません。
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| after_name | String | No | |
| after_user_id | String | No |
レスポンス
例

get_online_users 
現在オンラインのページ閲覧者: 現在そのページにサブスクライブされている WebSocket セッションを持つユーザーです。 返却は anonCount と totalCount の合計です(部屋全体の購読者で、列挙しない匿名閲覧者も含みます)。
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい | |
| after_name | String | いいえ | |
| after_user_id | String | いいえ |
レスポンス
例

get_page_by_urlid 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
レスポンス
例

get_pages 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes |
レスポンス
返り値: GetPagesApiResponse
例

get_pages_public 
テナントのページを一覧取得します。FChat デスクトップクライアントが部屋リストを構築するために使用します。
enableFChat が各ページの解決されたカスタム設定で true であることが必要です。
SSO が必要なページは、リクエスト元ユーザーのグループアクセスに基づいてフィルタリングされます。
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| cursor | String | いいえ | |
| limit | i32 | いいえ | |
| q | String | いいえ | |
| sort_by | models::PagesSortBy | いいえ | |
| has_comments | bool | いいえ |
レスポンス
Returns: GetPublicPagesResponse
例

get_users_info 
Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.
Used by the comment widget to enrich users that just appeared via a presence event.
No page context: privacy is enforced uniformly (private profiles are masked).
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| ids | String | はい |
Response
Example

patch_page 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_api_page_data | models::UpdateApiPageData | はい |
応答
戻り値: PatchPageApiResponse
例

delete_pending_webhook_event 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
応答
Returns: ApiEmptyResponse
例

get_pending_webhook_event_count 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | No | |
| external_id | String | No | |
| event_type | String | No | |
| domain | String | No | |
| attempt_count_gt | f64 | No |
レスポンス
返却: GetPendingWebhookEventCountResponse
例

get_pending_webhook_events 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| comment_id | String | いいえ | |
| external_id | String | いいえ | |
| event_type | String | いいえ | |
| domain | String | いいえ | |
| attempt_count_gt | f64 | いいえ | |
| skip | f64 | いいえ |
レスポンス
返却: GetPendingWebhookEventsResponse
例

create_question_config 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_question_config_body | models::CreateQuestionConfigBody | Yes |
レスポンス
返却: CreateQuestionConfigResponse
例

delete_question_config 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
返却: ApiEmptyResponse
例

get_question_config 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
例

get_question_configs 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| skip | f64 | いいえ |
レスポンス
返却: GetQuestionConfigsResponse
例

update_question_config 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_question_config_body | models::UpdateQuestionConfigBody | Yes |
レスポンス
戻り値: ApiEmptyResponse
例

create_question_result 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_question_result_body | models::CreateQuestionResultBody | はい |
レスポンス
戻り値: CreateQuestionResultResponse
例

delete_question_result 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
応答
返り値: ApiEmptyResponse
例

get_question_result 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
返り値: GetQuestionResultResponse
例

get_question_results 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | No | |
| user_id | String | No | |
| start_date | String | No | |
| question_id | String | No | |
| question_ids | String | No | |
| skip | f64 | No |
レスポンス
返却: GetQuestionResultsResponse
例

update_question_result 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_question_result_body | models::UpdateQuestionResultBody | Yes |
レスポンス
返り値: ApiEmptyResponse
例

aggregate_question_results 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| question_id | String | いいえ | |
| question_ids | Vec | いいえ | |
| url_id | String | いいえ | |
| time_bucket | models::AggregateTimeBucket | いいえ | |
| start_date | chrono::DateTimechrono::FixedOffset | いいえ | |
| force_recalculate | bool | いいえ |
応答
返り値: AggregateQuestionResultsResponse
例

bulk_aggregate_question_results 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| bulk_aggregate_question_results_request | models::BulkAggregateQuestionResultsRequest | Yes | |
| force_recalculate | bool | No |
レスポンス
Returns: BulkAggregateQuestionResultsResponse
例

combine_comments_with_question_results 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| question_id | String | No | |
| question_ids | Vec | No | |
| url_id | String | No | |
| start_date | chrono::DateTimechrono::FixedOffset | No | |
| force_recalculate | bool | No | |
| min_value | f64 | No | |
| max_value | f64 | No | |
| limit | f64 | No |
レスポンス
返り値: CombineQuestionResultsWithCommentsResponse
例

add_sso_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_apisso_user_data | models::CreateApissoUserData | Yes |
レスポンス
例

delete_sso_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| delete_comments | bool | いいえ | |
| comment_delete_mode | String | いいえ |
レスポンス
例

get_sso_user_by_email 
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| String | はい |
Response
返却: GetSsoUserByEmailApiResponse
Example

get_sso_user_by_id 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
応答
戻り値: GetSsoUserByIdApiResponse
例

get_sso_users 
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| skip | i32 | No |
Response
戻り値: GetSsoUsersResponse
Example

patch_sso_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_apisso_user_data | models::UpdateApissoUserData | はい | |
| update_comments | bool | いいえ |
応答
例

put_sso_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_apisso_user_data | models::UpdateApissoUserData | Yes | |
| update_comments | bool | No |
レスポンス
例

create_subscription 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_api_user_subscription_data | models::CreateApiUserSubscriptionData | はい |
レスポンス
返却: CreateSubscriptionApiResponse
例

delete_subscription 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| user_id | String | いいえ |
レスポンス
返却: DeleteSubscriptionApiResponse
例

get_subscriptions 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| user_id | String | いいえ |
レスポンス
返却: GetSubscriptionsApiResponse
例

update_subscription 
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_api_user_subscription_data | models::UpdateApiUserSubscriptionData | はい | |
| user_id | String | いいえ |
Response
返却: UpdateSubscriptionApiResponse
Example

get_tenant_daily_usages 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| year_number | f64 | No | |
| month_number | f64 | No | |
| day_number | f64 | No | |
| skip | f64 | No |
レスポンス
戻り値: GetTenantDailyUsagesResponse
例

create_tenant_package 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_package_body | models::CreateTenantPackageBody | Yes |
応答
返り値: CreateTenantPackageResponse
例

delete_tenant_package 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
返却: ApiEmptyResponse
例

get_tenant_package 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
応答
例

get_tenant_packages 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| skip | f64 | いいえ |
レスポンス
例

replace_tenant_package 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| replace_tenant_package_body | models::ReplaceTenantPackageBody | Yes |
レスポンス
返却: ApiEmptyResponse
例

update_tenant_package 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_tenant_package_body | models::UpdateTenantPackageBody | Yes |
レスポンス
返却: ApiEmptyResponse
例

create_tenant_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_user_body | models::CreateTenantUserBody | Yes |
応答
例

delete_tenant_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| delete_comments | String | いいえ | |
| comment_delete_mode | String | いいえ |
応答
返却: ApiEmptyResponse
例

get_tenant_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
応答
例

get_tenant_users 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| skip | f64 | いいえ |
レスポンス
例

replace_tenant_user 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| replace_tenant_user_body | models::ReplaceTenantUserBody | Yes | |
| update_comments | String | No |
レスポンス
戻り値: ApiEmptyResponse
例

send_login_link 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| redirect_url | String | いいえ |
レスポンス
戻り値: ApiEmptyResponse
例

update_tenant_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_tenant_user_body | models::UpdateTenantUserBody | Yes | |
| update_comments | String | No |
レスポンス
戻り値: ApiEmptyResponse
例

create_tenant 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| create_tenant_body | models::CreateTenantBody | Yes |
レスポンス
例

delete_tenant 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| sure | String | いいえ |
レスポンス
返却: ApiEmptyResponse
例

get_tenant 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
レスポンス
戻り値: GetTenantResponse
例

get_tenants 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| meta | String | いいえ | |
| skip | f64 | いいえ |
レスポンス
戻り値: GetTenantsResponse
例

update_tenant 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| update_tenant_body | models::UpdateTenantBody | Yes |
レスポンス
返却: ApiEmptyResponse
例

change_ticket_state 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| user_id | String | はい | |
| id | String | はい | |
| change_ticket_state_body | models::ChangeTicketStateBody | はい |
レスポンス
返り値: ChangeTicketStateResponse
例

create_ticket 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | Yes | |
| create_ticket_body | models::CreateTicketBody | Yes |
レスポンス
Returns: CreateTicketResponse
例

get_ticket 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| user_id | String | No |
レスポンス
例

get_tickets 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| state | f64 | No | |
| skip | f64 | No | |
| limit | f64 | No |
レスポンス
戻り値: GetTicketsResponse
例

get_translations 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| namespace | String | はい | |
| component | String | はい | |
| locale | String | いいえ | |
| use_full_translation_ids | bool | いいえ |
レスポンス
例

upload_image 
画像をアップロードしてリサイズする
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| file | std::path::PathBuf | Yes | |
| size_preset | models::SizePreset | No | |
| url_id | String | No |
Response
Example

get_user_badge_progress_by_id 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
返却: ApiGetUserBadgeProgressResponse
例

get_user_badge_progress_by_user_id 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | Yes |
レスポンス
戻り値: ApiGetUserBadgeProgressResponse
例

get_user_badge_progress_list 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| limit | f64 | No | |
| skip | f64 | No |
レスポンス
戻り値: ApiGetUserBadgeProgressListResponse
例

create_user_badge 
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| create_user_badge_params | models::CreateUserBadgeParams | はい |
Response
返却: ApiCreateUserBadgeResponse
Example

delete_user_badge 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
例

get_user_badge 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい |
応答
例

get_user_badges 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| user_id | String | No | |
| badge_id | String | No | |
| displayed_on_comments | bool | No | |
| limit | f64 | No | |
| skip | f64 | No |
レスポンス
例

update_user_badge 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | はい | |
| id | String | はい | |
| update_user_badge_params | models::UpdateUserBadgeParams | はい |
レスポンス
例

get_user_notification_count 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| sso | String | いいえ |
レスポンス
戻り値: GetUserNotificationCountResponse
例

get_user_notifications 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
戻り値: GetMyNotificationsResponse
例

reset_user_notification_count 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| sso | String | いいえ |
レスポンス
返却: ResetUserNotificationsResponse
例

reset_user_notifications 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| after_id | String | No | |
| after_created_at | i64 | No | |
| unread_only | bool | No | |
| dm_only | bool | No | |
| no_dm | bool | No | |
| sso | String | No |
レスポンス
返却: ResetUserNotificationsResponse
例

update_user_notification_comment_subscription_status 
Enable or disable notifications for a specific comment.
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| notification_id | String | Yes | |
| opted_in_or_out | String | Yes | |
| comment_id | String | Yes | |
| sso | String | No |
レスポンス
返却: UpdateUserNotificationCommentSubscriptionStatusResponse
例

update_user_notification_page_subscription_status 
ページの通知を有効または無効にします。ユーザーがページを購読している場合、新しいルートコメントに対して通知が作成され、さらに
Parameters
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes | |
| url | String | Yes | |
| page_title | String | Yes | |
| subscribed_or_unsubscribed | String | Yes | |
| sso | String | No |
Response
返却: UpdateUserNotificationPageSubscriptionStatusResponse
例

update_user_notification_status 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| notification_id | String | はい | |
| new_status | String | はい | |
| sso | String | いいえ |
レスポンス
返却: UpdateUserNotificationStatusResponse
例

get_user_presence_statuses 
パラメータ
| Name | Type | Required | Description |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id_ws | String | はい | |
| user_ids | String | はい |
返り値
返り値: GetUserPresenceStatusesResponse
例

search_users 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| 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 |
レスポンス
例

get_user 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes |
レスポンス
返却: GetUserResponse
例

create_vote 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| comment_id | String | Yes | |
| direction | String | Yes | |
| user_id | String | No | |
| anon_user_id | String | No |
レスポンス
戻り値: VoteResponse
例

delete_vote 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| id | String | Yes | |
| edit_key | String | No |
レスポンス
戻り値: VoteDeleteResponse
例

get_votes 
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | Yes | |
| url_id | String | Yes |
レスポンス
戻り値: GetVotesResponse
例

get_votes_for_user 
パラメータ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| tenant_id | String | はい | |
| url_id | String | はい | |
| user_id | String | いいえ | |
| anon_user_id | String | いいえ |
レスポンス
例

ヘルプが必要ですか?
Rust SDK に関して問題が発生した場合や質問がある場合は、次のいずれかを行ってください:
貢献
貢献は大歓迎です! コントリビューションのガイドラインについては GitHubリポジトリ をご覧ください。