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;
}

๋ชจ๋ธ Internal Link

๊ถŒํ•œ ๋ถ€์—ฌ Internal Link


API์— ๋Œ€ํ•ด ์ •์˜๋œ ์ธ์ฆ ๋ฐฉ์‹:

api_key

  • ์œ ํ˜•: API ํ‚ค
  • API ํ‚ค ํŒŒ๋ผ๋ฏธํ„ฐ ์ด๋ฆ„: x-api-key
  • ์œ„์น˜: HTTP ํ—ค๋”

์ž‘์„ฑ์ž Internal Link

support@fastcomments.com

์ง‘๊ณ„ Internal Link

๋ฌธ์„œ๋ฅผ ๊ทธ๋ฃนํ™”(groupBy๊ฐ€ ์ œ๊ณต๋œ ๊ฒฝ์šฐ)ํ•˜์—ฌ ์—ฌ๋Ÿฌ ์—ฐ์‚ฐ์„ ์ ์šฉํ•ด ์ง‘๊ณ„ํ•ฉ๋‹ˆ๋‹ค. ํ•ฉ๊ณ„(sum), ๊ณ ์œ  ๊ฐœ์ˆ˜(countDistinct), ํ‰๊ท (avg) ๋“ฑ ๋‹ค์–‘ํ•œ ์—ฐ์‚ฐ์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: AggregationResponse

์˜ˆ์ œ

aggregate ์˜ˆ์ œ
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$tenant_id = 'tenant_id_example'; // string
19$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
20$parent_tenant_id = 'parent_tenant_id_example'; // string
21$include_stats = True; // bool
22
23try {
24 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $parent_tenant_id, $include_stats);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
28}
29

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
limitnumberquery์•„๋‹ˆ์š”
skipnumberquery์•„๋‹ˆ์š”
orderstringquery์•„๋‹ˆ์š”
afternumberquery์•„๋‹ˆ์š”
beforenumberquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: GetAuditLogs200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$limit = 3.4; // float
20$skip = 3.4; // float
21$order = new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(); // \FastComments\Client\Model\SORTDIR
22$after = 3.4; // float
23$before = 3.4; // float
24
25try {
26 $result = $apiInstance->getAuditLogs($tenant_id, $limit, $skip, $order, $after, $before);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
30}
31

๊ณต๊ฐœ ๋Œ“๊ธ€ ์ฐจ๋‹จ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: BlockFromCommentPublic200Response

์˜ˆ์‹œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->blockFromCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->blockFromCommentPublic: ', $e->getMessage(), PHP_EOL;
22}
23

๊ณต๊ฐœ ๋Œ“๊ธ€ ์ฐจ๋‹จ ํ•ด์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: UnBlockCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->unBlockCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->unBlockCommentPublic: ', $e->getMessage(), PHP_EOL;
22}
23

์ฐจ๋‹จ๋œ ๋Œ“๊ธ€ ํ™•์ธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
commentIdsstringquery์˜ˆ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„๋œ ๋Œ“๊ธ€ ID ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค.
ssostringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: CheckedCommentsForBlocked200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_ids = 'comment_ids_example'; // string | ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„๋œ ๋Œ“๊ธ€ ID ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค.
14$sso = 'sso_example'; // string
15
16try {
17 $result = $apiInstance->checkedCommentsForBlocked($tenant_id, $comment_ids, $sso);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->checkedCommentsForBlocked: ', $e->getMessage(), PHP_EOL;
21}
22

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: BlockFromCommentPublic200Response

์˜ˆ์ œ

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 // 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$tenant_id = 'tenant_id_example'; // string
21$id = 'id_example'; // string
22$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
23$user_id = 'user_id_example'; // string
24$anon_user_id = 'anon_user_id_example'; // string
25
26try {
27 $result = $apiInstance->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $user_id, $anon_user_id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
31}
32

๊ณต๊ฐœ ๋Œ“๊ธ€ ์ž‘์„ฑ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
16$session_id = 'session_id_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->createCommentPublic($tenant_id, $url_id, $broadcast_id, $comment_data, $session_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->createCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

๋Œ“๊ธ€ ์‚ญ์ œ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
contextUserIdstringquery์•„๋‹ˆ์˜ค
isLivebooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteComment200Response

์˜ˆ์ œ

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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20$context_user_id = 'context_user_id_example'; // ๋ฌธ์ž์—ด
21$is_live = True; // ๋ถˆ๋ฆฌ์–ธ
22
23try {
24 $result = $apiInstance->deleteComment($tenant_id, $id, $context_user_id, $is_live);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
28}
29

๊ณต๊ฐœ ๋Œ“๊ธ€ ์‚ญ์ œ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringpath์˜ˆ
commentIdstringpath์˜ˆ
broadcastIdstringquery์˜ˆ
editKeystringquery์•„๋‹ˆ์š”
ssostringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$edit_key = 'edit_key_example'; // string
16$sso = 'sso_example'; // string
17
18try {
19 $result = $apiInstance->deleteCommentPublic($tenant_id, $comment_id, $broadcast_id, $edit_key, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->deleteCommentPublic: ', $e->getMessage(), PHP_EOL;
23}
24

๋Œ“๊ธ€ ํˆฌํ‘œ ์‚ญ์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteCommentVote200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
14$vote_id = 'vote_id_example'; // ๋ฌธ์ž์—ด
15$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
16$broadcast_id = 'broadcast_id_example'; // ๋ฌธ์ž์—ด
17$edit_key = 'edit_key_example'; // ๋ฌธ์ž์—ด
18$sso = 'sso_example'; // ๋ฌธ์ž์—ด
19
20try {
21 $result = $apiInstance->deleteCommentVote($tenant_id, $comment_id, $vote_id, $url_id, $broadcast_id, $edit_key, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->deleteCommentVote: ', $e->getMessage(), PHP_EOL;
25}
26

๋Œ“๊ธ€ ์‹ ๊ณ  Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagComment200Response

์˜ˆ์ œ

flagComment ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21$anon_user_id = 'anon_user_id_example'; // string
22
23try {
24 $result = $apiInstance->flagComment($tenant_id, $id, $user_id, $anon_user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->flagComment: ', $e->getMessage(), PHP_EOL;
28}
29

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetComment200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getComment($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getComment: ', $e->getMessage(), PHP_EOL;
26}
27

๋Œ“๊ธ€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstring์ฟผ๋ฆฌ์˜ˆ
pageinteger์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
limitinteger์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
skipinteger์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
asTreeboolean์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
skipChildreninteger์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
limitChildreninteger์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
maxTreeDepthinteger์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
urlIdstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
userIdstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
anonUserIdstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
contextUserIdstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
hashTagstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
parentIdstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค
directionstring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetComments200Response

์˜ˆ์ œ

getComments ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ •์˜ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$page = 56; // int
20$limit = 56; // int
21$skip = 56; // int
22$as_tree = True; // bool
23$skip_children = 56; // int
24$limit_children = 56; // int
25$max_tree_depth = 56; // int
26$url_id = 'url_id_example'; // string
27$user_id = 'user_id_example'; // string
28$anon_user_id = 'anon_user_id_example'; // string
29$context_user_id = 'context_user_id_example'; // string
30$hash_tag = 'hash_tag_example'; // string
31$parent_id = 'parent_id_example'; // string
32$direction = new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(); // \FastComments\Client\Model\SortDirections
33
34try {
35 $result = $apiInstance->getComments($tenant_id, $page, $limit, $skip, $as_tree, $skip_children, $limit_children, $max_tree_depth, $url_id, $user_id, $anon_user_id, $context_user_id, $hash_tag, $parent_id, $direction);
36 print_r($result);
37} catch (Exception $e) {
38 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
39}
40

๊ณต๊ฐœ ๋Œ“๊ธ€ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

req tenantId urlId

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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ
pageintegerquery์•„๋‹ˆ์š”
directionstringquery์•„๋‹ˆ์š”
ssostringquery์•„๋‹ˆ์š”
skipintegerquery์•„๋‹ˆ์š”
skipChildrenintegerquery์•„๋‹ˆ์š”
limitintegerquery์•„๋‹ˆ์š”
limitChildrenintegerquery์•„๋‹ˆ์š”
countChildrenbooleanquery์•„๋‹ˆ์š”
fetchPageForCommentIdstringquery์•„๋‹ˆ์š”
includeConfigbooleanquery์•„๋‹ˆ์š”
countAllbooleanquery์•„๋‹ˆ์š”
includei10nbooleanquery์•„๋‹ˆ์š”
localestringquery์•„๋‹ˆ์š”
modulesstringquery์•„๋‹ˆ์š”
isCrawlerbooleanquery์•„๋‹ˆ์š”
includeNotificationCountbooleanquery์•„๋‹ˆ์š”
asTreebooleanquery์•„๋‹ˆ์š”
maxTreeDepthintegerquery์•„๋‹ˆ์š”
useFullTranslationIdsbooleanquery์•„๋‹ˆ์š”
parentIdstringquery์•„๋‹ˆ์š”
searchTextstringquery์•„๋‹ˆ์š”
hashTagsarrayquery์•„๋‹ˆ์š”
userIdstringquery์•„๋‹ˆ์š”
customConfigStrstringquery์•„๋‹ˆ์š”
afterCommentIdstringquery์•„๋‹ˆ์š”
beforeCommentIdstringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: GetCommentsPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
14$page = 56; // ์ •์ˆ˜
15$direction = new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(); // \FastComments\Client\Model\SortDirections
16$sso = 'sso_example'; // ๋ฌธ์ž์—ด
17$skip = 56; // ์ •์ˆ˜
18$skip_children = 56; // ์ •์ˆ˜
19$limit = 56; // ์ •์ˆ˜
20$limit_children = 56; // ์ •์ˆ˜
21$count_children = True; // ๋ถˆ๋ฆฌ์–ธ
22$fetch_page_for_comment_id = 'fetch_page_for_comment_id_example'; // ๋ฌธ์ž์—ด
23$include_config = True; // ๋ถˆ๋ฆฌ์–ธ
24$count_all = True; // ๋ถˆ๋ฆฌ์–ธ
25$includei10n = True; // ๋ถˆ๋ฆฌ์–ธ
26$locale = 'locale_example'; // ๋ฌธ์ž์—ด
27$modules = 'modules_example'; // ๋ฌธ์ž์—ด
28$is_crawler = True; // ๋ถˆ๋ฆฌ์–ธ
29$include_notification_count = True; // ๋ถˆ๋ฆฌ์–ธ
30$as_tree = True; // ๋ถˆ๋ฆฌ์–ธ
31$max_tree_depth = 56; // ์ •์ˆ˜
32$use_full_translation_ids = True; // ๋ถˆ๋ฆฌ์–ธ
33$parent_id = 'parent_id_example'; // ๋ฌธ์ž์—ด
34$search_text = 'search_text_example'; // ๋ฌธ์ž์—ด
35$hash_tags = array('hash_tags_example'); // ๋ฌธ์ž์—ด[]
36$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
37$custom_config_str = 'custom_config_str_example'; // ๋ฌธ์ž์—ด
38$after_comment_id = 'after_comment_id_example'; // ๋ฌธ์ž์—ด
39$before_comment_id = 'before_comment_id_example'; // ๋ฌธ์ž์—ด
40
41try {
42 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $page, $direction, $sso, $skip, $skip_children, $limit, $limit_children, $count_children, $fetch_page_for_comment_id, $include_config, $count_all, $includei10n, $locale, $modules, $is_crawler, $include_notification_count, $as_tree, $max_tree_depth, $use_full_translation_ids, $parent_id, $search_text, $hash_tags, $user_id, $custom_config_str, $after_comment_id, $before_comment_id);
43 print_r($result);
44} catch (Exception $e) {
45 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
46}
47

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetCommentText200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
14$edit_key = 'edit_key_example'; // ๋ฌธ์ž์—ด
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
16
17try {
18 $result = $apiInstance->getCommentText($tenant_id, $comment_id, $edit_key, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getCommentText: ', $e->getMessage(), PHP_EOL;
22}
23

๋Œ“๊ธ€ ํˆฌํ‘œ ์‚ฌ์šฉ์ž๋ช… ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetCommentVoteUserNames200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
14$dir = 56; // ์ •์ˆ˜
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
16
17try {
18 $result = $apiInstance->getCommentVoteUserNames($tenant_id, $comment_id, $dir, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getCommentVoteUserNames: ', $e->getMessage(), PHP_EOL;
22}
23

๋Œ“๊ธ€ ์ž ๊ทธ๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: LockComment200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
14$broadcast_id = 'broadcast_id_example'; // ๋ฌธ์ž์—ด
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
16
17try {
18 $result = $apiInstance->lockComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->lockComment: ', $e->getMessage(), PHP_EOL;
22}
23

๋Œ“๊ธ€ ๊ณ ์ • Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: PinComment200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
22}
23

๋Œ“๊ธ€ ์ €์žฅ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: SaveComment200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$create_comment_params = new \FastComments\Client\Model\CreateCommentParams(); // \FastComments\Client\Model\CreateCommentParams
20$is_live = True; // bool
21$do_spam_check = True; // bool
22$send_emails = True; // bool
23$populate_notifications = True; // bool
24
25try {
26 $result = $apiInstance->saveComment($tenant_id, $create_comment_params, $is_live, $do_spam_check, $send_emails, $populate_notifications);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->saveComment: ', $e->getMessage(), PHP_EOL;
30}
31

๋Œ“๊ธ€ ์ผ๊ด„ ์ €์žฅ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: SaveComment200Response

์˜ˆ์ œ

saveCommentsBulk ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด ์˜ต์…˜์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_comment_params = array(new \FastComments\Client\Model\CreateCommentParams()); // \FastComments\Client\Model\CreateCommentParams[]
20$is_live = True; // bool
21$do_spam_check = True; // bool
22$send_emails = True; // bool
23$populate_notifications = True; // bool
24
25try {
26 $result = $apiInstance->saveCommentsBulk($tenant_id, $create_comment_params, $is_live, $do_spam_check, $send_emails, $populate_notifications);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->saveCommentsBulk: ', $e->getMessage(), PHP_EOL;
30}
31

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

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

NameTypeLocationRequiredDescription
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: SetCommentText200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$comment_text_update_request = new \FastComments\Client\Model\CommentTextUpdateRequest(); // \FastComments\Client\Model\CommentTextUpdateRequest
16$edit_key = 'edit_key_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->setCommentText($tenant_id, $comment_id, $broadcast_id, $comment_text_update_request, $edit_key, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->setCommentText: ', $e->getMessage(), PHP_EOL;
24}
25

๋Œ“๊ธ€์—์„œ ์‚ฌ์šฉ์ž ์ฐจ๋‹จ ํ•ด์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: UnBlockCommentPublic200Response

์˜ˆ์ œ

unBlockUserFromComment ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
21$user_id = 'user_id_example'; // string
22$anon_user_id = 'anon_user_id_example'; // string
23
24try {
25 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $user_id, $anon_user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
29}
30

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagComment200Response

์˜ˆ์ œ

unFlagComment ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•  ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21$anon_user_id = 'anon_user_id_example'; // string
22
23try {
24 $result = $apiInstance->unFlagComment($tenant_id, $id, $user_id, $anon_user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
28}
29

๋Œ“๊ธ€ ์ž ๊ธˆ ํ•ด์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: LockComment200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
22}
23

๋Œ“๊ธ€ ๊ณ ์ • ํ•ด์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: PinComment200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
14$broadcast_id = 'broadcast_id_example'; // ๋ฌธ์ž์—ด
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
16
17try {
18 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
22}
23

๋Œ“๊ธ€ ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
contextUserIdstringquery์•„๋‹ˆ์˜ค
doSpamCheckbooleanquery์•„๋‹ˆ์˜ค
isLivebooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$body = new \FastComments\Client\Model\PickAPICommentUpdatableCommentFields(); // \FastComments\Client\Model\PickAPICommentUpdatableCommentFields
21$context_user_id = 'context_user_id_example'; // string
22$do_spam_check = True; // bool
23$is_live = True; // bool
24
25try {
26 $result = $apiInstance->updateComment($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL;
30}
31

๋Œ“๊ธ€์— ํˆฌํ‘œํ•˜๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: VoteComment200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
14$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
15$broadcast_id = 'broadcast_id_example'; // ๋ฌธ์ž์—ด
16$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
17$session_id = 'session_id_example'; // ๋ฌธ์ž์—ด
18$sso = 'sso_example'; // ๋ฌธ์ž์—ด
19
20try {
21 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $session_id, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
25}
26

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: AddDomainConfig200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
20
21try {
22 $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
26}
27

๋„๋ฉ”์ธ ์„ค์ • ์‚ญ์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteDomainConfig200Response

์˜ˆ์ œ

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

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetDomainConfig200Response

์˜ˆ์ œ

getDomainConfig ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// ํ•„์š”ํ•˜๋‹ค๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
19 new GuzzleHttp\Client(),
20 $config
21);
22$tenant_id = 'tenant_id_example'; // string
23$domain = 'domain_example'; // string
24
25try {
26 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
30}
31

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetDomainConfigs200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19
20try {
21 $result = $apiInstance->getDomainConfigs($tenant_id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getDomainConfigs: ', $e->getMessage(), PHP_EOL;
25}
26

๋„๋ฉ”์ธ ์„ค์ • ํŒจ์น˜ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
domainToUpdatestringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetDomainConfig200Response

์˜ˆ์ œ

patchDomainConfig ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š” ์‹œ ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // string
19$domain_to_update = 'domain_to_update_example'; // string
20$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
domainToUpdatestringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetDomainConfig200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$domain_to_update = 'domain_to_update_example'; // string
20$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
21
22try {
23 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateEmailTemplate200Response

์˜ˆ์ œ

createEmailTemplate ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
20
21try {
22 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

deleteEmailTemplate ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋‹ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 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$tenant_id = 'tenant_id_example'; // string
21$id = 'id_example'; // string
22
23try {
24 $result = $apiInstance->deleteEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

deleteEmailTemplateRenderError ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•œ ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20$error_id = 'error_id_example'; // ๋ฌธ์ž์—ด
21
22try {
23 $result = $apiInstance->deleteEmailTemplateRenderError($tenant_id, $id, $error_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteEmailTemplateRenderError: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetEmailTemplate200Response

์˜ˆ์ œ

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

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetEmailTemplateDefinitions200Response

์˜ˆ์ œ

getEmailTemplateDefinitions ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•  ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19
20try {
21 $result = $apiInstance->getEmailTemplateDefinitions($tenant_id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getEmailTemplateDefinitions: ', $e->getMessage(), PHP_EOL;
25}
26

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetEmailTemplateRenderErrors200Response

์˜ˆ์ œ

getEmailTemplateRenderErrors ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋‹ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$skip = 3.4; // float
21
22try {
23 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetEmailTemplates200Response

์˜ˆ์ œ

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 ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21try {
22 $result = $apiInstance->getEmailTemplates($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

NameTypeLocationRequiredDescription
tenantIdstring์ฟผ๋ฆฌ์˜ˆ
localestring์ฟผ๋ฆฌ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: RenderEmailTemplate200Response

์˜ˆ์ œ

renderEmailTemplate ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$render_email_template_body = new \FastComments\Client\Model\RenderEmailTemplateBody(); // \FastComments\Client\Model\RenderEmailTemplateBody
20$locale = 'locale_example'; // string
21
22try {
23 $result = $apiInstance->renderEmailTemplate($tenant_id, $render_email_template_body, $locale);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->renderEmailTemplate: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

updateEmailTemplate ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$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
22try {
23 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
27}
28

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


req tenantId urlId userIdWS

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

NameTypeLocationRequiredDescription
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ
userIdWSstringquery์˜ˆ
startTimeintegerquery์˜ˆ
endTimeintegerquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetEventLog200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$user_id_ws = 'user_id_ws_example'; // string
15$start_time = 56; // int
16$end_time = 56; // int
17
18try {
19 $result = $apiInstance->getEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getEventLog: ', $e->getMessage(), PHP_EOL;
23}
24

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

req tenantId urlId userIdWS

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetEventLog200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
14$user_id_ws = 'user_id_ws_example'; // ๋ฌธ์ž์—ด
15$start_time = 56; // ์ •์ˆ˜
16$end_time = 56; // ์ •์ˆ˜
17
18try {
19 $result = $apiInstance->getGlobalEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getGlobalEventLog: ', $e->getMessage(), PHP_EOL;
23}
24

ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ์ƒ์„ฑ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
broadcastIdstringquery์•„๋‹ˆ์˜ค
isLivebooleanquery์•„๋‹ˆ์˜ค
doSpamCheckbooleanquery์•„๋‹ˆ์˜ค
skipDupCheckbooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: CreateFeedPost200Response

์˜ˆ์ œ

createFeedPost ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
20$broadcast_id = 'broadcast_id_example'; // string
21$is_live = True; // bool
22$do_spam_check = True; // bool
23$skip_dup_check = True; // bool
24
25try {
26 $result = $apiInstance->createFeedPost($tenant_id, $create_feed_post_params, $broadcast_id, $is_live, $do_spam_check, $skip_dup_check);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->createFeedPost: ', $e->getMessage(), PHP_EOL;
30}
31

๊ณต๊ฐœ ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ์ƒ์„ฑ Internal Link

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

์ด๋ฆ„ํ˜•์‹Locationํ•„์ˆ˜์„ค๋ช…
tenantIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: CreateFeedPostPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->createFeedPostPublic($tenant_id, $create_feed_post_params, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->createFeedPostPublic: ', $e->getMessage(), PHP_EOL;
22}
23

๊ณต๊ฐœ ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ์‚ญ์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteFeedPostPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$post_id = 'post_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

์š”์ฒญ tenantId afterId

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetFeedPosts200Response

์˜ˆ์ œ

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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ (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$tenant_id = 'tenant_id_example'; // string
19$after_id = 'after_id_example'; // string
20$limit = 56; // int
21$tags = array('tags_example'); // string[]
22
23try {
24 $result = $apiInstance->getFeedPosts($tenant_id, $after_id, $limit, $tags);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getFeedPosts: ', $e->getMessage(), PHP_EOL;
28}
29

๊ณต๊ฐœ ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

req tenantId afterId

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

NameTypeLocationRequiredDescription
tenantIdstringpath์˜ˆ
afterIdstringquery์•„๋‹ˆ์˜ค
limitintegerquery์•„๋‹ˆ์˜ค
tagsarrayquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค
isCrawlerbooleanquery์•„๋‹ˆ์˜ค
includeUserInfobooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetFeedPostsPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$after_id = 'after_id_example'; // string
14$limit = 56; // int
15$tags = array('tags_example'); // string[]
16$sso = 'sso_example'; // string
17$is_crawler = True; // bool
18$include_user_info = True; // bool
19
20try {
21 $result = $apiInstance->getFeedPostsPublic($tenant_id, $after_id, $limit, $tags, $sso, $is_crawler, $include_user_info);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getFeedPostsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ํ†ต๊ณ„ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringpath์˜ˆ
postIdsarrayquery์˜ˆ
ssostringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: GetFeedPostsStats200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$post_ids = array('post_ids_example'); // string[]
14$sso = 'sso_example'; // string
15
16try {
17 $result = $apiInstance->getFeedPostsStats($tenant_id, $post_ids, $sso);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->getFeedPostsStats: ', $e->getMessage(), PHP_EOL;
21}
22

๊ณต๊ฐœ ์‚ฌ์šฉ์ž ๋ฐ˜์‘ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserReactsPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$post_ids = array('post_ids_example'); // string[]
14$sso = 'sso_example'; // string
15
16try {
17 $result = $apiInstance->getUserReactsPublic($tenant_id, $post_ids, $sso);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
21}
22

๊ณต๊ฐœ ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€์— ๋ฐ˜์‘ํ•˜๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: ReactFeedPostPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$post_id = 'post_id_example'; // string
14$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
15$is_undo = True; // bool
16$broadcast_id = 'broadcast_id_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->reactFeedPostPublic($tenant_id, $post_id, $react_body_params, $is_undo, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->reactFeedPostPublic: ', $e->getMessage(), PHP_EOL;
24}
25

ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ์—…๋ฐ์ดํŠธ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

updateFeedPost ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ์ œ๊ฑฐํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$feed_post = new \FastComments\Client\Model\FeedPost(); // \FastComments\Client\Model\FeedPost
21
22try {
23 $result = $apiInstance->updateFeedPost($tenant_id, $id, $feed_post);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateFeedPost: ', $e->getMessage(), PHP_EOL;
27}
28

๊ณต๊ฐœ ํ”ผ๋“œ ๊ฒŒ์‹œ๊ธ€ ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: CreateFeedPostPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$post_id = 'post_id_example'; // string
14$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18try {
19 $result = $apiInstance->updateFeedPostPublic($tenant_id, $post_id, $update_feed_post_params, $broadcast_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->updateFeedPostPublic: ', $e->getMessage(), PHP_EOL;
23}
24

๊ณต๊ฐœ ๋Œ“๊ธ€ ์‹ ๊ณ  Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$is_flagged = True; // bool
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->flagCommentPublic($tenant_id, $comment_id, $is_flagged, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->flagCommentPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ํ•ด์‹œํƒœ๊ทธ ์ถ”๊ฐ€ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: AddHashTag200Response

์˜ˆ์ œ

addHashTag ์˜ˆ์ œ
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$tenant_id = 'tenant_id_example'; // string
19$create_hash_tag_body = new \FastComments\Client\Model\CreateHashTagBody(); // \FastComments\Client\Model\CreateHashTagBody
20
21try {
22 $result = $apiInstance->addHashTag($tenant_id, $create_hash_tag_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addHashTag: ', $e->getMessage(), PHP_EOL;
26}
27

ํ•ด์‹œํƒœ๊ทธ ์ผ๊ด„ ์ถ”๊ฐ€ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: AddHashTagsBulk200Response

์˜ˆ์ œ

addHashTagsBulk ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ์ œ๊ฑฐํ•˜์„ธ์š”
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
19 new GuzzleHttp\Client(),
20 $config
21);
22$tenant_id = 'tenant_id_example'; // string
23$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
24
25try {
26 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
30}
31

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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$tag = 'tag_example'; // string
19$tenant_id = 'tenant_id_example'; // string
20$delete_hash_tag_request = new \FastComments\Client\Model\DeleteHashTagRequest(); // \FastComments\Client\Model\DeleteHashTagRequest
21
22try {
23 $result = $apiInstance->deleteHashTag($tag, $tenant_id, $delete_hash_tag_request);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
27}
28

ํ•ด์‹œํƒœ๊ทธ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetHashTags200Response

์˜ˆ์ œ

getHashTags ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ •์˜ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$page = 3.4; // float
20
21try {
22 $result = $apiInstance->getHashTags($tenant_id, $page);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getHashTags: ', $e->getMessage(), PHP_EOL;
26}
27

ํ•ด์‹œํƒœ๊ทธ ํŒจ์น˜ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: PatchHashTag200Response

์˜ˆ์ œ

patchHashTag ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•  ๊ฒฝ์šฐ API ํ‚ค ์ ‘๋‘์‚ฌ๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š” (์˜ˆ: Bearer)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tag = 'tag_example'; // ๋ฌธ์ž์—ด
19$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
20$update_hash_tag_body = new \FastComments\Client\Model\UpdateHashTagBody(); // \FastComments\Client\Model\UpdateHashTagBody
21
22try {
23 $result = $apiInstance->patchHashTag($tag, $tenant_id, $update_hash_tag_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->patchHashTag: ', $e->getMessage(), PHP_EOL;
27}
28

๋ชจ๋”๋ ˆ์ดํ„ฐ ์ƒ์„ฑ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateModerator200Response

์˜ˆ์ œ

createModerator ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋‹ค๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด ๋ถ€๋ถ„์€ ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_moderator_body = new \FastComments\Client\Model\CreateModeratorBody(); // \FastComments\Client\Model\CreateModeratorBody
20
21try {
22 $result = $apiInstance->createModerator($tenant_id, $create_moderator_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createModerator: ', $e->getMessage(), PHP_EOL;
26}
27

๋ชจ๋”๋ ˆ์ดํ„ฐ ์‚ญ์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

deleteModerator ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20$send_email = 'send_email_example'; // ๋ฌธ์ž์—ด
21
22try {
23 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetModerator200Response

์˜ˆ์ œ

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

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

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

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

๋ฐ˜ํ™˜

๋ฐ˜ํ™˜: GetModerators200Response

์˜ˆ์ œ

getModerators ์˜ˆ์ œ
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$tenant_id = 'tenant_id_example'; // string
18$skip = 3.4; // float
19
20try {
21 $result = $apiInstance->getModerators($tenant_id, $skip);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getModerators: ', $e->getMessage(), PHP_EOL;
25}
26

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$from_name = 'from_name_example'; // string
21
22try {
23 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
27}
28

๋ชจ๋”๋ ˆ์ดํ„ฐ ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์‹œ

deleteNotificationCount ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteNotificationCount($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteNotificationCount: ', $e->getMessage(), PHP_EOL;
26}
27

์บ์‹œ๋œ ์•Œ๋ฆผ ์ˆ˜ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetCachedNotificationCount200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getCachedNotificationCount($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getCachedNotificationCount: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
urlIdstringquery์•„๋‹ˆ์˜ค
fromCommentIdstringquery์•„๋‹ˆ์˜ค
viewedbooleanquery์•„๋‹ˆ์˜ค
typestringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetNotificationCount200Response

์˜ˆ์ œ

getNotificationCount ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
20$url_id = 'url_id_example'; // ๋ฌธ์ž์—ด
21$from_comment_id = 'from_comment_id_example'; // ๋ฌธ์ž์—ด
22$viewed = True; // ๋ถ€์šธ
23$type = 'type_example'; // ๋ฌธ์ž์—ด
24
25try {
26 $result = $apiInstance->getNotificationCount($tenant_id, $user_id, $url_id, $from_comment_id, $viewed, $type);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
30}
31

์•Œ๋ฆผ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
urlIdstringquery์•„๋‹ˆ์˜ค
fromCommentIdstringquery์•„๋‹ˆ์˜ค
viewedbooleanquery์•„๋‹ˆ์˜ค
typestringquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetNotifications200Response

์˜ˆ์ œ

getNotifications ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20$url_id = 'url_id_example'; // string
21$from_comment_id = 'from_comment_id_example'; // string
22$viewed = True; // bool
23$type = 'type_example'; // string
24$skip = 3.4; // float
25
26try {
27 $result = $apiInstance->getNotifications($tenant_id, $user_id, $url_id, $from_comment_id, $viewed, $type, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
31}
32

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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

ํŽ˜์ด์ง€ ์ถ”๊ฐ€ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: AddPageAPIResponse

์˜ˆ์ œ

addPage ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด ๋ถ€๋ถ„์€ ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$create_api_page_data = new \FastComments\Client\Model\CreateAPIPageData(); // \FastComments\Client\Model\CreateAPIPageData
20
21try {
22 $result = $apiInstance->addPage($tenant_id, $create_api_page_data);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addPage: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deletePage($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deletePage: ', $e->getMessage(), PHP_EOL;
26}
27

URL ID๋กœ ํŽ˜์ด์ง€ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

๋ฐ˜ํ™˜

๋ฐ˜ํ™˜: GetPageByURLIdAPIResponse

์˜ˆ์ œ

getPageByURLId ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ 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$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20
21try {
22 $result = $apiInstance->getPageByURLId($tenant_id, $url_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
26}
27

ํŽ˜์ด์ง€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetPagesAPIResponse

์˜ˆ์ œ

getPages ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ •์˜ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19
20try {
21 $result = $apiInstance->getPages($tenant_id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getPages: ', $e->getMessage(), PHP_EOL;
25}
26

ํŽ˜์ด์ง€ ํŒจ์น˜ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_api_page_data = new \FastComments\Client\Model\UpdateAPIPageData(); // \FastComments\Client\Model\UpdateAPIPageData
21
22try {
23 $result = $apiInstance->patchPage($tenant_id, $id, $update_api_page_data);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->patchPage: ', $e->getMessage(), PHP_EOL;
27}
28

๋Œ€๊ธฐ์ค‘์ธ ์›นํ›… ์ด๋ฒคํŠธ ์‚ญ์ œ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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 ํ‚ค์— ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deletePendingWebhookEvent($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deletePendingWebhookEvent: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo

์‘๋‹ต

๋ฐ˜ํ™˜: GetPendingWebhookEventCount200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
20$external_id = 'external_id_example'; // ๋ฌธ์ž์—ด
21$event_type = 'event_type_example'; // ๋ฌธ์ž์—ด
22$type = 'type_example'; // ๋ฌธ์ž์—ด
23$domain = 'domain_example'; // ๋ฌธ์ž์—ด
24$attempt_count_gt = 3.4; // ์‹ค์ˆ˜
25
26try {
27 $result = $apiInstance->getPendingWebhookEventCount($tenant_id, $comment_id, $external_id, $event_type, $type, $domain, $attempt_count_gt);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getPendingWebhookEventCount: ', $e->getMessage(), PHP_EOL;
31}
32

๋Œ€๊ธฐ์ค‘์ธ ์›นํ›… ์ด๋ฒคํŠธ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

์ด๋ฆ„ํ˜•์‹์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
commentIdstringquery์•„๋‹ˆ์˜ค
externalIdstringquery์•„๋‹ˆ์˜ค
eventTypestringquery์•„๋‹ˆ์˜ค
typestringquery์•„๋‹ˆ์˜ค
domainstringquery์•„๋‹ˆ์˜ค
attemptCountGTnumberquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetPendingWebhookEvents200Response

์˜ˆ์ œ

getPendingWebhookEvents ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$comment_id = 'comment_id_example'; // string
20$external_id = 'external_id_example'; // string
21$event_type = 'event_type_example'; // string
22$type = 'type_example'; // string
23$domain = 'domain_example'; // string
24$attempt_count_gt = 3.4; // float
25$skip = 3.4; // float
26
27try {
28 $result = $apiInstance->getPendingWebhookEvents($tenant_id, $comment_id, $external_id, $event_type, $type, $domain, $attempt_count_gt, $skip);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getPendingWebhookEvents: ', $e->getMessage(), PHP_EOL;
32}
33

์งˆ๋ฌธ ์„ค์ • ์ƒ์„ฑ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateQuestionConfig200Response

์˜ˆ์ œ

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 ํ‚ค์— ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // string
19$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
20
21try {
22 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
26}
27

์งˆ๋ฌธ ์„ค์ • ์‚ญ์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

deleteQuestionConfig ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์˜ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteQuestionConfig($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
26}
27

์งˆ๋ฌธ ์„ค์ • ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetQuestionConfig200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getQuestionConfig($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getQuestionConfig: ', $e->getMessage(), PHP_EOL;
26}
27

์งˆ๋ฌธ ์„ค์ • ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetQuestionConfigs200Response

์˜ˆ์ œ

getQuestionConfigs ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ •์˜ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$skip = 3.4; // ์‹ค์ˆ˜
20
21try {
22 $result = $apiInstance->getQuestionConfigs($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getQuestionConfigs: ', $e->getMessage(), PHP_EOL;
26}
27

์งˆ๋ฌธ ์„ค์ • ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstring์ฟผ๋ฆฌ์˜ˆ
idstring๊ฒฝ๋กœ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

updateQuestionConfig ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด ์˜ต์…˜์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$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
22try {
23 $result = $apiInstance->updateQuestionConfig($tenant_id, $id, $update_question_config_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateQuestionConfig: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateQuestionResult200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface` ๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
20
21try {
22 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

deleteQuestionResult ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
26}
27

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


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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetQuestionResult200Response

์˜ˆ์ œ

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

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
urlIdstringquery์•„๋‹ˆ์˜ค
userIdstringquery์•„๋‹ˆ์˜ค
startDatestringquery์•„๋‹ˆ์˜ค
questionIdstringquery์•„๋‹ˆ์˜ค
questionIdsstringquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetQuestionResults200Response

์˜ˆ์ œ

getQuestionResults ์˜ˆ์ œ
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$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20$user_id = 'user_id_example'; // string
21$start_date = 'start_date_example'; // string
22$question_id = 'question_id_example'; // string
23$question_ids = 'question_ids_example'; // string
24$skip = 3.4; // float
25
26try {
27 $result = $apiInstance->getQuestionResults($tenant_id, $url_id, $user_id, $start_date, $question_id, $question_ids, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
31}
32

์งˆ๋ฌธ ๊ฒฐ๊ณผ ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_question_result_body = new \FastComments\Client\Model\UpdateQuestionResultBody(); // \FastComments\Client\Model\UpdateQuestionResultBody
21
22try {
23 $result = $apiInstance->updateQuestionResult($tenant_id, $id, $update_question_result_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateQuestionResult: ', $e->getMessage(), PHP_EOL;
27}
28

์งˆ๋ฌธ ๊ฒฐ๊ณผ ์ง‘๊ณ„ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
questionIdstringquery์•„๋‹ˆ์š”
questionIdsarrayquery์•„๋‹ˆ์š”
urlIdstringquery์•„๋‹ˆ์š”
timeBucketstringquery์•„๋‹ˆ์š”
startDatestringquery์•„๋‹ˆ์š”
forceRecalculatebooleanquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: AggregateQuestionResults200Response

์˜ˆ์ œ

aggregateQuestionResults ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$question_id = 'question_id_example'; // string
20$question_ids = array('question_ids_example'); // string[]
21$url_id = 'url_id_example'; // string
22$time_bucket = new \FastComments\Client\Model\\FastComments\Client\Model\AggregateTimeBucket(); // \FastComments\Client\Model\AggregateTimeBucket
23$start_date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
24$force_recalculate = True; // bool
25
26try {
27 $result = $apiInstance->aggregateQuestionResults($tenant_id, $question_id, $question_ids, $url_id, $time_bucket, $start_date, $force_recalculate);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->aggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
31}
32

์งˆ๋ฌธ ๊ฒฐ๊ณผ ์ผ๊ด„ ์ง‘๊ณ„ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜๊ฐ’: BulkAggregateQuestionResults200Response

์˜ˆ์ œ

bulkAggregateQuestionResults ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$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
22try {
23 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
27}
28

๋Œ“๊ธ€์„ ์งˆ๋ฌธ ๊ฒฐ๊ณผ์™€ ๊ฒฐํ•ฉ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CombineCommentsWithQuestionResults200Response

์˜ˆ์ œ

combineCommentsWithQuestionResults ์˜ˆ์ œ
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 // 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$tenant_id = 'tenant_id_example'; // string
19$question_id = 'question_id_example'; // string
20$question_ids = array('question_ids_example'); // string[]
21$url_id = 'url_id_example'; // string
22$start_date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
23$force_recalculate = True; // bool
24$min_value = 3.4; // float
25$max_value = 3.4; // float
26$limit = 3.4; // float
27
28try {
29 $result = $apiInstance->combineCommentsWithQuestionResults($tenant_id, $question_id, $question_ids, $url_id, $start_date, $force_recalculate, $min_value, $max_value, $limit);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->combineCommentsWithQuestionResults: ', $e->getMessage(), PHP_EOL;
33}
34

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$create_apisso_user_data = new \FastComments\Client\Model\CreateAPISSOUserData(); // \FastComments\Client\Model\CreateAPISSOUserData
20
21try {
22 $result = $apiInstance->addSSOUser($tenant_id, $create_apisso_user_data);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addSSOUser: ', $e->getMessage(), PHP_EOL;
26}
27

SSO ์‚ฌ์šฉ์ž ์‚ญ์ œ Internal Link

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

NameTypeLocationRequiredDescription
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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$delete_comments = True; // bool
21$comment_delete_mode = 'comment_delete_mode_example'; // string
22
23try {
24 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $delete_comments, $comment_delete_mode);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

์ด๋ฉ”์ผ๋กœ SSO ์‚ฌ์šฉ์ž ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
emailstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetSSOUserByEmailAPIResponse

์˜ˆ์ œ

getSSOUserByEmail ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์—ฌ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$email = 'email_example'; // string
20
21try {
22 $result = $apiInstance->getSSOUserByEmail($tenant_id, $email);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSSOUserByEmail: ', $e->getMessage(), PHP_EOL;
26}
27

ID๋กœ SSO ์‚ฌ์šฉ์ž ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetSSOUserByIdAPIResponse

์˜ˆ์ œ

getSSOUserById ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ (์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getSSOUserById($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
26}
27

SSO ์‚ฌ์šฉ์ž ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetSSOUsers200Response

์˜ˆ์ œ

getSSOUsers ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$skip = 56; // ์ •์ˆ˜
20
21try {
22 $result = $apiInstance->getSSOUsers($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSSOUsers: ', $e->getMessage(), PHP_EOL;
26}
27

SSO ์‚ฌ์šฉ์ž ํŒจ์น˜ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: PatchSSOUserAPIResponse

์˜ˆ์ œ

patchSSOUser ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•  ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
21$update_comments = True; // bool
22
23try {
24 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

SSO ์‚ฌ์šฉ์ž ๊ต์ฒด Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
updateCommentsbooleanquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: PutSSOUserAPIResponse

์˜ˆ์ œ

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

๊ตฌ๋… ์ƒ์„ฑ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateSubscriptionAPIResponse

์˜ˆ์ œ

createSubscription ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_api_user_subscription_data = new \FastComments\Client\Model\CreateAPIUserSubscriptionData(); // \FastComments\Client\Model\CreateAPIUserSubscriptionData
20
21try {
22 $result = $apiInstance->createSubscription($tenant_id, $create_api_user_subscription_data);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
26}
27

๊ตฌ๋… ์‚ญ์ œ Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค

Response

Returns: DeleteSubscriptionAPIResponse

Example

deleteSubscription ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ์ œ๊ฑฐํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋Š” ๊ฒฝ์šฐ, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21
22try {
23 $result = $apiInstance->deleteSubscription($tenant_id, $id, $user_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
27}
28

๊ตฌ๋… ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

Parameters

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetSubscriptionsAPIResponse

์˜ˆ์ œ

getSubscriptions ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”์— ๋”ฐ๋ผ API ํ‚ค์˜ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
20
21try {
22 $result = $apiInstance->getSubscriptions($tenant_id, $user_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
26}
27

๊ตฌ๋… ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
userIdstringquery์•„๋‹ˆ์š”

Response

๋ฐ˜ํ™˜๊ฐ’: 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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20$update_api_user_subscription_data = new \FastComments\Client\Model\UpdateAPIUserSubscriptionData(); // \FastComments\Client\Model\UpdateAPIUserSubscriptionData
21$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
22
23try {
24 $result = $apiInstance->updateSubscription($tenant_id, $id, $update_api_user_subscription_data, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

ํ…Œ๋„ŒํŠธ ์ผ์ผ ์‚ฌ์šฉ๋Ÿ‰ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
yearNumbernumberquery์•„๋‹ˆ์š”
monthNumbernumberquery์•„๋‹ˆ์š”
dayNumbernumberquery์•„๋‹ˆ์š”
skipnumberquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantDailyUsages200Response

์˜ˆ์ œ

getTenantDailyUsages ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$year_number = 3.4; // float
20$month_number = 3.4; // float
21$day_number = 3.4; // float
22$skip = 3.4; // float
23
24try {
25 $result = $apiInstance->getTenantDailyUsages($tenant_id, $year_number, $month_number, $day_number, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
29}
30

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

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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstring์ฟผ๋ฆฌ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTenantPackage200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
20
21try {
22 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
26}
27

ํ…Œ๋„ŒํŠธ ํŒจํ‚ค์ง€ ์‚ญ์ œ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ •์˜ http ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteTenantPackage($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteTenantPackage: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantPackage200Response

์˜ˆ์ œ

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

ํ…Œ๋„ŒํŠธ ํŒจํ‚ค์ง€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantPackages200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21try {
22 $result = $apiInstance->getTenantPackages($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantPackages: ', $e->getMessage(), PHP_EOL;
26}
27

ํ…Œ๋„ŒํŠธ ํŒจํ‚ค์ง€ ๊ต์ฒด Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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// 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 // ์ปค์Šคํ…€ 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$tenant_id = 'tenant_id_example'; // string
21$id = 'id_example'; // string
22$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

updateTenantPackage ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20$update_tenant_package_body = new \FastComments\Client\Model\UpdateTenantPackageBody(); // \FastComments\Client\Model\UpdateTenantPackageBody
21
22try {
23 $result = $apiInstance->updateTenantPackage($tenant_id, $id, $update_tenant_package_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateTenantPackage: ', $e->getMessage(), PHP_EOL;
27}
28

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ์ƒ์„ฑ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTenantUser200Response

์˜ˆ์ œ

createTenantUser ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ 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$tenant_id = 'tenant_id_example'; // string
19$create_tenant_user_body = new \FastComments\Client\Model\CreateTenantUserBody(); // \FastComments\Client\Model\CreateTenantUserBody
20
21try {
22 $result = $apiInstance->createTenantUser($tenant_id, $create_tenant_user_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTenantUser: ', $e->getMessage(), PHP_EOL;
26}
27

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ์‚ญ์ œ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
deleteCommentsstringquery์•„๋‹ˆ์˜ค
commentDeleteModestringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantUser200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getTenantUser($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantUser: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenantUsers200Response

์˜ˆ์ œ

getTenantUsers ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21try {
22 $result = $apiInstance->getTenantUsers($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantUsers: ', $e->getMessage(), PHP_EOL;
26}
27

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ๊ต์ฒด Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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 ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$replace_tenant_user_body = new \FastComments\Client\Model\ReplaceTenantUserBody(); // \FastComments\Client\Model\ReplaceTenantUserBody
21$update_comments = 'update_comments_example'; // string
22
23try {
24 $result = $apiInstance->replaceTenantUser($tenant_id, $id, $replace_tenant_user_body, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->replaceTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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

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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ
updateCommentsstringquery์•„๋‹ˆ์š”

Response

๋ฐ˜ํ™˜: FlagCommentPublic200Response

Example

updateTenantUser ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$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
23try {
24 $result = $apiInstance->updateTenantUser($tenant_id, $id, $update_tenant_user_body, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTenant200Response

์˜ˆ์ œ

createTenant ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ •์˜ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$create_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
20
21try {
22 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

deleteTenant ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$sure = 'sure_example'; // string
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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetTenant200Response

์˜ˆ์ œ

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

ํ…Œ๋„ŒํŠธ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜๊ฐ’: GetTenants200Response

์˜ˆ์ œ

getTenants ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ์ œ๊ฑฐํ•˜์—ฌ API ํ‚ค์˜ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•œ ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$meta = 'meta_example'; // ๋ฌธ์ž์—ด
20$skip = 3.4; // ์ˆซ์ž (float)
21
22try {
23 $result = $apiInstance->getTenants($tenant_id, $meta, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getTenants: ', $e->getMessage(), PHP_EOL;
27}
28

ํ…Œ๋„ŒํŠธ ์—…๋ฐ์ดํŠธ Internal Link


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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
idstringpath์˜ˆ

Response

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_tenant_body = new \FastComments\Client\Model\UpdateTenantBody(); // \FastComments\Client\Model\UpdateTenantBody
21
22try {
23 $result = $apiInstance->updateTenant($tenant_id, $id, $update_tenant_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateTenant: ', $e->getMessage(), PHP_EOL;
27}
28

ํ‹ฐ์ผ“ ์ƒํƒœ ๋ณ€๊ฒฝ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
userIdstringquery์˜ˆ
idstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: ChangeTicketState200Response

์˜ˆ์ œ

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

ํ‹ฐ์ผ“ ์ƒ์„ฑ Internal Link

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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstring์ฟผ๋ฆฌ์˜ˆ
userIdstring์ฟผ๋ฆฌ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: CreateTicket200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
18$user_id = 'user_id_example'; // string
19$create_ticket_body = new \FastComments\Client\Model\CreateTicketBody(); // \FastComments\Client\Model\CreateTicketBody
20
21try {
22 $result = $apiInstance->createTicket($tenant_id, $user_id, $create_ticket_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTicket: ', $e->getMessage(), PHP_EOL;
26}
27

ํ‹ฐ์ผ“ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetTicket200Response

์˜ˆ์ œ

getTicket ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21
22try {
23 $result = $apiInstance->getTicket($tenant_id, $id, $user_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getTicket: ', $e->getMessage(), PHP_EOL;
27}
28

ํ‹ฐ์ผ“ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetTickets200Response

์˜ˆ์ œ

getTickets ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•  ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20$state = 3.4; // float
21$skip = 3.4; // float
22$limit = 3.4; // float
23
24try {
25 $result = $apiInstance->getTickets($tenant_id, $user_id, $state, $skip, $limit);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getTickets: ', $e->getMessage(), PHP_EOL;
29}
30

์ด๋ฏธ์ง€ ์—…๋กœ๋“œ Internal Link

์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ๋ฐ ํฌ๊ธฐ ์กฐ์ •

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

NameTypeLocationRequiredDescription
tenantIdstringpathYes
sizePresetstringqueryNo์‚ฌ์ด์ฆˆ ํ”„๋ฆฌ์…‹: "Default" (1000x1000px) ๋˜๋Š” "CrossPlatform" (์ผ๋ฐ˜์ ์ธ ๊ธฐ๊ธฐ์— ๋งž๋Š” ํฌ๊ธฐ๋ฅผ ์ƒ์„ฑ)
urlIdstringqueryNo์—…๋กœ๋“œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํŽ˜์ด์ง€์˜ id(๊ตฌ์„ฑ์šฉ)

์‘๋‹ต

๋ฐ˜ํ™˜: UploadImageResponse

์˜ˆ์ œ

uploadImage ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•œ ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
9 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$file = '/path/to/file.txt'; // \SplFileObject
14$size_preset = new \FastComments\Client\Model\\FastComments\Client\Model\SizePreset(); // \FastComments\Client\Model\SizePreset | ์‚ฌ์ด์ฆˆ ํ”„๋ฆฌ์…‹: \"Default\" (1000x1000px) ๋˜๋Š” \"CrossPlatform\" (์ผ๋ฐ˜์ ์ธ ๊ธฐ๊ธฐ์— ๋งž๋Š” ํฌ๊ธฐ๋ฅผ ์ƒ์„ฑ)
15$url_id = 'url_id_example'; // string | ์—…๋กœ๋“œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํŽ˜์ด์ง€์˜ id, ๊ตฌ์„ฑ์šฉ
16
17try {
18 $result = $apiInstance->uploadImage($tenant_id, $file, $size_preset, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->uploadImage: ', $e->getMessage(), PHP_EOL;
22}
23

ID๋กœ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์ง„ํ–‰๋„ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserBadgeProgressById200Response

์˜ˆ์ œ

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 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getUserBadgeProgressById($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUserBadgeProgressById: ', $e->getMessage(), PHP_EOL;
26}
27

์‚ฌ์šฉ์ž ID๋กœ ๋ฐฐ์ง€ ์ง„ํ–‰๋„ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
userIdstringpath์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserBadgeProgressById200Response

์˜ˆ์ œ

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 // 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$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20
21try {
22 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
26}
27

์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์ง„ํ–‰๋„ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserBadgeProgressList200Response

์˜ˆ์ œ

getUserBadgeProgressList ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20$limit = 3.4; // float
21$skip = 3.4; // float
22
23try {
24 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $user_id, $limit, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
28}
29

์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์ƒ์„ฑ Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: CreateUserBadge200Response

์˜ˆ์ œ

createUserBadge ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
20
21try {
22 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
26}
27

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


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

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

์‘๋‹ต

๋ฐ˜ํ™˜: UpdateUserBadge200Response

์˜ˆ์ œ

deleteUserBadge ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // ์ด๊ฒƒ์€ ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
19 new GuzzleHttp\Client(),
20 $config
21);
22$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
23$id = 'id_example'; // ๋ฌธ์ž์—ด
24
25try {
26 $result = $apiInstance->deleteUserBadge($tenant_id, $id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
30}
31

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserBadge200Response

์˜ˆ์ œ

getUserBadge ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ, ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20
21try {
22 $result = $apiInstance->getUserBadge($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
26}
27

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

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

์ด๋ฆ„TypeLocationํ•„์ˆ˜์„ค๋ช…
tenantIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
badgeIdstringquery์•„๋‹ˆ์˜ค
typenumberquery์•„๋‹ˆ์˜ค
displayedOnCommentsbooleanquery์•„๋‹ˆ์˜ค
limitnumberquery์•„๋‹ˆ์˜ค
skipnumberquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserBadges200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
20$badge_id = 'badge_id_example'; // ๋ฌธ์ž์—ด
21$type = 3.4; // ์‹ค์ˆ˜
22$displayed_on_comments = True; // ๋ถˆ๋ฆฌ์–ธ
23$limit = 3.4; // ์‹ค์ˆ˜
24$skip = 3.4; // ์‹ค์ˆ˜
25
26try {
27 $result = $apiInstance->getUserBadges($tenant_id, $user_id, $badge_id, $type, $displayed_on_comments, $limit, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
31}
32

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: UpdateUserBadge200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$id = 'id_example'; // ๋ฌธ์ž์—ด
20$update_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
21
22try {
23 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
27}
28

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserNotificationCount200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$sso = 'sso_example'; // string
14
15try {
16 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
20}
21

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

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
pageSizeintegerquery์•„๋‹ˆ์˜ค
afterIdstringquery์•„๋‹ˆ์˜ค
includeContextbooleanquery์•„๋‹ˆ์˜ค
afterCreatedAtintegerquery์•„๋‹ˆ์˜ค
unreadOnlybooleanquery์•„๋‹ˆ์˜ค
dmOnlybooleanquery์•„๋‹ˆ์˜ค
noDmbooleanquery์•„๋‹ˆ์˜ค
includeTranslationsbooleanquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserNotifications200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$page_size = 56; // ์ •์ˆ˜
14$after_id = 'after_id_example'; // ๋ฌธ์ž์—ด
15$include_context = True; // ๋ถˆ๋ฆฌ์–ธ
16$after_created_at = 56; // ์ •์ˆ˜
17$unread_only = True; // ๋ถˆ๋ฆฌ์–ธ
18$dm_only = True; // ๋ถˆ๋ฆฌ์–ธ
19$no_dm = True; // ๋ถˆ๋ฆฌ์–ธ
20$include_translations = True; // ๋ถˆ๋ฆฌ์–ธ
21$sso = 'sso_example'; // ๋ฌธ์ž์—ด
22
23try {
24 $result = $apiInstance->getUserNotifications($tenant_id, $page_size, $after_id, $include_context, $after_created_at, $unread_only, $dm_only, $no_dm, $include_translations, $sso);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->getUserNotifications: ', $e->getMessage(), PHP_EOL;
28}
29

์‚ฌ์šฉ์ž ์•Œ๋ฆผ ์ˆ˜ ์ดˆ๊ธฐํ™” Internal Link

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: ResetUserNotifications200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$sso = 'sso_example'; // ๋ฌธ์ž์—ด
14
15try {
16 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
20}
21

์‚ฌ์šฉ์ž ์•Œ๋ฆผ ์ดˆ๊ธฐํ™” Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
afterIdstringquery์•„๋‹ˆ์˜ค
afterCreatedAtintegerquery์•„๋‹ˆ์˜ค
unreadOnlybooleanquery์•„๋‹ˆ์˜ค
dmOnlybooleanquery์•„๋‹ˆ์˜ค
noDmbooleanquery์•„๋‹ˆ์˜ค
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: ResetUserNotifications200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$after_id = 'after_id_example'; // ๋ฌธ์ž์—ด
14$after_created_at = 56; // ์ •์ˆ˜
15$unread_only = True; // ๋ถ€์šธ
16$dm_only = True; // ๋ถ€์šธ
17$no_dm = True; // ๋ถ€์šธ
18$sso = 'sso_example'; // ๋ฌธ์ž์—ด
19
20try {
21 $result = $apiInstance->resetUserNotifications($tenant_id, $after_id, $after_created_at, $unread_only, $dm_only, $no_dm, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->resetUserNotifications: ', $e->getMessage(), PHP_EOL;
25}
26

์‚ฌ์šฉ์ž ๋Œ“๊ธ€ ๊ตฌ๋… ์ƒํƒœ ์—…๋ฐ์ดํŠธ Internal Link

ํŠน์ • ๋Œ“๊ธ€์— ๋Œ€ํ•œ ์•Œ๋ฆผ์„ ํ™œ์„ฑํ™”ํ•˜๊ฑฐ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

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

์ด๋ฆ„ํƒ€์ž…์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstring์ฟผ๋ฆฌ์˜ˆ
notificationIdstring๊ฒฝ๋กœ์˜ˆ
optedInOrOutstring๊ฒฝ๋กœ์˜ˆ
commentIdstring์ฟผ๋ฆฌ์˜ˆ
ssostring์ฟผ๋ฆฌ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: UpdateUserNotificationStatus200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$notification_id = 'notification_id_example'; // ๋ฌธ์ž์—ด
14$opted_in_or_out = 'opted_in_or_out_example'; // ๋ฌธ์ž์—ด
15$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
16$sso = 'sso_example'; // ๋ฌธ์ž์—ด
17
18try {
19 $result = $apiInstance->updateUserNotificationCommentSubscriptionStatus($tenant_id, $notification_id, $opted_in_or_out, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
23}
24

์‚ฌ์šฉ์ž ํŽ˜์ด์ง€ ๊ตฌ๋… ์ƒํƒœ ์—…๋ฐ์ดํŠธ Internal Link

ํŽ˜์ด์ง€์— ๋Œ€ํ•œ ์•Œ๋ฆผ์„ ํ™œ์„ฑํ™”ํ•˜๊ฑฐ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ํŽ˜์ด์ง€๋ฅผ ๊ตฌ๋…ํ•˜๋ฉด ์ƒˆ ๋ฃจํŠธ ๋Œ“๊ธ€์— ๋Œ€ํ•œ ์•Œ๋ฆผ์ด ์ƒ์„ฑ๋˜๋ฉฐ, ๋˜ํ•œ

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
urlIdstringquery์˜ˆ
urlstringquery์˜ˆ
pageTitlestringquery์˜ˆ
subscribedOrUnsubscribedstringpath์˜ˆ
ssostringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: UpdateUserNotificationStatus200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$url = 'url_example'; // string
15$page_title = 'page_title_example'; // string
16$subscribed_or_unsubscribed = 'subscribed_or_unsubscribed_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->updateUserNotificationPageSubscriptionStatus($tenant_id, $url_id, $url, $page_title, $subscribed_or_unsubscribed, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
24}
25

์‚ฌ์šฉ์ž ์•Œ๋ฆผ ์ƒํƒœ ์—…๋ฐ์ดํŠธ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
notificationIdstringpath์˜ˆ
newStatusstringpath์˜ˆ
ssostringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: UpdateUserNotificationStatus200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
13$notification_id = 'notification_id_example'; // ๋ฌธ์ž์—ด
14$new_status = 'new_status_example'; // ๋ฌธ์ž์—ด
15$sso = 'sso_example'; // ๋ฌธ์ž์—ด
16
17try {
18 $result = $apiInstance->updateUserNotificationStatus($tenant_id, $notification_id, $new_status, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->updateUserNotificationStatus: ', $e->getMessage(), PHP_EOL;
22}
23

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

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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstring์ฟผ๋ฆฌ์˜ˆ
urlIdWSstring์ฟผ๋ฆฌ์˜ˆ
userIdsstring์ฟผ๋ฆฌ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetUserPresenceStatuses200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$url_id_ws = 'url_id_ws_example'; // string
14$user_ids = 'user_ids_example'; // string
15
16try {
17 $result = $apiInstance->getUserPresenceStatuses($tenant_id, $url_id_ws, $user_ids);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->getUserPresenceStatuses: ', $e->getMessage(), PHP_EOL;
21}
22

์‚ฌ์šฉ์ž ๊ฒ€์ƒ‰ Internal Link

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

์ด๋ฆ„์œ ํ˜•์œ„์น˜ํ•„์ˆ˜์„ค๋ช…
tenantIdstringpath์˜ˆ
urlIdstringquery์˜ˆ
usernameStartsWithstringquery์•„๋‹ˆ์š”
mentionGroupIdsarrayquery์•„๋‹ˆ์š”
ssostringquery์•„๋‹ˆ์š”
searchSectionstringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: SearchUsers200Response

์˜ˆ์ œ

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$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$username_starts_with = 'username_starts_with_example'; // string
15$mention_group_ids = array('mention_group_ids_example'); // string[]
16$sso = 'sso_example'; // string
17$search_section = 'search_section_example'; // string
18
19try {
20 $result = $apiInstance->searchUsers($tenant_id, $url_id, $username_starts_with, $mention_group_ids, $sso, $search_section);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
24}
25

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: GetUser200Response

์˜ˆ์ œ

getUser ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getUser($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL;
26}
27

ํˆฌํ‘œ ์ƒ์„ฑ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
commentIdstringquery์˜ˆ
directionstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์˜ค
anonUserIdstringquery์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: VoteComment200Response

์˜ˆ์ œ

createVote ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ๋ฌธ์ž์—ด
19$comment_id = 'comment_id_example'; // ๋ฌธ์ž์—ด
20$direction = 'direction_example'; // ๋ฌธ์ž์—ด
21$user_id = 'user_id_example'; // ๋ฌธ์ž์—ด
22$anon_user_id = 'anon_user_id_example'; // ๋ฌธ์ž์—ด
23
24try {
25 $result = $apiInstance->createVote($tenant_id, $comment_id, $direction, $user_id, $anon_user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
29}
30

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

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

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

์‘๋‹ต

๋ฐ˜ํ™˜: DeleteCommentVote200Response

์˜ˆ์ œ

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

ํˆฌํ‘œ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
urlIdstringquery์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: GetVotes200Response

์˜ˆ์ œ

getVotes ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•˜๋ฉด ์•„๋ž˜ ์ฃผ์„์„ ํ’€์–ด API ํ‚ค ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์‚ฌ์šฉ์ž ์ง€์ • HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ์ ์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20
21try {
22 $result = $apiInstance->getVotes($tenant_id, $url_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
26}
27

์‚ฌ์šฉ์ž์— ๋Œ€ํ•œ ํˆฌํ‘œ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

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

NameTypeLocationRequiredDescription
tenantIdstringquery์˜ˆ
urlIdstringquery์˜ˆ
userIdstringquery์•„๋‹ˆ์š”
anonUserIdstringquery์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: GetVotesForUser200Response

์˜ˆ์ œ

getVotesForUser ์˜ˆ์ œ
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API ํ‚ค ์ธ์ฆ ๊ตฌ์„ฑ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ํ•„์š”ํ•œ ๊ฒฝ์šฐ API ํ‚ค์— ๋Œ€ํ•œ ์ ‘๋‘์‚ฌ(์˜ˆ: Bearer)๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ์•„๋ž˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์ œํ•˜์„ธ์š”
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ์ปค์Šคํ…€ HTTP ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด `GuzzleHttp\ClientInterface`๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ํด๋ผ์ด์–ธํŠธ๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
14 // ์ด๋Š” ์„ ํƒ ์‚ฌํ•ญ์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ `GuzzleHttp\Client`๊ฐ€ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20$user_id = 'user_id_example'; // string
21$anon_user_id = 'anon_user_id_example'; // string
22
23try {
24 $result = $apiInstance->getVotesForUser($tenant_id, $url_id, $user_id, $anon_user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getVotesForUser: ', $e->getMessage(), PHP_EOL;
28}
29

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

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

๊ธฐ์—ฌ

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