FastComments.com

FastComments PHP SDK


이것은 FastComments의 공식 PHP SDK입니다.

FastComments API를 위한 공식 PHP SDK

저장소

GitHub에서 보기


설치 및 사용법 Internal Link

요구 사항

PHP 7.4 이상. 또한 PHP 8.0에서도 작동해야 합니다.

Composer

바인딩을 Composer를 통해 설치하려면, 다음을 composer.json에 추가하세요:

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

그런 다음 composer install을 실행하세요

수동 설치

파일을 다운로드하고 autoload.php를 포함하세요:

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

시작하기 Internal Link

다음 설치 절차를 따르고, 아래 내용을 실행하세요:

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



// API 키 인증 구성: api_key
$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// 필요하면 아래의 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정하세요
// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');


$apiInstance = new FastComments\Client\Api\DefaultApi(
    // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
    // 선택 사항이며 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // 문자열
$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams

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

API 클라이언트 Internal Link

The SDK는 세 개의 API 클라이언트 클래스를 제공합니다:

  • DefaultApi - API 키 인증 메서드이며 서버‑사이드 용으로 사용됩니다. API 키는 Getting Started와 같이 구성합니다.
  • PublicApi - API 키가 필요 없는 공개 메서드이며 브라우저와 모바일 앱에서 안전하게 호출할 수 있습니다.
  • ModerationApi - 실시간 및 빠른 검토 API의 광범위한 스위트입니다. 모든 ModerationApi 메서드는 $sso 파라미터를 받아 SSO 또는 FastComments.com 세션 쿠키를 통해 인증할 수 있습니다.

PublicApi 사용하기

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

// 공개 메서드는 API 키가 필요하지 않습니다.
$apiInstance = new FastComments\Client\Api\PublicApi(
    new GuzzleHttp\Client()
);
$tenant_id = 'tenant_id_example'; // string
$url_id = 'url_id_example'; // string

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

ModerationApi 사용하기

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

$apiInstance = new FastComments\Client\Api\ModerationApi(
    new GuzzleHttp\Client()
);
$sso = 'sso_example'; // string - Moderator를 인증하는 SSO 페이로드

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

모델 Internal Link



권한 부여 Internal Link


API에 대해 정의된 인증 방식:

api_key

  • 유형: API 키
  • API 키 파라미터 이름: x-api-key
  • 위치: HTTP 헤더

작성자 Internal Link

support@fastcomments.com

집계 Internal Link

Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations.
Different operations (e.g. sum, countDistinct, avg, etc.) are supported.

Parameters

이름형식위치필수설명
tenantIdstringqueryYes
parentTenantIdstringqueryNo
includeStatsbooleanqueryNo

Response

Returns: AggregateResponse

Example

집계 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Configure API key authorization: api_key
6// API 키 인증 구성: api_key
7// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // 이는 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // 문자열
22$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
23$options = [
24 'parent_tenant_id' => 'parent_tenant_id_example', // 문자열
25 'include_stats' => True, // 불리언
26];
27
28
29try {
30 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
34}
35

감사 로그 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
limitnumberqueryNo
skipnumberqueryNo
orderstringqueryNo
afternumberqueryNo
beforenumberqueryNo

응답

반환: GetAuditLogsResponse

예제

getAuditLogs 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'limit' => 3.4, // float
22 'skip' => 3.4, // float
23 'order' => new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(), // \FastComments\Client\Model\SORTDIR
24 'after' => 3.4, // float
25 'before' => 3.4, // float
26];
27
28
29try {
30 $result = $apiInstance->getAuditLogs($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
34}
35

로그아웃(공개) Internal Link

응답

반환: APIEmptyResponse

예시

logoutPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13
14
15try {
16 $result = $apiInstance->logoutPublic();
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->logoutPublic: ', $e->getMessage(), PHP_EOL;
20}
21

댓글에서 차단(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringpath
ssostringquery아니오

응답

반환: BlockSuccess

예시

blockFromCommentPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->blockFromCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->blockFromCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

댓글 차단 해제(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringpath
ssostringquery아니오

응답

반환: UnblockSuccess

예시

unBlockCommentPublic 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // 문자열
17
18
19try {
20 $result = $apiInstance->unBlockCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unBlockCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

차단된 댓글 확인 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdsstringquery쉼표로 구분된 댓글 ID 목록.
ssostringquery아니오

반환

반환: CheckBlockedCommentsResponse

예시

checkedCommentsForBlocked 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_ids = 'comment_ids_example'; // string | 댓글 ID의 쉼표 구분 목록.
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->checkedCommentsForBlocked($tenant_id, $comment_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->checkedCommentsForBlocked: ', $e->getMessage(), PHP_EOL;
23}
24

댓글에서 사용자 차단 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery
idstringpath
userIdstringquery아니오
anonUserIdstringquery아니오

Response

반환: BlockSuccess

Example

blockUserFromComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사를 설정하려면 아래 주석을 해제하십시오 (예: Bearer)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

댓글 생성(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

응답

반환: SaveCommentsResponseWithPresence

예시

createCommentPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
17$options = [
18 'session_id' => 'session_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->createCommentPublic($tenant_id, $url_id, $broadcast_id, $comment_data, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->createCommentPublic: ', $e->getMessage(), PHP_EOL;
28}
29

댓글 삭제 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
isLivebooleanqueryNo

응답

반환: DeleteCommentResult

예시

deleteComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래의 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하세요.
14 // 이는 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$options = [
22 'context_user_id' => 'context_user_id_example', // 문자열
23 'is_live' => True, // 불리언
24];
25
26
27try {
28 $result = $apiInstance->deleteComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
32}
33

댓글 삭제(공개) Internal Link

매개변수

이름타입위치필수설명
tenantIdstringpath
commentIdstringpath
broadcastIdstringquery
editKeystringquery아니오
ssostringquery아니오

응답

반환: PublicAPIDeleteCommentResponse

예시

deleteCommentPublic 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$options = [
17 'edit_key' => 'edit_key_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->deleteCommentPublic($tenant_id, $comment_id, $broadcast_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->deleteCommentPublic: ', $e->getMessage(), PHP_EOL;
27}
28

댓글 투표 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
commentIdstringpath
voteIdstringpath
urlIdstringquery
broadcastIdstringquery
editKeystringquery아니오
ssostringquery아니오

응답

반환: VoteDeleteResponse

예시

deleteCommentVote 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$vote_id = 'vote_id_example'; // string
16$url_id = 'url_id_example'; // string
17$broadcast_id = 'broadcast_id_example'; // string
18$options = [
19 'edit_key' => 'edit_key_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->deleteCommentVote($tenant_id, $comment_id, $vote_id, $url_id, $broadcast_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->deleteCommentVote: ', $e->getMessage(), PHP_EOL;
29}
30

댓글 신고 Internal Link

Parameters

이름형식위치필수설명
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

응답

반환: FlagCommentResponse

예시

flagComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 아래 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$options = [
22 'user_id' => 'user_id_example', // 문자열
23 'anon_user_id' => 'anon_user_id_example', // 문자열
24];
25
26
27try {
28 $result = $apiInstance->flagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->flagComment: ', $e->getMessage(), PHP_EOL;
32}
33

댓글 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIGetCommentResponse

예제

getComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getComment($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getComment: ', $e->getMessage(), PHP_EOL;
28}
29

댓글들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
pageintegerqueryNo
limitintegerqueryNo
skipintegerqueryNo
asTreebooleanqueryNo
skipChildrenintegerqueryNo
limitChildrenintegerqueryNo
maxTreeDepthintegerqueryNo
urlIdstringqueryNo
userIdstringqueryNo
anonUserIdstringqueryNo
contextUserIdstringqueryNo
hashTagstringqueryNo
parentIdstringqueryNo
directionstringqueryNo
fromDateintegerqueryNo
toDateintegerqueryNo

응답

반환: APIGetCommentsResponse

예시

getComments 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 API 키에 대한 프리픽스 (예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'page' => 56, // 정수
22 'limit' => 56, // 정수
23 'skip' => 56, // 정수
24 'as_tree' => True, // 불리언
25 'skip_children' => 56, // 정수
26 'limit_children' => 56, // 정수
27 'max_tree_depth' => 56, // 정수
28 'url_id' => 'url_id_example', // 문자열
29 'user_id' => 'user_id_example', // 문자열
30 'anon_user_id' => 'anon_user_id_example', // 문자열
31 'context_user_id' => 'context_user_id_example', // 문자열
32 'hash_tag' => 'hash_tag_example', // 문자열
33 'parent_id' => 'parent_id_example', // 문자열
34 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
35 'from_date' => 56, // 정수
36 'to_date' => 56, // 정수
37];
38
39
40try {
41 $result = $apiInstance->getComments($tenant_id, $options);
42 print_r($result);
43} catch (Exception $e) {
44 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
45}
46

댓글들 가져오기(공개) Internal Link

req tenantId urlId

매개변수

이름타입위치필수설명
tenantIdstringpathYes
urlIdstringqueryYes
pageintegerqueryNo
directionstringqueryNo
ssostringqueryNo
skipintegerqueryNo
skipChildrenintegerqueryNo
limitintegerqueryNo
limitChildrenintegerqueryNo
countChildrenbooleanqueryNo
fetchPageForCommentIdstringqueryNo
includeConfigbooleanqueryNo
countAllbooleanqueryNo
includei10nbooleanqueryNo
localestringqueryNo
modulesstringqueryNo
isCrawlerbooleanqueryNo
includeNotificationCountbooleanqueryNo
asTreebooleanqueryNo
maxTreeDepthintegerqueryNo
useFullTranslationIdsbooleanqueryNo
parentIdstringqueryNo
searchTextstringqueryNo
hashTagsarrayqueryNo
userIdstringqueryNo
customConfigStrstringqueryNo
afterCommentIdstringqueryNo
beforeCommentIdstringqueryNo

응답

Returns: GetCommentsResponseWithPresencePublicComment

예시

getCommentsPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'page' => 56, // int
17 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
18 'sso' => 'sso_example', // string
19 'skip' => 56, // int
20 'skip_children' => 56, // int
21 'limit' => 56, // int
22 'limit_children' => 56, // int
23 'count_children' => True, // bool
24 'fetch_page_for_comment_id' => 'fetch_page_for_comment_id_example', // string
25 'include_config' => True, // bool
26 'count_all' => True, // bool
27 'includei10n' => True, // bool
28 'locale' => 'locale_example', // string
29 'modules' => 'modules_example', // string
30 'is_crawler' => True, // bool
31 'include_notification_count' => True, // bool
32 'as_tree' => True, // bool
33 'max_tree_depth' => 56, // int
34 'use_full_translation_ids' => True, // bool
35 'parent_id' => 'parent_id_example', // string
36 'search_text' => 'search_text_example', // string
37 'hash_tags' => array('hash_tags_example'), // string[]
38 'user_id' => 'user_id_example', // string
39 'custom_config_str' => 'custom_config_str_example', // string
40 'after_comment_id' => 'after_comment_id_example', // string
41 'before_comment_id' => 'before_comment_id_example', // string
42];
43
44
45try {
46 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $options);
47 print_r($result);
48} catch (Exception $e) {
49 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
50}
51

댓글 텍스트 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
commentIdstringpathYes
editKeystringqueryNo
ssostringqueryNo

응답

반환: PublicAPIGetCommentTextResponse

예제

getCommentText 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'edit_key' => 'edit_key_example', // 문자열
17 'sso' => 'sso_example', // 문자열
18];
19
20
21try {
22 $result = $apiInstance->getCommentText($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getCommentText: ', $e->getMessage(), PHP_EOL;
26}
27

댓글 투표 사용자 이름 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
commentIdstringpath
dirintegerquery
ssostringquery아니오

응답

반환: GetCommentVoteUserNamesSuccessResponse

예제

getCommentVoteUserNames 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$dir = 56; // int
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->getCommentVoteUserNames($tenant_id, $comment_id, $dir, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->getCommentVoteUserNames: ', $e->getMessage(), PHP_EOL;
24}
25

댓글 잠그기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

응답

반환: APIEmptyResponse

예시

lockComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->lockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->lockComment: ', $e->getMessage(), PHP_EOL;
24}
25

댓글 고정 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

응답

반환: ChangeCommentPinStatusResponse

예제

pinComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface` 를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client` 가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
24}
25

댓글 저장 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
isLivebooleanquery아니오
doSpamCheckbooleanquery아니오
sendEmailsbooleanquery아니오
populateNotificationsbooleanquery아니오

응답

반환: APISaveCommentResponse

예시

saveComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 API 키에 대한 접두어(예: Bearer)를 설정합니다, 필요 시
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$create_comment_params = new \FastComments\Client\Model\CreateCommentParams(); // \FastComments\Client\Model\CreateCommentParams
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveComment($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveComment: ', $e->getMessage(), PHP_EOL;
34}
35

댓글 일괄 저장 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

응답

반환: SaveCommentsBulkResponse

예제

saveCommentsBulk 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 권한 부여 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$create_comment_params = array(new \FastComments\Client\Model\CreateCommentParams()); // \FastComments\Client\Model\CreateCommentParams[]
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveCommentsBulk($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveCommentsBulk: ', $e->getMessage(), PHP_EOL;
34}
35

댓글 텍스트 설정 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

응답

반환: PublicAPISetCommentTextResponse

예시

setCommentText 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$comment_text_update_request = new \FastComments\Client\Model\CommentTextUpdateRequest(); // \FastComments\Client\Model\CommentTextUpdateRequest
17$options = [
18 'edit_key' => 'edit_key_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->setCommentText($tenant_id, $comment_id, $broadcast_id, $comment_text_update_request, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->setCommentText: ', $e->getMessage(), PHP_EOL;
28}
29

댓글에서 사용자 차단 해제 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

응답

반환: UnblockSuccess

예시

unBlockUserFromComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래의 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

댓글 신고 취소 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

응답

반환: FlagCommentResponse

예시

unFlagComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 prefix(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->unFlagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
32}
33

댓글 잠금 해제 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringpath
commentIdstringpath
broadcastIdstringquery
ssostringquery아니오

응답

반환값: APIEmptyResponse

예제

unLockComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
24}
25

댓글 고정 해제 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpath
commentIdstringpath
broadcastIdstringquery
ssostringquery아니오

Response

반환: ChangeCommentPinStatusResponse

예시

unPinComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
24}
25

댓글 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
doSpamCheckbooleanqueryNo
isLivebooleanqueryNo

응답

Returns: APIEmptyResponse

예시

updateComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 설정합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$updatable_comment_params = new \FastComments\Client\Model\UpdatableCommentParams(); // \FastComments\Client\Model\UpdatableCommentParams
22$options = [
23 'context_user_id' => 'context_user_id_example', // string
24 'do_spam_check' => True, // bool
25 'is_live' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->updateComment($tenant_id, $id, $updatable_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL;
34}
35

댓글에 투표 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringpathYes
commentIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

응답

반환: VoteResponse

예제

voteComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$url_id = 'url_id_example'; // string
16$broadcast_id = 'broadcast_id_example'; // string
17$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
18$options = [
19 'session_id' => 'session_id_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
29}
30

사용자용 댓글 가져오기 Internal Link

매개변수

이름유형위치필수설명
userIdstringqueryNo
directionstringqueryNo
repliesToUserIdstringqueryNo
pagenumberqueryNo
includei10nbooleanqueryNo
localestringqueryNo
isCrawlerbooleanqueryNo

응답

반환: GetCommentsForUserResponse

예시

getCommentsForUser 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$options = [
14 'user_id' => 'user_id_example', // 문자열
15 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
16 'replies_to_user_id' => 'replies_to_user_id_example', // 문자열
17 'page' => 3.4, // 부동소수점
18 'includei10n' => True, // 불리언
19 'locale' => 'locale_example', // 문자열
20 'is_crawler' => True, // 불리언
21];
22
23
24try {
25 $result = $apiInstance->getCommentsForUser($options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getCommentsForUser: ', $e->getMessage(), PHP_EOL;
29}
30

도메인 설정 추가 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: AddDomainConfigResponse

예시

addDomainConfig 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
21
22
23try {
24 $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

도메인 설정 삭제 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
domainstringpathYes

Response

반환: DeleteDomainConfigResponse

예제

deleteDomainConfig 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요한 경우 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$domain = 'domain_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteDomainConfig($tenant_id, $domain);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

도메인 설정 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
domainstringpath

응답

반환: GetDomainConfigResponse

예제

getDomainConfig 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$domain = 'domain_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

도메인 설정들 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery

응답

반환: GetDomainConfigsResponse

예제

getDomainConfigs 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // 아래의 주석을 해제하여 API 키 접두사(예: Bearer)를 설정합니다, 필요 시
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20
21
22try {
23 $result = $apiInstance->getDomainConfigs($tenant_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getDomainConfigs: ', $e->getMessage(), PHP_EOL;
27}
28

도메인 설정 부분 수정 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
domainToUpdatestringpath

응답

반환: PatchDomainConfigResponse

예시

patchDomainConfig 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6// 아래의 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정하세요, 필요하다면
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
12 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // 문자열
18$domain_to_update = 'domain_to_update_example'; // 문자열
19$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
20
21
22try {
23 $result = $apiInstance->patchDomainConfig($tenant_id, $domain_to_update, $patch_domain_config_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->patchDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

도메인 설정 대체 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
domainToUpdatestringpathYes

응답

Returns: PutDomainConfigResponse

예시

putDomainConfig 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정합니다(필요한 경우)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$domain_to_update = 'domain_to_update_example'; // 문자열
21$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
22
23
24try {
25 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

이메일 템플릿 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: CreateEmailTemplateResponse

예시

createEmailTemplate 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API 키 인증 구성: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
10$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // 문자열
24$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
25
26
27try {
28 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
32}
33

이메일 템플릿 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예시

deleteEmailTemplate 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요하면 아래 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정합니다.
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하세요.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$id = 'id_example'; // 문자열
20
21
22try {
23 $result = $apiInstance->deleteEmailTemplate($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
27}
28

이메일 템플릿 렌더 오류 삭제 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
errorIdstringpathYes

Response

Returns: APIEmptyResponse

Example

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

이메일 템플릿 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringquery
idstringpath

응답

Returns: GetEmailTemplateResponse

예시

getEmailTemplate 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 설정: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

이메일 템플릿 정의 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes

응답

Returns: GetEmailTemplateDefinitionsResponse

예시

getEmailTemplateDefinitions 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요 시 API 키에 대한 접두사 (예: Bearer)를 설정하려면 아래 주석 해제
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19
20
21try {
22 $result = $apiInstance->getEmailTemplateDefinitions($tenant_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getEmailTemplateDefinitions: ', $e->getMessage(), PHP_EOL;
26}
27

이메일 템플릿 렌더 오류 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringqueryYes
idstringpathYes
skipnumberqueryNo

응답

Returns: GetEmailTemplateRenderErrorsResponse

예시

getEmailTemplateRenderErrors 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정하십시오, 필요할 경우
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$skip = 3.4; // float
22
23
24try {
25 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
29}
30

이메일 템플릿들 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery
skipnumberquery아니오

응답

반환: GetEmailTemplatesResponse

예제

getEmailTemplates 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요하면 아래 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$skip = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getEmailTemplates($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
28}
29

이메일 템플릿 렌더 Internal Link

Parameters

이름타입위치필수설명
tenantIdstringquery
localestringquery아니오

Response

Returns: RenderEmailTemplateResponse

Example

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

이메일 템플릿 업데이트 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery
idstringpath

응답

Returns: APIEmptyResponse

예시

updateEmailTemplate 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증을 구성합니다: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 아래 주석을 해제하여 API 키에 접두사(e.g. Bearer)를 설정합니다(필요한 경우)
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
21
22
23try {
24 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

이벤트 로그 가져오기 Internal Link

req tenantId urlId userIdWS

매개변수

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

응답

Returns: GetEventLogResponse

예시

getEventLog 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$url_id = 'url_id_example'; // 문자열
15$user_id_ws = 'user_id_ws_example'; // 문자열
16$start_time = 56; // 정수
17$end_time = 56; // 정수
18
19
20try {
21 $result = $apiInstance->getEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

전체 이벤트 로그 가져오기 Internal Link

req tenantId urlId userIdWS

파라미터

이름유형위치필수설명
tenantIdstringpath
urlIdstringquery
userIdWSstringquery
startTimeintegerquery
endTimeintegerquery아니오

응답

반환: GetEventLogResponse

예시

getGlobalEventLog 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$user_id_ws = 'user_id_ws_example'; // string
16$start_time = 56; // int
17$end_time = 56; // int
18
19
20try {
21 $result = $apiInstance->getGlobalEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getGlobalEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

피드 게시물 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
broadcastIdstringquery아니오
isLivebooleanquery아니오
doSpamCheckbooleanquery아니오
skipDupCheckbooleanquery아니오

응답

반환: CreateFeedPostsResponse

예제

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

피드 게시물 생성(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstring경로
broadcastIdstring쿼리아니오
ssostring쿼리아니오

응답

반환: CreateFeedPostResponse

예시

createFeedPostPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 옵션이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // 문자열
17 'sso' => 'sso_example', // 문자열
18];
19
20
21try {
22 $result = $apiInstance->createFeedPostPublic($tenant_id, $create_feed_post_params, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->createFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

피드 게시물 삭제(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

응답

반환: DeleteFeedPostPublicResponse

예시

deleteFeedPostPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

피드 게시물들 가져오기 Internal Link


요청
tenantId
afterId

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo

응답

반환: GetFeedPostsResponse

예시

getFeedPosts 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키 앞에 접두사를 설정하려면 아래 주석을 해제하세요 (예: Bearer)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'after_id' => 'after_id_example', // 문자열
22 'limit' => 56, // 정수
23 'tags' => array('tags_example'), // 문자열[]
24];
25
26
27try {
28 $result = $apiInstance->getFeedPosts($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getFeedPosts: ', $e->getMessage(), PHP_EOL;
32}
33

피드 게시물들 가져오기(공개) Internal Link

req tenantId afterId

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo
ssostringqueryNo
isCrawlerbooleanqueryNo
includeUserInfobooleanqueryNo

Response

반환: PublicFeedPostsResponse

Example

getFeedPostsPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'limit' => 56, // int
17 'tags' => array('tags_example'), // string[]
18 'sso' => 'sso_example', // string
19 'is_crawler' => True, // bool
20 'include_user_info' => True, // bool
21];
22
23
24try {
25 $result = $apiInstance->getFeedPostsPublic($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getFeedPostsPublic: ', $e->getMessage(), PHP_EOL;
29}
30

피드 게시물 통계 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringpath
postIdsarrayquery
ssostringquery아니오

Response

반환: FeedPostsStatsResponse

Example

getFeedPostsStats 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_ids = array('post_ids_example'); // string[]
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getFeedPostsStats($tenant_id, $post_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getFeedPostsStats: ', $e->getMessage(), PHP_EOL;
23}
24

사용자 리액트 가져오기(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
postIdsarrayquery아니오
ssostringquery아니오

응답

반환: UserReactsResponse

예시

getUserReactsPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'post_ids' => array('post_ids_example'), // 문자열 배열
16 'sso' => 'sso_example', // 문자열
17];
18
19
20try {
21 $result = $apiInstance->getUserReactsPublic($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

피드 게시물에 리액트(공개) Internal Link

Parameters

이름유형Location필수설명
tenantIdstringpath
postIdstringpath
isUndobooleanquery아니오
broadcastIdstringquery아니오
ssostringquery아니오

응답

반환: ReactFeedPostResponse

예시

reactFeedPostPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
16$options = [
17 'is_undo' => True, // bool
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->reactFeedPostPublic($tenant_id, $post_id, $react_body_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->reactFeedPostPublic: ', $e->getMessage(), PHP_EOL;
28}
29

피드 게시물 업데이트 Internal Link

Parameters

이름타입위치필수설명
tenantIdstringquery
idstringpath

Response

반환: APIEmptyResponse

예시

updateFeedPost 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 권한 부여 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요할 경우 API 키에 대한 프리픽스(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$feed_post = new \FastComments\Client\Model\FeedPost(); // \FastComments\Client\Model\FeedPost
22
23
24try {
25 $result = $apiInstance->updateFeedPost($tenant_id, $id, $feed_post);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateFeedPost: ', $e->getMessage(), PHP_EOL;
29}
30

피드 게시물 업데이트(공개) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

응답

반환: CreateFeedPostResponse

예제

updateFeedPostPublic 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$post_id = 'post_id_example'; // 문자열
15$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // 문자열
18 'sso' => 'sso_example', // 문자열
19];
20
21
22try {
23 $result = $apiInstance->updateFeedPostPublic($tenant_id, $post_id, $update_feed_post_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->updateFeedPostPublic: ', $e->getMessage(), PHP_EOL;
27}
28

댓글 신고(공개) Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
commentIdstringpath
isFlaggedbooleanquery
ssostringquery아니오

응답

반환: APIEmptyResponse

예시

flagCommentPublic 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달합니다.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$is_flagged = True; // bool
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->flagCommentPublic($tenant_id, $comment_id, $is_flagged, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->flagCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

큰 GIF 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
largeInternalURLSanitizedstringqueryYes

응답

Returns: GifGetLargeResponse

예제

getGifLarge 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$large_internal_url_sanitized = 'large_internal_url_sanitized_example'; // 문자열
15
16
17try {
18 $result = $apiInstance->getGifLarge($tenant_id, $large_internal_url_sanitized);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getGifLarge: ', $e->getMessage(), PHP_EOL;
22}
23

GIF 검색 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
searchstringquery
localestringquery아니오
ratingstringquery아니오
pagenumberquery아니오

응답

반환: GetGifsSearchResponse

예시

getGifsSearch 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$search = 'search_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'rating' => 'rating_example', // string
18 'page' => 3.4, // float
19];
20
21
22try {
23 $result = $apiInstance->getGifsSearch($tenant_id, $search, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->getGifsSearch: ', $e->getMessage(), PHP_EOL;
27}
28

GIF 트렌딩 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
localestringquery아니오
ratingstringquery아니오
pagenumberquery아니오

응답

반환: GetGifsTrendingResponse

예제

getGifsTrending 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'locale' => 'locale_example', // 문자열
16 'rating' => 'rating_example', // 문자열
17 'page' => 3.4, // 부동소수점
18];
19
20
21try {
22 $result = $apiInstance->getGifsTrending($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getGifsTrending: ', $e->getMessage(), PHP_EOL;
26}
27

해시태그 추가 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery

Response

Returns: CreateHashTagResponse

Example

addHashTag 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_hash_tag_body = new \FastComments\Client\Model\CreateHashTagBody(); // \FastComments\Client\Model\CreateHashTagBody
21
22
23try {
24 $result = $apiInstance->addHashTag($tenant_id, $create_hash_tag_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTag: ', $e->getMessage(), PHP_EOL;
28}
29

해시태그 일괄 추가 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: BulkCreateHashTagsResponse

예시

addHashTagsBulk 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 prefix (예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
21
22
23try {
24 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
28}
29

해시태그 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
tagstringpath

응답

Returns: APIEmptyResponse

예제

deleteHashTag 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래 주석을 해제하면 API 키에 대한 접두사(예: Bearer)를 설정합니다, 필요 시
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$tag = 'tag_example'; // 문자열
21$delete_hash_tag_request_body = new \FastComments\Client\Model\DeleteHashTagRequestBody(); // \FastComments\Client\Model\DeleteHashTagRequestBody
22
23
24try {
25 $result = $apiInstance->deleteHashTag($tenant_id, $tag, $delete_hash_tag_request_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

해시태그 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
pagenumberqueryNo

응답

반환: GetHashTagsResponse

예시

getHashTags 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하십시오
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이것은 선택 사항이며 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$page = 3.4; // 부동소수점
20
21
22try {
23 $result = $apiInstance->getHashTags($tenant_id, $page);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getHashTags: ', $e->getMessage(), PHP_EOL;
27}
28

해시태그 부분 수정 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringqueryYes
tagstringpathYes

응답

반환: UpdateHashTagResponse

예시

patchHashTag 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$tag = 'tag_example'; // 문자열
21$update_hash_tag_body = new \FastComments\Client\Model\UpdateHashTagBody(); // \FastComments\Client\Model\UpdateHashTagBody
22
23
24try {
25 $result = $apiInstance->patchHashTag($tenant_id, $tag, $update_hash_tag_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

모더레이션 투표 삭제 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery
commentIdstringpath
voteIdstringpath
broadcastIdstringquery아니오
ssostringquery아니오

Response

반환: VoteDeleteResponse

Example

deleteModerationVote 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$vote_id = 'vote_id_example'; // 문자열
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // 문자열
18 'sso' => 'sso_example', // 문자열
19];
20
21
22try {
23 $result = $apiInstance->deleteModerationVote($tenant_id, $comment_id, $vote_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->deleteModerationVote: ', $e->getMessage(), PHP_EOL;
27}
28

API 댓글 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
pagenumberqueryNo
countnumberqueryNo
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
demobooleanqueryNo
ssostringqueryNo

응답

반환: ModerationAPIGetCommentsResponse

예시

getApiComments 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'page' => 3.4, // 부동소수점
16 'count' => 3.4, // 부동소수점
17 'text_search' => 'text_search_example', // 문자열
18 'by_ip_from_comment' => 'by_ip_from_comment_example', // 문자열
19 'filters' => 'filters_example', // 문자열
20 'search_filters' => 'search_filters_example', // 문자열
21 'sorts' => 'sorts_example', // 문자열
22 'demo' => True, // 불리언
23 'sso' => 'sso_example', // 문자열
24];
25
26
27try {
28 $result = $apiInstance->getApiComments($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling ModerationApi->getApiComments: ', $e->getMessage(), PHP_EOL;
32}
33

API 내보내기 상태 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
batchJobIdstringquery아니오
ssostringquery아니오

응답

반환: ModerationExportStatusResponse

예시

getApiExportStatus 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'batch_job_id' => 'batch_job_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getApiExportStatus($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getApiExportStatus: ', $e->getMessage(), PHP_EOL;
25}
26

API ID들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
text-searchstringquery아니오
byIPFromCommentstringquery아니오
filtersstringquery아니오
searchFiltersstringquery아니오
afterIdstringquery아니오
demobooleanquery아니오
ssostringquery아니오

응답

Returns: ModerationAPIGetCommentIdsResponse

예시

getApiIds 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filters' => 'filters_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'after_id' => 'after_id_example', // string
20 'demo' => True, // bool
21 'sso' => 'sso_example', // string
22];
23
24
25try {
26 $result = $apiInstance->getApiIds($tenant_id, $options);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling ModerationApi->getApiIds: ', $e->getMessage(), PHP_EOL;
30}
31

댓글로부터 금지된 사용자 가져오기 Internal Link

Parameters

이름타입위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Response

반환: GetBannedUsersFromCommentResponse

Example

getBanUsersFromComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client` 가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$sso = 'sso_example'; // 문자열
16
17
18try {
19 $result = $apiInstance->getBanUsersFromComment($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getBanUsersFromComment: ', $e->getMessage(), PHP_EOL;
23}
24

댓글 차단 상태 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringpath
ssostringquery아니오

응답

반환: GetCommentBanStatusResponse

예제

getCommentBanStatus 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getCommentBanStatus($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentBanStatus: ', $e->getMessage(), PHP_EOL;
23}
24

댓글 자식들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

응답

반환: ModerationAPIChildCommentsResponse

예시

getCommentChildren 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$sso = 'sso_example'; // 문자열
16
17
18try {
19 $result = $apiInstance->getCommentChildren($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentChildren: ', $e->getMessage(), PHP_EOL;
23}
24

개수 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filterstringqueryNo
searchFiltersstringqueryNo
demobooleanqueryNo
ssostringqueryNo

응답

반환: ModerationAPICountCommentsResponse

예제

getCount 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filter' => 'filter_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'demo' => True, // bool
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->getCount($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->getCount: ', $e->getMessage(), PHP_EOL;
29}
30

여러 개수 가져오기 Internal Link

Parameters

이름타입위치필수설명
tenantIdstringquery
ssostringquery아니오

Response

반환: GetBannedUsersCountResponse

Example

getCounts 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getCounts($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getCounts: ', $e->getMessage(), PHP_EOL;
22}
23

로그 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringpath
ssostringquery아니요

응답

반환: ModerationAPIGetLogsResponse

예시

getLogs 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface` 를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client` 가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getLogs($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getLogs: ', $e->getMessage(), PHP_EOL;
23}
24

수동 배지 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
ssostringquery아니오

응답

반환: GetTenantManualBadgesResponse

예시

getManualBadges 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$sso = 'sso_example'; // 문자열
15
16
17try {
18 $result = $apiInstance->getManualBadges($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getManualBadges: ', $e->getMessage(), PHP_EOL;
22}
23

사용자용 수동 배지 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
badgesUserIdstringquery아니오
commentIdstringquery아니오
ssostringquery아니오

응답

반환: GetUserManualBadgesResponse

예시

getManualBadgesForUser 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'badges_user_id' => 'badges_user_id_example', // 문자열
16 'comment_id' => 'comment_id_example', // 문자열
17 'sso' => 'sso_example', // 문자열
18];
19
20
21try {
22 $result = $apiInstance->getManualBadgesForUser($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->getManualBadgesForUser: ', $e->getMessage(), PHP_EOL;
26}
27

모더레이션 댓글 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
includeEmailbooleanqueryNo
includeIPbooleanqueryNo
ssostringqueryNo

응답

반환: ModerationAPICommentResponse

예제

getModerationComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface` 를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client` 가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'include_email' => True, // 불리언
17 'include_ip' => True, // 불리언
18 'sso' => 'sso_example', // 문자열
19];
20
21
22try {
23 $result = $apiInstance->getModerationComment($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getModerationComment: ', $e->getMessage(), PHP_EOL;
27}
28

모더레이션 댓글 텍스트 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringpath
ssostringquery아니오

응답

반환: GetCommentTextResponse

예시

getModerationCommentText 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getModerationCommentText($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getModerationCommentText: ', $e->getMessage(), PHP_EOL;
23}
24

사전 차단 요약 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

응답

반환: PreBanSummary

예시

getPreBanSummary 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface` 를 구현하는 클라이언트를 전달하십시오.
9 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client` 가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'include_by_user_id_and_email' => True, // bool
17 'include_by_ip' => True, // bool
18 'include_by_email_domain' => True, // bool
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->getPreBanSummary($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->getPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

댓글 검색 요약 가져오기 Internal Link


매개변수

이름형식위치필수설명
tenantIdstringquery
valuestringquery아니오
filtersstringquery아니오
searchFiltersstringquery아니오
ssostringquery아니오

응답

반환: ModerationCommentSearchResponse

예시

getSearchCommentsSummary 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달합니다.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'filters' => 'filters_example', // string
17 'search_filters' => 'search_filters_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->getSearchCommentsSummary($tenant_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getSearchCommentsSummary: ', $e->getMessage(), PHP_EOL;
27}
28

페이지 검색 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

응답

반환: ModerationPageSearchResponse

예시

getSearchPages 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchPages($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchPages: ', $e->getMessage(), PHP_EOL;
25}
26

사이트 검색 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

응답

반환: ModerationSiteSearchResponse

예시

getSearchSites 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'value' => 'value_example', // 문자열
16 'sso' => 'sso_example', // 문자열
17];
18
19
20try {
21 $result = $apiInstance->getSearchSites($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSites: ', $e->getMessage(), PHP_EOL;
25}
26

검색 제안 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery
text-searchstringquery아니오
ssostringquery아니오

응답

반환: ModerationSuggestResponse

예시

getSearchSuggest 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchSuggest($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSuggest: ', $e->getMessage(), PHP_EOL;
25}
26

사용자 검색 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

응답

반환: ModerationUserSearchResponse

예시

getSearchUsers 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchUsers($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchUsers: ', $e->getMessage(), PHP_EOL;
25}
26

신뢰 지수 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
userIdstringqueryNo
ssostringqueryNo

응답

반환: GetUserTrustFactorResponse

예시

getTrustFactor 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getTrustFactor($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getTrustFactor: ', $e->getMessage(), PHP_EOL;
25}
26

사용자 차단 선호도 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
ssostringqueryNo

Response

Returns: APIModerateGetUserBanPreferencesResponse

Example

getUserBanPreference 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getUserBanPreference($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getUserBanPreference: ', $e->getMessage(), PHP_EOL;
22}
23

사용자 내부 프로필 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringqueryYes
commentIdstringqueryNo
ssostringqueryNo

응답

반환: GetUserInternalProfileResponse

예시

getUserInternalProfile 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'comment_id' => 'comment_id_example', // 문자열
16 'sso' => 'sso_example', // 문자열
17];
18
19
20try {
21 $result = $apiInstance->getUserInternalProfile($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getUserInternalProfile: ', $e->getMessage(), PHP_EOL;
25}
26

API 내보내기 생성 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
ssostringqueryNo

응답

반환: ModerationExportResponse

예시

postApiExport 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'text_search' => 'text_search_example', // 문자열
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // 문자열
17 'filters' => 'filters_example', // 문자열
18 'search_filters' => 'search_filters_example', // 문자열
19 'sorts' => 'sorts_example', // 문자열
20 'sso' => 'sso_example', // 문자열
21];
22
23
24try {
25 $result = $apiInstance->postApiExport($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'ModerationApi->postApiExport 호출 중 예외 발생: ', $e->getMessage(), PHP_EOL;
29}
30

댓글에서 사용자 차단(POST) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
banEmailbooleanqueryNo
banEmailDomainbooleanqueryNo
banIPbooleanqueryNo
deleteAllUsersCommentsbooleanqueryNo
bannedUntilstringqueryNo
isShadowBanbooleanqueryNo
updateIdstringqueryNo
banReasonstringqueryNo
ssostringqueryNo

응답

반환: BanUserFromCommentResult

예제

postBanUserFromComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달합니다.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'ban_email' => True, // 부울
17 'ban_email_domain' => True, // 부울
18 'ban_ip' => True, // 부울
19 'delete_all_users_comments' => True, // 부울
20 'banned_until' => 'banned_until_example', // 문자열
21 'is_shadow_ban' => True, // 부울
22 'update_id' => 'update_id_example', // 문자열
23 'ban_reason' => 'ban_reason_example', // 문자열
24 'sso' => 'sso_example', // 문자열
25];
26
27
28try {
29 $result = $apiInstance->postBanUserFromComment($tenant_id, $comment_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling ModerationApi->postBanUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

사용자 차단 취소(POST) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
ssostringquery아니오

응답

반환: APIEmptyResponse

예제

postBanUserUndo 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$ban_user_undo_params = new \FastComments\Client\Model\BanUserUndoParams(); // \FastComments\Client\Model\BanUserUndoParams
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->postBanUserUndo($tenant_id, $ban_user_undo_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postBanUserUndo: ', $e->getMessage(), PHP_EOL;
23}
24

사전 차단 요약 일괄 생성 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringqueryYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

응답

반환: BulkPreBanSummary

예제

postBulkPreBanSummary 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$bulk_pre_ban_params = new \FastComments\Client\Model\BulkPreBanParams(); // \FastComments\Client\Model\BulkPreBanParams
15$options = [
16 'include_by_user_id_and_email' => True, // bool
17 'include_by_ip' => True, // bool
18 'include_by_email_domain' => True, // bool
19 'sso' => 'sso_example', // 문자열
20];
21
22
23try {
24 $result = $apiInstance->postBulkPreBanSummary($tenant_id, $bulk_pre_ban_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postBulkPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

ID로 댓글들 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
ssostringquery아니오

응답

반환: ModerationAPIChildCommentsResponse

예시

postCommentsByIds 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comments_by_ids_params = new \FastComments\Client\Model\CommentsByIdsParams(); // \FastComments\Client\Model\CommentsByIdsParams
15$sso = 'sso_example'; // 문자열
16
17
18try {
19 $result = $apiInstance->postCommentsByIds($tenant_id, $comments_by_ids_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postCommentsByIds: ', $e->getMessage(), PHP_EOL;
23}
24

댓글 신고(POST) Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Response

반환: APIEmptyResponse

Example

postFlagComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

댓글 제거(POST) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

응답

반환: PostRemoveCommentApiResponse

예제

postRemoveComment 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postRemoveComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRemoveComment: ', $e->getMessage(), PHP_EOL;
26}
27

삭제된 댓글 복원 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

응답

반환: APIEmptyResponse

예시

postRestoreDeletedComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postRestoreDeletedComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRestoreDeletedComment: ', $e->getMessage(), PHP_EOL;
26}
27

댓글 승인 상태 설정 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringquery
commentIdstringpath
approvedbooleanquery아니오
broadcastIdstringquery아니오
ssostringquery아니오

응답

반환: SetCommentApprovedResponse

예시

postSetCommentApprovalStatus 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'approved' => True, // 불리언
17 'broadcast_id' => 'broadcast_id_example', // 문자열
18 'sso' => 'sso_example', // 문자열
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentApprovalStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentApprovalStatus: ', $e->getMessage(), PHP_EOL;
27}
28

댓글 검토 상태 설정 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
reviewedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

응답

반환: APIEmptyResponse

예시

postSetCommentReviewStatus 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'reviewed' => True, // bool
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentReviewStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentReviewStatus: ', $e->getMessage(), PHP_EOL;
27}
28

댓글 스팸 상태 설정 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
commentIdstringpathYes
spambooleanqueryNo
permNotSpambooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

응답

Returns: APIEmptyResponse

예제

postSetCommentSpamStatus 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'spam' => True, // 불리언
17 'perm_not_spam' => True, // 불리언
18 'broadcast_id' => 'broadcast_id_example', // 문자열
19 'sso' => 'sso_example', // 문자열
20];
21
22
23try {
24 $result = $apiInstance->postSetCommentSpamStatus($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postSetCommentSpamStatus: ', $e->getMessage(), PHP_EOL;
28}
29

댓글 텍스트 설정(POST) Internal Link

매개변수

이름타입위치필수설명
tenantIdstringquery
commentIdstringpath
broadcastIdstringquery아니오
ssostringquery아니오

응답

반환: SetCommentTextResponse

예제

postSetCommentText 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$set_comment_text_params = new \FastComments\Client\Model\SetCommentTextParams(); // \FastComments\Client\Model\SetCommentTextParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentText($tenant_id, $comment_id, $set_comment_text_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentText: ', $e->getMessage(), PHP_EOL;
27}
28

댓글 신고 취소(POST) Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringpath
broadcastIdstringquery아니오
ssostringquery아니오

응답

반환: APIEmptyResponse

예시

postUnFlagComment 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // 문자열
17 'sso' => 'sso_example', // 문자열
18];
19
20
21try {
22 $result = $apiInstance->postUnFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postUnFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

투표(POST) Internal Link

매개변수

이름타입위치필요설명
tenantIdstringquery
commentIdstringpath
directionstringquery아니오
broadcastIdstringquery아니오
ssostringquery아니오

응답

반환: VoteResponse

예제

postVote 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$comment_id = 'comment_id_example'; // 문자열
15$options = [
16 'direction' => 'direction_example', // 문자열
17 'broadcast_id' => 'broadcast_id_example', // 문자열
18 'sso' => 'sso_example', // 문자열
19];
20
21
22try {
23 $result = $apiInstance->postVote($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postVote: ', $e->getMessage(), PHP_EOL;
27}
28

배지 수여 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

응답

Returns: AwardUserBadgeResponse

예시

putAwardBadge 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$badge_id = 'badge_id_example'; // string
15$options = [
16 'user_id' => 'user_id_example', // string
17 'comment_id' => 'comment_id_example', // string
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->putAwardBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putAwardBadge: ', $e->getMessage(), PHP_EOL;
28}
29

스레드 닫기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

응답

반환: APIEmptyResponse

예시

putCloseThread 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->putCloseThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putCloseThread: ', $e->getMessage(), PHP_EOL;
23}
24

배지 제거 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

응답

반환: RemoveUserBadgeResponse

예시

putRemoveBadge 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$badge_id = 'badge_id_example'; // 문자열
15$options = [
16 'user_id' => 'user_id_example', // 문자열
17 'comment_id' => 'comment_id_example', // 문자열
18 'broadcast_id' => 'broadcast_id_example', // 문자열
19 'sso' => 'sso_example', // 문자열
20];
21
22
23try {
24 $result = $apiInstance->putRemoveBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putRemoveBadge: ', $e->getMessage(), PHP_EOL;
28}
29

스레드 재오픈 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

응답

반환: APIEmptyResponse

예시

putReopenThread 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->putReopenThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putReopenThread: ', $e->getMessage(), PHP_EOL;
23}
24

신뢰 지수 설정 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
userIdstringquery아니오
trustFactorstringquery아니오
ssostringquery아니오

응답

반환: SetUserTrustFactorResponse

예시

setTrustFactor 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // 사용자 정의 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'user_id' => 'user_id_example', // 문자열
16 'trust_factor' => 'trust_factor_example', // 문자열
17 'sso' => 'sso_example', // 문자열
18];
19
20
21try {
22 $result = $apiInstance->setTrustFactor($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->setTrustFactor: ', $e->getMessage(), PHP_EOL;
26}
27

모더레이터 생성 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery

응답

반환: CreateModeratorResponse

예시

createModerator 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정합니다, 필요할 경우
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달합니다.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$create_moderator_body = new \FastComments\Client\Model\CreateModeratorBody(); // \FastComments\Client\Model\CreateModeratorBody
21
22
23try {
24 $result = $apiInstance->createModerator($tenant_id, $create_moderator_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createModerator: ', $e->getMessage(), PHP_EOL;
28}
29

모더레이터 삭제 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
sendEmailstringqueryNo

응답

반환: APIEmptyResponse

예시

deleteModerator 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요에 따라 아래 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$id = 'id_example'; // 문자열
20$send_email = 'send_email_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
28}
29

모더레이터 가져오기 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringquery
idstringpath

응답

반환값: GetModeratorResponse

예시

getModerator 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getModerator($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerator: ', $e->getMessage(), PHP_EOL;
28}
29

모더레이터들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
skipnumberquery아니오

응답

반환: GetModeratorsResponse

예시

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

초대 전송 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
fromNamestringqueryYes

응답

반환: APIEmptyResponse

예시

sendInvite 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$from_name = 'from_name_example'; // string
22
23
24try {
25 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
29}
30

모더레이터 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예시

updateModerator 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요하면 아래의 주석을 해제하고 API 키 접두사(e.g. Bearer)를 설정하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_moderator_body = new \FastComments\Client\Model\UpdateModeratorBody(); // \FastComments\Client\Model\UpdateModeratorBody
22
23
24try {
25 $result = $apiInstance->updateModerator($tenant_id, $id, $update_moderator_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateModerator: ', $e->getMessage(), PHP_EOL;
29}
30

알림 수 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예제

deleteNotificationCount 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 prefix(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 옵션이며, 기본으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->deleteNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

캐시된 알림 수 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: GetCachedNotificationCountResponse

예시

getCachedNotificationCount 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getCachedNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getCachedNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

알림 수 가져오기 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo

응답

반환: GetNotificationCountResponse

예시

getNotificationCount 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 필요에 따라 API 키에 접두사 (예: Bearer)를 설정하려면 아래 주석을 해제하십시오
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$options = [
20 'user_id' => 'user_id_example', // 문자열
21 'url_id' => 'url_id_example', // 문자열
22 'from_comment_id' => 'from_comment_id_example', // 문자열
23 'viewed' => True, // 불리언
24 'type' => 'type_example', // 문자열
25];
26
27
28try {
29 $result = $apiInstance->getNotificationCount($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
33}
34

알림들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
userIdstringquery아니오
urlIdstringquery아니오
fromCommentIdstringquery아니오
viewedbooleanquery아니오
typestringquery아니오
skipnumberquery아니오

응답

반환: GetNotificationsResponse

예제

getNotifications 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'user_id' => 'user_id_example', // 문자열
22 'url_id' => 'url_id_example', // 문자열
23 'from_comment_id' => 'from_comment_id_example', // 문자열
24 'viewed' => True, // 불리언
25 'type' => 'type_example', // 문자열
26 'skip' => 3.4, // 부동소수점
27];
28
29
30try {
31 $result = $apiInstance->getNotifications($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
35}
36

알림 업데이트 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringquery
idstringpath
userIdstringquery아니오

응답

반환: APIEmptyResponse

예시

updateNotification 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 구성합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_notification_body = new \FastComments\Client\Model\UpdateNotificationBody(); // \FastComments\Client\Model\UpdateNotificationBody
22$user_id = 'user_id_example'; // string
23
24
25try {
26 $result = $apiInstance->updateNotification($tenant_id, $id, $update_notification_body, $user_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateNotification: ', $e->getMessage(), PHP_EOL;
30}
31

V1 페이지 리액트 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
urlIdstringqueryYes
titlestringqueryNo

응답

반환: CreateV1PageReact

예제

createV1PageReact 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$url_id = 'url_id_example'; // 문자열
15$title = 'title_example'; // 문자열
16
17
18try {
19 $result = $apiInstance->createV1PageReact($tenant_id, $url_id, $title);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->createV1PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

V2 페이지 리액트 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes
titlestringqueryNo

응답

Returns: CreateV1PageReact

예제

createV2PageReact 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16$title = 'title_example'; // string
17
18
19try {
20 $result = $apiInstance->createV2PageReact($tenant_id, $url_id, $id, $title);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->createV2PageReact: ', $e->getMessage(), PHP_EOL;
24}
25

V1 페이지 리액트 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
urlIdstringquery

응답

반환: CreateV1PageReact

예제

deleteV1PageReact 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$url_id = 'url_id_example'; // 문자열
15
16
17try {
18 $result = $apiInstance->deleteV1PageReact($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->deleteV1PageReact: ', $e->getMessage(), PHP_EOL;
22}
23

V2 페이지 리액트 삭제 Internal Link

Parameters

이름형식위치필수설명
tenantIdstringpath
urlIdstringquery
idstringquery

Response

Returns: CreateV1PageReact

Example

deleteV2PageReact 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$url_id = 'url_id_example'; // 문자열
15$id = 'id_example'; // 문자열
16
17
18try {
19 $result = $apiInstance->deleteV2PageReact($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->deleteV2PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

V1 페이지 좋아요 가져오기 Internal Link


매개변수

이름타입위치필수설명
tenantIdstringpath
urlIdstringquery

응답

반환: GetV1PageLikes

예시

getV1PageLikes 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15
16
17try {
18 $result = $apiInstance->getV1PageLikes($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV1PageLikes: ', $e->getMessage(), PHP_EOL;
22}
23

V2 페이지 리액트 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringpath
urlIdstringquery

Response

Returns: GetV2PageReacts

Example

getV2PageReacts 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$url_id = 'url_id_example'; // 문자열
15
16
17try {
18 $result = $apiInstance->getV2PageReacts($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV2PageReacts: ', $e->getMessage(), PHP_EOL;
22}
23

V2 페이지 리액트 사용자 가져오기 Internal Link

Parameters

이름형식위치필수설명
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

응답

반환: GetV2PageReactUsersResponse

예시

getV2PageReactUsers 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16
17
18try {
19 $result = $apiInstance->getV2PageReactUsers($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getV2PageReactUsers: ', $e->getMessage(), PHP_EOL;
23}
24

페이지 추가 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: AddPageAPIResponse

예시

addPage 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API 키 인증 구성: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$create_api_page_data = new \FastComments\Client\Model\CreateAPIPageData(); // \FastComments\Client\Model\CreateAPIPageData
24
25
26try {
27 $result = $apiInstance->addPage($tenant_id, $create_api_page_data);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->addPage: ', $e->getMessage(), PHP_EOL;
31}
32

페이지 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: DeletePageAPIResponse

예시

deletePage 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사 (예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->deletePage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deletePage: ', $e->getMessage(), PHP_EOL;
28}
29

오프라인 사용자 가져오기 Internal Link

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

Parameters

이름타입위치필수설명
tenantIdstringpathYes
urlIdstringqueryYes페이지 URL 식별자 (cleaned server-side).
afterNamestringqueryNoCursor: pass nextAfterName from the previous response.
afterUserIdstringqueryNoCursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.

Response

반환: PageUsersOfflineResponse

Example

getOfflineUsers 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | 페이지 URL 식별자 (cleaned server-side).
15$options = [
16 'after_name' => 'after_name_example', // string | Cursor: pass nextAfterName from the previous response.
17 'after_user_id' => 'after_user_id_example', // string | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.
18];
19
20
21try {
22 $result = $apiInstance->getOfflineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOfflineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

온라인 사용자 가져오기 Internal Link

Currently-online viewers of a page: 페이지의 현재 웹소켓 세션이 구독 중인 사용자입니다.
Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).
Returns anonCount + totalCount (방 전체 구독자 수, 열거하지 않는 익명 뷰어 포함).

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes페이지 URL 식별자 (서버 측에서 정리된).
afterNamestringqueryNo커서: 이전 응답의 nextAfterName을 전달합니다.
afterUserIdstringqueryNo커서 동점 해결: 이전 응답의 nextAfterUserId을 전달합니다. afterName이 설정된 경우 이름이 동일할 때 항목이 누락되지 않도록 필요합니다.

Response

Returns: PageUsersOnlineResponse

Example

getOnlineUsers 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | 페이지 URL 식별자 (서버 측에서 정리된).
15$options = [
16 'after_name' => 'after_name_example', // string | 커서: 이전 응답의 nextAfterName을 전달합니다.
17 'after_user_id' => 'after_user_id_example', // string | 커서 동점 해결: 이전 응답의 nextAfterUserId을 전달합니다. afterName이 설정된 경우 이름이 동일할 때 항목이 누락되지 않도록 필요합니다.
18];
19
20
21try {
22 $result = $apiInstance->getOnlineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOnlineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

URL ID로 페이지 가져오기 Internal Link


매개변수

이름유형위치필수설명
tenantIdstringqueryYes
urlIdstringqueryYes

응답

반환: GetPageByURLIdAPIResponse

예제

getPageByURLId 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 선택 사항이며, `GuzzleHttp\Client`가 기본값으로 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$url_id = 'url_id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getPageByURLId($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
28}
29

페이지들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: GetPagesAPIResponse

예시

getPages 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API 키 인증 구성: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 필요하면 아래 주석을 해제하여 API 키의 접두사(e.g. Bearer)를 설정합니다
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23
24
25try {
26 $result = $apiInstance->getPages($tenant_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getPages: ', $e->getMessage(), PHP_EOL;
30}
31

페이지들 가져오기(공개) Internal Link

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

매개변수

NameTypeLocationRequiredDescription
tenantIdstringpathYes
cursorstringqueryNo이전 요청에서 nextCursor 로 반환된 불투명 페이지네이션 커서. 동일한 sortBy와 연결됩니다.
limitintegerqueryNo1..200, 기본값 50
qstringqueryNo선택적 대소문자 구분 없는 제목 접두사 필터.
sortBystringqueryNo정렬 순서. updatedAt (기본값, 최신 순), commentCount (댓글이 많은 순), 또는 title (알파벳 순).
hasCommentsbooleanqueryNotrue이면 최소 하나 이상의 댓글이 있는 페이지만 반환합니다.

응답

반환: GetPublicPagesResponse

예시

getPagesPublic 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$options = [
15 'cursor' => 'cursor_example', // 문자열 | 이전 요청에서 `nextCursor` 로 반환된 불투명 페이지네이션 커서. 동일한 `sortBy`와 연결됩니다.
16 'limit' => 56, // 정수 | 1..200, 기본값 50
17 'q' => 'q_example', // 문자열 | 선택적 대소문자 구분 없는 제목 접두사 필터.
18 'sort_by' => new \FastComments\Client\Model\\FastComments\Client\Model\PagesSortBy(), // \FastComments\Client\Model\PagesSortBy | 정렬 순서. `updatedAt` (기본값, 최신 순), `commentCount` (댓글이 많은 순), 또는 `title` (알파벳 순).
19 'has_comments' => True, // 불리언 | true이면 최소 하나 이상의 댓글이 있는 페이지만 반환합니다.
20];
21
22
23try {
24 $result = $apiInstance->getPagesPublic($tenant_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->getPagesPublic: ', $e->getMessage(), PHP_EOL;
28}
29

사용자 정보들 가져오기 Internal Link

Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.
Used by the comment widget to enrich users that just appeared via a presence event.
No page context: privacy is enforced uniformly (private profiles are masked).

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
idsstringqueryYes쉼표로 구분된 userIds.

Response

Returns: PageUsersInfoResponse

Example

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

페이지 부분 수정 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

응답

반환: PatchPageAPIResponse

예시

patchPage 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 프리픽스(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_api_page_data = new \FastComments\Client\Model\UpdateAPIPageData(); // \FastComments\Client\Model\UpdateAPIPageData
22
23
24try {
25 $result = $apiInstance->patchPage($tenant_id, $id, $update_api_page_data);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchPage: ', $e->getMessage(), PHP_EOL;
29}
30

보류 중인 웹훅 이벤트 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예시

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

보류 중인 웹훅 이벤트 수 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringquery
commentIdstringquery아니오
externalIdstringquery아니오
eventTypestringquery아니오
typestringquery아니오
domainstringquery아니오
attemptCountGTnumberquery아니오

응답

반환: GetPendingWebhookEventCountResponse

예시

getPendingWebhookEventCount 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'comment_id' => 'comment_id_example', // 문자열
22 'external_id' => 'external_id_example', // 문자열
23 'event_type' => 'event_type_example', // 문자열
24 'type' => 'type_example', // 문자열
25 'domain' => 'domain_example', // 문자열
26 'attempt_count_gt' => 3.4, // 부동소수점
27];
28
29
30try {
31 $result = $apiInstance->getPendingWebhookEventCount($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getPendingWebhookEventCount: ', $e->getMessage(), PHP_EOL;
35}
36

보류 중인 웹훅 이벤트들 가져오기 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo
skipnumberqueryNo

Response

반환: GetPendingWebhookEventsResponse

Example

getPendingWebhookEvents 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 필요에 따라 아래의 주석을 해제하여 API 키에 대한 프리픽스(예: Bearer)를 설정합니다
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'comment_id' => 'comment_id_example', // string
21 'external_id' => 'external_id_example', // string
22 'event_type' => 'event_type_example', // string
23 'type' => 'type_example', // string
24 'domain' => 'domain_example', // string
25 'attempt_count_gt' => 3.4, // float
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getPendingWebhookEvents($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getPendingWebhookEvents: ', $e->getMessage(), PHP_EOL;
35}
36

질문 설정 생성 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringquery

응답

반환: CreateQuestionConfigResponse

예제

createQuestionConfig 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

질문 설정 삭제 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringquery
idstringpath

Response

반환: APIEmptyResponse

Example

deleteQuestionConfig 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하여 프리픽스 설정(예: Bearer) API 키에 대해
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteQuestionConfig($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

질문 설정 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

응답

반환: GetQuestionConfigResponse

예시

getQuestionConfig 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 구성합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getQuestionConfig($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

질문 설정들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
skipnumberqueryNo

응답

반환: GetQuestionConfigsResponse

예시

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

질문 설정 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: APIEmptyResponse

예시

updateQuestionConfig 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하십시오
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_question_config_body = new \FastComments\Client\Model\UpdateQuestionConfigBody(); // \FastComments\Client\Model\UpdateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->updateQuestionConfig($tenant_id, $id, $update_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

질문 결과 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: CreateQuestionResultResponse

예시

createQuestionResult 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 API 키 접두사를 설정합니다 (예: Bearer), 필요 시
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$create_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
21
22
23try {
24 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

질문 결과 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: APIEmptyResponse

예시

deleteQuestionResult 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API 키 인증 구성: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 필요 시 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하십시오
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24
25
26try {
27 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
31}
32

질문 결과 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: GetQuestionResultResponse

예시

getQuestionResult 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 구성합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래 주석을 해제하여 필요 시 API 키에 대한 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달합니다.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getQuestionResult($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'DefaultApi->getQuestionResult 호출 중 예외 발생: ', $e->getMessage(), PHP_EOL;
28}
29

질문 결과들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
urlIdstringqueryNo
userIdstringqueryNo
startDatestringqueryNo
questionIdstringqueryNo
questionIdsstringqueryNo
skipnumberqueryNo

응답

반환: GetQuestionResultsResponse

예시

getQuestionResults 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 prefix(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'url_id' => 'url_id_example', // string
22 'user_id' => 'user_id_example', // string
23 'start_date' => 'start_date_example', // string
24 'question_id' => 'question_id_example', // string
25 'question_ids' => 'question_ids_example', // string
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getQuestionResults($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
35}
36

질문 결과 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: APIEmptyResponse

예시

updateQuestionResult 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_question_result_body = new \FastComments\Client\Model\UpdateQuestionResultBody(); // \FastComments\Client\Model\UpdateQuestionResultBody
22
23
24try {
25 $result = $apiInstance->updateQuestionResult($tenant_id, $id, $update_question_result_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateQuestionResult: ', $e->getMessage(), PHP_EOL;
29}
30

질문 결과 집계 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

Response

반환: AggregateQuestionResultsResponse

Example

aggregateQuestionResults 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'question_id' => 'question_id_example', // string
22 'question_ids' => array('question_ids_example'), // string[]
23 'url_id' => 'url_id_example', // string
24 'time_bucket' => new \FastComments\Client\Model\\FastComments\Client\Model\AggregateTimeBucket(), // \FastComments\Client\Model\AggregateTimeBucket
25 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
26 'force_recalculate' => True, // bool
27];
28
29
30try {
31 $result = $apiInstance->aggregateQuestionResults($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->aggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
35}
36

질문 결과 일괄 집계 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery
forceRecalculatebooleanquery아니오

Response

반환: BulkAggregateQuestionResultsResponse

Example

bulkAggregateQuestionResults 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 아래 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정하세요, 필요에 따라
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface` 를 구현하는 클라이언트를 전달하세요.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client` 가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$bulk_aggregate_question_results_request = new \FastComments\Client\Model\BulkAggregateQuestionResultsRequest(); // \FastComments\Client\Model\BulkAggregateQuestionResultsRequest
20$force_recalculate = True; // bool
21
22
23try {
24 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
28}
29

댓글과 질문 결과 결합 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo
minValuenumberqueryNo
maxValuenumberqueryNo
limitnumberqueryNo

응답

반환: CombineQuestionResultsWithCommentsResponse

예시

combineCommentsWithQuestionResults 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 아래 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정하세요 (필요한 경우)
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'question_id' => 'question_id_example', // string
21 'question_ids' => array('question_ids_example'), // string[]
22 'url_id' => 'url_id_example', // string
23 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
24 'force_recalculate' => True, // bool
25 'min_value' => 3.4, // float
26 'max_value' => 3.4, // float
27 'limit' => 3.4, // float
28];
29
30
31try {
32 $result = $apiInstance->combineCommentsWithQuestionResults($tenant_id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->combineCommentsWithQuestionResults: ', $e->getMessage(), PHP_EOL;
36}
37

SSO 사용자 추가 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes

응답

반환: AddSSOUserAPIResponse

예제

addSSOUser 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하여 API 키 접두사를 설정합니다 (예: Bearer)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이 옵션은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$create_apisso_user_data = new \FastComments\Client\Model\CreateAPISSOUserData(); // \FastComments\Client\Model\CreateAPISSOUserData
21
22
23try {
24 $result = $apiInstance->addSSOUser($tenant_id, $create_apisso_user_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

SSO 사용자 삭제 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
idstringpath
deleteCommentsbooleanquery아니오
commentDeleteModestringquery아니오

응답

반환: DeleteSSOUserAPIResponse

예시

deleteSSOUser 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요시 API 키 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤형 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$options = [
22 'delete_comments' => True, // 불리언
23 'comment_delete_mode' => 'comment_delete_mode_example', // 문자열
24];
25
26
27try {
28 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
32}
33

이메일로 SSO 사용자 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
emailstringpath

응답

반환: GetSSOUserByEmailAPIResponse

예시

getSSOUserByEmail 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$email = 'email_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getSSOUserByEmail($tenant_id, $email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserByEmail: ', $e->getMessage(), PHP_EOL;
28}
29

ID로 SSO 사용자 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: GetSSOUserByIdAPIResponse

예시

getSSOUserById 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 커스텀 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getSSOUserById($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
28}
29

SSO 사용자들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
skipintegerqueryNo

응답

반환: GetSSOUsersResponse

예시

getSSOUsers 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// API 키 인증 구성: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// 필요한 경우 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$skip = 56; // int
24
25
26try {
27 $result = $apiInstance->getSSOUsers($tenant_id, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getSSOUsers: ', $e->getMessage(), PHP_EOL;
31}
32

SSO 사용자 부분 수정 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

응답

반환: PatchSSOUserAPIResponse

예시

patchSSOUser 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 프리픽스 설정 (예: Bearer) 을 API 키에 적용, 필요한 경우
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // bool
23
24
25try {
26 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
30}
31

SSO 사용자 대체 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath
updateCommentsbooleanquery아니오

응답

반환: PutSSOUserAPIResponse

예시

putSSOUser 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요하면 아래의 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // 불리언
23
24
25try {
26 $result = $apiInstance->putSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->putSSOUser: ', $e->getMessage(), PHP_EOL;
30}
31

구독 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

Returns: CreateSubscriptionAPIResponse

예제

createSubscription 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 권한 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하여 API 키의 접두사 (예: Bearer) 설정
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$create_api_user_subscription_data = new \FastComments\Client\Model\CreateAPIUserSubscriptionData(); // \FastComments\Client\Model\CreateAPIUserSubscriptionData
21
22
23try {
24 $result = $apiInstance->createSubscription($tenant_id, $create_api_user_subscription_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

구독 삭제 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

응답

반환: DeleteSubscriptionAPIResponse

예시

deleteSubscription 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요에 따라 API 키에 대한 프리픽스(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현한 클라이언트를 전달하세요.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$id = 'id_example'; // 문자열
20$user_id = 'user_id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->deleteSubscription($tenant_id, $id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

구독들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
userIdstringquery아니오

응답

반환: GetSubscriptionsAPIResponse

예시

getSubscriptions 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 구성합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래의 접두사를 설정하려면 주석을 해제합니다 (예: Bearer)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$user_id = 'user_id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getSubscriptions($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
28}
29

구독 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath
userIdstringquery아니오

응답

반환: UpdateSubscriptionAPIResponse

예제

updateSubscription 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정합니다, 필요 시
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 http 클라이언트를 사용하려면, `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$update_api_user_subscription_data = new \FastComments\Client\Model\UpdateAPIUserSubscriptionData(); // \FastComments\Client\Model\UpdateAPIUserSubscriptionData
22$user_id = 'user_id_example'; // 문자열
23
24
25try {
26 $result = $apiInstance->updateSubscription($tenant_id, $id, $update_api_user_subscription_data, $user_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL;
30}
31

테넌트 일별 사용량 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
yearNumbernumberquery아니오
monthNumbernumberquery아니오
dayNumbernumberquery아니오
skipnumberquery아니오

응답

반환: GetTenantDailyUsagesResponse

예제

getTenantDailyUsages 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// 필요한 경우 아래 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정합니다.
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'year_number' => 3.4, // float
21 'month_number' => 3.4, // float
22 'day_number' => 3.4, // float
23 'skip' => 3.4, // float
24];
25
26
27try {
28 $result = $apiInstance->getTenantDailyUsages($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
32}
33

테넌트 패키지 생성 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes

Response

반환: CreateTenantPackageResponse

Example

createTenantPackage 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정합니다(필요한 경우)
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
21
22
23try {
24 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 패키지 삭제 Internal Link


매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예시

deleteTenantPackage 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 API 키에 대한 프리픽스(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteTenantPackage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 패키지 가져오기 Internal Link

파라미터

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: GetTenantPackageResponse

예시

getTenantPackage 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값은 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getTenantPackage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 패키지들 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
skipnumberqueryNo

응답

반환: GetTenantPackagesResponse

예시

getTenantPackages 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$skip = 3.4; // 부동 소수점
21
22
23try {
24 $result = $apiInstance->getTenantPackages($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantPackages: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 패키지 대체 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예시

replaceTenantPackage 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 API 키에 접두사(e.g. Bearer)를 설정합니다, 필요하면
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달합니다.
14 // 이는 선택 사항이며, `GuzzleHttp\Client`가 기본값으로 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
22
23
24try {
25 $result = $apiInstance->replaceTenantPackage($tenant_id, $id, $replace_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->replaceTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

테넌트 패키지 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptyResponse

예시

updateTenantPackage 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$update_tenant_package_body = new \FastComments\Client\Model\UpdateTenantPackageBody(); // \FastComments\Client\Model\UpdateTenantPackageBody
22
23
24try {
25 $result = $apiInstance->updateTenantPackage($tenant_id, $id, $update_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

테넌트 사용자 생성 Internal Link

매개변수

이름타입위치필요 여부설명
tenantIdstringqueryYes

응답

반환: CreateTenantUserResponse

예시

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

테넌트 사용자 삭제 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
deleteCommentsstringqueryNo
commentDeleteModestringqueryNo

Response

반환: APIEmptyResponse

Example

deleteTenantUser 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 필요하면 아래 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정합니다
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 선택 사항이며, `GuzzleHttp\Client`가 기본값으로 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$options = [
21 'delete_comments' => 'delete_comments_example', // string
22 'comment_delete_mode' => 'comment_delete_mode_example', // string
23];
24
25
26try {
27 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
31}
32

테넌트 사용자 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: GetTenantUserResponse

예시

getTenantUser 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래 주석을 해제하여 필요시 API 키에 대한 접두사(예: Bearer)를 설정합니다.
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 선택 사항이며, `GuzzleHttp\Client`가 기본값으로 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getTenantUser($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 사용자들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
skipnumberquery아니오

응답

반환: GetTenantUsersResponse

예시

getTenantUsers 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요시 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$skip = 3.4; // 부동소수점
21
22
23try {
24 $result = $apiInstance->getTenantUsers($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantUsers: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 사용자 대체 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
updateCommentsstringqueryNo

응답

반환: APIEmptyResponse

예제

replaceTenantUser 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$replace_tenant_user_body = new \FastComments\Client\Model\ReplaceTenantUserBody(); // \FastComments\Client\Model\ReplaceTenantUserBody
22$update_comments = 'update_comments_example'; // 문자열
23
24
25try {
26 $result = $apiInstance->replaceTenantUser($tenant_id, $id, $replace_tenant_user_body, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->replaceTenantUser: ', $e->getMessage(), PHP_EOL;
30}
31

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes
redirectURLstringqueryNo

응답

반환: APIEmptyResponse

예제

sendLoginLink 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요에 따라 API 키에 대한 접두사를 설정하려면 아래 주석을 해제하세요 (예: Bearer)
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$redirect_url = 'redirect_url_example'; // string
21
22
23try {
24 $result = $apiInstance->sendLoginLink($tenant_id, $id, $redirect_url);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->sendLoginLink: ', $e->getMessage(), PHP_EOL;
28}
29

테넌트 사용자 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath
updateCommentsstringquery아니오

응답

반환: APIEmptyResponse

예제

updateTenantUser 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요하다면 API 키에 접두사(예: Bearer)를 설정하려면 아래의 주석을 해제하세요
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_tenant_user_body = new \FastComments\Client\Model\UpdateTenantUserBody(); // \FastComments\Client\Model\UpdateTenantUserBody
21$update_comments = 'update_comments_example'; // string
22
23
24try {
25 $result = $apiInstance->updateTenantUser($tenant_id, $id, $update_tenant_user_body, $update_comments);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenantUser: ', $e->getMessage(), PHP_EOL;
29}
30

테넌트 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery

응답

반환: CreateTenantResponse

예제

createTenant 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래의 주석을 해제하십시오
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이것은 선택 사항이며 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$create_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
20
21
22try {
23 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
27}
28

테넌트 삭제 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath
surestringquery아니오

응답

반환: APIEmptyResponse

예시

deleteTenant 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6// 필요에 따라 API 키 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
12 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // 문자열
18$id = 'id_example'; // 문자열
19$sure = 'sure_example'; // 문자열
20
21
22try {
23 $result = $apiInstance->deleteTenant($tenant_id, $id, $sure);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteTenant: ', $e->getMessage(), PHP_EOL;
27}
28

테넌트 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: GetTenantResponse

예시

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

테넌트들 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
metastringqueryNo
skipnumberqueryNo

Response

반환: GetTenantsResponse

Example

getTenants 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 구성합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'meta' => 'meta_example', // 문자열
22 'skip' => 3.4, // 부동 소수점
23];
24
25
26try {
27 $result = $apiInstance->getTenants($tenant_id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getTenants: ', $e->getMessage(), PHP_EOL;
31}
32

테넌트 업데이트 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: APIEmptyResponse

예시

updateTenant 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요한 경우 API 키에 대한 접두사 (예: Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$update_tenant_body = new \FastComments\Client\Model\UpdateTenantBody(); // \FastComments\Client\Model\UpdateTenantBody
22
23
24try {
25 $result = $apiInstance->updateTenant($tenant_id, $id, $update_tenant_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenant: ', $e->getMessage(), PHP_EOL;
29}
30

티켓 상태 변경 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
userIdstringquery
idstringpath

응답

반환: ChangeTicketStateResponse

예제

changeTicketState 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증을 구성합니다: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요 시 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$user_id = 'user_id_example'; // 문자열
21$id = 'id_example'; // 문자열
22$change_ticket_state_body = new \FastComments\Client\Model\ChangeTicketStateBody(); // \FastComments\Client\Model\ChangeTicketStateBody
23
24
25try {
26 $result = $apiInstance->changeTicketState($tenant_id, $user_id, $id, $change_ticket_state_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->changeTicketState: ', $e->getMessage(), PHP_EOL;
30}
31

티켓 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
userIdstringquery

응답

반환: CreateTicketResponse

예시

createTicket 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 필요에 따라 API 키에 대한 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하세요
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이는 선택사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // 문자열
19$user_id = 'user_id_example'; // 문자열
20$create_ticket_body = new \FastComments\Client\Model\CreateTicketBody(); // \FastComments\Client\Model\CreateTicketBody
21
22
23try {
24 $result = $apiInstance->createTicket($tenant_id, $user_id, $create_ticket_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTicket: ', $e->getMessage(), PHP_EOL;
28}
29

티켓 가져오기 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
idstringpath
userIdstringquery아니오

응답

반환: GetTicketResponse

예시

getTicket 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요하면 아래의 주석을 해제하여 API 키에 대한 접두사(e.g. Bearer)를 설정하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$user_id = 'user_id_example'; // 문자열
22
23
24try {
25 $result = $apiInstance->getTicket($tenant_id, $id, $user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getTicket: ', $e->getMessage(), PHP_EOL;
29}
30

티켓들 가져오기 Internal Link


매개변수

이름유형위치필수설명
tenantIdstringquery
userIdstringquery아니오
statenumberquery아니오
skipnumberquery아니오
limitnumberquery아니오

응답

반환: GetTicketsResponse

예제

getTickets 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요시 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤형 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며, `GuzzleHttp\Client`가 기본값으로 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'user_id' => 'user_id_example', // 문자열
22 'state' => 3.4, // 부동소수점
23 'skip' => 3.4, // 부동소수점
24 'limit' => 3.4, // 부동소수점
25];
26
27
28try {
29 $result = $apiInstance->getTickets($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getTickets: ', $e->getMessage(), PHP_EOL;
33}
34

번역들 가져오기 Internal Link

Parameters

이름타입위치필수설명
namespacestringpath
componentstringpath
localestringquery아니오
useFullTranslationIdsbooleanquery아니오

Response

반환: GetTranslationsResponse

Example

getTranslations 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$namespace = 'namespace_example'; // string
14$component = 'component_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'use_full_translation_ids' => True, // bool
18];
19
20
21try {
22 $result = $apiInstance->getTranslations($namespace, $component, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getTranslations: ', $e->getMessage(), PHP_EOL;
26}
27

이미지 업로드 Internal Link

Upload and resize an image

Parameters

이름타입위치필수설명
tenantIdstringpath
sizePresetstringquery아니오크기 사전 설정: "Default" (1000x1000px) 또는 "CrossPlatform" (인기 기기용 크기 생성)
urlIdstringquery아니오업로드가 발생하는 페이지 ID, 구성용

Response

반환: UploadImageResponse

Example

uploadImage 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$file = '/path/to/file.txt'; // \SplFileObject
15$options = [
16 'size_preset' => new \FastComments\Client\Model\\FastComments\Client\Model\SizePreset(), // \FastComments\Client\Model\SizePreset | 크기 사전 설정: \"Default\" (1000x1000px) 또는 \"CrossPlatform\" (인기 기기용 크기 생성)
17 'url_id' => 'url_id_example', // 문자열 | 업로드가 발생하는 페이지 ID, 구성용
18];
19
20
21try {
22 $result = $apiInstance->uploadImage($tenant_id, $file, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->uploadImage: ', $e->getMessage(), PHP_EOL;
26}
27

ID로 사용자 배지 진행상황 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
idstringpath

응답

반환: APIGetUserBadgeProgressResponse

예제

getUserBadgeProgressById 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래 주석을 해제하고 API 키에 대한 접두사(예: Bearer)를 설정합니다.
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 맞춤 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressById($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressById: ', $e->getMessage(), PHP_EOL;
28}
29

사용자 ID로 사용자 배지 진행상황 가져오기 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
userIdstringpathYes

응답

반환: APIGetUserBadgeProgressResponse

예시

getUserBadgeProgressByUserId 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하여 API 키에 대한 접두사(예: Bearer)를 설정하세요, 필요할 경우
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 지정 http 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
28}
29

사용자 배지 진행상황 목록 가져오기 Internal Link

Parameters

이름형식위치필수설명
tenantIdstringquery
userIdstringquery아니오
limitnumberquery아니오
skipnumberquery아니오

Response

반환: APIGetUserBadgeProgressListResponse

Example

getUserBadgeProgressList 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 아래의 주석을 해제하면 API 키에 대한 접두사(e.g. Bearer)를 설정합니다, 필요 시
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'limit' => 3.4, // float
23 'skip' => 3.4, // float
24];
25
26
27try {
28 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
32}
33

사용자 배지 생성 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery

Response

반환: APICreateUserBadgeResponse

Example

createUserBadge 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이것은 선택 사항이며, `GuzzleHttp\Client`가 기본값으로 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
20
21
22try {
23 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
27}
28

사용자 배지 삭제 Internal Link


매개변수

이름형식위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: APIEmptySuccessResponse

예제

deleteUserBadge 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->deleteUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

사용자 배지 가져오기 Internal Link

Parameters

이름형식위치필수설명
tenantIdstringqueryYes
idstringpathYes

Response

Returns: APIGetUserBadgeResponse

Example

getUserBadge 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 설정: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키에 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

사용자 배지들 가져오기 Internal Link

Parameters

이름타입위치필수설명
tenantIdstringquery
userIdstringquery아니오
badgeIdstringquery아니오
typenumberquery아니오
displayedOnCommentsbooleanquery아니오
limitnumberquery아니오
skipnumberquery아니오

Response

반환: APIGetUserBadgesResponse

Example

getUserBadges 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요한 경우 API 키에 대한 접두사 (예: Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 옵션이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$options = [
21 'user_id' => 'user_id_example', // 문자열
22 'badge_id' => 'badge_id_example', // 문자열
23 'type' => 3.4, // 부동소수점
24 'displayed_on_comments' => True, // 불리언
25 'limit' => 3.4, // 부동소수점
26 'skip' => 3.4, // 부동소수점
27];
28
29
30try {
31 $result = $apiInstance->getUserBadges($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
35}
36

사용자 배지 업데이트 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery
idstringpath

Response

Returns: APIEmptySuccessResponse

예제

updateUserBadge 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 API 키 접두사(예: Bearer)를 설정하려면 아래 주석을 해제하십시오
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
14 // 이는 선택 사항이며 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
22
23
24try {
25 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
29}
30

사용자 알림 수 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringquery
ssostringquery아니오

Response

반환: GetUserNotificationCountResponse

Example

getUserNotificationCount 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`을 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

사용자 알림들 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
urlIdstringqueryNo현재 페이지가 구독되었는지 여부를 판단하는 데 사용됩니다.
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

응답

반환: GetMyNotificationsResponse

예시

getUserNotifications 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'url_id' => 'url_id_example', // string | 현재 페이지가 구독되었는지 여부를 판단하는 데 사용됩니다.
16 'page_size' => 56, // int
17 'after_id' => 'after_id_example', // string
18 'include_context' => True, // bool
19 'after_created_at' => 56, // int
20 'unread_only' => True, // bool
21 'dm_only' => True, // bool
22 'no_dm' => True, // bool
23 'include_translations' => True, // bool
24 'include_tenant_notifications' => True, // bool
25 'sso' => 'sso_example', // string
26];
27
28
29try {
30 $result = $apiInstance->getUserNotifications($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling PublicApi->getUserNotifications: ', $e->getMessage(), PHP_EOL;
34}
35

사용자 알림 수 초기화 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
ssostringqueryNo

응답

반환: ResetUserNotificationsResponse

예시

resetUserNotificationCount 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

사용자 알림 초기화 Internal Link

매개변수

이름형식위치필수설명
tenantIdstringquery
afterIdstringquery아니오
afterCreatedAtintegerquery아니오
unreadOnlybooleanquery아니오
dmOnlybooleanquery아니오
noDmbooleanquery아니오
ssostringquery아니오

응답

반환: ResetUserNotificationsResponse

예시

resetUserNotifications 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용하려는 경우 사용자 지정 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'after_created_at' => 56, // int
17 'unread_only' => True, // bool
18 'dm_only' => True, // bool
19 'no_dm' => True, // bool
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->resetUserNotifications($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->resetUserNotifications: ', $e->getMessage(), PHP_EOL;
29}
30

사용자 댓글 구독 상태 업데이트 Internal Link

Enable or disable notifications for a specific comment.

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
notificationIdstringpathYes
optedInOrOutstringpathYes
commentIdstringqueryYes
ssostringqueryNo

Response

반환: UpdateUserNotificationCommentSubscriptionStatusResponse

예시

updateUserNotificationCommentSubscriptionStatus 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$notification_id = 'notification_id_example'; // string
15$opted_in_or_out = 'opted_in_or_out_example'; // string
16$comment_id = 'comment_id_example'; // string
17$sso = 'sso_example'; // string
18
19
20try {
21 $result = $apiInstance->updateUserNotificationCommentSubscriptionStatus($tenant_id, $notification_id, $opted_in_or_out, $comment_id, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
25}
26

사용자 페이지 구독 상태 업데이트 Internal Link

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

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes
urlstringqueryYes
pageTitlestringqueryYes
subscribedOrUnsubscribedstringpathYes
ssostringqueryNo

응답

Returns: UpdateUserNotificationPageSubscriptionStatusResponse

예제

updateUserNotificationPageSubscriptionStatus 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이것은 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$url = 'url_example'; // string
16$page_title = 'page_title_example'; // string
17$subscribed_or_unsubscribed = 'subscribed_or_unsubscribed_example'; // string
18$sso = 'sso_example'; // string
19
20
21try {
22 $result = $apiInstance->updateUserNotificationPageSubscriptionStatus($tenant_id, $url_id, $url, $page_title, $subscribed_or_unsubscribed, $sso);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
26}
27

사용자 알림 상태 업데이트 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
notificationIdstringpathYes
newStatusstringpathYes
ssostringqueryNo

응답

반환: UpdateUserNotificationStatusResponse

예시

updateUserNotificationStatus 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 문자열
14$notification_id = 'notification_id_example'; // 문자열
15$new_status = 'new_status_example'; // 문자열
16$sso = 'sso_example'; // 문자열
17
18
19try {
20 $result = $apiInstance->updateUserNotificationStatus($tenant_id, $notification_id, $new_status, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'PublicApi->updateUserNotificationStatus 호출 중 예외 발생: ', $e->getMessage(), PHP_EOL;
24}
25

사용자 접속 상태들 가져오기 Internal Link

Parameters

이름유형위치필수설명
tenantIdstringqueryYes
urlIdWSstringqueryYes
userIdsstringqueryYes

Response

Returns: GetUserPresenceStatusesResponse

Example

getUserPresenceStatuses 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id_ws = 'url_id_ws_example'; // string
15$user_ids = 'user_ids_example'; // string
16
17
18try {
19 $result = $apiInstance->getUserPresenceStatuses($tenant_id, $url_id_ws, $user_ids);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getUserPresenceStatuses: ', $e->getMessage(), PHP_EOL;
23}
24

사용자 검색 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringpath
urlIdstringquery
usernameStartsWithstringquery아니오
mentionGroupIdsarrayquery아니오
ssostringquery아니오
searchSectionstringquery아니오

응답

반환: SearchUsersResult

예시

searchUsers 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
9 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'username_starts_with' => 'username_starts_with_example', // string
17 'mention_group_ids' => array('mention_group_ids_example'), // string[]
18 'sso' => 'sso_example', // string
19 'search_section' => 'search_section_example', // string
20];
21
22
23try {
24 $result = $apiInstance->searchUsers($tenant_id, $url_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
28}
29

사용자 가져오기 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringqueryYes
idstringpathYes

응답

반환: GetUserResponse

예시

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

투표 생성 Internal Link

매개변수

이름유형위치필수설명
tenantIdstringquery
commentIdstringquery
directionstringquery
userIdstringquery아니오
anonUserIdstringquery아니오

응답

반환: VoteResponse

예시

createVote 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요한 경우 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하십시오
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
13 // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$comment_id = 'comment_id_example'; // string
20$direction = 'direction_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->createVote($tenant_id, $comment_id, $direction, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
32}
33

투표 삭제 Internal Link

Parameters

이름타입위치필수설명
tenantIdstringquery
idstringpath
editKeystringquery아니오

응답

반환: VoteDeleteResponse

예시

deleteVote 예시
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// 필요에 따라 아래의 주석을 해제하여 API 키 접두사(e.g. Bearer)를 설정합니다
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // 이는 선택 사항이며, 기본적으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$id = 'id_example'; // 문자열
21$edit_key = 'edit_key_example'; // 문자열
22
23
24try {
25 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
29}
30

투표들 가져오기 Internal Link

매개변수

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes

응답

반환: GetVotesResponse

예시

getVotes 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // API 키 인증 구성: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // 필요 시 API 키에 대한 접두사(e.g. Bearer)를 설정하려면 아래 주석을 해제하세요
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하십시오.
14 // // 이는 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 문자열
20$url_id = 'url_id_example'; // 문자열
21
22
23try {
24 $result = $apiInstance->getVotes($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
28}
29

사용자용 투표 가져오기 Internal Link

매개변수

이름타입위치필수설명
tenantIdstringqueryYes
urlIdstringqueryYes
userIdstringqueryNo
anonUserIdstringqueryNo

응답

반환: GetVotesForUserResponse

예시

getVotesForUser 예제
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// API 키 인증 구성: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// 필요에 따라 API 키에 대한 접두사 (예: Bearer)를 설정하려면 아래 주석을 해제하세요
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // 사용자 정의 HTTP 클라이언트를 사용하려면 `GuzzleHttp\ClientInterface`를 구현하는 클라이언트를 전달하세요.
13 // 이것은 선택 사항이며, 기본값으로 `GuzzleHttp\Client`가 사용됩니다.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'anon_user_id' => 'anon_user_id_example', // string
23];
24
25
26try {
27 $result = $apiInstance->getVotesForUser($tenant_id, $url_id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getVotesForUser: ', $e->getMessage(), PHP_EOL;
31}
32

도움이 필요하신가요?

PHP SDK 사용 중 문제가 발생하거나 질문이 있는 경우, 다음을 참고해 주세요:

기여

기여는 환영합니다! 기여 지침은 GitHub 리포지토리를 방문하세요.