FastComments.com

FastComments PHP SDK

これは FastComments の公式 PHP SDK です。

FastComments API 用の公式 PHP SDK

リポジトリ

GitHubで表示


インストールと使用方法 Internal Link


要件

PHP 7.4 以降。 PHP 8.0 でも動作するはずです。

Composer

バインディングを Composer 経由でインストールするには、次を composer.json に追加してください:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/fastcomments/fastcomments-php.git"
    }
  ],
  "require": {
    "fastcomments/fastcomments-php": "*@dev"
  }
}

その後、composer install を実行してください

手動インストール

ファイルをダウンロードして autoload.php を読み込んでください:

<?php
require_once('/path/to/fastcomments/client/vendor/autoload.php');

はじめに Internal Link

まずinstallation procedureに従ってください。その後、以下を実行してください:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure API key authorization: api_key
// APIキー認証を設定: api_key
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには下の行のコメントを外してください
// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');


$apiInstance = new FastComments\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // カスタムHTTPクライアントを使用する場合は、`GuzzleHttp\ClientInterface`を実装するクライアントを渡してください。
    // This is optional, `GuzzleHttp\Client` will be used as default.
    // これは任意です。デフォルトでは`GuzzleHttp\Client`が使用されます。
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // string
$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams

try {
    $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
}

API クライアント Internal Link

The SDKは3つのAPIクライアントクラスを提供します:

  • DefaultApi - サーバー側で使用するためのAPIキー認証メソッドです。APIキーの設定方法はGetting Startedをご参照ください。
  • PublicApi - APIキーを必要としない公開メソッドで、ブラウザやモバイルアプリから安全に呼び出すことができます。
  • ModerationApi - ライブで高速なモデレーションAPIの包括的なスイートです。すべての ModerationApi メソッドは $sso パラメータを受け取り、SSOまたは FastComments.com のセッションクッキーで認証できます。

PublicApi の使用

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// 公開メソッドは API キーを必要としません。
$apiInstance = new FastComments\Client\Api\PublicApi(
    new GuzzleHttp\Client()
);
$tenant_id = 'tenant_id_example'; // 文字列
$url_id = 'url_id_example'; // 文字列

try {
    $result = $apiInstance->getCommentsPublic($tenant_id, $url_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
}

ModerationApi の使用

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new FastComments\Client\Api\ModerationApi(
    new GuzzleHttp\Client()
);
$sso = 'sso_example'; // 文字列 - モデレーターを認証する SSO ペイロード

try {
    $result = $apiInstance->getCount([
        'sso' => $sso,
    ]);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ModerationApi->getCount: ', $e->getMessage(), PHP_EOL;
}

モデル Internal Link

認可 Internal Link

API に定義されている認証スキーム:

api_key

  • 種類: APIキー
  • APIキーのパラメーター名: x-api-key
  • 場所: HTTP ヘッダー

作成者 Internal Link

support@fastcomments.com

集計 Internal Link

Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations.
異なる操作(例: sum、countDistinct、avg など)がサポートされています。

パラメータ

名前場所必須説明
tenantIdstringqueryはい
parentTenantIdstringqueryいいえ
includeStatsbooleanqueryいいえ

応答

戻り値: AggregateResponse

集計例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// APIキー認証を設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じてAPIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタムHTTPクライアントを使用したい場合、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
20$options = [
21 'parent_tenant_id' => 'parent_tenant_id_example', // string
22 'include_stats' => True, // bool
23];
24
25
26try {
27 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
31}
32

監査ログを取得 Internal Link

パラメータ

名前位置必須説明
tenantIdstringqueryはい
limitnumberqueryいいえ
skipnumberqueryいいえ
orderstringqueryいいえ
afternumberqueryいいえ
beforenumberqueryいいえ

レスポンス

Returns: GetAuditLogsResponse

getAuditLogs の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$options = [
21 'limit' => 3.4, // 浮動小数点数
22 'skip' => 3.4, // 浮動小数点数
23 'order' => new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(), // \FastComments\Client\Model\SORTDIR
24 'after' => 3.4, // 浮動小数点数
25 'before' => 3.4, // 浮動小数点数
26];
27
28
29try {
30 $result = $apiInstance->getAuditLogs($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
34}
35

公開ログアウト Internal Link


レスポンス

戻り値: APIEmptyResponse

logoutPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13
14
15try {
16 $result = $apiInstance->logoutPublic();
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->logoutPublic: ', $e->getMessage(), PHP_EOL;
20}
21

コメントからブロック Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Response

返却: BlockSuccess

Example

blockFromCommentPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->blockFromCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->blockFromCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

公開コメントのブロック解除 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Response

戻り値: UnblockSuccess

Example

unBlockCommentPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // 文字列
17
18
19try {
20 $result = $apiInstance->unBlockCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sss);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unBlockCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

ブロック済みコメントの確認 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
commentIdsstringqueryはいコメント ID のカンマ区切りリスト。
ssostringqueryいいえ

レスポンス

Returns: CheckBlockedCommentsResponse

checkedCommentsForBlocked の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_ids = 'comment_ids_example'; // 文字列 | コメント ID のカンマ区切りリスト。
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->checkedCommentsForBlocked($tenant_id, $comment_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->checkedCommentsForBlocked: ', $e->getMessage(), PHP_EOL;
23}
24

ユーザーをコメントからブロック Internal Link

Parameters

名前タイプ場所必須説明
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Response

戻り値: BlockSuccess

Example

blockUserFromComment 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

公開コメントを作成 Internal Link

パラメータ

名前種類場所必須説明
tenantIdstringpathはい
urlIdstringqueryはい
broadcastIdstringqueryはい
sessionIdstringqueryいいえ
ssostringqueryいいえ

レスポンス

Returns: SaveCommentsResponseWithPresence

createCommentPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$broadcast_id = 'broadcast_id_example'; // 文字列
16$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
17$options = [
18 'session_id' => 'session_id_example', // 文字列
19 'sso' => 'sso_example', // 文字列
20];
21
22
23try {
24 $result = $apiInstance->createCommentPublic($tenant_id, $url_id, $broadcast_id, $comment_data, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->createCommentPublic: ', $e->getMessage(), PHP_EOL;
28}
29

コメントを削除 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい
contextUserIdstringqueryいいえ
isLivebooleanqueryいいえ

レスポンス

戻り値: DeleteCommentResult

deleteComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// APIキー認証を設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じて、以下のコメントアウトを解除してAPIキーのプレフィックス(例: Bearer)を設定します
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 文字列
19$id = 'id_example'; // 文字列
20$options = [
21 'context_user_id' => 'context_user_id_example', // 文字列
22 'is_live' => True, // ブール
23];
24
25
26try {
27 $result = $apiInstance->deleteComment($tenant_id, $id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
31}
32

公開コメントを削除 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathはい
commentIdstringpathはい
broadcastIdstringqueryはい
editKeystringqueryいいえ
ssostringqueryいいえ

応答

戻り値: PublicAPIDeleteCommentResponse

deleteCommentPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用する場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$options = [
17 'edit_key' => 'edit_key_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->deleteCommentPublic($tenant_id, $comment_id, $broadcast_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->deleteCommentPublic: ', $e->getMessage(), PHP_EOL;
27}
28

コメントの投票を削除 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringpathYes
commentIdstringpathYes
voteIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

レスポンス

戻り値: VoteDeleteResponse

deleteCommentVote の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$vote_id = 'vote_id_example'; // string
16$url_id = 'url_id_example'; // string
17$broadcast_id = 'broadcast_id_example'; // string
18$options = [
19 'edit_key' => 'edit_key_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->deleteCommentVote($tenant_id, $comment_id, $vote_id, $url_id, $broadcast_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->deleteCommentVote: ', $e->getMessage(), PHP_EOL;
29}
30

コメントを通報 Internal Link

パラメータ

名前タイプロケーション必須説明
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

レスポンス

Returns: FlagCommentResponse

flagComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認可を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じてAPIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->flagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->flagComment: ', $e->getMessage(), PHP_EOL;
32}
33

コメントを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

返り値: APIGetCommentResponse

getComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して APIキー のプレフィックス (例: Bearer) を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getComment($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getComment: ', $e->getMessage(), PHP_EOL;
28}
29

コメント一覧を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes
pageintegerqueryNo
limitintegerqueryNo
skipintegerqueryNo
asTreebooleanqueryNo
skipChildrenintegerqueryNo
limitChildrenintegerqueryNo
maxTreeDepthintegerqueryNo
urlIdstringqueryNo
userIdstringqueryNo
anonUserIdstringqueryNo
contextUserIdstringqueryNo
hashTagstringqueryNo
parentIdstringqueryNo
directionstringqueryNo
fromDateintegerqueryNo
toDateintegerqueryNo

レスポンス

返却: APIGetCommentsResponse

getComments の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを外して API キーのプレフィックス(例: Bearer)を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'page' => 56, // int
22 'limit' => 56, // int
23 'skip' => 56, // int
24 'as_tree' => True, // bool
25 'skip_children' => 56, // int
26 'limit_children' => 56, // int
27 'max_tree_depth' => 56, // int
28 'url_id' => 'url_id_example', // string
29 'user_id' => 'user_id_example', // string
30 'anon_user_id' => 'anon_user_id_example', // string
31 'context_user_id' => 'context_user_id_example', // string
32 'hash_tag' => 'hash_tag_example', // string
33 'parent_id' => 'parent_id_example', // string
34 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
35 'from_date' => 56, // int
36 'to_date' => 56, // int
37];
38
39
40try {
41 $result = $apiInstance->getComments($tenant_id, $options);
42 print_r($result);
43} catch (Exception $e) {
44 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
45}
46

公開コメント一覧を取得 Internal Link

req tenantId urlId

パラメータ

名前場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes
pageintegerqueryNo
directionstringqueryNo
ssostringqueryNo
skipintegerqueryNo
skipChildrenintegerqueryNo
limitintegerqueryNo
limitChildrenintegerqueryNo
countChildrenbooleanqueryNo
fetchPageForCommentIdstringqueryNo
includeConfigbooleanqueryNo
countAllbooleanqueryNo
includei10nbooleanqueryNo
localestringqueryNo
modulesstringqueryNo
isCrawlerbooleanqueryNo
includeNotificationCountbooleanqueryNo
asTreebooleanqueryNo
maxTreeDepthintegerqueryNo
useFullTranslationIdsbooleanqueryNo
parentIdstringqueryNo
searchTextstringqueryNo
hashTagsarrayqueryNo
userIdstringqueryNo
customConfigStrstringqueryNo
afterCommentIdstringqueryNo
beforeCommentIdstringqueryNo

応答

戻り値: GetCommentsResponseWithPresencePublicComment

getCommentsPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'page' => 56, // 整数
17 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
18 'sso' => 'sso_example', // 文字列
19 'skip' => 56, // 整数
20 'skip_children' => 56, // 整数
21 'limit' => 56, // 整数
22 'limit_children' => 56, // 整数
23 'count_children' => True, // ブール
24 'fetch_page_for_comment_id' => 'fetch_page_for_comment_id_example', // 文字列
25 'include_config' => True, // ブール
26 'count_all' => True, // ブール
27 'includei10n' => True, // ブール
28 'locale' => 'locale_example', // 文字列
29 'modules' => 'modules_example', // 文字列
30 'is_crawler' => True, // ブール
31 'include_notification_count' => True, // ブール
32 'as_tree' => True, // ブール
33 'max_tree_depth' => 56, // 整数
34 'use_full_translation_ids' => True, // ブール
35 'parent_id' => 'parent_id_example', // 文字列
36 'search_text' => 'search_text_example', // 文字列
37 'hash_tags' => array('hash_tags_example'), // string[]
38 'user_id' => 'user_id_example', // 文字列
39 'custom_config_str' => 'custom_config_str_example', // 文字列
40 'after_comment_id' => 'after_comment_id_example', // 文字列
41 'before_comment_id' => 'before_comment_id_example', // 文字列
42];
43
44
45try {
46 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $options);
47 print_r($result);
48} catch (Exception $e) {
49 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
50}
51

コメント本文を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
editKeystringqueryNo
ssostringqueryNo

応答

返り値: PublicAPIGetCommentTextResponse

getCommentText の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用する場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'edit_key' => 'edit_key_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->getCommentText($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getCommentText: ', $e->getMessage(), PHP_EOL;
26}
27

コメント投票者のユーザー名を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
dirintegerqueryYes
ssostringqueryNo

レスポンス

Returns: GetCommentVoteUserNamesSuccessResponse

getCommentVoteUserNames 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$dir = 56; // int
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->getCommentVoteUserNames($tenant_id, $comment_id, $dir, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->getCommentVoteUserNames: ', $e->getMessage(), PHP_EOL;
24}
25

コメントをロック Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

レスポンス

返却: APIEmptyResponse

lockComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->lockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->lockComment: ', $e->getMessage(), PHP_EOL;
24}
25

コメントをピン留め Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

レスポンス

戻り値: ChangeCommentPinStatusResponse

pinComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$broadcast_id = 'broadcast_id_example'; // 文字列
16$sso = 'sso_example'; // 文字列
17
18
19try {
20 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
24}
25

コメントを保存 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

応答

Returns: APISaveCommentResponse

saveComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$create_comment_params = new \FastComments\Client\Model\CreateCommentParams(); // \FastComments\Client\Model\CreateCommentParams
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveComment($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveComment: ', $e->getMessage(), PHP_EOL;
34}
35

コメントを一括保存 Internal Link

パラメータ

名前ロケーション必須説明
tenantIdstringqueryはい
isLivebooleanqueryいいえ
doSpamCheckbooleanqueryいいえ
sendEmailsbooleanqueryいいえ
populateNotificationsbooleanqueryいいえ

レスポンス

戻り値: SaveCommentsBulkResponse

saveCommentsBulk の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$create_comment_params = array(new \FastComments\Client\Model\CreateCommentParams()); // \FastComments\Client\Model\CreateCommentParams[]
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveCommentsBulk($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveCommentsBulk: ', $e->getMessage(), PHP_EOL;
34}
35

コメント本文を設定 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

レスポンス

返却: PublicAPISetCommentTextResponse

setCommentText の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$comment_text_update_request = new \FastComments\Client\Model\CommentTextUpdateRequest(); // \FastComments\Client\Model\CommentTextUpdateRequest
17$options = [
18 'edit_key' => 'edit_key_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->setCommentText($tenant_id, $comment_id, $broadcast_id, $comment_text_update_request, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->setCommentText: ', $e->getMessage(), PHP_EOL;
28}
29

コメントからユーザーのブロック解除 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

応答

返却: UnblockSuccess

unBlockUserFromComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // 文字列
24 'anon_user_id' => 'anon_user_id_example', // 文字列
25];
26
27
28try {
29 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

コメントの通報を解除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

レスポンス

戻り値: FlagCommentResponse

unFlagComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプリフィックス(例: Bearer)を設定する場合は以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->unFlagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
32}
33

コメントのロック解除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

レスポンス

戻り値: APIEmptyResponse

unLockComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
24}
25

コメントのピン留め解除 Internal Link

Parameters

名前場所必須説明
tenantIdstringpathはい
commentIdstringpathはい
broadcastIdstringqueryはい
ssostringqueryいいえ

Response

返却: ChangeCommentPinStatusResponse

Example

unPinComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
24}
25

コメントを更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい
contextUserIdstringqueryいいえ
doSpamCheckbooleanqueryいいえ
isLivebooleanqueryいいえ

応答

戻り値: APIEmptyResponse

updateComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して API キーのプレフィックス (例: Bearer) を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$updatable_comment_params = new \FastComments\Client\Model\UpdatableCommentParams(); // \FastComments\Client\Model\UpdatableCommentParams
22$options = [
23 'context_user_id' => 'context_user_id_example', // string
24 'do_spam_check' => True, // bool
25 'is_live' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->updateComment($tenant_id, $id, $updatable_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL;
34}
35

コメントに投票 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
commentIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

応答

返却: VoteResponse

voteComment 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$url_id = 'url_id_example'; // string
16$broadcast_id = 'broadcast_id_example'; // string
17$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
18$options = [
19 'session_id' => 'session_id_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
29}
30

ユーザーのためのコメントを取得 Internal Link


パラメータ

NameTypeLocationRequiredDescription
userIdstringqueryNo
directionstringqueryNo
repliesToUserIdstringqueryNo
pagenumberqueryNo
includei10nbooleanqueryNo
localestringqueryNo
isCrawlerbooleanqueryNo

レスポンス

返却: GetCommentsForUserResponse

getCommentsForUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$options = [
14 'user_id' => 'user_id_example', // string
15 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
16 'replies_to_user_id' => 'replies_to_user_id_example', // string
17 'page' => 3.4, // float
18 'includei10n' => True, // bool
19 'locale' => 'locale_example', // string
20 'is_crawler' => True, // bool
21];
22
23
24try {
25 $result = $apiInstance->getCommentsForUser($options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getCommentsForUser: ', $e->getMessage(), PHP_EOL;
29}
30

ドメイン設定を追加 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryはい

レスポンス

返り値: AddDomainConfigResponse

addDomainConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して API キーのプレフィックス(例: Bearer)を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
21
22
23try {
24 $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

ドメイン設定を削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
domainstringpathYes

レスポンス

戻り値: DeleteDomainConfigResponse

deleteDomainConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// APIキー認証を設定: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 必要に応じて、以下のコメントを外してAPIキーのプレフィックス(例: Bearer)を設定してください
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // これはオプショナルです。デフォルトでは `GuzzleHttp\Client` が使用されます。
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23// 文字列
24$domain = 'domain_example'; // string
25// 文字列
26
27
28try {
29 $result = $apiInstance->deleteDomainConfig($tenant_id, $domain);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->deleteDomainConfig: ', $e->getMessage(), PHP_EOL;
33}
34

ドメイン設定を取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
domainstringpathYes

レスポンス

返却: GetDomainConfigResponse

getDomainConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// APIキー認証を設定: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// 必要に応じて、以下のコメントアウトを解除して API キーのプレフィックス(例: Bearer)を設定します
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24$domain = 'domain_example'; // string
25
26
27try {
28 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
32}
33

ドメイン設定一覧を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes

レスポンス

戻り値: GetDomainConfigsResponse

getDomainConfigs の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、API キーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20
21
22try {
23 $result = $apiInstance->getDomainConfigs($tenant_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getDomainConfigs: ', $e->getMessage(), PHP_EOL;
27}
28

ドメイン設定を部分更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
domainToUpdatestringpathYes

応答

返却: PatchDomainConfigResponse

patchDomainConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定する場合は下記のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$domain_to_update = 'domain_to_update_example'; // string
21$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
22
23
24try {
25 $result = $apiInstance->patchDomainConfig($tenant_id, $domain_to_update, $patch_domain_config_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

ドメイン設定を置換 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
domainToUpdatestringpathはい

レスポンス

戻り値: PutDomainConfigResponse

putDomainConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7// 必要なら、以下のコメントのコメントアウトを解除し、APIキーのプレフィックス (例: Bearer) を設定
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
13 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$domain_to_update = 'domain_to_update_example'; // string
20$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
21
22
23try {
24 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

メールテンプレートを作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい

レスポンス

返却: CreateEmailTemplateResponse

createEmailTemplate の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定します: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
21
22
23try {
24 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

メールテンプレートを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

応答

返却: APIEmptyResponse

deleteEmailTemplate の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

メールテンプレートのレンダーエラーを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes
errorIdstringpathYes

レスポンス

戻り値: APIEmptyResponse

deleteEmailTemplateRenderError の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定する場合は下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$error_id = 'error_id_example'; // 文字列
22
23
24try {
25 $result = $apiInstance->deleteEmailTemplateRenderError($tenant_id, $id, $error_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteEmailTemplateRenderError: ', $e->getMessage(), PHP_EOL;
29}
30

メールテンプレートを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

応答

返却: GetEmailTemplateResponse

getEmailTemplate 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

メールテンプレート定義を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes

レスポンス

返却: GetEmailTemplateDefinitionsResponse

getEmailTemplateDefinitions の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除して API キーのプレフィックス (例: Bearer) を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20
21
22try {
23 $result = $apiInstance->getEmailTemplateDefinitions($tenant_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getEmailTemplateDefinitions: ', $e->getMessage(), PHP_EOL;
27}
28

メールテンプレートのレンダーエラーを取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい
skipnumberqueryいいえ

応答

返り値: GetEmailTemplateRenderErrorsResponse

getEmailTemplateRenderErrors 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$skip = 3.4; // 浮動小数点数
22
23
24try {
25 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
29}
30

メールテンプレート一覧を取得 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
skipnumberqueryNo

Response

Returns: GetEmailTemplatesResponse

Example

getEmailTemplates の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API キー認証を設定: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 必要に応じて、API キーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$skip = 3.4; // float
24
25
26try {
27 $result = $apiInstance->getEmailTemplates($tenant_id, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
31}
32

メールテンプレートをレンダリング Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringクエリはい
localestringクエリいいえ

レスポンス

返却: RenderEmailTemplateResponse

renderEmailTemplate の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証の設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡します。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$render_email_template_body = new \FastComments\Client\Model\RenderEmailTemplateBody(); // \FastComments\Client\Model\RenderEmailTemplateBody
21$locale = 'locale_example'; // string
22
23
24try {
25 $result = $apiInstance->renderEmailTemplate($tenant_id, $render_email_template_body, $locale);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->renderEmailTemplate: ', $e->getMessage(), PHP_EOL;
29}
30

メールテンプレートを更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

戻り値: APIEmptyResponse

updateEmailTemplate の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、下記のコメントを解除して APIキーのプレフィックス(例: Bearer)を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
22
23
24try {
25 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
29}
30

イベントログを取得 Internal Link

リクエスト tenantId urlId userIdWS

パラメータ

名前場所必須説明
tenantIdstringpathはい
urlIdstringqueryはい
userIdWSstringqueryはい
startTimeintegerqueryはい
endTimeintegerqueryいいえ

レスポンス

返却: GetEventLogResponse

getEventLog の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$user_id_ws = 'user_id_ws_example'; // 文字列
16$start_time = 56; // int
17$end_time = 56; // int
18
19
20try {
21 $result = $apiInstance->getEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

グローバルイベントログを取得 Internal Link

req tenantId urlId userIdWS

パラメーター

名前タイプ場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

レスポンス

戻り値: GetEventLogResponse

getGlobalEventLog の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$user_id_ws = 'user_id_ws_example'; // 文字列
16$start_time = 56; // 整数
17$end_time = 56; // 整数
18
19
20try {
21 $result = $apiInstance->getGlobalEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getGlobalEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

フィード投稿を作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
broadcastIdstringqueryNo
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
skipDupCheckbooleanqueryNo

レスポンス

戻り値: CreateFeedPostsResponse

createFeedPost の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
21$options = [
22 'broadcast_id' => 'broadcast_id_example', // string
23 'is_live' => True, // bool
24 'do_spam_check' => True, // bool
25 'skip_dup_check' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->createFeedPost($tenant_id, $create_feed_post_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->createFeedPost: ', $e->getMessage(), PHP_EOL;
34}
35

公開フィード投稿を作成 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

応答

返却: CreateFeedPostResponse

createFeedPostPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡します。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->createFeedPostPublic($tenant_id, $create_feed_post_params, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->createFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

公開フィード投稿を削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

レスポンス

Returns: DeleteFeedPostPublicResponse

deleteFeedPostPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

フィード投稿一覧を取得 Internal Link


req tenantId afterId

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo

レスポンス

返却: GetFeedPostsResponse

getFeedPosts の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'after_id' => 'after_id_example', // string
22 'limit' => 56, // int
23 'tags' => array('tags_example'), // string[]
24];
25
26
27try {
28 $result = $apiInstance->getFeedPosts($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getFeedPosts: ', $e->getMessage(), PHP_EOL;
32}
33

公開フィード投稿一覧を取得 Internal Link

req tenantId afterId

パラメータ

名前場所必須説明
tenantIdstringpathはい
afterIdstringqueryいいえ
limitintegerqueryいいえ
tagsarrayqueryいいえ
ssostringqueryいいえ
isCrawlerbooleanqueryいいえ
includeUserInfobooleanqueryいいえ

レスポンス

戻り値: PublicFeedPostsResponse

getFeedPostsPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'after_id' => 'after_id_example', // 文字列
16 'limit' => 56, // 整数
17 'tags' => array('tags_example'), // 文字列配列
18 'sso' => 'sso_example', // 文字列
19 'is_crawler' => True, // ブール
20 'include_user_info' => True, // ブール
21];
22
23
24try {
25 $result = $apiInstance->getFeedPostsPublic($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getFeedPostsPublic: ', $e->getMessage(), PHP_EOL;
29}
30

フィード投稿の統計を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathYes
postIdsarrayqueryYes
ssostringqueryNo

応答

戻り値: FeedPostsStatsResponse

getFeedPostsStats の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡します。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_ids = array('post_ids_example'); // string[]
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getFeedPostsStats($tenant_id, $post_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getFeedPostsStats: ', $e->getMessage(), PHP_EOL;
23}
24

公開ユーザーのリアクションを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringパスはい
postIdsarrayクエリいいえ
ssostringクエリいいえ

応答

戻り値: UserReactsResponse

getUserReactsPublic 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、 `GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'post_ids' => array('post_ids_example'), // string[]
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getUserReactsPublic($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

フィード投稿に公開でリアクション Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringpathYes
postIdstringpathYes
isUndobooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

応答

戻り値: ReactFeedPostResponse

reactFeedPostPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$post_id = 'post_id_example'; // 文字列
15$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
16$options = [
17 'is_undo' => True, // ブール
18 'broadcast_id' => 'broadcast_id_example', // 文字列
19 'sso' => 'sso_example', // 文字列
20];
21
22
23try {
24 $result = $apiInstance->reactFeedPostPublic($tenant_id, $post_id, $react_body_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->reactFeedPostPublic: ', $e->getMessage(), PHP_EOL;
28}
29

フィード投稿を更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

返り値: APIEmptyResponse

updateFeedPost 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを解除して API キーのプレフィックス (例: Bearer) を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$feed_post = new \FastComments\Client\Model\FeedPost(); // \FastComments\Client\Model\FeedPost
22
23
24try {
25 $result = $apiInstance->updateFeedPost($tenant_id, $id, $feed_post);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateFeedPost: ', $e->getMessage(), PHP_EOL;
29}
30

公開フィード投稿を更新 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathはい
postIdstringpathはい
broadcastIdstringqueryいいえ
ssostringqueryいいえ

応答

戻り値: CreateFeedPostResponse

updateFeedPostPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->updateFeedPostPublic($tenant_id, $post_id, $update_feed_post_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->updateFeedPostPublic: ', $e->getMessage(), PHP_EOL;
27}
28

公開コメントを通報 Internal Link

パラメータ

名前ロケーション必須説明
tenantIdstringqueryYes
commentIdstringpathYes
isFlaggedbooleanqueryYes
ssostringqueryNo

レスポンス

Returns: APIEmptyResponse

flagCommentPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$is_flagged = True; // 真偽値
16$sso = 'sso_example'; // 文字列
17
18
19try {
20 $result = $apiInstance->flagCommentPublic($tenant_id, $comment_id, $is_flagged, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->flagCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

大きいGIFを取得 Internal Link

Parameters

名前場所必須説明
tenantIdstringpathはい
largeInternalURLSanitizedstringqueryはい

Response

返り値: GifGetLargeResponse

Example

getGifLarge の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$large_internal_url_sanitized = 'large_internal_url_sanitized_example'; // string
15
16
17try {
18 $result = $apiInstance->getGifLarge($tenant_id, $large_internal_url_sanitized);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getGifLarge: ', $e->getMessage(), PHP_EOL;
22}
23

GIF検索を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathはい
searchstringqueryはい
localestringqueryいいえ
ratingstringqueryいいえ
pagenumberqueryいいえ

応答

返却: GetGifsSearchResponse

getGifsSearch の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$search = 'search_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'rating' => 'rating_example', // string
18 'page' => 3.4, // float
19];
20
21
22try {
23 $result = $apiInstance->getGifsSearch($tenant_id, $search, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->getGifsSearch: ', $e->getMessage(), PHP_EOL;
27}
28

トレンドのGIFを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
localestringqueryNo
ratingstringqueryNo
pagenumberqueryNo

レスポンス

返却: GetGifsTrendingResponse

getGifsTrending の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'locale' => 'locale_example', // 文字列
16 'rating' => 'rating_example', // 文字列
17 'page' => 3.4, // 浮動小数点数
18];
19
20
21try {
22 $result = $apiInstance->getGifsTrending($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getGifsTrending: ', $e->getMessage(), PHP_EOL;
26}
27

ハッシュタグを追加 Internal Link

パラメータ

名前種類場所必須説明
tenantIdstringqueryはい

レスポンス

返却: CreateHashTagResponse

addHashTag の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、下のコメントを解除してAPIキーのプレフィックス(例: Bearer)を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_hash_tag_body = new \FastComments\Client\Model\CreateHashTagBody(); // \FastComments\Client\Model\CreateHashTagBody
21
22
23try {
24 $result = $apiInstance->addHashTag($tenant_id, $create_hash_tag_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTag: ', $e->getMessage(), PHP_EOL;
28}
29

ハッシュタグを一括追加 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes

Response

返却: BulkCreateHashTagsResponse

Example

addHashTagsBulk の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API キー認証を設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じて、以下のコメントを外して API キーのプレフィックス (例: Bearer) を設定
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 文字列
19$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
20
21
22try {
23 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
27}
28

ハッシュタグを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
tagstringpathはい

応答

返却: APIEmptyResponse

deleteHashTag の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス (例: Bearer) を設定する場合は以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$tag = 'tag_example'; // string
21$delete_hash_tag_request_body = new \FastComments\Client\Model\DeleteHashTagRequestBody(); // \FastComments\Client\Model\DeleteHashTagRequestBody
22
23
24try {
25 $result = $apiInstance->deleteHashTag($tenant_id, $tag, $delete_hash_tag_request_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'DefaultApi->deleteHashTag の呼び出し時の例外: ', $e->getMessage(), PHP_EOL;
29}
30

ハッシュタグ一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
pagenumberqueryいいえ

レスポンス

返却: GetHashTagsResponse

getHashTags の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$page = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getHashTags($tenant_id, $page);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getHashTags: ', $e->getMessage(), PHP_EOL;
28}
29

ハッシュタグを部分更新 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringクエリはい
tagstringパスはい

応答

Returns: UpdateHashTagResponse

patchHashTag の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス (例: Bearer) を設定するには、下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$tag = 'tag_example'; // string
21$update_hash_tag_body = new \FastComments\Client\Model\UpdateHashTagBody(); // \FastComments\Client\Model\UpdateHashTagBody
22
23
24try {
25 $result = $apiInstance->patchHashTag($tenant_id, $tag, $update_hash_tag_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

モデレーション投票を削除 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
voteIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

応答

戻り値: VoteDeleteResponse

deleteModerationVote の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$vote_id = 'vote_id_example'; // 文字列
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // 文字列
18 'sso' => 'sso_example', // 文字列
19];
20
21
22try {
23 $result = $apiInstance->deleteModerationVote($tenant_id, $comment_id, $vote_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->deleteModerationVote: ', $e->getMessage(), PHP_EOL;
27}
28

APIコメントを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
pagenumberqueryNo
countnumberqueryNo
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
demobooleanqueryNo
ssostringqueryNo

レスポンス

返却: ModerationAPIGetCommentsResponse

getApiComments の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'page' => 3.4, // float
16 'count' => 3.4, // float
17 'text_search' => 'text_search_example', // string
18 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
19 'filters' => 'filters_example', // string
20 'search_filters' => 'search_filters_example', // string
21 'sorts' => 'sorts_example', // string
22 'demo' => True, // bool
23 'sso' => 'sso_example', // string
24];
25
26
27try {
28 $result = $apiInstance->getApiComments($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling ModerationApi->getApiComments: ', $e->getMessage(), PHP_EOL;
32}
33

APIエクスポート状況を取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
batchJobIdstringqueryNo
ssostringqueryNo

レスポンス

返却: ModerationExportStatusResponse

getApiExportStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'batch_job_id' => 'batch_job_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getApiExportStatus($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getApiExportStatus: ', $e->getMessage(), PHP_EOL;
25}
26

API ID を取得 Internal Link


パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
afterIdstringqueryNo
demobooleanqueryNo
ssostringqueryNo

レスポンス

戻り値: ModerationAPIGetCommentIdsResponse

getApiIds の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filters' => 'filters_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'after_id' => 'after_id_example', // string
20 'demo' => True, // bool
21 'sso' => 'sso_example', // string
22];
23
24
25try {
26 $result = $apiInstance->getApiIds($tenant_id, $options);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling ModerationApi->getApiIds: ', $e->getMessage(), PHP_EOL;
30}
31

コメントからの禁止ユーザーを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

応答

戻り値: GetBannedUsersFromCommentResponse

getBanUsersFromComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->getBanUsersFromComment($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getBanUsersFromComment: ', $e->getMessage(), PHP_EOL;
23}
24

コメントの禁止状況を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

レスポンス

返却: GetCommentBanStatusResponse

getCommentBanStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡します。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->getCommentBanStatus($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentBanStatus: ', $e->getMessage(), PHP_EOL;
23}
24

コメントの子コメントを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

応答

返り値: ModerationAPIChildCommentsResponse

getCommentChildren の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getCommentChildren($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentChildren: ', $e->getMessage(), PHP_EOL;
23}
24

カウントを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filterstringqueryNo
searchFiltersstringqueryNo
demobooleanqueryNo
ssostringqueryNo

レスポンス

戻り値: ModerationAPICountCommentsResponse

getCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'text_search' => 'text_search_example', // 文字列
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // 文字列
17 'filter' => 'filter_example', // 文字列
18 'search_filters' => 'search_filters_example', // 文字列
19 'demo' => True, // ブール
20 'sso' => 'sso_example', // 文字列
21];
22
23
24try {
25 $result = $apiInstance->getCount($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->getCount: ', $e->getMessage(), PHP_EOL;
29}
30

複数のカウントを取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
ssostringqueryNo

レスポンス

戻り値: GetBannedUsersCountResponse

getCounts の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getCounts($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getCounts: ', $e->getMessage(), PHP_EOL;
22}
23

ログを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
commentIdstringpathはい
ssostringqueryいいえ

レスポンス

返却: ModerationAPIGetLogsResponse

getLogs の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->getLogs($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getLogs: ', $e->getMessage(), PHP_EOL;
23}
24

手動バッジを取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes
ssostringqueryNo

レスポンス

戻り値: GetTenantManualBadgesResponse

getManualBadges の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getManualBadges($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getManualBadges: ', $e->getMessage(), PHP_EOL;
22}
23

ユーザーのための手動バッジを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
badgesUserIdstringqueryNo
commentIdstringqueryNo
ssostringqueryNo

応答

Returns: GetUserManualBadgesResponse

getManualBadgesForUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'badges_user_id' => 'badges_user_id_example', // 文字列
16 'comment_id' => 'comment_id_example', // 文字列
17 'sso' => 'sso_example', // 文字列
18];
19
20
21try {
22 $result = $apiInstance->getManualBadgesForUser($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->getManualBadgesForUser: ', $e->getMessage(), PHP_EOL;
26}
27

モデレーション対象のコメントを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
includeEmailbooleanqueryNo
includeIPbooleanqueryNo
ssostringqueryNo

レスポンス

返り値: ModerationAPICommentResponse

getModerationComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$options = [
16 'include_email' => True, // ブール
17 'include_ip' => True, // ブール
18 'sso' => 'sso_example', // 文字列
19];
20
21
22try {
23 $result = $apiInstance->getModerationComment($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getModerationComment: ', $e->getMessage(), PHP_EOL;
27}
28

モデレーションコメント本文を取得 Internal Link

Parameters

名前タイプ場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Response

返却: GetCommentTextResponse

Example

getModerationCommentText の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->getModerationCommentText($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getModerationCommentText: ', $e->getMessage(), PHP_EOL;
23}
24

事前禁止サマリーを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

レスポンス

返却: PreBanSummary

getPreBanSummary の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$options = [
16 'include_by_user_id_and_email' => True, // 真偽値
17 'include_by_ip' => True, // 真偽値
18 'include_by_email_domain' => True, // 真偽値
19 'sso' => 'sso_example', // 文字列
20];
21
22
23try {
24 $result = $apiInstance->getPreBanSummary($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->getPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

検索コメントのサマリーを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
valuestringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
ssostringqueryNo

レスポンス

戻り値: ModerationCommentSearchResponse

getSearchCommentsSummary の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'filters' => 'filters_example', // string
17 'search_filters' => 'search_filters_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->getSearchCommentsSummary($tenant_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getSearchCommentsSummary: ', $e->getMessage(), PHP_EOL;
27}
28

検索ページを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
valuestringqueryいいえ
ssostringqueryいいえ

レスポンス

戻り値: ModerationPageSearchResponse

getSearchPages の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchPages($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchPages: ', $e->getMessage(), PHP_EOL;
25}
26

検索サイトを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

レスポンス

返却: ModerationSiteSearchResponse

getSearchSites の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'value' => 'value_example', // 文字列
16 'sso' => 'sso_example', // 文字列
17];
18
19
20try {
21 $result = $apiInstance->getSearchSites($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSites: ', $e->getMessage(), PHP_EOL;
25}
26

検索サジェストを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
text-searchstringqueryいいえ
ssostringqueryいいえ

レスポンス

返却: ModerationSuggestResponse

getSearchSuggest の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchSuggest($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSuggest: ', $e->getMessage(), PHP_EOL;
25}
26

検索ユーザーを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
valuestringqueryいいえ
ssostringqueryいいえ

レスポンス

戻り値: ModerationUserSearchResponse

getSearchUsers の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchUsers($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchUsers: ', $e->getMessage(), PHP_EOL;
25}
26

信頼係数を取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryNo
ssostringqueryNo

レスポンス

返却: GetUserTrustFactorResponse

getTrustFactor の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // 省略可能です。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'user_id' => 'user_id_example', // 文字列
16 'sso' => 'sso_example', // 文字列
17];
18
19
20try {
21 $result = $apiInstance->getTrustFactor($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getTrustFactor: ', $e->getMessage(), PHP_EOL;
25}
26

ユーザーの禁止設定を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
ssostringqueryNo

レスポンス

戻り値: APIModerateGetUserBanPreferencesResponse

getUserBanPreference の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$sso = 'sso_example'; // 文字列
15
16
17try {
18 $result = $apiInstance->getUserBanPreference($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getUserBanPreference: ', $e->getMessage(), PHP_EOL;
22}
23

ユーザー内部プロファイルを取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringqueryNo
ssostringqueryNo

レスポンス

返却: GetUserInternalProfileResponse

getUserInternalProfile の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これは任意で、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'comment_id' => 'comment_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getUserInternalProfile($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getUserInternalProfile: ', $e->getMessage(), PHP_EOL;
25}
26

コメント投票の調整を投稿 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringクエリはい
commentIdstringパスはい
broadcastIdstringクエリいいえ
ssostringクエリいいえ

レスポンス

返却: AdjustVotesResponse

postAdjustCommentVotes の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$adjust_comment_votes_params = new \FastComments\Client\Model\AdjustCommentVotesParams(); // \FastComments\Client\Model\AdjustCommentVotesParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // 文字列
18 'sso' => 'sso_example', // 文字列
19];
20
21
22try {
23 $result = $apiInstance->postAdjustCommentVotes($tenant_id, $comment_id, $adjust_comment_votes_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postAdjustCommentVotes: ', $e->getMessage(), PHP_EOL;
27}
28

APIエクスポートを投稿 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
ssostringqueryNo

レスポンス

戻り値: ModerationExportResponse

postApiExport の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'text_search' => 'text_search_example', // 文字列
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // 文字列
17 'filters' => 'filters_example', // 文字列
18 'search_filters' => 'search_filters_example', // 文字列
19 'sorts' => 'sorts_example', // 文字列
20 'sso' => 'sso_example', // 文字列
21];
22
23
24try {
25 $result = $apiInstance->postApiExport($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->postApiExport: ', $e->getMessage(), PHP_EOL;
29}
30

コメントからユーザーを禁止にする Internal Link

パラメーター

名前タイプ場所必須説明
tenantIdstringqueryはい
commentIdstringpathはい
banEmailbooleanqueryいいえ
banEmailDomainbooleanqueryいいえ
banIPbooleanqueryいいえ
deleteAllUsersCommentsbooleanqueryいいえ
bannedUntilstringqueryいいえ
isShadowBanbooleanqueryいいえ
updateIdstringqueryいいえ
banReasonstringqueryいいえ
ssostringqueryいいえ

応答

戻り値: BanUserFromCommentResult

postBanUserFromComment 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$options = [
16 'ban_email' => True, // ブール
17 'ban_email_domain' => True, // ブール
18 'ban_ip' => True, // ブール
19 'delete_all_users_comments' => True, // ブール
20 'banned_until' => 'banned_until_example', // 文字列
21 'is_shadow_ban' => True, // ブール
22 'update_id' => 'update_id_example', // 文字列
23 'ban_reason' => 'ban_reason_example', // 文字列
24 'sso' => 'sso_example', // 文字列
25];
26
27
28try {
29 $result = $apiInstance->postBanUserFromComment($tenant_id, $comment_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling ModerationApi->postBanUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

ユーザー禁止を元に戻す Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
ssostringqueryいいえ

レスポンス

返却: APIEmptyResponse

postBanUserUndo の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$ban_user_undo_params = new \FastComments\Client\Model\BanUserUndoParams(); // \FastComments\Client\Model\BanUserUndoParams
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->postBanUserUndo($tenant_id, $ban_user_undo_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postBanUserUndo: ', $e->getMessage(), PHP_EOL;
23}
24

一括事前禁止サマリーを投稿 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

レスポンス

返り値: BulkPreBanSummary

postBulkPreBanSummary の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$bulk_pre_ban_params = new \FastComments\Client\Model\BulkPreBanParams(); // \FastComments\Client\Model\BulkPreBanParams
15$options = [
16 'include_by_user_id_and_email' => True, // bool
17 'include_by_ip' => True, // bool
18 'include_by_email_domain' => True, // bool
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->postBulkPreBanSummary($tenant_id, $bulk_pre_ban_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postBulkPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

IDによるコメント群を投稿 Internal Link

パラメータ

名前場所必須説明
tenantIdstringクエリはい
ssostringクエリいいえ

応答

Returns: ModerationAPIChildCommentsResponse

postCommentsByIds 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comments_by_ids_params = new \FastComments\Client\Model\CommentsByIdsParams(); // \FastComments\Client\Model\CommentsByIdsParams
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->postCommentsByIds($tenant_id, $comments_by_ids_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postCommentsByIds: ', $e->getMessage(), PHP_EOL;
23}
24

コメントを通報(投稿) Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryはい
commentIdstringpathはい
broadcastIdstringqueryいいえ
ssostringqueryいいえ

Response

返却: APIEmptyResponse

Example

postFlagComment 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

コメント削除を投稿 Internal Link

Parameters

名前タイプ場所必須説明
tenantIdstringqueryはい
commentIdstringpathはい
broadcastIdstringqueryいいえ
ssostringqueryいいえ

レスポンス

返却: PostRemoveCommentApiResponse

postRemoveComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postRemoveComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRemoveComment: ', $e->getMessage(), PHP_EOL;
26}
27

削除済みコメントを復元(投稿) Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

応答

返り値: APIEmptyResponse

postRestoreDeletedComment 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // 文字列
17 'sso' => 'sso_example', // 文字列
18];
19
20
21try {
22 $result = $apiInstance->postRestoreDeletedComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRestoreDeletedComment: ', $e->getMessage(), PHP_EOL;
26}
27

コメント承認ステータスを設定(投稿) Internal Link

パラメータ

名前ロケーション必須説明
tenantIdstringqueryはい
commentIdstringpathはい
approvedbooleanqueryいいえ
broadcastIdstringqueryいいえ
ssostringqueryいいえ

レスポンス

返却: SetCommentApprovedResponse

postSetCommentApprovalStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'approved' => True, // bool
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentApprovalStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentApprovalStatus: ', $e->getMessage(), PHP_EOL;
27}
28

コメントレビュー状態を設定(投稿) Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
reviewedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

応答

返却: APIEmptyResponse

postSetCommentReviewStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡します。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$options = [
16 'reviewed' => True, // ブール
17 'broadcast_id' => 'broadcast_id_example', // 文字列
18 'sso' => 'sso_example', // 文字列
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentReviewStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentReviewStatus: ', $e->getMessage(), PHP_EOL;
27}
28

コメントスパム状態を設定(投稿) Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
spambooleanqueryNo
permNotSpambooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

レスポンス

返却: APIEmptyResponse

postSetCommentSpamStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'spam' => True, // bool
17 'perm_not_spam' => True, // bool
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->postSetCommentSpamStatus($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postSetCommentSpamStatus: ', $e->getMessage(), PHP_EOL;
28}
29

コメント本文を設定(投稿) Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

レスポンス

返り値: SetCommentTextResponse

postSetCommentText 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$comment_id = 'comment_id_example'; // 文字列
15$set_comment_text_params = new \FastComments\Client\Model\SetCommentTextParams(); // \FastComments\Client\Model\SetCommentTextParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // 文字列
18 'sso' => 'sso_example', // 文字列
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentText($tenant_id, $comment_id, $set_comment_text_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'ModerationApi->postSetCommentText の呼び出し時の例外: ', $e->getMessage(), PHP_EOL;
27}
28

通報解除を投稿 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Response

Returns: APIEmptyResponse

Example

postUnFlagComment の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡します。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postUnFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postUnFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

投票を投稿 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringpathYes
directionstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

レスポンス

戻り値: VoteResponse

postVote の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'direction' => 'direction_example', // string
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postVote($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postVote: ', $e->getMessage(), PHP_EOL;
27}
28

バッジを付与(PUT) Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
badgeIdstringqueryはい
userIdstringqueryいいえ
commentIdstringqueryいいえ
broadcastIdstringqueryいいえ
ssostringqueryいいえ

レスポンス

返却: AwardUserBadgeResponse

putAwardBadge 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$badge_id = 'badge_id_example'; // string
15$options = [
16 'user_id' => 'user_id_example', // string
17 'comment_id' => 'comment_id_example', // string
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->putAwardBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putAwardBadge: ', $e->getMessage(), PHP_EOL;
28}
29

スレッドを閉鎖(PUT) Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
urlIdstringqueryはい
ssostringqueryいいえ

応答

返却: APIEmptyResponse

putCloseThread の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->putCloseThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putCloseThread: ', $e->getMessage(), PHP_EOL;
23}
24

バッジを削除(PUT) Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

レスポンス

戻り値: RemoveUserBadgeResponse

putRemoveBadge の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$badge_id = 'badge_id_example'; // string
15$options = [
16 'user_id' => 'user_id_example', // string
17 'comment_id' => 'comment_id_example', // string
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->putRemoveBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putRemoveBadge: ', $e->getMessage(), PHP_EOL;
28}
29

スレッドを再開(PUT) Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
urlIdstringqueryはい
ssostringqueryいいえ

応答

返却: APIEmptyResponse

putReopenThread の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$sso = 'sso_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->putReopenThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putReopenThread: ', $e->getMessage(), PHP_EOL;
23}
24

信頼係数を設定 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
userIdstringqueryNo
trustFactorstringqueryNo
ssostringqueryNo

レスポンス

戻り値: SetUserTrustFactorResponse

setTrustFactor の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
8// これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
9$apiInstance = new FastComments\Client\Api\ModerationApi(
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 'trust_factor' => 'trust_factor_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->setTrustFactor($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->setTrustFactor: ', $e->getMessage(), PHP_EOL;
26}
27

モデレーターを作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes

レスポンス

返り値: CreateModeratorResponse

createModerator の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証の設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じてAPIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$create_moderator_body = new \FastComments\Client\Model\CreateModeratorBody(); // \FastComments\Client\Model\CreateModeratorBody
21
22
23try {
24 $result = $apiInstance->createModerator($tenant_id, $create_moderator_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createModerator: ', $e->getMessage(), PHP_EOL;
28}
29

モデレーターを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい
sendEmailstringqueryいいえ

レスポンス

返却: APIEmptyResponse

deleteModerator の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて下のコメントを外し、APIキーのプレフィックス(例: Bearer)を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$send_email = 'send_email_example'; // 文字列
22
23
24try {
25 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
29}
30

モデレーターを取得 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

Response

戻り値: GetModeratorResponse

Example

getModerator の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して API キーのプレフィックス(例: Bearer)を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->getModerator($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerator: ', $e->getMessage(), PHP_EOL;
28}
29

モデレーター一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
skipnumberqueryNo

レスポンス

返却: GetModeratorsResponse

getModerators の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定する場合は以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これは任意です。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$skip = 3.4; // 浮動小数点
21
22
23try {
24 $result = $apiInstance->getModerators($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerators: ', $e->getMessage(), PHP_EOL;
28}
29

招待を送信 Internal Link


パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい
fromNamestringqueryはい

応答

返却: APIEmptyResponse

sendInvite の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して API キーのプレフィックス(例: Bearer)を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$from_name = 'from_name_example'; // string
22
23
24try {
25 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
29}
30

モデレーターを更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

レスポンス

返却: APIEmptyResponse

updateModerator の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// APIキー認証を設定: api_key
6// 必要に応じて、以下のコメントを外して API キーのプレフィックス (例: Bearer) を設定
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
12 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // 文字列
18$id = 'id_example'; // 文字列
19$update_moderator_body = new \FastComments\Client\Model\UpdateModeratorBody(); // \FastComments\Client\Model\UpdateModeratorBody
20
21
22try {
23 $result = $apiInstance->updateModerator($tenant_id, $id, $update_moderator_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateModerator: ', $e->getMessage(), PHP_EOL;
27}
28

通知数を削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

応答

返却: APIEmptyResponse

deleteNotificationCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

キャッシュされた通知数を取得 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

Response

返り値: GetCachedNotificationCountResponse

getCachedNotificationCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、下のコメントアウトを解除して APIキーのプレフィックス(例: Bearer)を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getCachedNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getCachedNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

通知数を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo

レスポンス

返却: GetNotificationCountResponse

getNotificationCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認可を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じてAPIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$options = [
21 'user_id' => 'user_id_example', // 文字列
22 'url_id' => 'url_id_example', // 文字列
23 'from_comment_id' => 'from_comment_id_example', // 文字列
24 'viewed' => True, // ブール
25 'type' => 'type_example', // 文字列
26];
27
28
29try {
30 $result = $apiInstance->getNotificationCount($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
34}
35

通知一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
userIdstringqueryいいえ
urlIdstringqueryいいえ
fromCommentIdstringqueryいいえ
viewedbooleanqueryいいえ
typestringqueryいいえ
skipnumberqueryいいえ

応答

戻り値: GetNotificationsResponse

getNotifications の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認可を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用する場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // 文字列
22 'url_id' => 'url_id_example', // 文字列
23 'from_comment_id' => 'from_comment_id_example', // 文字列
24 'viewed' => True, // ブール
25 'type' => 'type_example', // 文字列
26 'skip' => 3.4, // 浮動小数点
27];
28
29
30try {
31 $result = $apiInstance->getNotifications($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
35}
36

通知を更新 Internal Link

パラメータ

名前タイプロケーション必須説明
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

レスポンス

返却: APIEmptyResponse

updateNotification の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API キー認証を設定: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 必要に応じて下の行のコメントを外し、プレフィックス(例: Bearer)を設定します
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // 省略可能です。デフォルトでは `GuzzleHttp\Client` が使用されます。
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // 文字列
23$id = 'id_example'; // 文字列
24$update_notification_body = new \FastComments\Client\Model\UpdateNotificationBody(); // \FastComments\Client\Model\UpdateNotificationBody
25$user_id = 'user_id_example'; // 文字列
26
27
28try {
29 $result = $apiInstance->updateNotification($tenant_id, $id, $update_notification_body, $user_id);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->updateNotification: ', $e->getMessage(), PHP_EOL;
33}
34

V1 ページリアクションを作成 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathはい
urlIdstringqueryはい
titlestringqueryいいえ

レスポンス

Returns: CreateV1PageReact

createV1PageReact 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、 `GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$title = 'title_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->createV1PageReact($tenant_id, $url_id, $title);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->createV1PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

V2 ページリアクションを作成 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes
titlestringqueryNo

レスポンス

戻り値: CreateV1PageReact

createV2PageReact の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$id = 'id_example'; // 文字列
16$title = 'title_example'; // 文字列
17
18
19try {
20 $result = $apiInstance->createV2PageReact($tenant_id, $url_id, $id, $title);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->createV2PageReact: ', $e->getMessage(), PHP_EOL;
24}
25

V1 ページリアクションを削除 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringpathはい
urlIdstringqueryはい

レスポンス

返却: CreateV1PageReact

deleteV1PageReact の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
9 // This is optional, `GuzzleHttp\Client` will be used as default.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15
16
17try {
18 $result = $apiInstance->deleteV1PageReact($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->deleteV1PageReact: ', $e->getMessage(), PHP_EOL;
22}
23

V2 ページリアクションを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

レスポンス

戻り値: CreateV1PageReact

deleteV2PageReact 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
9 // This is optional, `GuzzleHttp\Client` will be used as default.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16
17
18try {
19 $result = $apiInstance->deleteV2PageReact($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->deleteV2PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

V1 ページいいねを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes

応答

返却: GetV1PageLikes

getV1PageLikes の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15
16
17try {
18 $result = $apiInstance->getV1PageLikes($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV1PageLikes: ', $e->getMessage(), PHP_EOL;
22}
23

V2 ページリアクションを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes

レスポンス

戻り値: GetV2PageReacts

getV2PageReacts 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15
16
17try {
18 $result = $apiInstance->getV2PageReacts($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV2PageReacts: ', $e->getMessage(), PHP_EOL;
22}
23

V2 ページリアクションのユーザーを取得 Internal Link

Parameters

名前タイプ場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

Response

戻り値: GetV2PageReactUsersResponse

Example

getV2PageReactUsers の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id = 'url_id_example'; // 文字列
15$id = 'id_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->getV2PageReactUsers($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getV2PageReactUsers: ', $e->getMessage(), PHP_EOL;
23}
24

ページを追加 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい

戻り値

戻り値: AddPageAPIResponse

addPage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_api_page_data = new \FastComments\Client\Model\CreateAPIPageData(); // \FastComments\Client\Model\CreateAPIPageData
21
22
23try {
24 $result = $apiInstance->addPage($tenant_id, $create_api_page_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addPage: ', $e->getMessage(), PHP_EOL;
28}
29

ページを削除 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

Response

返却: DeletePageAPIResponse

Example

deletePage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// APIキー認証を設定: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25
26
27try {
28 $result = $apiInstance->deletePage($tenant_id, $id);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deletePage: ', $e->getMessage(), PHP_EOL;
32}
33

オフラインユーザーを取得 Internal Link

Past commenters on the page who are NOT currently online. Sorted by displayName.
ページ上で過去にコメントしたが、現在オンラインではないユーザー。displayNameでソートされます。

Use this after exhausting /users/online to render a "Members" section.
/users/online をすべて使い切った後に、"Members" セクションを表示するために使用します。

Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost.
commenterName に対するカーソルページング: サーバーは部分的な {tenantId, urlId, commenterName} インデックスを afterName 以降へ $gt で進めます。$skip のコストはかかりません。

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesページ URL 識別子(サーバー側でクリーンアップされたもの)。
afterNamestringqueryNoカーソル: 前回のレスポンスから nextAfterName を渡します。
afterUserIdstringqueryNoカーソルのタイブレーカー: 前回のレスポンスから nextAfterUserId を渡します。afterName が設定されている場合に必要で、名前が同じ場合にエントリが落ちないようにします。

Response

Returns: PageUsersOfflineResponse

Example

getOfflineUsers の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションです。デフォルトで `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | ページ URL 識別子(サーバー側でクリーンアップされたもの)。
15$options = [
16 'after_name' => 'after_name_example', // string | カーソル: 前回のレスポンスから `nextAfterName` を渡します。
17 'after_user_id' => 'after_user_id_example', // string | カーソルのタイブレーカー: 前回のレスポンスから `nextAfterUserId` を渡します。`afterName` が設定されている場合に必要で、名前が同じ場合にエントリが落ちないようにします。
18];
19
20
21try {
22 $result = $apiInstance->getOfflineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOfflineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

オンラインユーザーを取得 Internal Link

現在ページをオンラインで閲覧しているユーザー: 現在、ウェブソケットセッションがそのページに購読されている人々。
返却: anonCount + totalCount(部屋全体の購読者数で、匿名ビューアーも含まれますが、列挙は行いません)。

Parameters

名前場所必須説明
tenantIdstringpathYes
urlIdstringqueryYesページ URL 識別子(サーバー側でクリーンアップされたもの)。
afterNamestringqueryNoカーソル: 前回のレスポンスから nextAfterName を渡す。
afterUserIdstringqueryNoカーソルのタイブレーカー: 前回のレスポンスから nextAfterUserId を渡す。afterName が設定されている場合に必要で、名前が同じエントリが除外されないようにします。

Response

返却: PageUsersOnlineResponse

Example

getOnlineUsers の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | ページ URL 識別子(サーバー側でクリーンアップされたもの)。
15$options = [
16 'after_name' => 'after_name_example', // string | カーソル: 前回のレスポンスから nextAfterName を渡す。
17 'after_user_id' => 'after_user_id_example', // string | カーソルのタイブレーカー: 前回のレスポンスから nextAfterUserId を渡す。afterName が設定されている場合に必要で、名前が同じエントリが除外されないようにします。
18];
19
20
21try {
22 $result = $apiInstance->getOnlineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOnlineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

URL ID でページを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
urlIdstringqueryYes

レスポンス

戻り値: GetPageByURLIdAPIResponse

getPageByURLId の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外してプレフィックス(例: Bearer)を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$url_id = 'url_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getPageByURLId($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
28}
29

ページ一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes

レスポンス

返却: GetPagesAPIResponse

getPages 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス(例: Bearer)を設定するには、下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20
21
22try {
23 $result = $apiInstance->getPages($tenant_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getPages: ', $e->getMessage(), PHP_EOL;
27}
28

公開ページ一覧を取得 Internal Link

List pages for a tenant. Used by the FChat desktop client to populate its room list.
Requires enableFChat to be true on the resolved custom config for each page.
Pages that require SSO are filtered against the requesting user's group access.

テナントのページを一覧取得します。FChat デスクトップクライアントが部屋リストを埋めるために使用します。
各ページの解決されたカスタム設定で enableFChat が true である必要があります。
SSO が必要なページは、リクエストユーザーのグループアクセスに基づいてフィルタリングされます。

Parameters

名前場所必須説明
tenantIdstringpathYes
cursorstringqueryNo前回のリクエストで nextCursor として返された不透明なページネーションカーソル。同じ sortBy に関連付けられます。
limitintegerqueryNo1..200、デフォルトは 50
qstringqueryNoオプションの大文字小文字を区別しないタイトルプレフィックスフィルタ。
sortBystringqueryNoソート順。updatedAt(デフォルト、最新が最初)、commentCount(コメント数が多い順)、または title(アルファベット順)。
hasCommentsbooleanqueryNotrue の場合、少なくとも1つのコメントがあるページのみを返します。

Response

Returns: GetPublicPagesResponse

Example

getPagesPublic の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'cursor' => 'cursor_example', // string | 前回のリクエストで `nextCursor` として返された不透明なページネーションカーソル。同じ `sortBy` に関連付けられます。
16 'limit' => 56, // int | 1..200、デフォルトは 50
17 'q' => 'q_example', // string | オプションの大文字小文字を区別しないタイトルプレフィックスフィルタ。
18 'sort_by' => new \FastComments\Client\Model\\FastComments\Client\Model\PagesSortBy(), // \FastComments\Client\Model\PagesSortBy | ソート順。`updatedAt`(デフォルト、最新が最初)、`commentCount`(コメント数が多い順)、または `title`(アルファベット順)。
19 'has_comments' => True, // bool | true の場合、少なくとも1つのコメントがあるページのみを返します。
20];
21
22
23try {
24 $result = $apiInstance->getPagesPublic($tenant_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->getPagesPublic: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザー情報を取得 Internal Link

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

名前場所必須説明
tenantIdstringpathYes
idsstringqueryYesカンマ区切りの userIds.

Response

Returns: PageUsersInfoResponse

Example

getUsersInfo の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$ids = 'ids_example'; // 文字列 | カンマ区切りの userIds.
15
16
17try {
18 $result = $apiInstance->getUsersInfo($tenant_id, $ids);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUsersInfo: ', $e->getMessage(), PHP_EOL;
22}
23

ページを部分更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

応答

返却: PatchPageAPIResponse

patchPage 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_api_page_data = new \FastComments\Client\Model\UpdateAPIPageData(); // \FastComments\Client\Model\UpdateAPIPageData
22
23
24try {
25 $result = $apiInstance->patchPage($tenant_id, $id, $update_api_page_data);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchPage: ', $e->getMessage(), PHP_EOL;
29}
30

保留中のWebhookイベントを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

戻り値: APIEmptyResponse

deletePendingWebhookEvent の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを外してプレフィックス(例: Bearer)を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これは省略可能で、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->deletePendingWebhookEvent($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deletePendingWebhookEvent: ', $e->getMessage(), PHP_EOL;
28}
29

保留中のWebhookイベント数を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo

応答

Returns: GetPendingWebhookEventCountResponse

getPendingWebhookEventCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定します: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'comment_id' => 'comment_id_example', // string
22 'external_id' => 'external_id_example', // string
23 'event_type' => 'event_type_example', // string
24 'type' => 'type_example', // string
25 'domain' => 'domain_example', // string
26 'attempt_count_gt' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getPendingWebhookEventCount($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getPendingWebhookEventCount: ', $e->getMessage(), PHP_EOL;
35}
36

保留中のWebhookイベント一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
commentIdstringqueryいいえ
externalIdstringqueryいいえ
eventTypestringqueryいいえ
typestringqueryいいえ
domainstringqueryいいえ
attemptCountGTnumberqueryいいえ
skipnumberqueryいいえ

レスポンス

返り値: GetPendingWebhookEventsResponse

getPendingWebhookEvents の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除してAPIキーのプレフィックス(例: Bearer)を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、`GuzzleHttp\Client` がデフォルトで使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'comment_id' => 'comment_id_example', // string
22 'external_id' => 'external_id_example', // string
23 'event_type' => 'event_type_example', // string
24 'type' => 'type_example', // string
25 'domain' => 'domain_example', // string
26 'attempt_count_gt' => 3.4, // float
27 'skip' => 3.4, // float
28];
29
30
31try {
32 $result = $apiInstance->getPendingWebhookEvents($tenant_id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->getPendingWebhookEvents: ', $e->getMessage(), PHP_EOL;
36}
37

質問設定を作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい

レスポンス

返却: CreateQuestionConfigResponse

createQuestionConfig 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを解除してプレフィックス (例: Bearer) を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

質問設定を削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

レスポンス

Returns: APIEmptyResponse

deleteQuestionConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証の設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、API キーのプレフィックス(例: Bearer)を設定する場合は、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->deleteQuestionConfig($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

質問設定を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

戻り値: GetQuestionConfigResponse

getQuestionConfig の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getQuestionConfig($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

質問設定一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
skipnumberqueryいいえ

レスポンス

返り値: GetQuestionConfigsResponse

getQuestionConfigs の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除してAPIキーのプレフィックス(例: Bearer)を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$skip = 3.4; // 浮動小数点数
21
22
23try {
24 $result = $apiInstance->getQuestionConfigs($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionConfigs: ', $e->getMessage(), PHP_EOL;
28}
29

質問設定を更新 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

レスポンス

Returns: APIEmptyResponse

updateQuestionConfig 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定する場合は下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$update_question_config_body = new \FastComments\Client\Model\UpdateQuestionConfigBody(); // \FastComments\Client\Model\UpdateQuestionConfigBody
22
23
24try {
25 $result = $apiInstance->updateQuestionConfig($tenant_id, $id, $update_question_config_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateQuestionConfig: ', $e->getMessage(), PHP_EOL;
29}
30

質問結果を作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい

応答

返却: CreateQuestionResultResponse

createQuestionResult の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7// 必要に応じて、以下のコメントを外して API キーのプレフィックス (例: Bearer) を設定
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡します。
13 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 文字列
19$create_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
20
21
22try {
23 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
27}
28

質問結果を削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

戻り値: APIEmptyResponse

deleteQuestionResult の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

質問結果を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

レスポンス

Returns: GetQuestionResultResponse

getQuestionResult の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定する場合はコメントアウトを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getQuestionResult($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

質問結果一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
urlIdstringqueryNo
userIdstringqueryNo
startDatestringqueryNo
questionIdstringqueryNo
questionIdsstringqueryNo
skipnumberqueryNo

レスポンス

戻り値: GetQuestionResultsResponse

getQuestionResults 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、コメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$options = [
21 'url_id' => 'url_id_example', // 文字列
22 'user_id' => 'user_id_example', // 文字列
23 'start_date' => 'start_date_example', // 文字列
24 'question_id' => 'question_id_example', // 文字列
25 'question_ids' => 'question_ids_example', // 文字列
26 'skip' => 3.4, // 浮動小数点数
27];
28
29
30try {
31 $result = $apiInstance->getQuestionResults($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
35}
36

質問結果を更新 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい

応答

返却: APIEmptyResponse

updateQuestionResult の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これは任意です。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_question_result_body = new \FastComments\Client\Model\UpdateQuestionResultBody(); // \FastComments\Client\Model\UpdateQuestionResultBody
22
23
24try {
25 $result = $apiInstance->updateQuestionResult($tenant_id, $id, $update_question_result_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateQuestionResult: ', $e->getMessage(), PHP_EOL;
29}
30

質問結果を集計 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

応答

返却: AggregateQuestionResultsResponse

aggregateQuestionResults の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、API キーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$options = [
21 'question_id' => 'question_id_example', // 文字列
22 'question_ids' => array('question_ids_example'), // 文字列[]
23 'url_id' => 'url_id_example', // 文字列
24 'time_bucket' => new \FastComments\Client\Model\\FastComments\Client\Model\AggregateTimeBucket(), // \FastComments\Client\Model\AggregateTimeBucket
25 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
26 'force_recalculate' => True, // bool
27];
28
29
30try {
31 $result = $apiInstance->aggregateQuestionResults($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->aggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
35}
36

質問結果を一括集計 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
forceRecalculatebooleanqueryいいえ

レスポンス

戻り値: BulkAggregateQuestionResultsResponse

bulkAggregateQuestionResults の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を構成: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除して API キーのプレフィックス(例:Bearer)を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$bulk_aggregate_question_results_request = new \FastComments\Client\Model\BulkAggregateQuestionResultsRequest(); // \FastComments\Client\Model\BulkAggregateQuestionResultsRequest
21$force_recalculate = True; // bool
22
23
24try {
25 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
29}
30

コメントと質問結果を結合 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo
minValuenumberqueryNo
maxValuenumberqueryNo
limitnumberqueryNo

応答

返却: CombineQuestionResultsWithCommentsResponse

combineCommentsWithQuestionResults の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// APIキー認可の設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを外してください
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'question_id' => 'question_id_example', // string
21 'question_ids' => array('question_ids_example'), // string[]
22 'url_id' => 'url_id_example', // string
23 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
24 'force_recalculate' => True, // bool
25 'min_value' => 3.4, // float
26 'max_value' => 3.4, // float
27 'limit' => 3.4, // float
28];
29
30
31try {
32 $result = $apiInstance->combineCommentsWithQuestionResults($tenant_id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->combineCommentsWithQuestionResults: ', $e->getMessage(), PHP_EOL;
36}
37

SSOユーザーを追加 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes

レスポンス

返却: AddSSOUserAPIResponse

addSSOUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_apisso_user_data = new \FastComments\Client\Model\CreateAPISSOUserData(); // \FastComments\Client\Model\CreateAPISSOUserData
21
22
23try {
24 $result = $apiInstance->addSSOUser($tenant_id, $create_apisso_user_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

SSOユーザーを削除 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい
deleteCommentsbooleanqueryいいえ
commentDeleteModestringqueryいいえ

Response

返却: DeleteSSOUserAPIResponse

Example

deleteSSOUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API キー認証を設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じて API キーのプレフィックス (例: Bearer) を設定する場合は、以下のコメントを外す
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡します。
13 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$options = [
21 'delete_comments' => True, // bool
22 'comment_delete_mode' => 'comment_delete_mode_example', // string
23];
24
25
26try {
27 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
31}
32

メールでSSOユーザーを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
emailstringpathはい

応答

戻り値: GetSSOUserByEmailAPIResponse

getSSOUserByEmail 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して API キーのプレフィックス (例: Bearer) を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$email = 'email_example'; // string
21
22
23try {
24 $result = $apiInstance->getSSOUserByEmail($tenant_id, $email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserByEmail: ', $e->getMessage(), PHP_EOL;
28}
29

IDでSSOユーザーを取得 Internal Link

パラメータ

名前ロケーション必須説明
tenantIdstringqueryYes
idstringpathYes

レスポンス

返却: GetSSOUserByIdAPIResponse

getSSOUserById の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除して API キーのプレフィックス (例: Bearer) を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->getSSOUserById($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
28}
29

SSOユーザー一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
skipintegerqueryいいえ

レスポンス

戻り値: GetSSOUsersResponse

getSSOUsers 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$skip = 56; // int
21
22
23try {
24 $result = $apiInstance->getSSOUsers($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUsers: ', $e->getMessage(), PHP_EOL;
28}
29

SSOユーザーを部分更新 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

応答

戻り値: PatchSSOUserAPIResponse

patchSSOUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除してAPIキーのプレフィックス(例: Bearer)を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // bool
23
24
25try {
26 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
30}
31

SSOユーザーを置換 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

レスポンス

返却: PutSSOUserAPIResponse

putSSOUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // bool
23
24
25try {
26 $result = $apiInstance->putSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->putSSOUser: ', $e->getMessage(), PHP_EOL;
30}
31

サブスクリプションを作成 Internal Link


パラメータ

名前場所必須説明
tenantIdstringqueryはい

応答

返却: CreateSubscriptionAPIResponse

createSubscription 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを外してAPIキーのプレフィックス(例: Bearer)を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトで `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_api_user_subscription_data = new \FastComments\Client\Model\CreateAPIUserSubscriptionData(); // \FastComments\Client\Model\CreateAPIUserSubscriptionData
21
22
23try {
24 $result = $apiInstance->createSubscription($tenant_id, $create_api_user_subscription_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

サブスクリプションを削除 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Response

Returns: DeleteSubscriptionAPIResponse

Example

deleteSubscription の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を構成します: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡します。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$user_id = 'user_id_example'; // string
22
23
24try {
25 $result = $apiInstance->deleteSubscription($tenant_id, $id, $user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
29}
30

サブスクリプション一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
userIdstringqueryいいえ

レスポンス

返却: GetSubscriptionsAPIResponse

getSubscriptions の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス (例: Bearer) を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$user_id = 'user_id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->getSubscriptions($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
28}
29

サブスクリプションを更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

レスポンス

返り値: UpdateSubscriptionAPIResponse

updateSubscription の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認可を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じてAPIキーのプレフィックス(例: Bearer)を設定するには、下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用する場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_api_user_subscription_data = new \FastComments\Client\Model\UpdateAPIUserSubscriptionData(); // \FastComments\Client\Model\UpdateAPIUserSubscriptionData
22$user_id = 'user_id_example'; // string
23
24
25try {
26 $result = $apiInstance->updateSubscription($tenant_id, $id, $update_api_user_subscription_data, $user_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL;
30}
31

テナントの日次使用量を取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
yearNumbernumberqueryNo
monthNumbernumberqueryNo
dayNumbernumberqueryNo
skipnumberqueryNo

レスポンス

返却: GetTenantDailyUsagesResponse

getTenantDailyUsages の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定する場合は以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、 `GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'year_number' => 3.4, // float
22 'month_number' => 3.4, // float
23 'day_number' => 3.4, // float
24 'skip' => 3.4, // float
25];
26
27
28try {
29 $result = $apiInstance->getTenantDailyUsages($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
33}
34

テナントパッケージを作成 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい

レスポンス

返却: CreateTenantPackageResponse

createTenantPackage 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
21
22
23try {
24 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

テナントパッケージを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

応答

返却: APIEmptyResponse

deleteTenantPackage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// APIキー認証を設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じて、以下のコメントを外して API キーのプレフィックス(例: Bearer)を設定
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタム HTTP クライアントを使用する場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 文字列
19$id = 'id_example'; // 文字列
20
21
22try {
23 $result = $apiInstance->deleteTenantPackage($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteTenantPackage: ', $e->getMessage(), PHP_EOL;
27}
28

テナントパッケージを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

返却: GetTenantPackageResponse

getTenantPackage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getTenantPackage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

テナントパッケージ一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
skipnumberqueryいいえ

レスポンス

返却: GetTenantPackagesResponse

getTenantPackages の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 文字列
19$skip = 3.4; // 浮動小数点数
20
21
22try {
23 $result = $apiInstance->getTenantPackages($tenant_id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getTenantPackages: ', $e->getMessage(), PHP_EOL;
27}
28

テナントパッケージを置換 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes

レスポンス

返却: APIEmptyResponse

replaceTenantPackage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを外して API キーのプレフィックス (例: Bearer) を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
22
23
24try {
25 $result = $apiInstance->replaceTenantPackage($tenant_id, $id, $replace_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->replaceTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

テナントパッケージを更新 Internal Link

パラメータ

名前種類場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

戻り値: APIEmptyResponse

updateTenantPackage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_tenant_package_body = new \FastComments\Client\Model\UpdateTenantPackageBody(); // \FastComments\Client\Model\UpdateTenantPackageBody
22
23
24try {
25 $result = $apiInstance->updateTenantPackage($tenant_id, $id, $update_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

テナントユーザーを作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい

レスポンス

返却: CreateTenantUserResponse

createTenantUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて以下のコメントを外してプレフィックス (例: Bearer) を設定
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これは任意で、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_tenant_user_body = new \FastComments\Client\Model\CreateTenantUserBody(); // \FastComments\Client\Model\CreateTenantUserBody
21
22
23try {
24 $result = $apiInstance->createTenantUser($tenant_id, $create_tenant_user_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

テナントユーザーを削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい
deleteCommentsstringqueryいいえ
commentDeleteModestringqueryいいえ

レスポンス

返却: APIEmptyResponse

deleteTenantUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'delete_comments' => 'delete_comments_example', // string
23 'comment_delete_mode' => 'comment_delete_mode_example', // string
24];
25
26
27try {
28 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
32}
33

テナントユーザーを取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

返却: GetTenantUserResponse

getTenantUser 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定します: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定するには、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これは任意で、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getTenantUser($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

テナントユーザー一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
skipnumberqueryNo

レスポンス

戻り値: GetTenantUsersResponse

getTenantUsers の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下の API キーのプレフィックス (例: Bearer) を設定するにはコメントを外します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$skip = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getTenantUsers($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantUsers: ', $e->getMessage(), PHP_EOL;
28}
29

テナントユーザーを置換 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
updateCommentsstringqueryNo

Response

Returns: APIEmptyResponse

Example

replaceTenantUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定します: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて以下のコメントを外してプレフィックス (例: Bearer) を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$replace_tenant_user_body = new \FastComments\Client\Model\ReplaceTenantUserBody(); // \FastComments\Client\Model\ReplaceTenantUserBody
22$update_comments = 'update_comments_example'; // 文字列
23
24
25try {
26 $result = $apiInstance->replaceTenantUser($tenant_id, $id, $replace_tenant_user_body, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->replaceTenantUser: ', $e->getMessage(), PHP_EOL;
30}
31

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい
redirectURLstringqueryいいえ

応答

返却: APIEmptyResponse

sendLoginLink 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証の設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。`GuzzleHttp\Client` がデフォルトで使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$redirect_url = 'redirect_url_example'; // 文字列
22
23
24try {
25 $result = $apiInstance->sendLoginLink($tenant_id, $id, $redirect_url);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->sendLoginLink: ', $e->getMessage(), PHP_EOL;
29}
30

テナントユーザーを更新 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes
updateCommentsstringqueryNo

応答

返却: APIEmptyResponse

updateTenantUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを外して API キーのプレフィックス (例: Bearer) を設定します
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$update_tenant_user_body = new \FastComments\Client\Model\UpdateTenantUserBody(); // \FastComments\Client\Model\UpdateTenantUserBody
22$update_comments = 'update_comments_example'; // 文字列
23
24
25try {
26 $result = $apiInstance->updateTenantUser($tenant_id, $id, $update_tenant_user_body, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateTenantUser: ', $e->getMessage(), PHP_EOL;
30}
31

テナントを作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes

応答

戻り値: CreateTenantResponse

createTenant の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$create_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
21
22
23try {
24 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
28}
29

テナントを削除 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい
surestringqueryいいえ

応答

返却: APIEmptyResponse

deleteTenant の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス(例: Bearer)を設定する場合は下の行のコメントを解除
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$sure = 'sure_example'; // 文字列
22
23
24try {
25 $result = $apiInstance->deleteTenant($tenant_id, $id, $sure);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteTenant: ', $e->getMessage(), PHP_EOL;
29}
30

テナントを取得 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

レスポンス

Returns: GetTenantResponse

getTenant の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// APIキー認証を設定: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
10$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // これは任意です。デフォルトでは `GuzzleHttp\Client` が使用されます。
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25
26
27try {
28 $result = $apiInstance->getTenant($tenant_id, $id);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getTenant: ', $e->getMessage(), PHP_EOL;
32}
33

テナント一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
metastringqueryいいえ
skipnumberqueryいいえ

応答

Returns: GetTenantsResponse

getTenants の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認可の設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$options = [
21 'meta' => 'meta_example', // 文字列
22 'skip' => 3.4, // 浮動小数点数
23];
24
25
26try {
27 $result = $apiInstance->getTenants($tenant_id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getTenants: ', $e->getMessage(), PHP_EOL;
31}
32

テナントを更新 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

Response

戻り値: APIEmptyResponse

Example

updateTenant の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定する場合は以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これは任意です。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_tenant_body = new \FastComments\Client\Model\UpdateTenantBody(); // \FastComments\Client\Model\UpdateTenantBody
22
23
24try {
25 $result = $apiInstance->updateTenant($tenant_id, $id, $update_tenant_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenant: ', $e->getMessage(), PHP_EOL;
29}
30

チケット状態を変更 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
userIdstringqueryはい
idstringpathはい

レスポンス

返却: ChangeTicketStateResponse

changeTicketState の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントアウトを外してプレフィックス (例: Bearer) を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21$id = 'id_example'; // string
22$change_ticket_state_body = new \FastComments\Client\Model\ChangeTicketStateBody(); // \FastComments\Client\Model\ChangeTicketStateBody
23
24
25try {
26 $result = $apiInstance->changeTicketState($tenant_id, $user_id, $id, $change_ticket_state_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->changeTicketState: ', $e->getMessage(), PHP_EOL;
30}
31

チケットを作成 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryはい
userIdstringqueryはい

レスポンス

返却: CreateTicketResponse

createTicket の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー承認を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメント解除
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$user_id = 'user_id_example'; // 文字列
21$create_ticket_body = new \FastComments\Client\Model\CreateTicketBody(); // \FastComments\Client\Model\CreateTicketBody
22
23
24try {
25 $result = $apiInstance->createTicket($tenant_id, $user_id, $create_ticket_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->createTicket: ', $e->getMessage(), PHP_EOL;
29}
30

チケットを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい
userIdstringqueryいいえ

レスポンス

返却: GetTicketResponse

getTicket の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これは任意です。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21$user_id = 'user_id_example'; // 文字列
22
23
24try {
25 $result = $apiInstance->getTicket($tenant_id, $id, $user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getTicket: ', $e->getMessage(), PHP_EOL;
29}
30

チケット一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
userIdstringqueryいいえ
statenumberqueryいいえ
skipnumberqueryいいえ
limitnumberqueryいいえ

レスポンス

返却: GetTicketsResponse

getTickets の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を構成: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス(例: Bearer)を設定するには以下のコメントアウトを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$options = [
21 'user_id' => 'user_id_example', // 文字列
22 'state' => 3.4, // 浮動小数点数
23 'skip' => 3.4, // 浮動小数点数
24 'limit' => 3.4, // 浮動小数点数
25];
26
27
28try {
29 $result = $apiInstance->getTickets($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getTickets: ', $e->getMessage(), PHP_EOL;
33}
34

翻訳を取得 Internal Link

Parameters

NameTypeLocationRequiredDescription
namespacestringpathYes
componentstringpathYes
localestringqueryNo
useFullTranslationIdsbooleanqueryNo

Response

Returns: GetTranslationsResponse

Example

getTranslations の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$namespace = 'namespace_example'; // 文字列
14$component = 'component_example'; // 文字列
15$options = [
16 'locale' => 'locale_example', // 文字列
17 'use_full_translation_ids' => True, // ブール
18];
19
20
21try {
22 $result = $apiInstance->getTranslations($namespace, $component, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getTranslations: ', $e->getMessage(), PHP_EOL;
26}
27

画像をアップロード Internal Link

画像のアップロードとリサイズ

パラメータ

名前場所必須説明
tenantIdstringpathYes
sizePresetstringqueryNoサイズプリセット: "Default" (1000x1000px) または "CrossPlatform" (一般的なデバイス向けのサイズを作成)
urlIdstringqueryNoアップロードが行われているページ ID、設定用

応答

戻り値: UploadImageResponse

uploadImage の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$file = '/path/to/file.txt'; // \SplFileObject
15$options = [
16 'size_preset' => new \FastComments\Client\Model\\FastComments\Client\Model\SizePreset(), // \FastComments\Client\Model\SizePreset | サイズプリセット: "Default" (1000x1000px) または "CrossPlatform" (一般的なデバイス向けのサイズを作成)
17 'url_id' => 'url_id_example', // string | アップロードが行われているページ ID、設定用
18];
19
20
21try {
22 $result = $apiInstance->uploadImage($tenant_id, $file, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->uploadImage: ', $e->getMessage(), PHP_EOL;
26}
27

バッジ進捗をIDで取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

返却: APIGetUserBadgeProgressResponse

getUserBadgeProgressById の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定する場合は、以下のコメントを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$id = 'id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressById($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressById: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーIDでバッジ進捗を取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryはい
userIdstringpathはい

レスポンス

返却: APIGetUserBadgeProgressResponse

getUserBadgeProgressByUserId の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、以下のコメントを解除して API キーのプレフィックス (例: Bearer) を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$user_id = 'user_id_example'; // 文字列
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーバッジ進捗一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
userIdstringqueryいいえ
limitnumberqueryいいえ
skipnumberqueryいいえ

応答

戻り値: APIGetUserBadgeProgressListResponse

getUserBadgeProgressList の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには、以下のコメントアウトを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'limit' => 3.4, // float
23 'skip' => 3.4, // float
24];
25
26
27try {
28 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
32}
33

ユーザーバッジを作成 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい

レスポンス

返却: APICreateUserBadgeResponse

createUserBadge 例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて API キーのプレフィックス (例: Bearer) を設定するには、以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、 `GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 文字列
20$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
21
22
23try {
24 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーバッジを削除 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

Response

戻り値: APIEmptySuccessResponse

deleteUserBadge の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// 必要に応じて、以下のコメントを外してAPIキーのプレフィックス(例: Bearer)を設定してください
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
15 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
16 new GuzzleHttp\Client(),
17 $config
18);
19
20$tenant_id = 'tenant_id_example'; // string
21$id = 'id_example'; // string
22
23
24try {
25 $result = $apiInstance->deleteUserBadge($tenant_id, $id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
29}
30

ユーザーバッジを取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
idstringpathはい

レスポンス

戻り値: APIGetUserBadgeResponse

getUserBadge の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを解除してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用する場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトで `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーバッジ一覧を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
userIdstringqueryいいえ
badgeIdstringqueryいいえ
typenumberqueryいいえ
displayedOnCommentsbooleanqueryいいえ
limitnumberqueryいいえ
skipnumberqueryいいえ

レスポンス

Returns: APIGetUserBadgesResponse

getUserBadges の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API キー認証を設定: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 必要に応じて、API キーのプレフィックス(例: Bearer)を設定する場合は以下のコメントを外してください
10$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // 文字列
24$options = [
25 'user_id' => 'user_id_example', // 文字列
26 'badge_id' => 'badge_id_example', // 文字列
27 'type' => 3.4, // 浮動小数点数
28 'displayed_on_comments' => True, // 真偽値
29 'limit' => 3.4, // 浮動小数点数
30 'skip' => 3.4, // 浮動小数点数
31];
32
33
34try {
35 $result = $apiInstance->getUserBadges($tenant_id, $options);
36 print_r($result);
37} catch (Exception $e) {
38 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
39}
40

ユーザーバッジを更新 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryはい
idstringpathはい

レスポンス

返却: APIEmptySuccessResponse

updateUserBadge の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// APIキー認証を設定: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 必要に応じてAPIキーのプレフィックス(例: Bearer)を設定する場合は以下のコメントを外す
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
13 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
21
22
23try {
24 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーの通知数を取得 Internal Link

パラメータ

名前タイプ場所必須説明
tenantIdstringqueryはい
ssostringqueryいいえ

レスポンス

返り値: GetUserNotificationCountResponse

getUserNotificationCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタムの HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

ユーザーの通知一覧を取得 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryNo現在のページが購読されているかどうかを判断するために使用されます。
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

Response

Returns: GetMyNotificationsResponse

Example

getUserNotifications の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'url_id' => 'url_id_example', // string | 現在のページが購読されているかどうかを判断するために使用されます。
16 'page_size' => 56, // int
17 'after_id' => 'after_id_example', // string
18 'include_context' => True, // bool
19 'after_created_at' => 56, // int
20 'unread_only' => True, // bool
21 'dm_only' => True, // bool
22 'no_dm' => True, // bool
23 'include_translations' => True, // bool
24 'include_tenant_notifications' => True, // bool
25 'sso' => 'sso_example', // string
26];
27
28
29try {
30 $result = $apiInstance->getUserNotifications($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling PublicApi->getUserNotifications: ', $e->getMessage(), PHP_EOL;
34}
35

ユーザーの通知数をリセット Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
ssostringqueryいいえ

応答

返却: ResetUserNotificationsResponse

resetUserNotificationCount の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

ユーザーの通知をリセット Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
afterIdstringqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
ssostringqueryNo

レスポンス

Returns: ResetUserNotificationsResponse

resetUserNotifications の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$options = [
15 'after_id' => 'after_id_example', // 文字列
16 'after_created_at' => 56, // 整数
17 'unread_only' => True, // ブール
18 'dm_only' => True, // ブール
19 'no_dm' => True, // ブール
20 'sso' => 'sso_example', // 文字列
21];
22
23
24try {
25 $result = $apiInstance->resetUserNotifications($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->resetUserNotifications: ', $e->getMessage(), PHP_EOL;
29}
30

ユーザーのコメント購読ステータスを更新 Internal Link

Enable or disable notifications for a specific comment.

パラメータ

名前場所必須説明
tenantIdstringqueryはい
notificationIdstringpathはい
optedInOrOutstringpathはい
commentIdstringqueryはい
ssostringqueryいいえ

応答

戻り値: UpdateUserNotificationCommentSubscriptionStatusResponse

updateUserNotificationCommentSubscriptionStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$notification_id = 'notification_id_example'; // string
15$opted_in_or_out = 'opted_in_or_out_example'; // string
16$comment_id = 'comment_id_example'; // string
17$sso = 'sso_example'; // string
18
19
20try {
21 $result = $apiInstance->updateUserNotificationCommentSubscriptionStatus($tenant_id, $notification_id, $opted_in_or_out, $comment_id, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
25}
26

ユーザーのページ購読ステータスを更新 Internal Link

Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also

パラメータ

名前場所必須説明
tenantIdstringqueryYes
urlIdstringqueryYes
urlstringqueryYes
pageTitlestringqueryYes
subscribedOrUnsubscribedstringpathYes
ssostringqueryNo

レスポンス

戻り値: UpdateUserNotificationPageSubscriptionStatusResponse

updateUserNotificationPageSubscriptionStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$url = 'url_example'; // string
16$page_title = 'page_title_example'; // string
17$subscribed_or_unsubscribed = 'subscribed_or_unsubscribed_example'; // string
18$sso = 'sso_example'; // string
19
20
21try {
22 $result = $apiInstance->updateUserNotificationPageSubscriptionStatus($tenant_id, $url_id, $url, $page_title, $subscribed_or_unsubscribed, $sso);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
26}
27

ユーザーの通知ステータスを更新 Internal Link

Parameters

名前場所必須説明
tenantIdstringqueryYes
notificationIdstringpathYes
newStatusstringpathYes
ssostringqueryNo

Response

返却: UpdateUserNotificationStatusResponse

Example

updateUserNotificationStatus の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // これはオプションで、デフォルトとして `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$notification_id = 'notification_id_example'; // string
15$new_status = 'new_status_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->updateUserNotificationStatus($tenant_id, $notification_id, $new_status, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->updateUserNotificationStatus: ', $e->getMessage(), PHP_EOL;
24}
25

ユーザー在席ステータスを取得 Internal Link

パラメータ

名前ロケーション必須説明
tenantIdstringqueryはい
urlIdWSstringqueryはい
userIdsstringqueryはい

応答

返り値: GetUserPresenceStatusesResponse

getUserPresenceStatuses の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装するクライアントを渡してください。
9 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 文字列
14$url_id_ws = 'url_id_ws_example'; // 文字列
15$user_ids = 'user_ids_example'; // 文字列
16
17
18try {
19 $result = $apiInstance->getUserPresenceStatuses($tenant_id, $url_id_ws, $user_ids);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getUserPresenceStatuses: ', $e->getMessage(), PHP_EOL;
23}
24

ユーザーを検索 Internal Link

パラメータ

名前場所必須説明
tenantIdstringpathYes
urlIdstringqueryYes
usernameStartsWithstringqueryNo
mentionGroupIdsarrayqueryNo
ssostringqueryNo
searchSectionstringqueryNo

レスポンス

戻り値: SearchUsersResult

searchUsers の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
9 // 省略可能で、デフォルトでは `GuzzleHttp\Client` が使用されます。
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'username_starts_with' => 'username_starts_with_example', // string
17 'mention_group_ids' => array('mention_group_ids_example'), // string[]
18 'sso' => 'sso_example', // string
19 'search_section' => 'search_section_example', // string
20];
21
22
23try {
24 $result = $apiInstance->searchUsers($tenant_id, $url_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーを取得 Internal Link

パラメータ

NameTypeLocationRequiredDescription
tenantIdstringqueryはい
idstringpathはい

レスポンス

返却: GetUserResponse

getUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキーの認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントアウトを外してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUser($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL;
28}
29

投票を作成 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
commentIdstringqueryはい
directionstringqueryはい
userIdstringqueryいいえ
anonUserIdstringqueryいいえ

レスポンス

返却: VoteResponse

createVote の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 必要に応じて以下の行のコメントを外し、APIキーのプレフィックス(例: Bearer)を設定してください
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$comment_id = 'comment_id_example'; // string
21$direction = 'direction_example'; // string
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->createVote($tenant_id, $comment_id, $direction, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
33}
34

投票を削除 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
idstringpathYes
editKeystringqueryNo

応答

返り値: VoteDeleteResponse

deleteVote の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// APIキー認証を設定: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 必要に応じて、APIキーのプレフィックス(例: Bearer)を設定するには以下のコメントを外してください
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // カスタムHTTPクライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$edit_key = 'edit_key_example'; // string
25
26
27try {
28 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
32}
33

投票一覧を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryはい
urlIdstringqueryはい

レスポンス

返却: GetVotesResponse

getVotes の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API キー認証を構成: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 以下のコメントを外すと、必要に応じて API キーのプレフィックス (例: Bearer) を設定できます
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションで、デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$url_id = 'url_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getVotes($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
28}
29

ユーザーの投票を取得 Internal Link

パラメータ

名前場所必須説明
tenantIdstringqueryYes
urlIdstringqueryYes
userIdstringqueryNo
anonUserIdstringqueryNo

レスポンス

返却: GetVotesForUserResponse

getVotesForUser の例
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// APIキー認証を設定: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 以下のコメントアウトを外して、APIキーのプレフィックス(例: Bearer)を設定します(必要な場合)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // カスタム HTTP クライアントを使用したい場合は、`GuzzleHttp\ClientInterface` を実装したクライアントを渡してください。
14 // これはオプションです。デフォルトでは `GuzzleHttp\Client` が使用されます。
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$url_id = 'url_id_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->getVotesForUser($tenant_id, $url_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getVotesForUser: ', $e->getMessage(), PHP_EOL;
32}
33

ヘルプが必要ですか?

PHP SDK に関して問題が発生した場合や質問がある場合は、次のいずれかを行ってください:

貢献

貢献を歓迎します!貢献ガイドラインについては、GitHub リポジトリ をご覧ください。