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

๋‹ค์Œ ์„ค์น˜ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด๊ณ , ์•„๋ž˜ ๋‚ด์šฉ์„ ์‹คํ–‰ํ•˜์„ธ์š”:

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



// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');


$apiInstance = new FastComments\Client\Api\DefaultApi(
    // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
    // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
$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๋Š” ์„ธ ๊ฐœ์˜ 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'; // string
$url_id = 'url_id_example'; // string

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'; // string - Moderator๋ฅผ ์ธ์ฆํ•˜๋Š” 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.
Different operations (e.g. sum, countDistinct, avg, etc.) are supported.

Parameters

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
parentTenantIdstringqueryNo
includeStatsbooleanqueryNo

Response

Returns: AggregateResponse

Example

์ง‘๊ณ„ ์˜ˆ์‹œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Configure API key authorization: api_key
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
8// ํ•„์š”์— ๋”ฐ๋ผ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
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 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // ์ด๋Š” ์˜ต์…˜์ด๋ฉฐ, ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
22$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
23$options = [
24 'parent_tenant_id' => 'parent_tenant_id_example', // ๋ฌธ์ž์—ด
25 'include_stats' => True, // ๋ถˆ๋ฆฌ์–ธ
26];
27
28
29try {
30 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
34}
35

๊ฐ์‚ฌ ๋กœ๊ทธ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
limitnumberqueryNo
skipnumberqueryNo
orderstringqueryNo
afternumberqueryNo
beforenumberqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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 'limit' => 3.4, // float
22 'skip' => 3.4, // float
23 'order' => new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(), // \FastComments\Client\Model\SORTDIR
24 'after' => 3.4, // float
25 'before' => 3.4, // float
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: BlockSuccess

์˜ˆ์‹œ

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: UnblockSuccess

์˜ˆ์‹œ

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, $sso);
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์•„๋‹ˆ์˜ค

๋ฐ˜ํ™˜

๋ฐ˜ํ™˜: 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'; // string
14$comment_ids = 'comment_ids_example'; // string | ๋Œ“๊ธ€ ID์˜ ์‰ผํ‘œ ๊ตฌ๋ถ„ ๋ชฉ๋ก.
15$sso = 'sso_example'; // string
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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
anonUserIdstringquery์•„๋‹ˆ์˜ค

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$url_id = 'url_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
17$options = [
18 'session_id' => 'session_id_example', // string
19 'sso' => 'sso_example', // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
isLivebooleanqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteCommentResult

์˜ˆ์‹œ

deleteComment ์˜ˆ์‹œ
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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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$options = [
22 'context_user_id' => 'context_user_id_example', // ๋ฌธ์ž์—ด
23 'is_live' => True, // ๋ถˆ๋ฆฌ์–ธ
24];
25
26
27try {
28 $result = $apiInstance->deleteComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
32}
33

๋Œ“๊ธ€ ์‚ญ์ œ(๊ณต๊ฐœ) 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
commentIdstringpath์˜ˆ
voteIdstringpath์˜ˆ
urlIdstringquery์˜ˆ
broadcastIdstringquery์˜ˆ
editKeystringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

Parameters

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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$options = [
22 'user_id' => 'user_id_example', // ๋ฌธ์ž์—ด
23 'anon_user_id' => 'anon_user_id_example', // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
20$options = [
21 'page' => 56, // ์ •์ˆ˜
22 'limit' => 56, // ์ •์ˆ˜
23 'skip' => 56, // ์ •์ˆ˜
24 'as_tree' => True, // ๋ถˆ๋ฆฌ์–ธ
25 'skip_children' => 56, // ์ •์ˆ˜
26 'limit_children' => 56, // ์ •์ˆ˜
27 'max_tree_depth' => 56, // ์ •์ˆ˜
28 'url_id' => 'url_id_example', // ๋ฌธ์ž์—ด
29 'user_id' => 'user_id_example', // ๋ฌธ์ž์—ด
30 'anon_user_id' => 'anon_user_id_example', // ๋ฌธ์ž์—ด
31 'context_user_id' => 'context_user_id_example', // ๋ฌธ์ž์—ด
32 'hash_tag' => 'hash_tag_example', // ๋ฌธ์ž์—ด
33 'parent_id' => 'parent_id_example', // ๋ฌธ์ž์—ด
34 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
35 'from_date' => 56, // ์ •์ˆ˜
36 'to_date' => 56, // ์ •์ˆ˜
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

์‘๋‹ต

Returns: 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, // int
17 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
18 'sso' => 'sso_example', // string
19 'skip' => 56, // int
20 'skip_children' => 56, // int
21 'limit' => 56, // int
22 'limit_children' => 56, // int
23 'count_children' => True, // bool
24 'fetch_page_for_comment_id' => 'fetch_page_for_comment_id_example', // string
25 'include_config' => True, // bool
26 'count_all' => True, // bool
27 'includei10n' => True, // bool
28 'locale' => 'locale_example', // string
29 'modules' => 'modules_example', // string
30 'is_crawler' => True, // bool
31 'include_notification_count' => True, // bool
32 'as_tree' => True, // bool
33 'max_tree_depth' => 56, // int
34 'use_full_translation_ids' => True, // bool
35 'parent_id' => 'parent_id_example', // string
36 'search_text' => 'search_text_example', // string
37 'hash_tags' => array('hash_tags_example'), // string[]
38 'user_id' => 'user_id_example', // string
39 'custom_config_str' => 'custom_config_str_example', // string
40 'after_comment_id' => 'after_comment_id_example', // string
41 'before_comment_id' => 'before_comment_id_example', // string
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'; // ๋ฌธ์ž์—ด
14$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
15$options = [
16 'edit_key' => 'edit_key_example', // ๋ฌธ์ž์—ด
17 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
commentIdstringpath์˜ˆ
dirintegerquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // 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->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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
isLivebooleanquery์•„๋‹ˆ์˜ค
doSpamCheckbooleanquery์•„๋‹ˆ์˜ค
sendEmailsbooleanquery์•„๋‹ˆ์˜ค
populateNotificationsbooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
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->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 ํ‚ค์— ๋Œ€ํ•œ prefix(์˜ˆ: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
commentIdstringpath์˜ˆ
broadcastIdstringquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜๊ฐ’: 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

NameTypeLocationRequiredDescription
tenantIdstringpath์˜ˆ
commentIdstringpath์˜ˆ
broadcastIdstringquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: ChangeCommentPinStatusResponse

์˜ˆ์‹œ

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
doSpamCheckbooleanqueryNo
isLivebooleanqueryNo

์‘๋‹ต

Returns: 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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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', // ๋ฌธ์ž์—ด
15 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
16 'replies_to_user_id' => 'replies_to_user_id_example', // ๋ฌธ์ž์—ด
17 'page' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
18 'includei10n' => True, // ๋ถˆ๋ฆฌ์–ธ
19 'locale' => 'locale_example', // ๋ฌธ์ž์—ด
20 'is_crawler' => True, // ๋ถˆ๋ฆฌ์–ธ
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
domainstringpathYes

Response

๋ฐ˜ํ™˜: DeleteDomainConfigResponse

์˜ˆ์ œ

deleteDomainConfig ์˜ˆ์ œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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 = 'domain_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteDomainConfig($tenant_id, $domain);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

๋„๋ฉ”์ธ ์„ค์ • ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
domainstringpathYes

Response

Returns: GetDomainConfigResponse

Example

getDomainConfig ์˜ˆ์ œ
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 = 'domain_example'; // string
21
22
23try {
24 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

๋„๋ฉ”์ธ ์„ค์ •๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
domainToUpdatestringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: PatchDomainConfigResponse

์˜ˆ์‹œ

patchDomainConfig ์˜ˆ์‹œ
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$domain_to_update = 'domain_to_update_example'; // ๋ฌธ์ž์—ด
19$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
20
21
22try {
23 $result = $apiInstance->patchDomainConfig($tenant_id, $domain_to_update, $patch_domain_config_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->patchDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

๋„๋ฉ”์ธ ์„ค์ • ๋Œ€์ฒด Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
domainToUpdatestringpathYes

์‘๋‹ต

Returns: PutDomainConfigResponse

์˜ˆ์‹œ

putDomainConfig ์˜ˆ์‹œ
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$domain_to_update = 'domain_to_update_example'; // ๋ฌธ์ž์—ด
21$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
22
23
24try {
25 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

์ด๋ฉ”์ผ ํ…œํ”Œ๋ฆฟ ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateEmailTemplateResponse

์˜ˆ์‹œ

createEmailTemplate ์˜ˆ์‹œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
25
26
27try {
28 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
32}
33

์ด๋ฉ”์ผ ํ…œํ”Œ๋ฆฟ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

deleteEmailTemplate ์˜ˆ์ œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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->deleteEmailTemplate($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
27}
28

์ด๋ฉ”์ผ ํ…œํ”Œ๋ฆฟ ๋ Œ๋” ์˜ค๋ฅ˜ ์‚ญ์ œ Internal Link

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
errorIdstringpathYes

Response

Returns: APIEmptyResponse

Example

deleteEmailTemplateRenderError ์˜ˆ์‹œ
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$error_id = 'error_id_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

Returns: 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'; // ๋ฌธ์ž์—ด
20$id = 'id_example'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes

์‘๋‹ต

Returns: GetEmailTemplateDefinitionsResponse

์˜ˆ์‹œ

getEmailTemplateDefinitions ์˜ˆ์ œ
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
20
21try {
22 $result = $apiInstance->getEmailTemplateDefinitions($tenant_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getEmailTemplateDefinitions: ', $e->getMessage(), PHP_EOL;
26}
27

์ด๋ฉ”์ผ ํ…œํ”Œ๋ฆฟ ๋ Œ๋” ์˜ค๋ฅ˜ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
skipnumberqueryNo

์‘๋‹ต

Returns: 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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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$skip = 3.4; // float
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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetEmailTemplatesResponse

์˜ˆ์ œ

getEmailTemplates ์˜ˆ์ œ
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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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->getEmailTemplates($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
28}
29

์ด๋ฉ”์ผ ํ…œํ”Œ๋ฆฟ ๋ Œ๋” Internal Link

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
localestringquery์•„๋‹ˆ์˜ค

Response

Returns: RenderEmailTemplateResponse

Example

renderEmailTemplate ์˜ˆ์‹œ
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$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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

Returns: APIEmptyResponse

์˜ˆ์‹œ

updateEmailTemplate ์˜ˆ์‹œ
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 ํ‚ค์— ์ ‘๋‘์‚ฌ(e.g. 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_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
21
22
23try {
24 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

์ด๋ฒคํŠธ ๋กœ๊ทธ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

req tenantId urlId userIdWS

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

์‘๋‹ต

Returns: 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; // ์ •์ˆ˜
17$end_time = 56; // ์ •์ˆ˜
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

ํŒŒ๋ผ๋ฏธํ„ฐ

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ
userIdWSstringquery์˜ˆ
startTimeintegerquery์˜ˆ
endTimeintegerquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$url_id = 'url_id_example'; // string
15$user_id_ws = 'user_id_ws_example'; // string
16$start_time = 56; // int
17$end_time = 56; // int
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
broadcastIdstringquery์•„๋‹ˆ์˜ค
isLivebooleanquery์•„๋‹ˆ์˜ค
doSpamCheckbooleanquery์•„๋‹ˆ์˜ค
skipDupCheckbooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: CreateFeedPostsResponse

์˜ˆ์ œ

createFeedPost ์˜ˆ์ œ
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$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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstring๊ฒฝ๋กœ์˜ˆ
broadcastIdstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
ssostring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
14$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // ๋ฌธ์ž์—ด
17 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

์‘๋‹ต

๋ฐ˜ํ™˜: 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


์š”์ฒญ
tenantId
afterId

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetFeedPostsResponse

์˜ˆ์‹œ

getFeedPosts ์˜ˆ์ œ
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 'after_id' => 'after_id_example', // ๋ฌธ์ž์—ด
22 'limit' => 56, // ์ •์ˆ˜
23 'tags' => array('tags_example'), // ๋ฌธ์ž์—ด[]
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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo
ssostringqueryNo
isCrawlerbooleanqueryNo
includeUserInfobooleanqueryNo

Response

๋ฐ˜ํ™˜: PublicFeedPostsResponse

Example

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'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'limit' => 56, // int
17 'tags' => array('tags_example'), // string[]
18 'sso' => 'sso_example', // string
19 'is_crawler' => True, // bool
20 'include_user_info' => True, // bool
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
postIdsarrayquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: FeedPostsStatsResponse

Example

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
postIdsarrayquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
14$options = [
15 'post_ids' => array('post_ids_example'), // ๋ฌธ์ž์—ด ๋ฐฐ์—ด
16 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

Parameters

์ด๋ฆ„์œ ํ˜•Locationํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
postIdstringpath์˜ˆ
isUndobooleanquery์•„๋‹ˆ์˜ค
broadcastIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$post_id = 'post_id_example'; // string
15$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
16$options = [
17 'is_undo' => True, // bool
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
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

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

Response

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ํ”„๋ฆฌํ”ฝ์Šค(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
14$post_id = 'post_id_example'; // ๋ฌธ์ž์—ด
15$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // ๋ฌธ์ž์—ด
18 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
isFlaggedbooleanquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$comment_id = 'comment_id_example'; // string
15$is_flagged = True; // bool
16$sso = 'sso_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpathYes
largeInternalURLSanitizedstringqueryYes

์‘๋‹ต

Returns: GifGetLargeResponse

์˜ˆ์ œ

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'; // ๋ฌธ์ž์—ด
14$large_internal_url_sanitized = 'large_internal_url_sanitized_example'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
localestringquery์•„๋‹ˆ์˜ค
ratingstringquery์•„๋‹ˆ์˜ค
pagenumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes

Response

Returns: CreateHashTagResponse

Example

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: BulkCreateHashTagsResponse

์˜ˆ์‹œ

addHashTagsBulk ์˜ˆ์‹œ
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 ํ‚ค์— prefix (์˜ˆ: 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$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
21
22
23try {
24 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
28}
29

ํ•ด์‹œํƒœ๊ทธ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
tagstringpath์˜ˆ

์‘๋‹ต

Returns: 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'; // ๋ฌธ์ž์—ด
20$tag = 'tag_example'; // ๋ฌธ์ž์—ด
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 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

ํ•ด์‹œํƒœ๊ทธ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
pagenumberqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetHashTagsResponse

์˜ˆ์‹œ

getHashTags ์˜ˆ์‹œ
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$page = 3.4; // ๋ถ€๋™์†Œ์ˆ˜์ 
20
21
22try {
23 $result = $apiInstance->getHashTags($tenant_id, $page);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getHashTags: ', $e->getMessage(), PHP_EOL;
27}
28

ํ•ด์‹œํƒœ๊ทธ ๋ถ€๋ถ„ ์ˆ˜์ • Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
tagstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$tag = 'tag_example'; // ๋ฌธ์ž์—ด
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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
voteIdstringpath์˜ˆ
broadcastIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: VoteDeleteResponse

Example

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'; // ๋ฌธ์ž์—ด
14$options = [
15 'page' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
16 'count' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
17 'text_search' => 'text_search_example', // ๋ฌธ์ž์—ด
18 'by_ip_from_comment' => 'by_ip_from_comment_example', // ๋ฌธ์ž์—ด
19 'filters' => 'filters_example', // ๋ฌธ์ž์—ด
20 'search_filters' => 'search_filters_example', // ๋ฌธ์ž์—ด
21 'sorts' => 'sorts_example', // ๋ฌธ์ž์—ด
22 'demo' => True, // ๋ถˆ๋ฆฌ์–ธ
23 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
batchJobIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
text-searchstringquery์•„๋‹ˆ์˜ค
byIPFromCommentstringquery์•„๋‹ˆ์˜ค
filtersstringquery์•„๋‹ˆ์˜ค
searchFiltersstringquery์•„๋‹ˆ์˜ค
afterIdstringquery์•„๋‹ˆ์˜ค
demobooleanquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

Returns: 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

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Response

๋ฐ˜ํ™˜: GetBannedUsersFromCommentResponse

Example

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
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'; // ๋ฌธ์ž์—ด
14$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filter' => 'filter_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'demo' => True, // bool
20 'sso' => 'sso_example', // string
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

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: GetBannedUsersCountResponse

Example

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'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
14$sso = 'sso_example'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
badgesUserIdstringquery์•„๋‹ˆ์˜ค
commentIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetCommentTextResponse

์˜ˆ์‹œ

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'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
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, // 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->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


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
valuestringquery์•„๋‹ˆ์˜ค
filtersstringquery์•„๋‹ˆ์˜ค
searchFiltersstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Response

Returns: ModerationSiteSearchResponse

Example

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'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 'sso' => 'sso_example', // string
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
ssostringqueryNo

Response

Returns: APIModerateGetUserBanPreferencesResponse

Example

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'; // string
14$sso = 'sso_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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'; // ๋ฌธ์ž์—ด
14$options = [
15 'comment_id' => 'comment_id_example', // ๋ฌธ์ž์—ด
16 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

API ๋‚ด๋ณด๋‚ด๊ธฐ ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
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 'ModerationApi->postApiExport ํ˜ธ์ถœ ์ค‘ ์˜ˆ์™ธ ๋ฐœ์ƒ: ', $e->getMessage(), PHP_EOL;
29}
30

๋Œ“๊ธ€์—์„œ ์‚ฌ์šฉ์ž ์ฐจ๋‹จ(POST) Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
commentIdstringpathYes
banEmailbooleanqueryNo
banEmailDomainbooleanqueryNo
banIPbooleanqueryNo
deleteAllUsersCommentsbooleanqueryNo
bannedUntilstringqueryNo
isShadowBanbooleanqueryNo
updateIdstringqueryNo
banReasonstringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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

์‚ฌ์šฉ์ž ์ฐจ๋‹จ ์ทจ์†Œ(POST) 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'; // ๋ฌธ์ž์—ด
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', // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
14$comments_by_ids_params = new \FastComments\Client\Model\CommentsByIdsParams(); // \FastComments\Client\Model\CommentsByIdsParams
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
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

๋Œ“๊ธ€ ์‹ ๊ณ (POST) Internal Link

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

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

๋Œ“๊ธ€ ์ œ๊ฑฐ(POST) Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // 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->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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
approvedbooleanqueryNo
broadcastIdstringqueryNo
sSOstringqueryNo

Response

Returns: SetCommentApprovedResponse

Example

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'; // ๋ฌธ์ž์—ด
14$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
15$options = [
16 'approved' => True, // ๋ถˆ๋ฆฌ์–ธ
17 'broadcast_id' => 'broadcast_id_example', // ๋ฌธ์ž์—ด
18 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'reviewed' => True, // bool
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
commentIdstringpathYes
spambooleanqueryNo
permNotSpambooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

Returns: 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'; // ๋ฌธ์ž์—ด
14$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
15$options = [
16 'spam' => True, // ๋ถˆ๋ฆฌ์–ธ
17 'perm_not_spam' => True, // ๋ถˆ๋ฆฌ์–ธ
18 'broadcast_id' => 'broadcast_id_example', // ๋ฌธ์ž์—ด
19 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

๋Œ“๊ธ€ ํ…์ŠคํŠธ ์„ค์ •(POST) Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
broadcastIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$comment_id = 'comment_id_example'; // string
15$set_comment_text_params = new \FastComments\Client\Model\SetCommentTextParams(); // \FastComments\Client\Model\SetCommentTextParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
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 'Exception when calling ModerationApi->postSetCommentText: ', $e->getMessage(), PHP_EOL;
27}
28

๋Œ“๊ธ€ ์‹ ๊ณ  ์ทจ์†Œ(POST) Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
broadcastIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

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'; // ๋ฌธ์ž์—ด
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->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

ํˆฌํ‘œ(POST) Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์š”์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringpath์˜ˆ
directionstringquery์•„๋‹ˆ์˜ค
broadcastIdstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
14$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
15$options = [
16 'direction' => 'direction_example', // ๋ฌธ์ž์—ด
17 'broadcast_id' => 'broadcast_id_example', // ๋ฌธ์ž์—ด
18 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

๋ฐฐ์ง€ ์ˆ˜์—ฌ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

Returns: 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

์Šค๋ ˆ๋“œ ๋‹ซ๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
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

๋ฐฐ์ง€ ์ œ๊ฑฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
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'; // ๋ฌธ์ž์—ด
14$badge_id = 'badge_id_example'; // ๋ฌธ์ž์—ด
15$options = [
16 'user_id' => 'user_id_example', // ๋ฌธ์ž์—ด
17 'comment_id' => 'comment_id_example', // ๋ฌธ์ž์—ด
18 'broadcast_id' => 'broadcast_id_example', // ๋ฌธ์ž์—ด
19 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

์Šค๋ ˆ๋“œ ์žฌ์˜คํ”ˆ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
trustFactorstringquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: SetUserTrustFactorResponse

์˜ˆ์‹œ

setTrustFactor ์˜ˆ์ œ
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 'trust_factor' => 'trust_factor_example', // ๋ฌธ์ž์—ด
17 'sso' => 'sso_example', // ๋ฌธ์ž์—ด
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
sendEmailstringqueryNo

Response

Returns: APIEmptyResponse

Example

deleteModerator ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7// ํ•„์š”์— ๋”ฐ๋ผ ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$send_email = 'send_email_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
28}
29

๋ชจ๋”๋ ˆ์ดํ„ฐ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜๊ฐ’: GetModeratorResponse

์˜ˆ์‹œ

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'; // string
20$id = 'id_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetModeratorsResponse

์˜ˆ์‹œ

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

์ดˆ๋Œ€ ์ „์†ก Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
fromNamestringqueryYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜๊ณ  API ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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_moderator_body = new \FastComments\Client\Model\UpdateModeratorBody(); // \FastComments\Client\Model\UpdateModeratorBody
22
23
24try {
25 $result = $apiInstance->updateModerator($tenant_id, $id, $update_moderator_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateModerator: ', $e->getMessage(), PHP_EOL;
29}
30

์•Œ๋ฆผ ์ˆ˜ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ prefix(e.g. 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->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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
20$id = 'id_example'; // ๋ฌธ์ž์—ด
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// ํ•„์š”์— ๋”ฐ๋ผ 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$options = [
20 'user_id' => 'user_id_example', // ๋ฌธ์ž์—ด
21 'url_id' => 'url_id_example', // ๋ฌธ์ž์—ด
22 'from_comment_id' => 'from_comment_id_example', // ๋ฌธ์ž์—ด
23 'viewed' => True, // ๋ถˆ๋ฆฌ์–ธ
24 'type' => 'type_example', // ๋ฌธ์ž์—ด
25];
26
27
28try {
29 $result = $apiInstance->getNotificationCount($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
33}
34

์•Œ๋ฆผ๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo
skipnumberqueryNo

Response

Returns: GetNotificationsResponse

Example

getNotifications ์˜ˆ์‹œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Configure API key authorization: api_key
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
8// ํ•„์š”์— ๋”ฐ๋ผ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์‹ญ์‹œ์˜ค
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 // ์‚ฌ์šฉ์ž ์ •์˜ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์‹ญ์‹œ์˜ค.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22// ๋ฌธ์ž์—ด
23$options = [
24 'user_id' => 'user_id_example', // string
25 // ๋ฌธ์ž์—ด
26 'url_id' => 'url_id_example', // string
27 // ๋ฌธ์ž์—ด
28 'from_comment_id' => 'from_comment_id_example', // string
29 // ๋ฌธ์ž์—ด
30 'viewed' => True, // bool
31 // ๋ถˆ๋ฆฌ์–ธ
32 'type' => 'type_example', // string
33 // ๋ฌธ์ž์—ด
34 'skip' => 3.4, // float
35 // ๋ถ€๋™์†Œ์ˆ˜์ 
36];
37
38
39try {
40 $result = $apiInstance->getNotifications($tenant_id, $options);
41 print_r($result);
42} catch (Exception $e) {
43 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
44}
45

์•Œ๋ฆผ ์—…๋ฐ์ดํŠธ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

updateNotification ์˜ˆ์‹œ
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_notification_body = new \FastComments\Client\Model\UpdateNotificationBody(); // \FastComments\Client\Model\UpdateNotificationBody
22$user_id = 'user_id_example'; // string
23
24
25try {
26 $result = $apiInstance->updateNotification($tenant_id, $id, $update_notification_body, $user_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateNotification: ', $e->getMessage(), PHP_EOL;
30}
31

V1 ํŽ˜์ด์ง€ ๋ฆฌ์•กํŠธ ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpathYes
urlIdstringqueryYes
titlestringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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

์‘๋‹ต

Returns: 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'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16$title = 'title_example'; // string
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 // ์‚ฌ์šฉ์ž ์ •์˜ 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->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

Parameters

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ
idstringquery์˜ˆ

Response

Returns: CreateV1PageReact

Example

deleteV2PageReact ์˜ˆ์‹œ
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->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


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$url_id = 'url_id_example'; // string
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ

Response

Returns: GetV2PageReacts

Example

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'; // ๋ฌธ์ž์—ด
14$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
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

์‘๋‹ต

๋ฐ˜ํ™˜: GetV2PageReactUsersResponse

์˜ˆ์‹œ

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'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
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// 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$create_api_page_data = new \FastComments\Client\Model\CreateAPIPageData(); // \FastComments\Client\Model\CreateAPIPageData
24
25
26try {
27 $result = $apiInstance->addPage($tenant_id, $create_api_page_data);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->addPage: ', $e->getMessage(), PHP_EOL;
31}
32

ํŽ˜์ด์ง€ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: DeletePageAPIResponse

์˜ˆ์‹œ

deletePage ์˜ˆ์‹œ
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->deletePage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deletePage: ', $e->getMessage(), PHP_EOL;
28}
29

์˜คํ”„๋ผ์ธ ์‚ฌ์šฉ์ž ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Past commenters on the page who are NOT currently online. Sorted by displayName.
Use this after exhausting /users/online to render a "Members" section.
Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}
index from afterName forward via $gt, no $skip cost.

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpathYes
urlIdstringqueryYesํŽ˜์ด์ง€ URL ์‹๋ณ„์ž (cleaned server-side).
afterNamestringqueryNoCursor: pass nextAfterName from the previous response.
afterUserIdstringqueryNoCursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.

Response

๋ฐ˜ํ™˜: 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 ์‹๋ณ„์ž (cleaned server-side).
15$options = [
16 'after_name' => 'after_name_example', // string | Cursor: pass nextAfterName from the previous response.
17 'after_user_id' => 'after_user_id_example', // string | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.
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

Currently-online viewers of a page: ํŽ˜์ด์ง€์˜ ํ˜„์žฌ ์›น์†Œ์ผ“ ์„ธ์…˜์ด ๊ตฌ๋… ์ค‘์ธ ์‚ฌ์šฉ์ž์ž…๋‹ˆ๋‹ค.
Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).
Returns anonCount + totalCount (๋ฐฉ ์ „์ฒด ๊ตฌ๋…์ž ์ˆ˜, ์—ด๊ฑฐํ•˜์ง€ ์•Š๋Š” ์ต๋ช… ๋ทฐ์–ด ํฌํ•จ).

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesํŽ˜์ด์ง€ URL ์‹๋ณ„์ž (์„œ๋ฒ„ ์ธก์—์„œ ์ •๋ฆฌ๋œ).
afterNamestringqueryNo์ปค์„œ: ์ด์ „ ์‘๋‹ต์˜ nextAfterName์„ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.
afterUserIdstringqueryNo์ปค์„œ ๋™์  ํ•ด๊ฒฐ: ์ด์ „ ์‘๋‹ต์˜ nextAfterUserId์„ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. afterName์ด ์„ค์ •๋œ ๊ฒฝ์šฐ ์ด๋ฆ„์ด ๋™์ผํ•  ๋•Œ ํ•ญ๋ชฉ์ด ๋ˆ„๋ฝ๋˜์ง€ ์•Š๋„๋ก ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

Response

Returns: 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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes

Response

Returns: GetPageByURLIdAPIResponse

Example

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// ํ•„์š”์— ๋”ฐ๋ผ ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ํ”„๋ฆฌํ”ฝ์Šค(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetPagesAPIResponse

์˜ˆ์‹œ

getPages ์˜ˆ์‹œ
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 ํ‚ค์˜ ์ ‘๋‘์‚ฌ(e.g. 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
25try {
26 $result = $apiInstance->getPages($tenant_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getPages: ', $e->getMessage(), PHP_EOL;
30}
31

ํŽ˜์ด์ง€๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ(๊ณต๊ฐœ) 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.

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringpathYes
cursorstringqueryNo์ด์ „ ์š”์ฒญ์—์„œ nextCursor ๋กœ ๋ฐ˜ํ™˜๋œ ๋ถˆํˆฌ๋ช… ํŽ˜์ด์ง€๋„ค์ด์…˜ ์ปค์„œ. ๋™์ผํ•œ sortBy์™€ ์—ฐ๊ฒฐ๋ฉ๋‹ˆ๋‹ค.
limitintegerqueryNo1..200, ๊ธฐ๋ณธ๊ฐ’ 50
qstringqueryNo์„ ํƒ์  ๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ถ„ ์—†๋Š” ์ œ๋ชฉ ์ ‘๋‘์‚ฌ ํ•„ํ„ฐ.
sortBystringqueryNo์ •๋ ฌ ์ˆœ์„œ. updatedAt (๊ธฐ๋ณธ๊ฐ’, ์ตœ์‹  ์ˆœ), commentCount (๋Œ“๊ธ€์ด ๋งŽ์€ ์ˆœ), ๋˜๋Š” title (์•ŒํŒŒ๋ฒณ ์ˆœ).
hasCommentsbooleanqueryNotrue์ด๋ฉด ์ตœ์†Œ ํ•˜๋‚˜ ์ด์ƒ์˜ ๋Œ“๊ธ€์ด ์žˆ๋Š” ํŽ˜์ด์ง€๋งŒ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

์‘๋‹ต

๋ฐ˜ํ™˜: GetPublicPagesResponse

์˜ˆ์‹œ

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'; // ๋ฌธ์ž์—ด
14$options = [
15 'cursor' => 'cursor_example', // ๋ฌธ์ž์—ด | ์ด์ „ ์š”์ฒญ์—์„œ `nextCursor` ๋กœ ๋ฐ˜ํ™˜๋œ ๋ถˆํˆฌ๋ช… ํŽ˜์ด์ง€๋„ค์ด์…˜ ์ปค์„œ. ๋™์ผํ•œ `sortBy`์™€ ์—ฐ๊ฒฐ๋ฉ๋‹ˆ๋‹ค.
16 'limit' => 56, // ์ •์ˆ˜ | 1..200, ๊ธฐ๋ณธ๊ฐ’ 50
17 'q' => 'q_example', // ๋ฌธ์ž์—ด | ์„ ํƒ์  ๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ถ„ ์—†๋Š” ์ œ๋ชฉ ์ ‘๋‘์‚ฌ ํ•„ํ„ฐ.
18 'sort_by' => new \FastComments\Client\Model\\FastComments\Client\Model\PagesSortBy(), // \FastComments\Client\Model\PagesSortBy | ์ •๋ ฌ ์ˆœ์„œ. `updatedAt` (๊ธฐ๋ณธ๊ฐ’, ์ตœ์‹  ์ˆœ), `commentCount` (๋Œ“๊ธ€์ด ๋งŽ์€ ์ˆœ), ๋˜๋Š” `title` (์•ŒํŒŒ๋ฒณ ์ˆœ).
19 'has_comments' => True, // ๋ถˆ๋ฆฌ์–ธ | true์ด๋ฉด ์ตœ์†Œ ํ•˜๋‚˜ ์ด์ƒ์˜ ๋Œ“๊ธ€์ด ์žˆ๋Š” ํŽ˜์ด์ง€๋งŒ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
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

NameTypeLocationRequiredDescription
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 // 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$ids = 'ids_example'; // string | Comma-delimited 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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
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// ํ•„์š”์— ๋”ฐ๋ผ API ํ‚ค์— ํ”„๋ฆฌํ”ฝ์Šค(e.g. 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_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

๋ณด๋ฅ˜ ์ค‘์ธ ์›นํ›… ์ด๋ฒคํŠธ ์‚ญ์ œ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Response

Returns: APIEmptyResponse

Example

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// ํ•„์š”์— ๋”ฐ๋ผ ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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->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

๋ณด๋ฅ˜ ์ค‘์ธ ์›นํ›… ์ด๋ฒคํŠธ ์ˆ˜ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
commentIdstringquery์•„๋‹ˆ์˜ค
externalIdstringquery์•„๋‹ˆ์˜ค
eventTypestringquery์•„๋‹ˆ์˜ค
typestringquery์•„๋‹ˆ์˜ค
domainstringquery์•„๋‹ˆ์˜ค
attemptCountGTnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
20$options = [
21 'comment_id' => 'comment_id_example', // ๋ฌธ์ž์—ด
22 'external_id' => 'external_id_example', // ๋ฌธ์ž์—ด
23 'event_type' => 'event_type_example', // ๋ฌธ์ž์—ด
24 'type' => 'type_example', // ๋ฌธ์ž์—ด
25 'domain' => 'domain_example', // ๋ฌธ์ž์—ด
26 'attempt_count_gt' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
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

๋ณด๋ฅ˜ ์ค‘์ธ ์›นํ›… ์ด๋ฒคํŠธ๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo
skipnumberqueryNo

Response

๋ฐ˜ํ™˜: GetPendingWebhookEventsResponse

Example

getPendingWebhookEvents ์˜ˆ์ œ
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$options = [
20 'comment_id' => 'comment_id_example', // string
21 'external_id' => 'external_id_example', // string
22 'event_type' => 'event_type_example', // string
23 'type' => 'type_example', // string
24 'domain' => 'domain_example', // string
25 'attempt_count_gt' => 3.4, // float
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getPendingWebhookEvents($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getPendingWebhookEvents: ', $e->getMessage(), PHP_EOL;
35}
36

์งˆ๋ฌธ ์„ค์ • ์ƒ์„ฑ 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// ํ•„์š”์— ๋”ฐ๋ผ ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

Response

๋ฐ˜ํ™˜: APIEmptyResponse

Example

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// ํ•„์š”์— ๋”ฐ๋ผ ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ ํ”„๋ฆฌํ”ฝ์Šค ์„ค์ •(์˜ˆ: Bearer) API ํ‚ค์— ๋Œ€ํ•ด
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->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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
skipnumberqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetQuestionConfigsResponse

์˜ˆ์‹œ

getQuestionConfigs ์˜ˆ์‹œ
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'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

updateQuestionConfig ์˜ˆ์‹œ
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$id = 'id_example'; // string
20$update_question_config_body = new \FastComments\Client\Model\UpdateQuestionConfigBody(); // \FastComments\Client\Model\UpdateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->updateQuestionConfig($tenant_id, $id, $update_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

์งˆ๋ฌธ ๊ฒฐ๊ณผ ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateQuestionResultResponse

์˜ˆ์‹œ

createQuestionResult ์˜ˆ์‹œ
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_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
21
22
23try {
24 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

์งˆ๋ฌธ ๊ฒฐ๊ณผ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

deleteQuestionResult ์˜ˆ์‹œ
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
25
26try {
27 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
31}
32

์งˆ๋ฌธ ๊ฒฐ๊ณผ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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 '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 ํ‚ค์— ๋Œ€ํ•œ prefix(e.g. 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 'url_id' => 'url_id_example', // string
22 'user_id' => 'user_id_example', // string
23 'start_date' => 'start_date_example', // string
24 'question_id' => 'question_id_example', // string
25 'question_ids' => 'question_ids_example', // string
26 'skip' => 3.4, // float
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

Response

๋ฐ˜ํ™˜: AggregateQuestionResultsResponse

Example

aggregateQuestionResults ์˜ˆ์‹œ
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$options = [
21 'question_id' => 'question_id_example', // string
22 'question_ids' => array('question_ids_example'), // string[]
23 'url_id' => 'url_id_example', // string
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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
forceRecalculatebooleanquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: BulkAggregateQuestionResultsResponse

Example

bulkAggregateQuestionResults ์˜ˆ์‹œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$bulk_aggregate_question_results_request = new \FastComments\Client\Model\BulkAggregateQuestionResultsRequest(); // \FastComments\Client\Model\BulkAggregateQuestionResultsRequest
20$force_recalculate = True; // bool
21
22
23try {
24 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
28}
29

๋Œ“๊ธ€๊ณผ ์งˆ๋ฌธ ๊ฒฐ๊ณผ ๊ฒฐํ•ฉ 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
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7// ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
deleteCommentsbooleanquery์•„๋‹ˆ์˜ค
commentDeleteModestringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteSSOUserAPIResponse

์˜ˆ์‹œ

deleteSSOUser ์˜ˆ์‹œ
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$options = [
22 'delete_comments' => True, // ๋ถˆ๋ฆฌ์–ธ
23 'comment_delete_mode' => 'comment_delete_mode_example', // ๋ฌธ์ž์—ด
24];
25
26
27try {
28 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
32}
33

์ด๋ฉ”์ผ๋กœ 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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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$email = 'email_example'; // ๋ฌธ์ž์—ด
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
skipintegerqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetSSOUsersResponse

์˜ˆ์‹œ

getSSOUsers ์˜ˆ์ œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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 = 56; // int
24
25
26try {
27 $result = $apiInstance->getSSOUsers($tenant_id, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getSSOUsers: ', $e->getMessage(), PHP_EOL;
31}
32

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// ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ ํ”„๋ฆฌํ”ฝ์Šค ์„ค์ • (์˜ˆ: Bearer) ์„ API ํ‚ค์— ์ ์šฉ, ํ•„์š”ํ•œ ๊ฒฝ์šฐ
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
updateCommentsbooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // ๋ถˆ๋ฆฌ์–ธ
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์˜ˆ

์‘๋‹ต

Returns: 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'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteSubscriptionAPIResponse

์˜ˆ์‹œ

deleteSubscription ์˜ˆ์‹œ
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 ํ‚ค์— ๋Œ€ํ•œ ํ”„๋ฆฌํ”ฝ์Šค(e.g. 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$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
21
22
23try {
24 $result = $apiInstance->deleteSubscription($tenant_id, $id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

๊ตฌ๋…๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ 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// ํ•„์š”์— ๋”ฐ๋ผ ์•„๋ž˜์˜ ์ ‘๋‘์‚ฌ๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์ฃผ์„์„ ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
20$id = 'id_example'; // ๋ฌธ์ž์—ด
21$update_api_user_subscription_data = new \FastComments\Client\Model\UpdateAPIUserSubscriptionData(); // \FastComments\Client\Model\UpdateAPIUserSubscriptionData
22$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
yearNumbernumberquery์•„๋‹ˆ์˜ค
monthNumbernumberquery์•„๋‹ˆ์˜ค
dayNumbernumberquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantDailyUsagesResponse

์˜ˆ์ œ

getTenantDailyUsages ์˜ˆ์ œ
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$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 'year_number' => 3.4, // float
21 'month_number' => 3.4, // float
22 'day_number' => 3.4, // float
23 'skip' => 3.4, // float
24];
25
26
27try {
28 $result = $apiInstance->getTenantDailyUsages($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
32}
33

ํ…Œ๋„ŒํŠธ ํŒจํ‚ค์ง€ ์ƒ์„ฑ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes

Response

๋ฐ˜ํ™˜: CreateTenantPackageResponse

Example

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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

deleteTenantPackage ์˜ˆ์‹œ
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 ํ‚ค์— ๋Œ€ํ•œ ํ”„๋ฆฌํ”ฝ์Šค(e.g. 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->deleteTenantPackage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

ํ…Œ๋„ŒํŠธ ํŒจํ‚ค์ง€ ๊ฐ€์ ธ์˜ค๊ธฐ 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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
skipnumberqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantPackagesResponse

์˜ˆ์‹œ

getTenantPackages ์˜ˆ์‹œ
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->getTenantPackages($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantPackages: ', $e->getMessage(), PHP_EOL;
28}
29

ํ…Œ๋„ŒํŠธ ํŒจํ‚ค์ง€ ๋Œ€์ฒด 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 ํ‚ค์— ์ ‘๋‘์‚ฌ(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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_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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์š” ์—ฌ๋ถ€์„ค๋ช…
tenantIdstringqueryYes

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTenantUserResponse

์˜ˆ์‹œ

createTenantUser ์˜ˆ์‹œ
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$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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
deleteCommentsstringqueryNo
commentDeleteModestringqueryNo

Response

๋ฐ˜ํ™˜: APIEmptyResponse

Example

deleteTenantUser ์˜ˆ์‹œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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' => 'delete_comments_example', // string
22 'comment_delete_mode' => 'comment_delete_mode_example', // string
23];
24
25
26try {
27 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
31}
32

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // ๋ฌธ์ž์—ด
20$id = 'id_example'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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->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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
updateCommentsstringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์ œ

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// ํ•„์š”์— ๋”ฐ๋ผ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes
redirectURLstringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์ œ

sendLoginLink ์˜ˆ์ œ
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$redirect_url = 'redirect_url_example'; // string
21
22
23try {
24 $result = $apiInstance->sendLoginLink($tenant_id, $id, $redirect_url);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->sendLoginLink: ', $e->getMessage(), PHP_EOL;
28}
29

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ์—…๋ฐ์ดํŠธ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
updateCommentsstringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์ œ

updateTenantUser ์˜ˆ์ œ
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_tenant_user_body = new \FastComments\Client\Model\UpdateTenantUserBody(); // \FastComments\Client\Model\UpdateTenantUserBody
21$update_comments = 'update_comments_example'; // string
22
23
24try {
25 $result = $apiInstance->updateTenantUser($tenant_id, $id, $update_tenant_user_body, $update_comments);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenantUser: ', $e->getMessage(), PHP_EOL;
29}
30

ํ…Œ๋„ŒํŠธ ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTenantResponse

์˜ˆ์ œ

createTenant ์˜ˆ์ œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
20
21
22try {
23 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
27}
28

ํ…Œ๋„ŒํŠธ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
surestringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

deleteTenant ์˜ˆ์‹œ
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$sure = 'sure_example'; // ๋ฌธ์ž์—ด
20
21
22try {
23 $result = $apiInstance->deleteTenant($tenant_id, $id, $sure);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteTenant: ', $e->getMessage(), PHP_EOL;
27}
28

ํ…Œ๋„ŒํŠธ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantResponse

์˜ˆ์‹œ

getTenant ์˜ˆ์‹œ
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'; // ๋ฌธ์ž์—ด
20$id = 'id_example'; // ๋ฌธ์ž์—ด
21
22
23try {
24 $result = $apiInstance->getTenant($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenant: ', $e->getMessage(), PHP_EOL;
28}
29

ํ…Œ๋„ŒํŠธ๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
metastringqueryNo
skipnumberqueryNo

Response

๋ฐ˜ํ™˜: GetTenantsResponse

Example

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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptyResponse

์˜ˆ์‹œ

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'; // ๋ฌธ์ž์—ด
20$id = 'id_example'; // ๋ฌธ์ž์—ด
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// ํ•„์š” ์‹œ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$id = 'id_example'; // ๋ฌธ์ž์—ด
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
userIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTicketResponse

์˜ˆ์‹œ

createTicket ์˜ˆ์ œ
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$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
20$create_ticket_body = new \FastComments\Client\Model\CreateTicketBody(); // \FastComments\Client\Model\CreateTicketBody
21
22
23try {
24 $result = $apiInstance->createTicket($tenant_id, $user_id, $create_ticket_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTicket: ', $e->getMessage(), PHP_EOL;
28}
29

ํ‹ฐ์ผ“ ๊ฐ€์ ธ์˜ค๊ธฐ 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
namespacestringpath์˜ˆ
componentstringpath์˜ˆ
localestringquery์•„๋‹ˆ์˜ค
useFullTranslationIdsbooleanquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: 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'; // string
14$component = 'component_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'use_full_translation_ids' => True, // bool
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

Upload and resize an image โ†’ ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ๋ฐ ํฌ๊ธฐ ์กฐ์ •

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
sizePresetstringquery์•„๋‹ˆ์˜คSize preset: "Default" (1000x1000px) ๋˜๋Š” "CrossPlatform" (์ธ๊ธฐ ๋””๋ฐ”์ด์Šค์šฉ ํฌ๊ธฐ๋ฅผ ์ƒ์„ฑ)
urlIdstringquery์•„๋‹ˆ์˜คPage id that upload is happening from, to configure โ†’ ์—…๋กœ๋“œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํŽ˜์ด์ง€ ID, ๊ตฌ์„ฑ์šฉ

Response

Returns: UploadImageResponse โ†’ ๋ฐ˜ํ™˜: UploadImageResponse

Example

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 | Size preset: "Default" (1000x1000px) ๋˜๋Š” "CrossPlatform" (์ธ๊ธฐ ๋””๋ฐ”์ด์Šค์šฉ ํฌ๊ธฐ๋ฅผ ์ƒ์„ฑ)
17 'url_id' => 'url_id_example', // string | Page id that upload is happening from, to configure โ†’ ์—…๋กœ๋“œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํŽ˜์ด์ง€ 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'; // string
20$id = 'id_example'; // string
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
userIdstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
20$user_id = 'user_id_example'; // string
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

Parameters

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
limitnumberquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: APIGetUserBadgeProgressListResponse

Example

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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ

Response

๋ฐ˜ํ™˜: APICreateUserBadgeResponse

Example

createUserBadge ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7// ํ•„์š”์— ๋”ฐ๋ผ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
20
21
22try {
23 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
27}
28

์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์‚ญ์ œ Internal Link


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: APIEmptySuccessResponse

์˜ˆ์ œ

deleteUserBadge ์˜ˆ์ œ
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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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->deleteUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

Response

Returns: APIGetUserBadgeResponse

Example

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 ํ‚ค์— ์ ‘๋‘์‚ฌ(e.g. 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

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
badgeIdstringquery์•„๋‹ˆ์˜ค
typenumberquery์•„๋‹ˆ์˜ค
displayedOnCommentsbooleanquery์•„๋‹ˆ์˜ค
limitnumberquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: APIGetUserBadgesResponse

Example

getUserBadges ์˜ˆ์ œ
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 'badge_id' => 'badge_id_example', // ๋ฌธ์ž์—ด
23 'type' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
24 'displayed_on_comments' => True, // ๋ถˆ๋ฆฌ์–ธ
25 'limit' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
26 'skip' => 3.4, // ๋ถ€๋™์†Œ์ˆ˜์ 
27];
28
29
30try {
31 $result = $apiInstance->getUserBadges($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
35}
36

์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์—…๋ฐ์ดํŠธ Internal Link

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

Response

Returns: APIEmptySuccessResponse

์˜ˆ์ œ

updateUserBadge ์˜ˆ์ œ
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_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
22
23
24try {
25 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
29}
30

์‚ฌ์šฉ์ž ์•Œ๋ฆผ ์ˆ˜ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

Response

๋ฐ˜ํ™˜: GetUserNotificationCountResponse

Example

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
urlIdstringqueryNoํ˜„์žฌ ํŽ˜์ด์ง€๊ฐ€ ๊ตฌ๋…๋˜์—ˆ๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ํŒ๋‹จํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetMyNotificationsResponse

์˜ˆ์‹œ

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
afterIdstringquery์•„๋‹ˆ์˜ค
afterCreatedAtintegerquery์•„๋‹ˆ์˜ค
unreadOnlybooleanquery์•„๋‹ˆ์˜ค
dmOnlybooleanquery์•„๋‹ˆ์˜ค
noDmbooleanquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'after_created_at' => 56, // int
17 'unread_only' => True, // bool
18 'dm_only' => True, // bool
19 'no_dm' => True, // bool
20 'sso' => 'sso_example', // string
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.

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
notificationIdstringpathYes
optedInOrOutstringpathYes
commentIdstringqueryYes
ssostringqueryNo

Response

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes
urlstringqueryYes
pageTitlestringqueryYes
subscribedOrUnsubscribedstringpathYes
ssostringqueryNo

์‘๋‹ต

Returns: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
notificationIdstringpathYes
newStatusstringpathYes
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: UpdateUserNotificationStatusResponse

์˜ˆ์‹œ

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'; // ๋ฌธ์ž์—ด
14$notification_id = 'notification_id_example'; // ๋ฌธ์ž์—ด
15$new_status = 'new_status_example'; // ๋ฌธ์ž์—ด
16$sso = 'sso_example'; // ๋ฌธ์ž์—ด
17
18
19try {
20 $result = $apiInstance->updateUserNotificationStatus($tenant_id, $notification_id, $new_status, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'PublicApi->updateUserNotificationStatus ํ˜ธ์ถœ ์ค‘ ์˜ˆ์™ธ ๋ฐœ์ƒ: ', $e->getMessage(), PHP_EOL;
24}
25

์‚ฌ์šฉ์ž ์ ‘์† ์ƒํƒœ๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
urlIdWSstringqueryYes
userIdsstringqueryYes

Response

Returns: GetUserPresenceStatusesResponse

Example

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'; // string
14$url_id_ws = 'url_id_ws_example'; // string
15$user_ids = 'user_ids_example'; // string
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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes
usernameStartsWithstringqueryNo
mentionGroupIdsarrayqueryNo
ssostringqueryNo
searchSectionstringqueryNo

Response

Returns: SearchUsersResult

Example

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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringqueryYes
idstringpathYes

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserResponse

์˜ˆ์‹œ

getUser ์˜ˆ์ œ
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
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// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$comment_id = 'comment_id_example'; // string
20$direction = 'direction_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->createVote($tenant_id, $comment_id, $direction, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
32}
33

ํˆฌํ‘œ ์‚ญ์ œ Internal Link

Parameters

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
editKeystringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: VoteDeleteResponse

์˜ˆ์‹œ

deleteVote ์˜ˆ์‹œ
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 ํ‚ค ์ ‘๋‘์‚ฌ(e.g. 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$edit_key = 'edit_key_example'; // ๋ฌธ์ž์—ด
22
23
24try {
25 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
29}
30

ํˆฌํ‘œ๋“ค ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(e.g. 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$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
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// 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$url_id = 'url_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'anon_user_id' => 'anon_user_id_example', // string
23];
24
25
26try {
27 $result = $apiInstance->getVotesForUser($tenant_id, $url_id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getVotesForUser: ', $e->getMessage(), PHP_EOL;
31}
32

๋„์›€์ด ํ•„์š”ํ•˜์‹ ๊ฐ€์š”?

PHP SDK ์‚ฌ์šฉ ์ค‘ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๊ฑฐ๋‚˜ ์งˆ๋ฌธ์ด ์žˆ๋Š” ๊ฒฝ์šฐ, ๋‹ค์Œ์„ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”:

๊ธฐ์—ฌ

๊ธฐ์—ฌ๋Š” ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค! ๊ธฐ์—ฌ ์ง€์นจ์€ GitHub ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋ฐฉ๋ฌธํ•˜์„ธ์š”.