FastComments.com

FastComments PHP SDK


ื–ื” ื”-SDK ื”ืจืฉืžื™ ื‘-PHP ืขื‘ื•ืจ FastComments.

ื”-SDK ื”ืจืฉืžื™ ื‘-PHP ืขื‘ื•ืจ ืžืžืฉืง ื”-API ืฉืœ FastComments

ืžืื’ืจ

ืฆืคื” ื‘-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');
// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');


$apiInstance = new FastComments\Client\Api\DefaultApi(
    // ืื ืชืจืฆื” ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
    // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ื”ื™ื `GuzzleHttp\Client`.
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams

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

ืžื•ื“ืœื™ื Internal Link

ื”ืจืฉืื” Internal Link

ืฉื™ื˜ื•ืช ืื™ืžื•ืช ืฉื”ื•ื’ื“ืจื• ืขื‘ื•ืจ ื”-API:

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

ืžื—ื‘ืจ Internal Link

support@fastcomments.com

ืื’ืจื’ืฆื™ื” Internal Link

ืžืื’ื“ ืžืกืžื›ื™ื ืขืœ ื™ื“ื™ ืงื™ื‘ื•ืฅ ืฉืœื”ื (ืื ืžืกื•ืคืง groupBy) ื•ื™ื™ืฉื•ื ืžืกืคืจ ืคืขื•ืœื•ืช. ื ืชืžื›ื•ืช ืคืขื•ืœื•ืช ืฉื•ื ื•ืช (ืœืžืฉืœ sum, countDistinct, avg ื•ื›ื•').

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
parentTenantId string query No
includeStats boolean query No

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: AggregationResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช aggregate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
20$parent_tenant_id = 'parent_tenant_id_example'; // string
21$include_stats = True; // bool
22
23try {
24 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $parent_tenant_id, $include_stats);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
28}
29

ืงื‘ืœืช ื™ื•ืžื ื™ ื‘ื™ืงื•ืจืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
limit number query ืœื
skip number query ืœื
order string query ืœื
after number query ืœื
before number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetAuditLogs200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getAuditLogs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกื™ืจื• ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$limit = 3.4; // ืžืกืคืจ ืขืฉืจื•ื ื™
20$skip = 3.4; // ืžืกืคืจ ืขืฉืจื•ื ื™
21$order = new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(); // \FastComments\Client\Model\SORTDIR
22$after = 3.4; // ืžืกืคืจ ืขืฉืจื•ื ื™
23$before = 3.4; // ืžืกืคืจ ืขืฉืจื•ื ื™
24
25try {
26 $result = $apiInstance->getAuditLogs($tenant_id, $limit, $skip, $order, $after, $before);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
30}
31

ื—ืกื•ื ืžืชื•ืš ืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentId string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: BlockFromCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-blockFromCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->blockFromCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->blockFromCommentPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ื‘ื˜ืœ ื—ืกื™ืžื” ืžืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentId string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UnBlockCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-unBlockCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->unBlockCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->unBlockCommentPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ื‘ื“ื™ืงืช ืชื’ื•ื‘ื•ืช ื—ืกื•ืžื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentIds string query ื›ืŸ ืจืฉื™ืžืช ืžื–ื”ื™ ืชื’ื•ื‘ื•ืช ืžื•ืคืจื“ืช ื‘ืคืกื™ืงื™ื.
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CheckedCommentsForBlocked200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-checkedCommentsForBlocked
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_ids = 'comment_ids_example'; // string | ืจืฉื™ืžืช ืžื–ื”ื™ ืชื’ื•ื‘ื•ืช ืžื•ืคืจื“ืช ื‘ืคืกื™ืงื™ื.
14$sso = 'sso_example'; // string
15
16try {
17 $result = $apiInstance->checkedCommentsForBlocked($tenant_id, $comment_ids, $sso);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->checkedCommentsForBlocked: ', $e->getMessage(), PHP_EOL;
21}
22

ื—ืกื™ืžืช ืžืฉืชืžืฉ ื‘ืขืงื‘ื•ืช ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ Location ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: BlockFromCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช blockUserFromComment
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 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
17 new GuzzleHttp\Client(),
18 $config
19);
20$tenant_id = 'tenant_id_example'; // string
21$id = 'id_example'; // string
22$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
23$user_id = 'user_id_example'; // string
24$anon_user_id = 'anon_user_id_example'; // string
25
26try {
27 $result = $apiInstance->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $user_id, $anon_user_id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
31}
32

ืฆื•ืจ ืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื Type Location ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
broadcastId string query ื›ืŸ
sessionId string query ืœื
sso string query ืœื

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: CreateCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ืชืจืฆื” ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
16$session_id = 'session_id_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->createCommentPublic($tenant_id, $url_id, $broadcast_id, $comment_data, $session_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->createCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

ืžื—ืง ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
contextUserId string query ืœื
isLive boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืžืฉื•ืจื” ื–ื• ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$context_user_id = 'context_user_id_example'; // string
21$is_live = True; // bool
22
23try {
24 $result = $apiInstance->deleteComment($tenant_id, $id, $context_user_id, $is_live);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
28}
29

ืžื—ืง ืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
editKey string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$edit_key = 'edit_key_example'; // string
16$sso = 'sso_example'; // string
17
18try {
19 $result = $apiInstance->deleteCommentPublic($tenant_id, $comment_id, $broadcast_id, $edit_key, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->deleteCommentPublic: ', $e->getMessage(), PHP_EOL;
23}
24

ืžื—ืง ื”ืฆื‘ืขื” ืœืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
voteId string path ื›ืŸ
urlId string query ื›ืŸ
broadcastId string query ื›ืŸ
editKey string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteCommentVote200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteCommentVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$vote_id = 'vote_id_example'; // string
15$url_id = 'url_id_example'; // string
16$broadcast_id = 'broadcast_id_example'; // string
17$edit_key = 'edit_key_example'; // string
18$sso = 'sso_example'; // string
19
20try {
21 $result = $apiInstance->deleteCommentVote($tenant_id, $comment_id, $vote_id, $url_id, $broadcast_id, $edit_key, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->deleteCommentVote: ', $e->getMessage(), PHP_EOL;
25}
26

ื“ื•ื•ื— ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื Type Location ื“ืจื•ืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-flagComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21$anon_user_id = 'anon_user_id_example'; // string
22
23try {
24 $result = $apiInstance->flagComment($tenant_id, $id, $user_id, $anon_user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->flagComment: ', $e->getMessage(), PHP_EOL;
28}
29

ืงื‘ืœืช ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ื‘ืืžืฆืขื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœื”ืœืŸ ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getComment($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getComment: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœืช ืชื’ื•ื‘ื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
page integer query ืœื
limit integer query ืœื
skip integer query ืœื
asTree boolean query ืœื
skipChildren integer query ืœื
limitChildren integer query ืœื
maxTreeDepth integer query ืœื
urlId string query ืœื
userId string query ืœื
anonUserId string query ืœื
contextUserId string query ืœื
hashTag string query ืœื
parentId string query ืœื
direction string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetComments200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$page = 56; // int
20$limit = 56; // int
21$skip = 56; // int
22$as_tree = True; // bool
23$skip_children = 56; // int
24$limit_children = 56; // int
25$max_tree_depth = 56; // int
26$url_id = 'url_id_example'; // string
27$user_id = 'user_id_example'; // string
28$anon_user_id = 'anon_user_id_example'; // string
29$context_user_id = 'context_user_id_example'; // string
30$hash_tag = 'hash_tag_example'; // string
31$parent_id = 'parent_id_example'; // string
32$direction = new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(); // \FastComments\Client\Model\SortDirections
33
34try {
35 $result = $apiInstance->getComments($tenant_id, $page, $limit, $skip, $as_tree, $skip_children, $limit_children, $max_tree_depth, $url_id, $user_id, $anon_user_id, $context_user_id, $hash_tag, $parent_id, $direction);
36 print_r($result);
37} catch (Exception $e) {
38 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
39}
40

ืงื‘ืœืช ืชื’ื•ื‘ื•ืช ืฆื™ื‘ื•ืจื™ื•ืช Internal Link

req tenantId urlId

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
page integer query ืœื
direction string query ืœื
sso string query ืœื
skip integer query ืœื
skipChildren integer query ืœื
limit integer query ืœื
limitChildren integer query ืœื
countChildren boolean query ืœื
fetchPageForCommentId string query ืœื
includeConfig boolean query ืœื
countAll boolean query ืœื
includei10n boolean query ืœื
locale string query ืœื
modules string query ืœื
isCrawler boolean query ืœื
includeNotificationCount boolean query ืœื
asTree boolean query ืœื
maxTreeDepth integer query ืœื
useFullTranslationIds boolean query ืœื
parentId string query ืœื
searchText string query ืœื
hashTags array query ืœื
userId string query ืœื
customConfigStr string query ืœื
afterCommentId string query ืœื
beforeCommentId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCommentsPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช getCommentsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$page = 56; // int
15$direction = new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(); // \FastComments\Client\Model\SortDirections
16$sso = 'sso_example'; // string
17$skip = 56; // int
18$skip_children = 56; // int
19$limit = 56; // int
20$limit_children = 56; // int
21$count_children = True; // bool
22$fetch_page_for_comment_id = 'fetch_page_for_comment_id_example'; // string
23$include_config = True; // bool
24$count_all = True; // bool
25$includei10n = True; // bool
26$locale = 'locale_example'; // string
27$modules = 'modules_example'; // string
28$is_crawler = True; // bool
29$include_notification_count = True; // bool
30$as_tree = True; // bool
31$max_tree_depth = 56; // int
32$use_full_translation_ids = True; // bool
33$parent_id = 'parent_id_example'; // string
34$search_text = 'search_text_example'; // string
35$hash_tags = array('hash_tags_example'); // string[]
36$user_id = 'user_id_example'; // string
37$custom_config_str = 'custom_config_str_example'; // string
38$after_comment_id = 'after_comment_id_example'; // string
39$before_comment_id = 'before_comment_id_example'; // string
40
41try {
42 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $page, $direction, $sso, $skip, $skip_children, $limit, $limit_children, $count_children, $fetch_page_for_comment_id, $include_config, $count_all, $includei10n, $locale, $modules, $is_crawler, $include_notification_count, $as_tree, $max_tree_depth, $use_full_translation_ids, $parent_id, $search_text, $hash_tags, $user_id, $custom_config_str, $after_comment_id, $before_comment_id);
43 print_r($result);
44} catch (Exception $e) {
45 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
46}
47

ืงื‘ืœืช ื˜ืงืกื˜ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ื ืชื™ื‘ ื›ืŸ
commentId string ื ืชื™ื‘ ื›ืŸ
editKey string ืฉืื™ืœืชื” ืœื
sso string ืฉืื™ืœืชื” ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCommentText200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$comment_id = 'comment_id_example'; // ืžื—ืจื•ื–ืช
14$edit_key = 'edit_key_example'; // ืžื—ืจื•ื–ืช
15$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
16
17try {
18 $result = $apiInstance->getCommentText($tenant_id, $comment_id, $edit_key, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getCommentText: ', $e->getMessage(), PHP_EOL;
22}
23

ืงื‘ืœืช ืฉืžื•ืช ืžืฆื‘ื™ืขื™ื ืฉืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
dir integer query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCommentVoteUserNames200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getCommentVoteUserNames
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™ โ€” ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ืชื”ื™ื” `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$comment_id = 'comment_id_example'; // ืžื—ืจื•ื–ืช
14$dir = 56; // ืžืกืคืจ ืฉืœื
15$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
16
17try {
18 $result = $apiInstance->getCommentVoteUserNames($tenant_id, $comment_id, $dir, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getCommentVoteUserNames: ', $e->getMessage(), PHP_EOL;
22}
23

ื ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: LockComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-lockComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™ โ€” ื™ืฉืชืžืฉ ื‘-`GuzzleHttp\Client` ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$comment_id = 'comment_id_example'; // ืžื—ืจื•ื–ืช
14$broadcast_id = 'broadcast_id_example'; // ืžื—ืจื•ื–ืช
15$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
16
17try {
18 $result = $apiInstance->lockComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->lockComment: ', $e->getMessage(), PHP_EOL;
22}
23

ื”ืฆืžื“ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PinComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-pinComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
22}
23

ืฉืžื•ืจ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
isLive boolean query ืœื
doSpamCheck boolean query ืœื
sendEmails boolean query ืœื
populateNotifications boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SaveComment200Response

ื“ื•ื’ืžื”

saveComment ื“ื•ื’ืžื”
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
18 new GuzzleHttp\Client(),
19 $config
20);
21$tenant_id = 'tenant_id_example'; // string
22$create_comment_params = new \FastComments\Client\Model\CreateCommentParams(); // \FastComments\Client\Model\CreateCommentParams
23$is_live = True; // bool
24$do_spam_check = True; // bool
25$send_emails = True; // bool
26$populate_notifications = True; // bool
27
28try {
29 $result = $apiInstance->saveComment($tenant_id, $create_comment_params, $is_live, $do_spam_check, $send_emails, $populate_notifications);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->saveComment: ', $e->getMessage(), PHP_EOL;
33}
34

ืฉืžื™ืจืช ืชื’ื•ื‘ื•ืช ื‘ื›ืžื•ืช ื’ื“ื•ืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
isLive boolean query ืœื
doSpamCheck boolean query ืœื
sendEmails boolean query ืœื
populateNotifications boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SaveComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-saveCommentsBulk
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืขื ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$create_comment_params = array(new \FastComments\Client\Model\CreateCommentParams()); // \FastComments\Client\Model\CreateCommentParams[]
20$is_live = True; // bool
21$do_spam_check = True; // bool
22$send_emails = True; // bool
23$populate_notifications = True; // bool
24
25try {
26 $result = $apiInstance->saveCommentsBulk($tenant_id, $create_comment_params, $is_live, $do_spam_check, $send_emails, $populate_notifications);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->saveCommentsBulk: ', $e->getMessage(), PHP_EOL;
30}
31

ื”ื’ื“ืจ ื˜ืงืกื˜ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
editKey string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SetCommentText200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-setCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$comment_text_update_request = new \FastComments\Client\Model\CommentTextUpdateRequest(); // \FastComments\Client\Model\CommentTextUpdateRequest
16$edit_key = 'edit_key_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->setCommentText($tenant_id, $comment_id, $broadcast_id, $comment_text_update_request, $edit_key, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->setCommentText: ', $e->getMessage(), PHP_EOL;
24}
25

ื‘ื˜ืœ ื—ืกื™ืžืช ืžืฉืชืžืฉ ื‘ืขืงื‘ื•ืช ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UnBlockCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-unBlockUserFromComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
21$user_id = 'user_id_example'; // string
22$anon_user_id = 'anon_user_id_example'; // string
23
24try {
25 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $user_id, $anon_user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
29}
30

ื‘ื˜ืœ ื“ื™ื•ื•ื— ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-unFlagComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21$anon_user_id = 'anon_user_id_example'; // string
22
23try {
24 $result = $apiInstance->unFlagComment($tenant_id, $id, $user_id, $anon_user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
28}
29

ื‘ื˜ืœ ื ืขื™ืœืช ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ื ืชื™ื‘ ื›ืŸ
commentId string ื ืชื™ื‘ ื›ืŸ
broadcastId string ืฉืื™ืœืชื” ื›ืŸ
sso string ืฉืื™ืœืชื” ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: LockComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-unLockComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
22}
23

ื”ืกืจ ื”ืฆืžื“ื” ืฉืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PinComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-unPinComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$comment_id = 'comment_id_example'; // ืžื—ืจื•ื–ืช
14$broadcast_id = 'broadcast_id_example'; // ืžื—ืจื•ื–ืช
15$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
16
17try {
18 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
22}
23

ืขื“ื›ืŸ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
contextUserId string query ืœื
doSpamCheck boolean query ืœื
isLive boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช updateComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$body = new \FastComments\Client\Model\PickAPICommentUpdatableCommentFields(); // \FastComments\Client\Model\PickAPICommentUpdatableCommentFields
21$context_user_id = 'context_user_id_example'; // string
22$do_spam_check = True; // bool
23$is_live = True; // bool
24
25try {
26 $result = $apiInstance->updateComment($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL;
30}
31

ื”ืฆื‘ื™ืข ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
urlId string query ื›ืŸ
broadcastId string query ื›ืŸ
sessionId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: VoteComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช voteComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$url_id = 'url_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
17$session_id = 'session_id_example'; // string
18$sso = 'sso_example'; // string
19
20try {
21 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $session_id, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
25}
26

ื”ื•ืกืคืช ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-addDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœื”ืœืŸ ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
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 new GuzzleHttp\Client(),
17 $config
18);
19$tenant_id = 'tenant_id_example'; // string
20$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
21
22try {
23 $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

ืžื—ืง ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
domain string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$domain = 'domain_example'; // string
20
21try {
22 $result = $apiInstance->deleteDomainConfig($tenant_id, $domain);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteDomainConfig: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
domain string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getDomainConfig
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// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
18 new GuzzleHttp\Client(),
19 $config
20);
21$tenant_id = 'tenant_id_example'; // string
22$domain = 'domain_example'; // string
23
24try {
25 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

ืงื‘ืœ ืชืฆื•ืจื•ืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfigs200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getDomainConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19
20try {
21 $result = $apiInstance->getDomainConfigs($tenant_id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getDomainConfigs: ', $e->getMessage(), PHP_EOL;
25}
26

ืขื“ื›ื•ืŸ ื—ืœืงื™ ืฉืœ ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
domainToUpdate string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช patchDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืœืžืคืชื— ื”-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$tenant_id = 'tenant_id_example'; // string
19$domain_to_update = 'domain_to_update_example'; // string
20$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
21
22try {
23 $result = $apiInstance->patchDomainConfig($tenant_id, $domain_to_update, $patch_domain_config_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->patchDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

ื”ื’ื“ืจ ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
domainToUpdate string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-putDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ืื ื ื“ืจืฉ, ื”ืกืจ ืืช ืกื™ืžื•ืŸ ื”ื”ืขืจื” ืฉืœื”ืœืŸ ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$domain_to_update = 'domain_to_update_example'; // string
20$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
21
22try {
23 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

ืฆื•ืจ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateEmailTemplate200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
20
21try {
22 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string ืฉืื™ืœืชื” ื›ืŸ
id string ื ืชื™ื‘ ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteEmailTemplate($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืฉื’ื™ืืช ืจื™ื ื“ื•ืจ ืฉืœ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
errorId string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteEmailTemplateRenderError
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืชืฆื•ืจืช ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20$error_id = 'error_id_example'; // ืžื—ืจื•ื–ืช
21
22try {
23 $result = $apiInstance->deleteEmailTemplateRenderError($tenant_id, $id, $error_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteEmailTemplateRenderError: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplate200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช getEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getEmailTemplate($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getEmailTemplate: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœืช ื”ื’ื“ืจื•ืช ืชื‘ื ื™ื•ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplateDefinitions200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getEmailTemplateDefinitions
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19
20try {
21 $result = $apiInstance->getEmailTemplateDefinitions($tenant_id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getEmailTemplateDefinitions: ', $e->getMessage(), PHP_EOL;
25}
26

ืงื‘ืœ ืฉื’ื™ืื•ืช ืจื™ื ื“ื•ืจ ืฉืœ ืชื‘ื ื™ื•ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplateRenderErrors200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getEmailTemplateRenderErrors
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$skip = 3.4; // float
21
22try {
23 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืชื‘ื ื™ื•ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplates200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getEmailTemplates
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืžืชื—ืช ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$skip = 3.4; // ืžืกืคืจ ืขื ื ืงื•ื“ื” ืฆืคื”
20
21try {
22 $result = $apiInstance->getEmailTemplates($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
26}
27

ื‘ืฆืข ืจื™ื ื“ื•ืจ ืœืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
locale string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: RenderEmailTemplate200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-renderEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื™ืฉ ืฆื•ืจืš
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 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
16 new GuzzleHttp\Client(),
17 $config
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
23try {
24 $result = $apiInstance->renderEmailTemplate($tenant_id, $render_email_template_body, $locale);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->renderEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

ืขื“ื›ืŸ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
21
22try {
23 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ื™ื•ืžืŸ ืื™ืจื•ืขื™ื Internal Link

req tenantId urlId userIdWS

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path Yes
urlId string query Yes
userIdWS string query Yes
startTime integer query Yes
endTime integer query Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEventLog200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$user_id_ws = 'user_id_ws_example'; // string
15$start_time = 56; // int
16$end_time = 56; // int
17
18try {
19 $result = $apiInstance->getEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getEventLog: ', $e->getMessage(), PHP_EOL;
23}
24

ืงื‘ืœ ื™ื•ืžืŸ ืื™ืจื•ืขื™ื ื’ืœื•ื‘ืœื™ Internal Link

req tenantId urlId userIdWS

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
userIdWS string query ื›ืŸ
startTime integer query ื›ืŸ
endTime integer query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEventLog200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getGlobalEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, ื™ืฉืžืฉ `GuzzleHttp\Client` ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$user_id_ws = 'user_id_ws_example'; // string
15$start_time = 56; // int
16$end_time = 56; // int
17
18try {
19 $result = $apiInstance->getGlobalEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getGlobalEventLog: ', $e->getMessage(), PHP_EOL;
23}
24

ืฆื•ืจ ืคื•ืกื˜ ื‘ืคื™ื“ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
broadcastId string query ืœื
isLive boolean query ืœื
doSpamCheck boolean query ืœื
skipDupCheck boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateFeedPost200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-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$tenant_id = 'tenant_id_example'; // string
19$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
20$broadcast_id = 'broadcast_id_example'; // string
21$is_live = True; // bool
22$do_spam_check = True; // bool
23$skip_dup_check = True; // bool
24
25try {
26 $result = $apiInstance->createFeedPost($tenant_id, $create_feed_post_params, $broadcast_id, $is_live, $do_spam_check, $skip_dup_check);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->createFeedPost: ', $e->getMessage(), PHP_EOL;
30}
31

ืฆื•ืจ ืคื•ืกื˜ ืคื™ื“ ืฆื™ื‘ื•ืจื™ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
14$broadcast_id = 'broadcast_id_example'; // string
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->createFeedPostPublic($tenant_id, $create_feed_post_params, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->createFeedPostPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ืžื—ืง ืคื•ืกื˜ ืคื™ื“ ืฆื™ื‘ื•ืจื™ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
postId string path ื›ืŸ
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช deleteFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client http ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$post_id = 'post_id_example'; // ืžื—ืจื•ื–ืช
14$broadcast_id = 'broadcast_id_example'; // ืžื—ืจื•ื–ืช
15$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
16
17try {
18 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $broadcast_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ืงื‘ืœ ืคื•ืกื˜ื™ื ื‘ืคื™ื“ Internal Link

req tenantId afterId

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
afterId string query ืœื
limit integer query ืœื
tags array query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetFeedPosts200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getFeedPosts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื™ืฉ ืฆื•ืจืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ื”ืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™ โ€” `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$after_id = 'after_id_example'; // string
20$limit = 56; // int
21$tags = array('tags_example'); // string[]
22
23try {
24 $result = $apiInstance->getFeedPosts($tenant_id, $after_id, $limit, $tags);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getFeedPosts: ', $e->getMessage(), PHP_EOL;
28}
29

ืงื‘ืœ ืคื•ืกื˜ื™ื ืคื™ื“ ืฆื™ื‘ื•ืจื™ื™ื Internal Link

req tenantId afterId

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
afterId string query ืœื
limit integer query ืœื
tags array query ืœื
sso string query ืœื
isCrawler boolean query ืœื
includeUserInfo boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetFeedPostsPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getFeedPostsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$after_id = 'after_id_example'; // ืžื—ืจื•ื–ืช
14$limit = 56; // ืžืกืคืจ ืฉืœื
15$tags = array('tags_example'); // ืžืขืจืš ืžื—ืจื•ื–ื•ืช
16$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
17$is_crawler = True; // ื‘ื•ืœื™ืื ื™
18$include_user_info = True; // ื‘ื•ืœื™ืื ื™
19
20try {
21 $result = $apiInstance->getFeedPostsPublic($tenant_id, $after_id, $limit, $tags, $sso, $is_crawler, $include_user_info);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getFeedPostsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

ืงื‘ืœ ืกื˜ื˜ื™ืกื˜ื™ืงื•ืช ืคื•ืกื˜ื™ื ื‘ืคื™ื“ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
postIds array query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetFeedPostsStats200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getFeedPostsStats
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$post_ids = array('post_ids_example'); // string[]
14$sso = 'sso_example'; // string
15
16try {
17 $result = $apiInstance->getFeedPostsStats($tenant_id, $post_ids, $sso);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->getFeedPostsStats: ', $e->getMessage(), PHP_EOL;
21}
22

ืงื‘ืœ ืจื™ืืงืฆื™ื•ืช ืฆื™ื‘ื•ืจื™ื•ืช ืฉืœ ืžืฉืชืžืฉื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
postIds array query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserReactsPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserReactsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$post_ids = array('post_ids_example'); // string[]
14$sso = 'sso_example'; // string
15
16try {
17 $result = $apiInstance->getUserReactsPublic($tenant_id, $post_ids, $sso);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
21}
22

ื”ืฉื‘ ื‘ืจื™ืืงืฆื™ื” ืœืคื•ืกื˜ ืคื™ื“ ืฆื™ื‘ื•ืจื™ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path Yes
postId string path Yes
isUndo boolean query No
broadcastId string query No
sso string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: ReactFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-reactFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ืืชื” ืจื•ืฆื” ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉื•ืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$post_id = 'post_id_example'; // string
14$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
15$is_undo = True; // bool
16$broadcast_id = 'broadcast_id_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->reactFeedPostPublic($tenant_id, $post_id, $react_body_params, $is_undo, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->reactFeedPostPublic: ', $e->getMessage(), PHP_EOL;
24}
25

ืขื“ื›ืŸ ืคื•ืกื˜ ืคื™ื“ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ืฉืื™ืœืชื” ื›ืŸ
id string ื ืชื™ื‘ ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateFeedPost
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 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-clien http ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
17 new GuzzleHttp\Client(),
18 $config
19);
20$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
21$id = 'id_example'; // ืžื—ืจื•ื–ืช
22$feed_post = new \FastComments\Client\Model\FeedPost(); // \FastComments\Client\Model\FeedPost
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

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
postId string path ื›ืŸ
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ืกืคืง ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ื™ืฉืชืžืฉ ื‘-`GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$post_id = 'post_id_example'; // string
14$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18try {
19 $result = $apiInstance->updateFeedPostPublic($tenant_id, $post_id, $update_feed_post_params, $broadcast_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->updateFeedPostPublic: ', $e->getMessage(), PHP_EOL;
23}
24

ื“ื•ื•ื— ืขืœ ืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
commentId string path ื›ืŸ
isFlagged boolean query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-flagCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$comment_id = 'comment_id_example'; // string
14$is_flagged = True; // bool
15$sso = 'sso_example'; // string
16
17try {
18 $result = $apiInstance->flagCommentPublic($tenant_id, $comment_id, $is_flagged, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->flagCommentPublic: ', $e->getMessage(), PHP_EOL;
22}
23

ื”ื•ืกืฃ ืชื’ื™ืช # Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddHashTag200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-addHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— API: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // ื–ื” ืœื ื—ื•ื‘ื”, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
19 new GuzzleHttp\Client(),
20 $config
21);
22$tenant_id = 'tenant_id_example'; // string
23$create_hash_tag_body = new \FastComments\Client\Model\CreateHashTagBody(); // \FastComments\Client\Model\CreateHashTagBody
24
25try {
26 $result = $apiInstance->addHashTag($tenant_id, $create_hash_tag_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->addHashTag: ', $e->getMessage(), PHP_EOL;
30}
31

ื”ื•ืกืคืช ืชื’ื™ื•ืช ื‘ื›ืžื•ืช ื’ื“ื•ืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddHashTagsBulk200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
20
21try {
22 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืชื’ื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tag string path ื›ืŸ
tenantId string query ืœื

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืœืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
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$tag = 'tag_example'; // string
19$tenant_id = 'tenant_id_example'; // string
20$delete_hash_tag_request = new \FastComments\Client\Model\DeleteHashTagRequest(); // \FastComments\Client\Model\DeleteHashTagRequest
21
22try {
23 $result = $apiInstance->deleteHashTag($tag, $tenant_id, $delete_hash_tag_request);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืชื’ื™ื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
page number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetHashTags200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getHashTags
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$page = 3.4; // float
20
21try {
22 $result = $apiInstance->getHashTags($tenant_id, $page);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getHashTags: ', $e->getMessage(), PHP_EOL;
26}
27

ืขื“ื›ื•ืŸ ื—ืœืงื™ ืฉืœ ืชื’ื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tag string path ื›ืŸ
tenantId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PatchHashTag200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-patchHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tag = 'tag_example'; // ืžื—ืจื•ื–ืช
19$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
20$update_hash_tag_body = new \FastComments\Client\Model\UpdateHashTagBody(); // \FastComments\Client\Model\UpdateHashTagBody
21
22try {
23 $result = $apiInstance->patchHashTag($tag, $tenant_id, $update_hash_tag_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->patchHashTag: ', $e->getMessage(), PHP_EOL;
27}
28

ืฆื•ืจ ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateModerator200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœื”ืœืŸ ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$create_moderator_body = new \FastComments\Client\Model\CreateModeratorBody(); // \FastComments\Client\Model\CreateModeratorBody
20
21try {
22 $result = $apiInstance->createModerator($tenant_id, $create_moderator_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createModerator: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
sendEmail string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื™ืฉ ืฆื•ืจืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-cliรซnt HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$send_email = 'send_email_example'; // string
21
22try {
23 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetModerator200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ื‘ืืžืฆืขื•ืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getModerator($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getModerator: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืžื•ื“ืจื˜ื•ืจื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetModerators200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getModerators
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21try {
22 $result = $apiInstance->getModerators($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getModerators: ', $e->getMessage(), PHP_EOL;
26}
27

ืฉืœื— ื”ื–ืžื ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
fromName string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-sendInvite
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// ื”ื’ื“ืจื•ืช ื”ืจืฉืืช ืžืคืชื— API: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// ื‘ื˜ืœ ื”ืขืจืช ืฉื•ืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
19 new GuzzleHttp\Client(),
20 $config
21);
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$from_name = 'from_name_example'; // string
25
26try {
27 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
31}
32

ืขื“ื›ืŸ ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

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

ืžื—ืง ืกืคื™ืจืช ื”ืชืจืื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

deleteNotificationCount ื“ื•ื’ืžื”
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteNotificationCount($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteNotificationCount: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœืช ืกืคื™ืจืช ื”ืชืจืื•ืช ื‘ืžื˜ืžื•ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCachedNotificationCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getCachedNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ืœื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getCachedNotificationCount($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getCachedNotificationCount: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืกืคื™ืจืช ื”ืชืจืื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื
urlId string query ืœื
fromCommentId string query ืœื
viewed boolean query ืœื
type string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetNotificationCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$user_id = 'user_id_example'; // ืžื—ืจื•ื–ืช
20$url_id = 'url_id_example'; // ืžื—ืจื•ื–ืช
21$from_comment_id = 'from_comment_id_example'; // ืžื—ืจื•ื–ืช
22$viewed = True; // ื‘ื•ืœื™ืื ื™
23$type = 'type_example'; // ืžื—ืจื•ื–ืช
24
25try {
26 $result = $apiInstance->getNotificationCount($tenant_id, $user_id, $url_id, $from_comment_id, $viewed, $type);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
30}
31

ืงื‘ืœ ื”ืชืจืื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื
urlId string query ืœื
fromCommentId string query ืœื
viewed boolean query ืœื
type string query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetNotifications200Response

ื“ื•ื’ืžื”

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

ืขื“ื›ืŸ ื”ืชืจืื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateNotification
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_notification_body = new \FastComments\Client\Model\UpdateNotificationBody(); // \FastComments\Client\Model\UpdateNotificationBody
21$user_id = 'user_id_example'; // string
22
23try {
24 $result = $apiInstance->updateNotification($tenant_id, $id, $update_notification_body, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateNotification: ', $e->getMessage(), PHP_EOL;
28}
29

ื”ื•ืกืฃ ื“ืฃ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddPageAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-addPage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœืงื‘ื•ืข ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_api_page_data = new \FastComments\Client\Model\CreateAPIPageData(); // \FastComments\Client\Model\CreateAPIPageData
20
21try {
22 $result = $apiInstance->addPage($tenant_id, $create_api_page_data);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addPage: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ื“ืฃ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืœืžืคืชื— ื”-API, ืื ื™ืฉ ืฆื•ืจืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deletePage($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deletePage: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ื“ืฃ ืœืคื™ ืžื–ื”ื” URL Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPageByURLIdAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getPageByURLId
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-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$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20
21try {
22 $result = $apiInstance->getPageByURLId($tenant_id, $url_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ื“ืคื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPagesAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getPages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19
20try {
21 $result = $apiInstance->getPages($tenant_id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->getPages: ', $e->getMessage(), PHP_EOL;
25}
26

ืขื“ื›ื•ืŸ ื—ืœืงื™ ืฉืœ ื“ืฃ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PatchPageAPIResponse

ื“ื•ื’ืžื”

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

ืžื—ืง ืื™ืจื•ืข webhook ืžืžืชื™ืŸ Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deletePendingWebhookEvent
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deletePendingWebhookEvent($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deletePendingWebhookEvent: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืกืคื™ืจืช ืื™ืจื•ืขื™ webhook ืžืžืชื™ื ื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentId string query ืœื
externalId string query ืœื
eventType string query ืœื
type string query ืœื
domain string query ืœื
attemptCountGT number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPendingWebhookEventCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getPendingWebhookEventCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ื•ืจื“ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$comment_id = 'comment_id_example'; // string
20$external_id = 'external_id_example'; // string
21$event_type = 'event_type_example'; // string
22$type = 'type_example'; // string
23$domain = 'domain_example'; // string
24$attempt_count_gt = 3.4; // float
25
26try {
27 $result = $apiInstance->getPendingWebhookEventCount($tenant_id, $comment_id, $external_id, $event_type, $type, $domain, $attempt_count_gt);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getPendingWebhookEventCount: ', $e->getMessage(), PHP_EOL;
31}
32

ืงื‘ืœ ืื™ืจื•ืขื™ webhook ืžืžืชื™ื ื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
commentId string query ืœื
externalId string query ืœื
eventType string query ืœื
type string query ืœื
domain string query ืœื
attemptCountGT number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPendingWebhookEvents200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getPendingWebhookEvents
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$comment_id = 'comment_id_example'; // string
20$external_id = 'external_id_example'; // string
21$event_type = 'event_type_example'; // string
22$type = 'type_example'; // string
23$domain = 'domain_example'; // string
24$attempt_count_gt = 3.4; // float
25$skip = 3.4; // float
26
27try {
28 $result = $apiInstance->getPendingWebhookEvents($tenant_id, $comment_id, $external_id, $event_type, $type, $domain, $attempt_count_gt, $skip);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getPendingWebhookEvents: ', $e->getMessage(), PHP_EOL;
32}
33

ืฆื•ืจ ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateQuestionConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช createQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
20
21try {
22 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->deleteQuestionConfig($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™ โ€” `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getQuestionConfig($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getQuestionConfig: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืชืฆื•ืจื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query Yes
skip number query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionConfigs200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getQuestionConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืขื‘ื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21try {
22 $result = $apiInstance->getQuestionConfigs($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getQuestionConfigs: ', $e->getMessage(), PHP_EOL;
26}
27

ืขื“ื›ืŸ ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

updateQuestionConfig ื“ื•ื’ืžื”
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ื”ืขืจื” ืœืฉื•ืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_question_config_body = new \FastComments\Client\Model\UpdateQuestionConfigBody(); // \FastComments\Client\Model\UpdateQuestionConfigBody
21
22try {
23 $result = $apiInstance->updateQuestionConfig($tenant_id, $id, $update_question_config_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateQuestionConfig: ', $e->getMessage(), PHP_EOL;
27}
28

ืฆื•ืจ ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateQuestionResult200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$create_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
20
21try {
22 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionResult200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ื‘ื”ืžืฉืš ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getQuestionResult($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getQuestionResult: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlId string query ืœื
userId string query ืœื
startDate string query ืœื
questionId string query ืœื
questionIds string query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20$user_id = 'user_id_example'; // string
21$start_date = 'start_date_example'; // string
22$question_id = 'question_id_example'; // string
23$question_ids = 'question_ids_example'; // string
24$skip = 3.4; // float
25
26try {
27 $result = $apiInstance->getQuestionResults($tenant_id, $url_id, $user_id, $start_date, $question_id, $question_ids, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
31}
32

ืขื“ื›ืŸ ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query Yes
id string path Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_question_result_body = new \FastComments\Client\Model\UpdateQuestionResultBody(); // \FastComments\Client\Model\UpdateQuestionResultBody
21
22try {
23 $result = $apiInstance->updateQuestionResult($tenant_id, $id, $update_question_result_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateQuestionResult: ', $e->getMessage(), PHP_EOL;
27}
28

ืื’ืจื’ืฆื™ื” ืฉืœ ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
questionId string query ืœื
questionIds array query ืœื
urlId string query ืœื
timeBucket string query ืœื
startDate string query ืœื
forceRecalculate boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AggregateQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-aggregateQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$question_id = 'question_id_example'; // string
20$question_ids = array('question_ids_example'); // string[]
21$url_id = 'url_id_example'; // string
22$time_bucket = new \FastComments\Client\Model\\FastComments\Client\Model\AggregateTimeBucket(); // \FastComments\Client\Model\AggregateTimeBucket
23$start_date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
24$force_recalculate = True; // bool
25
26try {
27 $result = $apiInstance->aggregateQuestionResults($tenant_id, $question_id, $question_ids, $url_id, $time_bucket, $start_date, $force_recalculate);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->aggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
31}
32

ืื’ืจื’ืฆื™ื” ื‘ื›ืžื•ืช ื’ื“ื•ืœื” ืฉืœ ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
forceRecalculate boolean query ืœื

Response

ืžื—ื–ื™ืจ: BulkAggregateQuestionResults200Response

ื“ื•ื’ืžื”

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

ืฉืœื‘ ืชื’ื•ื‘ื•ืช ืขื ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
questionId string query ืœื
questionIds array query ืœื
urlId string query ืœื
startDate string query ืœื
forceRecalculate boolean query ืœื
minValue number query ืœื
maxValue number query ืœื
limit number query ืœื

Response

ืžื—ื–ื™ืจ: CombineCommentsWithQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-combineCommentsWithQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœื”ืœืŸ ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$question_id = 'question_id_example'; // string
20$question_ids = array('question_ids_example'); // string[]
21$url_id = 'url_id_example'; // string
22$start_date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
23$force_recalculate = True; // bool
24$min_value = 3.4; // float
25$max_value = 3.4; // float
26$limit = 3.4; // float
27
28try {
29 $result = $apiInstance->combineCommentsWithQuestionResults($tenant_id, $question_id, $question_ids, $url_id, $start_date, $force_recalculate, $min_value, $max_value, $limit);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->combineCommentsWithQuestionResults: ', $e->getMessage(), PHP_EOL;
33}
34

ื”ื•ืกืฃ ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddSSOUserAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-addSSOUser
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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_apisso_user_data = new \FastComments\Client\Model\CreateAPISSOUserData(); // \FastComments\Client\Model\CreateAPISSOUserData
20
21try {
22 $result = $apiInstance->addSSOUser($tenant_id, $create_apisso_user_data);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->addSSOUser: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
deleteComments boolean query ืœื
commentDeleteMode string query ืœื

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20$delete_comments = True; // ื‘ื•ืœื™ืื ื™
21$comment_delete_mode = 'comment_delete_mode_example'; // ืžื—ืจื•ื–ืช
22
23try {
24 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $delete_comments, $comment_delete_mode);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

ืงื‘ืœ ืžืฉืชืžืฉ SSO ืœืคื™ ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
email string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$email = 'email_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getSSOUserByEmail($tenant_id, $email);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSSOUserByEmail: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืžืฉืชืžืฉ SSO ืœืคื™ ืžื–ื”ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string ืฉืื™ืœืชื” ื›ืŸ
id string ื ืชื™ื‘ ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืชื—ื™ืœื™ืช (ืœืžืฉืœ Bearer) ืœืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getSSOUserById($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืžืฉืชืžืฉื™ SSO Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
skip integer query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetSSOUsers200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getSSOUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
17 new GuzzleHttp\Client(),
18 $config
19);
20$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
21$skip = 56; // ืžืกืคืจ ืฉืœื
22
23try {
24 $result = $apiInstance->getSSOUsers($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUsers: ', $e->getMessage(), PHP_EOL;
28}
29

ืขื“ื›ื•ืŸ ื—ืœืงื™ ืฉืœ ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
21$update_comments = True; // bool
22
23try {
24 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

ื”ื’ื“ืจ/ื”ื—ืœืฃ ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
id string path Yes
updateComments boolean query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
21$update_comments = True; // ื‘ื•ืœื™ืื ื™
22
23try {
24 $result = $apiInstance->putSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->putSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

ืฆื•ืจ ืžื ื•ื™ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$create_api_user_subscription_data = new \FastComments\Client\Model\CreateAPIUserSubscriptionData(); // \FastComments\Client\Model\CreateAPIUserSubscriptionData
20
21try {
22 $result = $apiInstance->createSubscription($tenant_id, $create_api_user_subscription_data);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืžื ื•ื™ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteSubscriptionAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ deleteSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21
22try {
23 $result = $apiInstance->deleteSubscription($tenant_id, $id, $user_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืžื ื•ื™ื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
userId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: 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) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20
21try {
22 $result = $apiInstance->getSubscriptions($tenant_id, $user_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืฉื™ืžื•ืฉื™ื ื™ื•ืžื™ื™ื ืฉืœ ื”ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
yearNumber number query No
monthNumber number query No
dayNumber number query No
skip number query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantDailyUsages200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getTenantDailyUsages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืœืžืคืชื— ื”-API, ืื ื™ืฉ ืฆื•ืจืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client http ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$year_number = 3.4; // float
20$month_number = 3.4; // float
21$day_number = 3.4; // float
22$skip = 3.4; // float
23
24try {
25 $result = $apiInstance->getTenantDailyUsages($tenant_id, $year_number, $month_number, $day_number, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'ื—ืจื™ื’ื” ื‘ืขืช ืงืจื™ืื” ืœ-DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
29}
30

ืฆื•ืจ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ืฉืื™ืœืชื” ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateTenantPackage200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
20
21try {
22 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
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 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
14 new GuzzleHttp\Client(),
15 $config
16);
17$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
18$id = 'id_example'; // ืžื—ืจื•ื–ืช
19
20try {
21 $result = $apiInstance->deleteTenantPackage($tenant_id, $id);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling DefaultApi->deleteTenantPackage: ', $e->getMessage(), PHP_EOL;
25}
26

ืงื‘ืœ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantPackage200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getTenantPackage($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantPackage: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ื—ื‘ื™ืœื•ืช ืฉื•ื›ืจื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantPackages200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช getTenantPackages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ื‘ืืžืฆืขื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ืฆืจื™ืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-http client ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$skip = 3.4; // ืžืกืคืจ ืขืฉืจื•ื ื™ (float)
20
21try {
22 $result = $apiInstance->getTenantPackages($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantPackages: ', $e->getMessage(), PHP_EOL;
26}
27

ื”ื—ืœืฃ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-replaceTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
21
22try {
23 $result = $apiInstance->replaceTenantPackage($tenant_id, $id, $replace_tenant_package_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->replaceTenantPackage: ', $e->getMessage(), PHP_EOL;
27}
28

ืขื“ื›ืŸ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ืงื‘ืข ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืืช ื”ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20$update_tenant_package_body = new \FastComments\Client\Model\UpdateTenantPackageBody(); // \FastComments\Client\Model\UpdateTenantPackageBody
21
22try {
23 $result = $apiInstance->updateTenantPackage($tenant_id, $id, $update_tenant_package_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateTenantPackage: ', $e->getMessage(), PHP_EOL;
27}
28

ืฆื•ืจ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateTenantUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ื‘ืžื™ื“ืช ื”ืฆื•ืจืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-custom http client, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$create_tenant_user_body = new \FastComments\Client\Model\CreateTenantUserBody(); // \FastComments\Client\Model\CreateTenantUserBody
20
21try {
22 $result = $apiInstance->createTenantUser($tenant_id, $create_tenant_user_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTenantUser: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
deleteComments string query ืœื
commentDeleteMode string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteTenantUser
Copy Copy
1
2<?php
3require_once(__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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$delete_comments = 'delete_comments_example'; // string
21$comment_delete_mode = 'comment_delete_mode_example'; // string
22
23try {
24 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $delete_comments, $comment_delete_mode);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

ืงื‘ืœ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getTenantUser($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantUser: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืžืฉืชืžืฉื™ ืฉื•ื›ืจื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantUsers200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getTenantUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ื‘ืืžืฆืขื•ืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$skip = 3.4; // ืžืกืคืจ ืขืฉืจื•ื ื™
20
21try {
22 $result = $apiInstance->getTenantUsers($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenantUsers: ', $e->getMessage(), PHP_EOL;
26}
27

ื”ื—ืœืฃ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-replaceTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$replace_tenant_user_body = new \FastComments\Client\Model\ReplaceTenantUserBody(); // \FastComments\Client\Model\ReplaceTenantUserBody
21$update_comments = 'update_comments_example'; // string
22
23try {
24 $result = $apiInstance->replaceTenantUser($tenant_id, $id, $replace_tenant_user_body, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->replaceTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query Yes
id string path Yes
redirectURL string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-sendLoginLink
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืœืžืคืชื— ื”-API, ืื ืฆืจื™ืš
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-cliet HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืœืงื•ื— ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$redirect_url = 'redirect_url_example'; // string
21
22try {
23 $result = $apiInstance->sendLoginLink($tenant_id, $id, $redirect_url);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->sendLoginLink: ', $e->getMessage(), PHP_EOL;
27}
28

ืขื“ื›ืŸ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_tenant_user_body = new \FastComments\Client\Model\UpdateTenantUserBody(); // \FastComments\Client\Model\UpdateTenantUserBody
21$update_comments = 'update_comments_example'; // string
22
23try {
24 $result = $apiInstance->updateTenantUser($tenant_id, $id, $update_tenant_user_body, $update_comments);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

ืฆื•ืจ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateTenant200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช createTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$create_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
20
21try {
22 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
id string path Yes
sure string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$sure = 'sure_example'; // string
21
22try {
23 $result = $apiInstance->deleteTenant($tenant_id, $id, $sure);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteTenant: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ืฉืื™ืœืชื” ื›ืŸ
id string ื ืชื™ื‘ ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenant200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->getTenant($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getTenant: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืฉื•ื›ืจื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
meta string query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenants200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getTenants
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจืช ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$meta = 'meta_example'; // string
20$skip = 3.4; // float
21
22try {
23 $result = $apiInstance->getTenants($tenant_id, $meta, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getTenants: ', $e->getMessage(), PHP_EOL;
27}
28

ืขื“ื›ืŸ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
id string path Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20$update_tenant_body = new \FastComments\Client\Model\UpdateTenantBody(); // \FastComments\Client\Model\UpdateTenantBody
21
22try {
23 $result = $apiInstance->updateTenant($tenant_id, $id, $update_tenant_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateTenant: ', $e->getMessage(), PHP_EOL;
27}
28

ื”ืขืœื” ืชืžื•ื ื” Internal Link

ื”ืขืœืื” ื•ืฉื™ื ื•ื™ ื’ื•ื“ืœ ืฉืœ ืชืžื•ื ื”

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
sizePreset string query ืœื ื”ื’ื“ืจืช ื’ื•ื“ืœ: "Default" (1000x1000px) ืื• "CrossPlatform" (ื™ื•ืฆืจ ื’ื“ืœื™ื ืœืžื›ืฉื™ืจื™ื ืคื•ืคื•ืœืจื™ื™ื)
urlId string query ืœื ืžื–ื”ื” ื”ื“ืฃ ืฉืžืžื ื• ืžืชื‘ืฆืขืช ื”ื”ืขืœืื”, ืœืฆื•ืจืš ืงื•ื ืคื™ื’ื•ืจืฆื™ื”

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: UploadImageResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-uploadImage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ื”ืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$file = '/path/to/file.txt'; // \SplFileObject
14$size_preset = new \FastComments\Client\Model\\FastComments\Client\Model\SizePreset(); // \FastComments\Client\Model\SizePreset | ื”ื’ื“ืจืช ื’ื•ื“ืœ: \"Default\" (1000x1000px) ืื• \"CrossPlatform\" (ื™ื•ืฆืจ ื’ื“ืœื™ื ืœืžื›ืฉื™ืจื™ื ืคื•ืคื•ืœืจื™ื™ื)
15$url_id = 'url_id_example'; // string | ืžื–ื”ื” ื”ื“ืฃ ืฉืžืžื ื• ืžืชื‘ืฆืขืช ื”ื”ืขืœืื”, ืœืฆื•ืจืš ืงื•ื ืคื™ื’ื•ืจืฆื™ื”
16
17try {
18 $result = $apiInstance->uploadImage($tenant_id, $file, $size_preset, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->uploadImage: ', $e->getMessage(), PHP_EOL;
22}
23

ืงื‘ืœ ื”ืชืงื“ืžื•ืช ืกืžืœ ืžืฉืชืžืฉ ืœืคื™ ืžื–ื”ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadgeProgressById200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserBadgeProgressById
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ื”ืขืจืช ืฉื•ืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getUserBadgeProgressById($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUserBadgeProgressById: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ื”ืชืงื“ืžื•ืช ืกืžืœ ืœืคื™ ืžื–ื”ื” ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadgeProgressById200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserBadgeProgressByUserId
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20
21try {
22 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืจืฉื™ืžืช ื”ืชืงื“ืžื•ืช ืกืžืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื
limit number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadgeProgressList200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserBadgeProgressList
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-HTTP client ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20$limit = 3.4; // float
21$skip = 3.4; // float
22
23try {
24 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $user_id, $limit, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
28}
29

ืฆื•ืจ ืกืžืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ

Response

ืžื—ื–ื™ืจ: CreateUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
20
21try {
22 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
26}
27

ืžื—ืง ืกืžืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-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// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ื”ืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21try {
22 $result = $apiInstance->deleteUserBadge($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืกืžืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช getUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getUserBadge($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ืกืžืœื™ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื
badgeId string query ืœื
type number query ืœื
displayedOnComments boolean query ืœื
limit number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadges200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserBadges
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืืช ืื™ืฉื•ืจ ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืฉืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20$badge_id = 'badge_id_example'; // string
21$type = 3.4; // float
22$displayed_on_comments = True; // bool
23$limit = 3.4; // float
24$skip = 3.4; // float
25
26try {
27 $result = $apiInstance->getUserBadges($tenant_id, $user_id, $badge_id, $type, $displayed_on_comments, $limit, $skip);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
31}
32

ืขื“ื›ืŸ ืกืžืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืฉื•ืจ ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
21
22try {
23 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ืกืคื™ืจืช ื”ืชืจืื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string ืฉืื™ืœืชื” ื›ืŸ
sso string ืฉืื™ืœืชื” ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserNotificationCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
14
15try {
16 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
20}
21

ืงื‘ืœ ื”ืชืจืื•ืช ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
pageSize integer query ืœื
afterId string query ืœื
includeContext boolean query ืœื
afterCreatedAt integer query ืœื
unreadOnly boolean query ืœื
dmOnly boolean query ืœื
noDm boolean query ืœื
includeTranslations boolean query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUserNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$page_size = 56; // int
14$after_id = 'after_id_example'; // string
15$include_context = True; // bool
16$after_created_at = 56; // int
17$unread_only = True; // bool
18$dm_only = True; // bool
19$no_dm = True; // bool
20$include_translations = True; // bool
21$sso = 'sso_example'; // string
22
23try {
24 $result = $apiInstance->getUserNotifications($tenant_id, $page_size, $after_id, $include_context, $after_created_at, $unread_only, $dm_only, $no_dm, $include_translations, $sso);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->getUserNotifications: ', $e->getMessage(), PHP_EOL;
28}
29

ืืชื—ืœ ืืช ืกืคื™ืจืช ื”ืชืจืื•ืช ื”ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: ResetUserNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-resetUserNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$sso = 'sso_example'; // string
14
15try {
16 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
20}
21

ืืชื—ืœ ื”ืชืจืื•ืช ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
afterId string query ืœื
afterCreatedAt integer query ืœื
unreadOnly boolean query ืœื
dmOnly boolean query ืœื
noDm boolean query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: ResetUserNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-resetUserNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$after_id = 'after_id_example'; // string
14$after_created_at = 56; // int
15$unread_only = True; // bool
16$dm_only = True; // bool
17$no_dm = True; // bool
18$sso = 'sso_example'; // string
19
20try {
21 $result = $apiInstance->resetUserNotifications($tenant_id, $after_id, $after_created_at, $unread_only, $dm_only, $no_dm, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->resetUserNotifications: ', $e->getMessage(), PHP_EOL;
25}
26

ืขื“ื›ืŸ ืกื˜ื˜ื•ืก ืžื ื•ื™ ืœื”ืชืจืื•ืช ืชื’ื•ื‘ื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link

ื”ืคืขืœ ืื• ื”ืฉื‘ืช ื”ืชืจืื•ืช ืขื‘ื•ืจ ืชื’ื•ื‘ื” ืžืกื•ื™ืžืช.

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
notificationId string path ื›ืŸ
optedInOrOut string path ื›ืŸ
commentId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserNotificationStatus200Response

ื“ื•ื’ืžื”

updateUserNotificationCommentSubscriptionStatus ื“ื•ื’ืžื”
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$notification_id = 'notification_id_example'; // ืžื—ืจื•ื–ืช
14$opted_in_or_out = 'opted_in_or_out_example'; // ืžื—ืจื•ื–ืช
15$comment_id = 'comment_id_example'; // ืžื—ืจื•ื–ืช
16$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
17
18try {
19 $result = $apiInstance->updateUserNotificationCommentSubscriptionStatus($tenant_id, $notification_id, $opted_in_or_out, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
23}
24

ืขื“ื›ืŸ ืกื˜ื˜ื•ืก ืžื ื•ื™ ืœื”ืชืจืื•ืช ื“ืฃ ืขื‘ื•ืจ ืžืฉืชืžืฉ Internal Link

ื”ืคืขืœ ืื• ื”ืฉื‘ืช ื”ืชืจืื•ืช ืขื‘ื•ืจ ืขืžื•ื“. ื›ืืฉืจ ืžืฉืชืžืฉื™ื ื ืจืฉืžื™ื ืœืขืžื•ื“, ื ื•ืฆืจื•ืช ื”ืชืจืื•ืช ืขื‘ื•ืจ ืชื’ื•ื‘ื•ืช ืฉื•ืจืฉ ื—ื“ืฉื•ืช, ื•ื’ื

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlId string query ื›ืŸ
url string query ื›ืŸ
pageTitle string query ื›ืŸ
subscribedOrUnsubscribed string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserNotificationStatus200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-updateUserNotificationPageSubscriptionStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$url = 'url_example'; // string
15$page_title = 'page_title_example'; // string
16$subscribed_or_unsubscribed = 'subscribed_or_unsubscribed_example'; // string
17$sso = 'sso_example'; // string
18
19try {
20 $result = $apiInstance->updateUserNotificationPageSubscriptionStatus($tenant_id, $url_id, $url, $page_title, $subscribed_or_unsubscribed, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
24}
25

ืขื“ื›ืŸ ืกื˜ื˜ื•ืก ื”ืชืจืื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
notificationId string path ื›ืŸ
newStatus string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserNotificationStatus200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ updateUserNotificationStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, ื™ื™ืขืฉื” ืฉื™ืžื•ืฉ ื‘-`GuzzleHttp\Client` ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$notification_id = 'notification_id_example'; // ืžื—ืจื•ื–ืช
14$new_status = 'new_status_example'; // ืžื—ืจื•ื–ืช
15$sso = 'sso_example'; // ืžื—ืจื•ื–ืช
16
17try {
18 $result = $apiInstance->updateUserNotificationStatus($tenant_id, $notification_id, $new_status, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->updateUserNotificationStatus: ', $e->getMessage(), PHP_EOL;
22}
23

ืงื‘ืœ ืžืฆื‘ื™ ื ื•ื›ื—ื•ืช ืฉืœ ืžืฉืชืžืฉื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlIdWS string query ื›ืŸ
userIds string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserPresenceStatuses200Response

ื“ื•ื’ืžื”

getUserPresenceStatuses ื“ื•ื’ืžื”
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
13$url_id_ws = 'url_id_ws_example'; // ืžื—ืจื•ื–ืช
14$user_ids = 'user_ids_example'; // ืžื—ืจื•ื–ืช
15
16try {
17 $result = $apiInstance->getUserPresenceStatuses($tenant_id, $url_id_ws, $user_ids);
18 print_r($result);
19} catch (Exception $e) {
20 echo 'Exception when calling PublicApi->getUserPresenceStatuses: ', $e->getMessage(), PHP_EOL;
21}
22

ื—ืคืฉ ืžืฉืชืžืฉื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
usernameStartsWith string query ื›ืŸ
mentionGroupIds array query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SearchUsers200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-searchUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘ืœืงื•ื— HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”ืœืงื•ื— ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
9 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™; `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
10 new GuzzleHttp\Client()
11);
12$tenant_id = 'tenant_id_example'; // string
13$url_id = 'url_id_example'; // string
14$username_starts_with = 'username_starts_with_example'; // string
15$mention_group_ids = array('mention_group_ids_example'); // string[]
16$sso = 'sso_example'; // string
17
18try {
19 $result = $apiInstance->searchUsers($tenant_id, $url_id, $username_starts_with, $mention_group_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
23}
24

ืงื‘ืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื‘ื˜ืœ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$id = 'id_example'; // ืžื—ืจื•ื–ืช
20
21try {
22 $result = $apiInstance->getUser($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL;
26}
27

ืฆื•ืจ ื”ืฆื‘ืขื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentId string query ื›ืŸ
direction string query ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: VoteComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-createVote
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 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$comment_id = 'comment_id_example'; // ืžื—ืจื•ื–ืช
20$direction = 'direction_example'; // ืžื—ืจื•ื–ืช
21$user_id = 'user_id_example'; // ืžื—ืจื•ื–ืช
22$anon_user_id = 'anon_user_id_example'; // ืžื—ืจื•ื–ืช
23
24try {
25 $result = $apiInstance->createVote($tenant_id, $comment_id, $direction, $user_id, $anon_user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
29}
30

ืžื—ืง ื”ืฆื‘ืขื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
editKey string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteCommentVote200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-deleteVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ืื™ืžื•ืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$edit_key = 'edit_key_example'; // string
21
22try {
23 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
27}
28

ืงื‘ืœ ื”ืฆื‘ืขื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
urlId string query Yes

ืชื’ื•ื‘ื”

Returns: GetVotes200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ getVotes
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ Bearer) ืขื‘ื•ืจ ืžืคืชื— ื”-API, ืื ื ื“ืจืฉ
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // ืื ื‘ืจืฆื•ื ืš ืœื”ืฉืชืžืฉ ื‘-client HTTP ืžื•ืชืื ืื™ืฉื™ืช, ื”ืขื‘ืจ ืืช ื”-client ืฉืœืš ืฉืžืžืžืฉ ืืช `GuzzleHttp\ClientInterface`.
14 // ื–ื” ืื•ืคืฆื™ื•ื ืœื™, `GuzzleHttp\Client` ื™ืฉืžืฉ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ.
15 new GuzzleHttp\Client(),
16 $config
17);
18$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20
21try {
22 $result = $apiInstance->getVotes($tenant_id, $url_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
26}
27

ืงื‘ืœ ื”ืฆื‘ืขื•ืช ืขื‘ื•ืจ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
urlId string query ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetVotesForUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-getVotesForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// ื”ื’ื“ืจ ื”ืจืฉืืช ืžืคืชื— ื”-API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// ื”ืกืจ ืืช ื”ื”ืขืจื” ืœืžื˜ื” ื›ื“ื™ ืœื”ื’ื“ื™ืจ ืงื™ื“ื•ืžืช (ืœืžืฉืœ 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$tenant_id = 'tenant_id_example'; // ืžื—ืจื•ื–ืช
19$url_id = 'url_id_example'; // ืžื—ืจื•ื–ืช
20$user_id = 'user_id_example'; // ืžื—ืจื•ื–ืช
21$anon_user_id = 'anon_user_id_example'; // ืžื—ืจื•ื–ืช
22
23try {
24 $result = $apiInstance->getVotesForUser($tenant_id, $url_id, $user_id, $anon_user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getVotesForUser: ', $e->getMessage(), PHP_EOL;
28}
29

ืฆืจื™ืš ืขื–ืจื”?

ืื ืชื™ืชืงืœื• ื‘ื‘ืขื™ื•ืช ืื• ื™ืฉ ืœื›ื ืฉืืœื•ืช ืœื’ื‘ื™ ื”-PHP SDK, ืื ื:

ืชืจื•ืžื”

ืชืจื•ืžื•ืช ืžืชืงื‘ืœื•ืช ื‘ื‘ืจื›ื”! ื ื ืœื‘ืงืจ ื‘-ืžืื’ืจ ื”-GitHub ืœืงื‘ืœืช ื”ื ื—ื™ื•ืช ืœืชืจื•ืžื”.