FastComments.com

FastComments PHP SDK


Това е официалният PHP SDK за FastComments.

Официален PHP SDK за FastComments API

Репозитория

Вижте в 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'; // string
$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams

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

API клиенти Internal Link

The SDK‑то предоставя три класа за API клиент:

  • DefaultApi – методи, удостоверени с API‑ключ, за сървърна страна. Конфигурирайте API‑ключ, както е показано в Започване.
  • PublicApi – публични методи, които не изискват API‑ключ, безопасни за повикване от браузъри и мобилни приложения.
  • ModerationApi – обширен набор от живи и бързи API за модериране. Всеки метод на ModerationApi приема параметър $sso и може да се удостоверява чрез SSO или с FastComments.com сесийна бисквитка.

Използване на PublicApi

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

// Public methods do not require an API key.
$apiInstance = new FastComments\Client\Api\PublicApi(
    new GuzzleHttp\Client()
);
$tenant_id = 'tenant_id_example'; // string
$url_id = 'url_id_example'; // string

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

Използване на ModerationApi

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

$apiInstance = new FastComments\Client\Api\ModerationApi(
    new GuzzleHttp\Client()
);
$sso = 'sso_example'; // string - SSO payload authenticating the moderator

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

Модели Internal Link



Авторизация Internal Link


Схеми за удостоверяване, дефинирани за API:

api_key

  • Тип: API key
  • Име на параметъра за API key: x-api-key
  • Местоположение: HTTP header

Автор Internal Link

support@fastcomments.com

aggregate Internal Link

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

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
parentTenantIdstringqueryНе
includeStatsbooleanqueryНе

Отговор

Връща: AggregateResponse

Пример

пример за агрегиране
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // стринг
20$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
21$options = [
22 'parent_tenant_id' => 'parent_tenant_id_example', // стринг
23 'include_stats' => True, // булев
24];
25
26
27try {
28 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
32}
33

getAuditLogs Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
limitnumberqueryНе
skipnumberqueryНе
orderstringqueryНе
afternumberqueryНе
beforenumberqueryНе

Отговор

Връща: GetAuditLogsResponse

Пример

Пример за getAuditLogs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте долната линия, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва като по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$options = [
21 'limit' => 3.4, // плаваща точка
22 'skip' => 3.4, // плаваща точка
23 'order' => new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(), // \FastComments\Client\Model\SORTDIR
24 'after' => 3.4, // плаваща точка
25 'before' => 3.4, // плаваща точка
26];
27
28
29try {
30 $result = $apiInstance->getAuditLogs($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
34}
35

logoutPublic Internal Link

Отговор

Връща: APIEmptyResponse

Пример

logoutPublic Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13
14
15try {
16 $result = $apiInstance->logoutPublic();
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->logoutPublic: ', $e->getMessage(), PHP_EOL;
20}
21

blockFromCommentPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Отговор

Връща: BlockSuccess

Пример

Пример за blockFromCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // низ
17
18
19try {
20 $result = $apiInstance->blockFromCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->blockFromCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

unBlockCommentPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
ssostringqueryНе

Отговор

Връща: UnblockSuccess

Пример

Пример за unBlockCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте ваш клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unBlockCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unBlockCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

checkedCommentsForBlocked Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdsstringqueryДаСписък от идентификатори на коментари, разделени със запетая.
ssostringqueryНе

Отговор

Връща: CheckBlockedCommentsResponse

Пример

checkedCommentsForBlocked Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_ids = 'comment_ids_example'; // string | Списък от идентификатори на коментари, разделени със запетая.
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->checkedCommentsForBlocked($tenant_id, $comment_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->checkedCommentsForBlocked: ', $e->getMessage(), PHP_EOL;
23}
24

blockUserFromComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Отговор

Връща: BlockSuccess

Пример

blockUserFromComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизацията за API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // низ
24 'anon_user_id' => 'anon_user_id_example', // низ
25];
26
27
28try {
29 $result = $apiInstance->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

createCommentPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

Отговор

Връща: SaveCommentsResponseWithPresence

Пример

createCommentPublic пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
17$options = [
18 'session_id' => 'session_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->createCommentPublic($tenant_id, $url_id, $broadcast_id, $comment_data, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->createCommentPublic: ', $e->getMessage(), PHP_EOL;
28}
29

deleteComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
contextUserIdstringqueryНе
isLivebooleanqueryНе

Отговор

Връща: DeleteCommentResult

Пример

deleteComment пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на удостоверяване с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$options = [
21 'context_user_id' => 'context_user_id_example', // string
22 'is_live' => True, // bool
23];
24
25
26try {
27 $result = $apiInstance->deleteComment($tenant_id, $id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
31}
32

deleteCommentPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
commentIdstringpathДа
broadcastIdstringqueryДа
editKeystringqueryНе
ssostringqueryНе

Отговор

Връща: PublicAPIDeleteCommentResponse

Пример

Пример за deleteCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$options = [
17 'edit_key' => 'edit_key_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->deleteCommentPublic($tenant_id, $comment_id, $broadcast_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->deleteCommentPublic: ', $e->getMessage(), PHP_EOL;
27}
28

deleteCommentVote Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
commentIdstringpathYes
voteIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

Отговор

Връща: VoteDeleteResponse

Пример

deleteCommentVote Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$vote_id = 'vote_id_example'; // string
16$url_id = 'url_id_example'; // string
17$broadcast_id = 'broadcast_id_example'; // string
18$options = [
19 'edit_key' => 'edit_key_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->deleteCommentVote($tenant_id, $comment_id, $vote_id, $url_id, $broadcast_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->deleteCommentVote: ', $e->getMessage(), PHP_EOL;
29}
30

flagComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Отговор

Връща: FlagCommentResponse

Пример

flagComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->flagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->flagComment: ', $e->getMessage(), PHP_EOL;
32}
33

getComment Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Response

Връща: APIGetCommentResponse

Example

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

getComments Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
pageintegerqueryНе
limitintegerqueryНе
skipintegerqueryНе
asTreebooleanqueryНе
skipChildrenintegerqueryНе
limitChildrenintegerqueryНе
maxTreeDepthintegerqueryНе
urlIdstringqueryНе
userIdstringqueryНе
anonUserIdstringqueryНе
contextUserIdstringqueryНе
hashTagstringqueryНе
parentIdstringqueryНе
directionstringqueryНе
fromDateintegerqueryНе
toDateintegerqueryНе

Response

Връща: APIGetCommentsResponse

Example

getComments Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: 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 // This is optional, `GuzzleHttp\Client` will be used as default.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'page' => 56, // int
21 'limit' => 56, // int
22 'skip' => 56, // int
23 'as_tree' => True, // bool
24 'skip_children' => 56, // int
25 'limit_children' => 56, // int
26 'max_tree_depth' => 56, // int
27 'url_id' => 'url_id_example', // string
28 'user_id' => 'user_id_example', // string
29 'anon_user_id' => 'anon_user_id_example', // string
30 'context_user_id' => 'context_user_id_example', // string
31 'hash_tag' => 'hash_tag_example', // string
32 'parent_id' => 'parent_id_example', // string
33 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
34 'from_date' => 56, // int
35 'to_date' => 56, // int
36];
37
38
39try {
40 $result = $apiInstance->getComments($tenant_id, $options);
41 print_r($result);
42} catch (Exception $e) {
43 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
44}
45

getCommentsPublic Internal Link

req tenantId urlId

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
urlIdstringqueryYes
pageintegerqueryNo
directionstringqueryNo
ssostringqueryNo
skipintegerqueryNo
skipChildrenintegerqueryNo
limitintegerqueryNo
limitChildrenintegerqueryNo
countChildrenbooleanqueryNo
fetchPageForCommentIdstringqueryNo
includeConfigbooleanqueryNo
countAllbooleanqueryNo
includei10nbooleanqueryNo
localestringqueryNo
modulesstringqueryNo
isCrawlerbooleanqueryNo
includeNotificationCountbooleanqueryNo
asTreebooleanqueryNo
maxTreeDepthintegerqueryNo
useFullTranslationIdsbooleanqueryNo
parentIdstringqueryNo
searchTextstringqueryNo
hashTagsarrayqueryNo
userIdstringqueryNo
customConfigStrstringqueryNo
afterCommentIdstringqueryNo
beforeCommentIdstringqueryNo

Отговор

Връща: GetCommentsResponseWithPresencePublicComment

Пример

Пример за getCommentsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$url_id = 'url_id_example'; // низ
15$options = [
16 'page' => 56, // int
17 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
18 'sso' => 'sso_example', // низ
19 'skip' => 56, // int
20 'skip_children' => 56, // int
21 'limit' => 56, // int
22 'limit_children' => 56, // int
23 'count_children' => True, // bool
24 'fetch_page_for_comment_id' => 'fetch_page_for_comment_id_example', // низ
25 'include_config' => True, // bool
26 'count_all' => True, // bool
27 'includei10n' => True, // bool
28 'locale' => 'locale_example', // низ
29 'modules' => 'modules_example', // низ
30 'is_crawler' => True, // bool
31 'include_notification_count' => True, // bool
32 'as_tree' => True, // bool
33 'max_tree_depth' => 56, // int
34 'use_full_translation_ids' => True, // bool
35 'parent_id' => 'parent_id_example', // низ
36 'search_text' => 'search_text_example', // низ
37 'hash_tags' => array('hash_tags_example'), // string[]
38 'user_id' => 'user_id_example', // низ
39 'custom_config_str' => 'custom_config_str_example', // низ
40 'after_comment_id' => 'after_comment_id_example', // низ
41 'before_comment_id' => 'before_comment_id_example', // низ
42];
43
44
45try {
46 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $options);
47 print_r($result);
48} catch (Exception $e) {
49 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
50}
51

getCommentText Internal Link


Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
commentIdstringpathДа
editKeystringqueryНе
ssostringqueryНе

Отговор

Връща: PublicAPIGetCommentTextResponse

Пример

getCommentText Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'edit_key' => 'edit_key_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->getCommentText($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getCommentText: ', $e->getMessage(), PHP_EOL;
26}
27

getCommentVoteUserNames Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
commentIdstringpathYes
dirintegerqueryYes
ssostringqueryNo

Отговор

Връща: GetCommentVoteUserNamesSuccessResponse

Пример

Пример за getCommentVoteUserNames
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$dir = 56; // int
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->getCommentVoteUserNames($tenant_id, $comment_id, $dir, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->getCommentVoteUserNames: ', $e->getMessage(), PHP_EOL;
24}
25

lockComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

lockComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->lockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->lockComment: ', $e->getMessage(), PHP_EOL;
24}
25

pinComment Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringпътДа
commentIdstringпътДа
broadcastIdstringзаявкаДа
ssostringзаявкаНе

Отговор

Връща: ChangeCommentPinStatusResponse

Пример

pinComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$broadcast_id = 'broadcast_id_example'; // низ
16$sso = 'sso_example'; // низ
17
18
19try {
20 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
24}
25

saveComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
isLivebooleanqueryНе
doSpamCheckbooleanqueryНе
sendEmailsbooleanqueryНе
populateNotificationsbooleanqueryНе

Отговор

Връща: APISaveCommentResponse

Пример

saveComment пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$create_comment_params = new \FastComments\Client\Model\CreateCommentParams(); // \FastComments\Client\Model\CreateCommentParams
21$options = [
22 'is_live' => True, // булев
23 'do_spam_check' => True, // булев
24 'send_emails' => True, // булев
25 'populate_notifications' => True, // булев
26];
27
28
29try {
30 $result = $apiInstance->saveComment($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveComment: ', $e->getMessage(), PHP_EOL;
34}
35

saveCommentsBulk Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
isLivebooleanqueryНе
doSpamCheckbooleanqueryНе
sendEmailsbooleanqueryНе
populateNotificationsbooleanqueryНе

Отговор

Връща: SaveCommentsBulkResponse

Пример

saveCommentsBulk Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте долния ред, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_comment_params = array(new \FastComments\Client\Model\CreateCommentParams()); // \FastComments\Client\Model\CreateCommentParams[]
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveCommentsBulk($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveCommentsBulk: ', $e->getMessage(), PHP_EOL;
34}
35

setCommentText Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

Отговор

Връща: PublicAPISetCommentTextResponse

Пример

setCommentText Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$comment_text_update_request = new \FastComments\Client\Model\CommentTextUpdateRequest(); // \FastComments\Client\Model\CommentTextUpdateRequest
17$options = [
18 'edit_key' => 'edit_key_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->setCommentText($tenant_id, $comment_id, $broadcast_id, $comment_text_update_request, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->setCommentText: ', $e->getMessage(), PHP_EOL;
28}
29

unBlockUserFromComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Отговор

Връща: UnblockSuccess

Пример

Пример за unBlockUserFromComment
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
22$tenant_id = 'tenant_id_example'; // string
23// string
24$id = 'id_example'; // string
25// string
26$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
27$options = [
28 'user_id' => 'user_id_example', // string
29 // string
30 'anon_user_id' => 'anon_user_id_example', // string
31 // string
32];
33
34
35try {
36 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $options);
37 print_r($result);
38} catch (Exception $e) {
39 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
40}
41

unFlagComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Отговор

Връща: FlagCommentResponse

Пример

Пример за unFlagComment
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
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25$options = [
26 'user_id' => 'user_id_example', // string
27 'anon_user_id' => 'anon_user_id_example', // string
28];
29
30
31try {
32 $result = $apiInstance->unFlagComment($tenant_id, $id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
36}
37

unLockComment Internal Link


Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

unLockComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$broadcast_id = 'broadcast_id_example'; // низ
16$sso = 'sso_example'; // низ
17
18
19try {
20 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
24}
25

unPinComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Отговор

Връща: ChangeCommentPinStatusResponse

Пример

Пример за unPinComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$broadcast_id = 'broadcast_id_example'; // низ
16$sso = 'sso_example'; // низ
17
18
19try {
20 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
24}
25

updateComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
doSpamCheckbooleanqueryNo
isLivebooleanqueryNo

Отговор

Връща: APIEmptyResponse

Пример

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

voteComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителенОписание
tenantIdstringpathYes
commentIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

Отговор

Връща: VoteResponse

Пример

Пример за voteComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$url_id = 'url_id_example'; // низ
16$broadcast_id = 'broadcast_id_example'; // низ
17$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
18$options = [
19 'session_id' => 'session_id_example', // низ
20 'sso' => 'sso_example', // низ
21];
22
23
24try {
25 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
29}
30

getCommentsForUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
userIdstringqueryNo
directionstringqueryNo
repliesToUserIdstringqueryNo
pagenumberqueryNo
includei10nbooleanqueryNo
localestringqueryNo
isCrawlerbooleanqueryNo

Отговор

Връща: GetCommentsForUserResponse

Пример

getCommentsForUser Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$options = [
14 'user_id' => 'user_id_example', // низ
15 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
16 'replies_to_user_id' => 'replies_to_user_id_example', // низ
17 'page' => 3.4, // число
18 'includei10n' => True, // булев
19 'locale' => 'locale_example', // низ
20 'is_crawler' => True, // булев
21];
22
23
24try {
25 $result = $apiInstance->getCommentsForUser($options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getCommentsForUser: ', $e->getMessage(), PHP_EOL;
29}
30

addDomainConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

Връща: AddDomainConfigResponse

Пример

addDomainConfig Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
21
22
23try {
24 $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

deleteDomainConfig Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryДа
domainstringpathДа

Response

Връща: DeleteDomainConfigResponse

Example

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

getDomainConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
domainstringpathДа

Отговор

Връща: GetDomainConfigResponse

Пример

Пример за getDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте реда по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$domain = 'domain_example'; // string
21
22
23try {
24 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

getDomainConfigs Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

Връща: GetDomainConfigsResponse

Пример

Пример за getDomainConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на упълномощаване с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Откоментирайте по-долу, за да зададете представка (напр. Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19
20
21try {
22 $result = $apiInstance->getDomainConfigs($tenant_id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getDomainConfigs: ', $e->getMessage(), PHP_EOL;
26}
27

patchDomainConfig Internal Link


Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
domainToUpdatestringpathYes

Отговор

Връща: PatchDomainConfigResponse

Пример

patchDomainConfig Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте клиента, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$domain_to_update = 'domain_to_update_example'; // string
21$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
22
23
24try {
25 $result = $apiInstance->patchDomainConfig($tenant_id, $domain_to_update, $patch_domain_config_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

putDomainConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
domainToUpdatestringpathДа

Отговор

Връща се: PutDomainConfigResponse

Пример

Пример за putDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$domain_to_update = 'domain_to_update_example'; // string
21$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
22
23
24try {
25 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

createEmailTemplate Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

Връща: CreateEmailTemplateResponse

Пример

createEmailTemplate Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на удостоверяване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
21
22
23try {
24 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

deleteEmailTemplate Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: APIEmptyResponse

Пример

deleteEmailTemplate Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизацията с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (напр. Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21
22
23try {
24 $result = $apiInstance->deleteEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

deleteEmailTemplateRenderError Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
errorIdstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

Пример за deleteEmailTemplateRenderError
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 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$error_id = 'error_id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteEmailTemplateRenderError($tenant_id, $id, $error_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteEmailTemplateRenderError: ', $e->getMessage(), PHP_EOL;
28}
29

getEmailTemplate Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: GetEmailTemplateResponse

Пример

Пример за getEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на удостоверяване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // стринг
20$id = 'id_example'; // стринг
21
22
23try {
24 $result = $apiInstance->getEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Изключение при извикване на DefaultApi->getEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

getEmailTemplateDefinitions Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: GetEmailTemplateDefinitionsResponse

Пример

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

getEmailTemplateRenderErrors Internal Link

Параметри

ИмеТипМестоположениеЗадължителенОписание
tenantIdstringqueryYes
idstringpathYes
skipnumberqueryNo

Отговор

Връща: GetEmailTemplateRenderErrorsResponse

Пример

Пример за getEmailTemplateRenderErrors
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на API ключ за оторизация: api_key
7// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, подайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21$skip = 3.4; // число с плаваща запетая
22
23
24try {
25 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
29}
30

getEmailTemplates Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
skipnumberqueryNo

Отговор

Връща: GetEmailTemplatesResponse

Пример

Пример за getEmailTemplates
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте удостоверяване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте следното, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$skip = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getEmailTemplates($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
28}
29

renderEmailTemplate Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
localestringqueryНе

Отговор

Връща: RenderEmailTemplateResponse

Пример

renderEmailTemplate Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$render_email_template_body = new \FastComments\Client\Model\RenderEmailTemplateBody(); // \FastComments\Client\Model\RenderEmailTemplateBody
21$locale = 'locale_example'; // string
22
23
24try {
25 $result = $apiInstance->renderEmailTemplate($tenant_id, $render_email_template_body, $locale);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->renderEmailTemplate: ', $e->getMessage(), PHP_EOL;
29}
30

updateEmailTemplate Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: APIEmptyResponse

Пример

updateEmailTemplate Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация на API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
22
23
24try {
25 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
29}
30

getEventLog Internal Link

req tenantId urlId userIdWS

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

Отговор

Връща: GetEventLogResponse

Пример

Пример за getEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$user_id_ws = 'user_id_ws_example'; // string
16$start_time = 56; // int
17$end_time = 56; // int
18
19
20try {
21 $result = $apiInstance->getEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

getGlobalEventLog Internal Link

req tenantId urlId userIdWS

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДа
userIdWSstringqueryДа
startTimeintegerqueryДа
endTimeintegerqueryНе

Отговор

Връща: GetEventLogResponse

Пример

Пример за getGlobalEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$user_id_ws = 'user_id_ws_example'; // string
16$start_time = 56; // int
17$end_time = 56; // int
18
19
20try {
21 $result = $apiInstance->getGlobalEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getGlobalEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

createFeedPost Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
broadcastIdstringqueryNo
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
skipDupCheckbooleanqueryNo

Отговор

Връща: CreateFeedPostsResponse

Пример

createFeedPost Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
21$options = [
22 'broadcast_id' => 'broadcast_id_example', // string
23 'is_live' => True, // bool
24 'do_spam_check' => True, // bool
25 'skip_dup_check' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->createFeedPost($tenant_id, $create_feed_post_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->createFeedPost: ', $e->getMessage(), PHP_EOL;
34}
35

createFeedPostPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: CreateFeedPostResponse

Пример

Пример за createFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->createFeedPostPublic($tenant_id, $create_feed_post_params, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->createFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

deleteFeedPostPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: DeleteFeedPostPublicResponse

Пример

Пример за deleteFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$post_id = 'post_id_example'; // низ
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // низ
17 'sso' => 'sso_example', // низ
18];
19
20
21try {
22 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

getFeedPosts Internal Link

req
tenantId
afterId

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo

Отговор

Връща: GetFeedPostsResponse

Пример

Пример за getFeedPosts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Конфигуриране на упълномощаване с 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()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // Ако искате да използвате персонализиран HTTP клиент, предайте клиента, който имплементира `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24// низ
25$options = [
26 'after_id' => 'after_id_example', // string
27 // низ
28 'limit' => 56, // int
29 // цяло
30 'tags' => array('tags_example'), // string[]
31 // низ[]
32];
33
34
35try {
36 $result = $apiInstance->getFeedPosts($tenant_id, $options);
37 print_r($result);
38} catch (Exception $e) {
39 echo 'Exception when calling DefaultApi->getFeedPosts: ', $e->getMessage(), PHP_EOL;
40}
41

getFeedPostsPublic Internal Link


req tenantId afterId

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
afterIdstringqueryНе
limitintegerqueryНе
tagsarrayqueryНе
ssostringqueryНе
isCrawlerbooleanqueryНе
includeUserInfobooleanqueryНе

Отговор

Връща: PublicFeedPostsResponse

Пример

Пример за getFeedPostsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опциионално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'limit' => 56, // int
17 'tags' => array('tags_example'), // string[]
18 'sso' => 'sso_example', // string
19 'is_crawler' => True, // bool
20 'include_user_info' => True, // bool
21];
22
23
24try {
25 $result = $apiInstance->getFeedPostsPublic($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getFeedPostsPublic: ', $e->getMessage(), PHP_EOL;
29}
30

getFeedPostsStats Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
postIdsarrayqueryДа
ssostringqueryНе

Отговор

Връща: FeedPostsStatsResponse

Пример

getFeedPostsStats Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_ids = array('post_ids_example'); // string[]
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getFeedPostsStats($tenant_id, $post_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getFeedPostsStats: ', $e->getMessage(), PHP_EOL;
23}
24

getUserReactsPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
postIdsarrayqueryNo
ssostringqueryNo

Отговор

Връща: UserReactsResponse

Пример

Пример за getUserReactsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'post_ids' => array('post_ids_example'), // string[]
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getUserReactsPublic($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

reactFeedPostPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
postIdstringpathДа
isUndobooleanqueryНе
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: ReactFeedPostResponse

Пример

reactFeedPostPublic Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
16$options = [
17 'is_undo' => True, // bool
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->reactFeedPostPublic($tenant_id, $post_id, $react_body_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->reactFeedPostPublic: ', $e->getMessage(), PHP_EOL;
28}
29

updateFeedPost Internal Link

Параметри

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

updateFeedPost Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на удостоверяване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$feed_post = new \FastComments\Client\Model\FeedPost(); // \FastComments\Client\Model\FeedPost
22
23
24try {
25 $result = $apiInstance->updateFeedPost($tenant_id, $id, $feed_post);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateFeedPost: ', $e->getMessage(), PHP_EOL;
29}
30

updateFeedPostPublic Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: CreateFeedPostResponse

Пример

updateFeedPostPublic Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте ваш клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->updateFeedPostPublic($tenant_id, $post_id, $update_feed_post_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->updateFeedPostPublic: ', $e->getMessage(), PHP_EOL;
27}
28

flagCommentPublic Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
isFlaggedbooleanqueryYes
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

Пример за flagCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$is_flagged = True; // bool
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->flagCommentPublic($tenant_id, $comment_id, $is_flagged, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->flagCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

getGifLarge Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
largeInternalURLSanitizedstringqueryДа

Отговор

Връща: GifGetLargeResponse

Пример

Пример getGifLarge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$large_internal_url_sanitized = 'large_internal_url_sanitized_example'; // низ
15
16
17try {
18 $result = $apiInstance->getGifLarge($tenant_id, $large_internal_url_sanitized);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getGifLarge: ', $e->getMessage(), PHP_EOL;
22}
23

getGifsSearch Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
searchstringqueryДа
localestringqueryНе
ratingstringqueryНе
pagenumberqueryНе

Отговор

Връща: GetGifsSearchResponse

Пример

getGifsSearch Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$search = 'search_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'rating' => 'rating_example', // string
18 'page' => 3.4, // float
19];
20
21
22try {
23 $result = $apiInstance->getGifsSearch($tenant_id, $search, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->getGifsSearch: ', $e->getMessage(), PHP_EOL;
27}
28

getGifsTrending Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
localestringqueryNo
ratingstringqueryNo
pagenumberqueryNo

Отговор

Връща: GetGifsTrendingResponse

Пример

getGifsTrending Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'locale' => 'locale_example', // низ
16 'rating' => 'rating_example', // низ
17 'page' => 3.4, // число
18];
19
20
21try {
22 $result = $apiInstance->getGifsTrending($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getGifsTrending: ', $e->getMessage(), PHP_EOL;
26}
27

addHashTag Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

Връща: CreateHashTagResponse

Пример

Пример за addHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте долния ред за добавяне на префикс (например Bearer) към API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, подайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_hash_tag_body = new \FastComments\Client\Model\CreateHashTagBody(); // \FastComments\Client\Model\CreateHashTagBody
21
22
23try {
24 $result = $apiInstance->addHashTag($tenant_id, $create_hash_tag_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTag: ', $e->getMessage(), PHP_EOL;
28}
29

addHashTagsBulk Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: BulkCreateHashTagsResponse

Пример

Пример за addHashTagsBulk
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
21
22
23try {
24 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
28}
29

deleteHashTag Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
tagstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

Пример за deleteHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте API ключ за оторизация: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$tag = 'tag_example'; // низ
21$delete_hash_tag_request_body = new \FastComments\Client\Model\DeleteHashTagRequestBody(); // \FastComments\Client\Model\DeleteHashTagRequestBody
22
23
24try {
25 $result = $apiInstance->deleteHashTag($tenant_id, $tag, $delete_hash_tag_request_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

getHashTags Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
pagenumberqueryНе

Отговор

Връща: GetHashTagsResponse

Пример

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

patchHashTag Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
tagstringpathДа

Отговор

Връща: UpdateHashTagResponse

Пример

Пример за patchHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на упълномощаване с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключ, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате потребителски HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$tag = 'tag_example'; // string
20$update_hash_tag_body = new \FastComments\Client\Model\UpdateHashTagBody(); // \FastComments\Client\Model\UpdateHashTagBody
21
22
23try {
24 $result = $apiInstance->patchHashTag($tenant_id, $tag, $update_hash_tag_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->patchHashTag: ', $e->getMessage(), PHP_EOL;
28}
29

deleteModerationVote Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
voteIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: VoteDeleteResponse

Пример

Пример за deleteModerationVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$vote_id = 'vote_id_example'; // string
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->deleteModerationVote($tenant_id, $comment_id, $vote_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->deleteModerationVote: ', $e->getMessage(), PHP_EOL;
27}
28

getApiComments Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
pagenumberqueryNo
countnumberqueryNo
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
demobooleanqueryNo
ssostringqueryNo

Отговор

Връща: ModerationAPIGetCommentsResponse

Пример

Пример за getApiComments
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'page' => 3.4, // число с плаваща запетая
16 'count' => 3.4, // число с плаваща запетая
17 'text_search' => 'text_search_example', // низ
18 'by_ip_from_comment' => 'by_ip_from_comment_example', // низ
19 'filters' => 'filters_example', // низ
20 'search_filters' => 'search_filters_example', // низ
21 'sorts' => 'sorts_example', // низ
22 'demo' => True, // булев
23 'sso' => 'sso_example', // низ
24];
25
26
27try {
28 $result = $apiInstance->getApiComments($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling ModerationApi->getApiComments: ', $e->getMessage(), PHP_EOL;
32}
33

getApiExportStatus Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
batchJobIdstringqueryNo
ssostringqueryNo

Response

Returns: ModerationExportStatusResponse

Example

getApiExportStatus Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'batch_job_id' => 'batch_job_id_example', // низ
16 'sso' => 'sso_example', // низ
17];
18
19
20try {
21 $result = $apiInstance->getApiExportStatus($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getApiExportStatus: ', $e->getMessage(), PHP_EOL;
25}
26

getApiIds Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
afterIdstringqueryNo
demobooleanqueryNo
ssostringqueryNo

Response

Връща: ModerationAPIGetCommentIdsResponse

Example

Пример за getApiIds
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'text_search' => 'text_search_example', // низ
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // низ
17 'filters' => 'filters_example', // низ
18 'search_filters' => 'search_filters_example', // низ
19 'after_id' => 'after_id_example', // низ
20 'demo' => True, // булев
21 'sso' => 'sso_example', // низ
22];
23
24
25try {
26 $result = $apiInstance->getApiIds($tenant_id, $options);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling ModerationApi->getApiIds: ', $e->getMessage(), PHP_EOL;
30}
31

getBanUsersFromComment Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
ssostringqueryНе

Response

Връща: GetBannedUsersFromCommentResponse

Example

Пример за getBanUsersFromComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getBanUsersFromComment($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getBanUsersFromComment: ', $e->getMessage(), PHP_EOL;
23}
24

getCommentBanStatus Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Отговор

Връща: GetCommentBanStatusResponse

Пример

Пример за getCommentBanStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getCommentBanStatus($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentBanStatus: ', $e->getMessage(), PHP_EOL;
23}
24

getCommentChildren Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Отговор

Връща: ModerationAPIChildCommentsResponse

Пример

Пример за getCommentChildren
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getCommentChildren($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentChildren: ', $e->getMessage(), PHP_EOL;
23}
24

getCount Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
text-searchstringqueryНе
byIPFromCommentstringqueryНе
filterstringqueryНе
searchFiltersstringqueryНе
demobooleanqueryНе
ssostringqueryНе

Отговор

Връща: ModerationAPICountCommentsResponse

Пример

Пример за getCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filter' => 'filter_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'demo' => True, // bool
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->getCount($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->getCount: ', $e->getMessage(), PHP_EOL;
29}
30

getCounts Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
ssostringqueryNo

Отговор

Връща: GetBannedUsersCountResponse

Пример

Пример за getCounts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getCounts($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getCounts: ', $e->getMessage(), PHP_EOL;
22}
23

getLogs Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
ssostringqueryНе

Отговор

Връща: ModerationAPIGetLogsResponse

Пример

Пример за getLogs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$sso = 'sso_example'; // низ
16
17
18try {
19 $result = $apiInstance->getLogs($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getLogs: ', $e->getMessage(), PHP_EOL;
23}
24

getManualBadges Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
ssostringqueryНе

Отговор

Връща: GetTenantManualBadgesResponse

Пример

Пример за getManualBadges
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getManualBadges($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getManualBadges: ', $e->getMessage(), PHP_EOL;
22}
23

getManualBadgesForUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
badgesUserIdstringqueryНе
commentIdstringqueryНе
ssostringqueryНе

Отговор

Връща: GetUserManualBadgesResponse

Пример

Пример за getManualBadgesForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'badges_user_id' => 'badges_user_id_example', // низ
16 'comment_id' => 'comment_id_example', // низ
17 'sso' => 'sso_example', // низ
18];
19
20
21try {
22 $result = $apiInstance->getManualBadgesForUser($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->getManualBadgesForUser: ', $e->getMessage(), PHP_EOL;
26}
27

getModerationComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
includeEmailbooleanqueryНе
includeIPbooleanqueryНе
ssostringqueryНе

Отговор

Връща: ModerationAPICommentResponse

Пример

getModerationComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван като по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'include_email' => True, // bool
17 'include_ip' => True, // bool
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->getModerationComment($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getModerationComment: ', $e->getMessage(), PHP_EOL;
27}
28

getModerationCommentText Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Отговор

Връща: GetCommentTextResponse

Пример

Пример за getModerationCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getModerationCommentText($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getModerationCommentText: ', $e->getMessage(), PHP_EOL;
23}
24

getPreBanSummary Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

Response

Връща: PreBanSummary

Example

Пример за getPreBanSummary
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'include_by_user_id_and_email' => True, // bool
17 'include_by_ip' => True, // bool
18 'include_by_email_domain' => True, // bool
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->getPreBanSummary($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->getPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

getSearchCommentsSummary Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
valuestringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
ssostringqueryNo

Отговор

Returns: ModerationCommentSearchResponse

Пример

Пример getSearchCommentsSummary
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'filters' => 'filters_example', // string
17 'search_filters' => 'search_filters_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->getSearchCommentsSummary($tenant_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getSearchCommentsSummary: ', $e->getMessage(), PHP_EOL;
27}
28

getSearchPages Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Отговор

Връща: ModerationPageSearchResponse

Пример

Пример за getSearchPages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако желаете да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опция, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'value' => 'value_example', // низ
16 'sso' => 'sso_example', // низ
17];
18
19
20try {
21 $result = $apiInstance->getSearchPages($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchPages: ', $e->getMessage(), PHP_EOL;
25}
26

getSearchSites Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Отговор

Връща: ModerationSiteSearchResponse

Пример

getSearchSites Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционно, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$options = [
15 'value' => 'value_example', // низ
16 'sso' => 'sso_example', // низ
17];
18
19
20try {
21 $result = $apiInstance->getSearchSites($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Изключение при извикване ModerationApi->getSearchSites: ', $e->getMessage(), PHP_EOL;
25}
26

getSearchSuggest Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
text-searchstringqueryНе
ssostringqueryНе

Отговор

Връща: ModerationSuggestResponse

Пример

Пример за getSearchSuggest
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchSuggest($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSuggest: ', $e->getMessage(), PHP_EOL;
25}
26

getSearchUsers Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Отговор

Връща: ModerationUserSearchResponse

Пример

getSearchUsers Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchUsers($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchUsers: ', $e->getMessage(), PHP_EOL;
25}
26

getTrustFactor Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
userIdstringqueryNo
ssostringqueryNo

Отговор

Връща: GetUserTrustFactorResponse

Пример

Пример за getTrustFactor
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getTrustFactor($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getTrustFactor: ', $e->getMessage(), PHP_EOL;
25}
26

getUserBanPreference Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
ssostringqueryНе

Response

Връща: APIModerateGetUserBanPreferencesResponse

Пример

getUserBanPreference Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте ваш клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getUserBanPreference($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getUserBanPreference: ', $e->getMessage(), PHP_EOL;
22}
23

getUserInternalProfile Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringqueryNo
ssostringqueryNo

Отговор

Връща: GetUserInternalProfileResponse

Пример

Пример за getUserInternalProfile
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'comment_id' => 'comment_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getUserInternalProfile($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getUserInternalProfile: ', $e->getMessage(), PHP_EOL;
25}
26

postAdjustCommentVotes Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: AdjustVotesResponse

Пример

postAdjustCommentVotes Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$adjust_comment_votes_params = new \FastComments\Client\Model\AdjustCommentVotesParams(); // \FastComments\Client\Model\AdjustCommentVotesParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // низ
18 'sso' => 'sso_example', // низ
19];
20
21
22try {
23 $result = $apiInstance->postAdjustCommentVotes($tenant_id, $comment_id, $adjust_comment_votes_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postAdjustCommentVotes: ', $e->getMessage(), PHP_EOL;
27}
28

postApiExport Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
text-searchstringqueryНе
byIPFromCommentstringqueryНе
filtersstringqueryНе
searchFiltersstringqueryНе
sortsstringqueryНе
ssostringqueryНе

Отговор

Връща: ModerationExportResponse

Пример

postApiExport Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filters' => 'filters_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'sorts' => 'sorts_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->postApiExport($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->postApiExport: ', $e->getMessage(), PHP_EOL;
29}
30

postBanUserFromComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
banEmailbooleanqueryNo
banEmailDomainbooleanqueryNo
banIPbooleanqueryNo
deleteAllUsersCommentsbooleanqueryNo
bannedUntilstringqueryNo
isShadowBanbooleanqueryNo
updateIdstringqueryNo
banReasonstringqueryNo
ssostringqueryNo

Отговор

Returns: BanUserFromCommentResult

Пример

Пример за postBanUserFromComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\ModerationApi(
8// // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9// // Това е опционално, `GuzzleHttp\Client` ще бъде използвано по подразбиране.
10// new GuzzleHttp\Client()
11// );
12
13$tenant_id = 'tenant_id_example'; // стринг
14$comment_id = 'comment_id_example'; // стринг
15$options = [
16 'ban_email' => True, // булев
17 'ban_email_domain' => True, // булев
18 'ban_ip' => True, // булев
19 'delete_all_users_comments' => True, // булев
20 'banned_until' => 'banned_until_example', // стринг
21 'is_shadow_ban' => True, // булев
22 'update_id' => 'update_id_example', // стринг
23 'ban_reason' => 'ban_reason_example', // стринг
24 'sso' => 'sso_example', // стринг
25];
26
27
28try {
29 $result = $apiInstance->postBanUserFromComment($tenant_id, $comment_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling ModerationApi->postBanUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

postBanUserUndo Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
ssostringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

postBanUserUndo Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$ban_user_undo_params = new \FastComments\Client\Model\BanUserUndoParams(); // \FastComments\Client\Model\BanUserUndoParams
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->postBanUserUndo($tenant_id, $ban_user_undo_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postBanUserUndo: ', $e->getMessage(), PHP_EOL;
23}
24

postBulkPreBanSummary Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
includeByUserIdAndEmailbooleanqueryНе
includeByIPbooleanqueryНе
includeByEmailDomainbooleanqueryНе
ssostringqueryНе

Отговор

Връща: BulkPreBanSummary

Пример

postBulkPreBanSummary Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$bulk_pre_ban_params = new \FastComments\Client\Model\BulkPreBanParams(); // \FastComments\Client\Model\BulkPreBanParams
15$options = [
16 'include_by_user_id_and_email' => True, // булев
17 'include_by_ip' => True, // булев
18 'include_by_email_domain' => True, // булев
19 'sso' => 'sso_example', // низ
20];
21
22
23try {
24 $result = $apiInstance->postBulkPreBanSummary($tenant_id, $bulk_pre_ban_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postBulkPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

postCommentsByIds Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
ssostringqueryНе

Отговор

Връща: ModerationAPIChildCommentsResponse

Пример

postCommentsByIds Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comments_by_ids_params = new \FastComments\Client\Model\CommentsByIdsParams(); // \FastComments\Client\Model\CommentsByIdsParams
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->postCommentsByIds($tenant_id, $comments_by_ids_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postCommentsByIds: ', $e->getMessage(), PHP_EOL;
23}
24

postFlagComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

postFlagComment пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате собствен HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

postRemoveComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: PostRemoveCommentApiResponse

Пример

postRemoveComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // стринг
14$comment_id = 'comment_id_example'; // стринг
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // стринг
17 'sso' => 'sso_example', // стринг
18];
19
20
21try {
22 $result = $apiInstance->postRemoveComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRemoveComment: ', $e->getMessage(), PHP_EOL;
26}
27

postRestoreDeletedComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

postRestoreDeletedComment Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postRestoreDeletedComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRestoreDeletedComment: ', $e->getMessage(), PHP_EOL;
26}
27

postSetCommentApprovalStatus Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
approvedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: SetCommentApprovedResponse

Пример

postSetCommentApprovalStatus Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва като по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'approved' => True, // bool
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentApprovalStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentApprovalStatus: ', $e->getMessage(), PHP_EOL;
27}
28

postSetCommentReviewStatus Internal Link

Параметри

ИмеТипМестоположениеЗадължителенОписание
tenantIdstringqueryYes
commentIdstringpathYes
reviewedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

postSetCommentReviewStatus Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте ваш клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван като по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'reviewed' => True, // bool
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentReviewStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentReviewStatus: ', $e->getMessage(), PHP_EOL;
27}
28

postSetCommentSpamStatus Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
spambooleanqueryНе
permNotSpambooleanqueryНе
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

postSetCommentSpamStatus Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използвано по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'spam' => True, // bool
17 'perm_not_spam' => True, // bool
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->postSetCommentSpamStatus($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postSetCommentSpamStatus: ', $e->getMessage(), PHP_EOL;
28}
29

postSetCommentText Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Отговор

Връща: SetCommentTextResponse

Пример

postSetCommentText Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$comment_id = 'comment_id_example'; // низ
15$set_comment_text_params = new \FastComments\Client\Model\SetCommentTextParams(); // \FastComments\Client\Model\SetCommentTextParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // низ
18 'sso' => 'sso_example', // низ
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentText($tenant_id, $comment_id, $set_comment_text_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentText: ', $e->getMessage(), PHP_EOL;
27}
28

postUnFlagComment Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

Пример за postUnFlagComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postUnFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postUnFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

postVote Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringpathДа
directionstringqueryНе
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: VoteResponse

Пример

postVote Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // стринг
14$comment_id = 'comment_id_example'; // стринг
15$options = [
16 'direction' => 'direction_example', // стринг
17 'broadcast_id' => 'broadcast_id_example', // стринг
18 'sso' => 'sso_example', // стринг
19];
20
21
22try {
23 $result = $apiInstance->postVote($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postVote: ', $e->getMessage(), PHP_EOL;
27}
28

putAwardBadge Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
badgeIdstringqueryДа
userIdstringqueryНе
commentIdstringqueryНе
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Връща: AwardUserBadgeResponse

Пример

Пример putAwardBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва като подразбиращо се.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$badge_id = 'badge_id_example'; // низ
15$options = [
16 'user_id' => 'user_id_example', // низ
17 'comment_id' => 'comment_id_example', // низ
18 'broadcast_id' => 'broadcast_id_example', // низ
19 'sso' => 'sso_example', // низ
20];
21
22
23try {
24 $result = $apiInstance->putAwardBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putAwardBadge: ', $e->getMessage(), PHP_EOL;
28}
29

putCloseThread Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

Пример за putCloseThread
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$url_id = 'url_id_example'; // низ
15$sso = 'sso_example'; // низ
16
17
18try {
19 $result = $apiInstance->putCloseThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putCloseThread: ', $e->getMessage(), PHP_EOL;
23}
24

putRemoveBadge Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
badgeIdstringqueryДа
userIdstringqueryНе
commentIdstringqueryНе
broadcastIdstringqueryНе
ssostringqueryНе

Отговор

Returns: RemoveUserBadgeResponse

Пример

putRemoveBadge Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$badge_id = 'badge_id_example'; // низ
15$options = [
16 'user_id' => 'user_id_example', // низ
17 'comment_id' => 'comment_id_example', // низ
18 'broadcast_id' => 'broadcast_id_example', // низ
19 'sso' => 'sso_example', // низ
20];
21
22
23try {
24 $result = $apiInstance->putRemoveBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putRemoveBadge: ', $e->getMessage(), PHP_EOL;
28}
29

putReopenThread Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

Отговор

Връща: APIEmptyResponse

Пример

putReopenThread Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->putReopenThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putReopenThread: ', $e->getMessage(), PHP_EOL;
23}
24

setTrustFactor Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
userIdstringqueryНе
trustFactorstringqueryНе
ssostringqueryНе

Response

Връща: SetUserTrustFactorResponse

Example

Пример за setTrustFactor
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // стринг
14$options = [
15 'user_id' => 'user_id_example', // стринг
16 'trust_factor' => 'trust_factor_example', // стринг
17 'sso' => 'sso_example', // стринг
18];
19
20
21try {
22 $result = $apiInstance->setTrustFactor($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->setTrustFactor: ', $e->getMessage(), PHP_EOL;
26}
27

createModerator Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: CreateModeratorResponse

Пример

Пример за createModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте долния ред за задаване на префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_moderator_body = new \FastComments\Client\Model\CreateModeratorBody(); // \FastComments\Client\Model\CreateModeratorBody
21
22
23try {
24 $result = $apiInstance->createModerator($tenant_id, $create_moderator_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createModerator: ', $e->getMessage(), PHP_EOL;
28}
29

deleteModerator Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
sendEmailstringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

deleteModerator Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21$send_email = 'send_email_example'; // низ
22
23
24try {
25 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
29}
30

getModerator Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: GetModeratorResponse

Пример

Пример getModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21
22
23try {
24 $result = $apiInstance->getModerator($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerator: ', $e->getMessage(), PHP_EOL;
28}
29

getModerators Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
skipnumberqueryНе

Отговор

Връща: GetModeratorsResponse

Пример

Пример за getModerators
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на API ключ за авторизация: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$skip = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getModerators($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerators: ', $e->getMessage(), PHP_EOL;
28}
29

sendInvite Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
fromNamestringqueryYes

Отговор

Връща: APIEmptyResponse

Пример

Пример за sendInvite
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на оторизация с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте долното, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$from_name = 'from_name_example'; // string
21
22
23try {
24 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
28}
29

updateModerator Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

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

deleteNotificationCount Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

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

getCachedNotificationCount Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: GetCachedNotificationCountResponse

Пример

Пример за getCachedNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва като по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getCachedNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getCachedNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

getNotificationCount Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
userIdstringqueryНе
urlIdstringqueryНе
fromCommentIdstringqueryНе
viewedbooleanqueryНе
typestringqueryНе

Отговор

Връща: GetNotificationCountResponse

Пример

Пример getNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на упълномощаване с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Откоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'user_id' => 'user_id_example', // string
21 'url_id' => 'url_id_example', // string
22 'from_comment_id' => 'from_comment_id_example', // string
23 'viewed' => True, // bool
24 'type' => 'type_example', // string
25];
26
27
28try {
29 $result = $apiInstance->getNotificationCount($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
33}
34

getNotifications Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo
skipnumberqueryNo

Отговор

Връща: GetNotificationsResponse

Пример

Пример за getNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на API ключ за упълномощаване: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментарирайте долното, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'url_id' => 'url_id_example', // string
23 'from_comment_id' => 'from_comment_id_example', // string
24 'viewed' => True, // bool
25 'type' => 'type_example', // string
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getNotifications($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
35}
36

updateNotification Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
userIdstringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

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

createV1PageReact Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДа
titlestringqueryНе

Отговор

Връща: CreateV1PageReact

Пример

Пример за createV1PageReact
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате потребителски HTTP клиент, предайте своя клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$title = 'title_example'; // string
16
17
18try {
19 $result = $apiInstance->createV1PageReact($tenant_id, $url_id, $title);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->createV1PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

createV2PageReact Internal Link

Параметри

ИмеТипЛокацияЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДа
idstringqueryДа
titlestringqueryНе

Отговор

Връща: CreateV1PageReact

Пример

createV2PageReact Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16$title = 'title_example'; // string
17
18
19try {
20 $result = $apiInstance->createV2PageReact($tenant_id, $url_id, $id, $title);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Изключение при извикване на PublicApi->createV2PageReact: ', $e->getMessage(), PHP_EOL;
24}
25

deleteV1PageReact Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДа

Отговор

Returns: CreateV1PageReact

Пример

deleteV1PageReact Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15
16
17try {
18 $result = $apiInstance->deleteV1PageReact($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->deleteV1PageReact: ', $e->getMessage(), PHP_EOL;
22}
23

deleteV2PageReact Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

Отговор

Връща: CreateV1PageReact

Пример

deleteV2PageReact Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16
17
18try {
19 $result = $apiInstance->deleteV2PageReact($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->deleteV2PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

getV1PageLikes Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДа

Response

Returns: GetV1PageLikes

Example

getV1PageLikes Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15
16
17try {
18 $result = $apiInstance->getV1PageLikes($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV1PageLikes: ', $e->getMessage(), PHP_EOL;
22}
23

getV2PageReacts Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДа

Отговор

Връща: GetV2PageReacts

Пример

getV2PageReacts Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$url_id = 'url_id_example'; // низ
15
16
17try {
18 $result = $apiInstance->getV2PageReacts($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV2PageReacts: ', $e->getMessage(), PHP_EOL;
22}
23

getV2PageReactUsers Internal Link

Параметри

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

Отговор

Връща: GetV2PageReactUsersResponse

Пример

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

addPage Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Response

Връща: AddPageAPIResponse

Пример

addPage Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Конфигуриране на оторизация с API ключ: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Откоментирайте реда по-долу, за да зададете префикс (например 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
22$tenant_id = 'tenant_id_example'; // string
23// низ
24$create_api_page_data = new \FastComments\Client\Model\CreateAPIPageData(); // \FastComments\Client\Model\CreateAPIPageData
25
26
27try {
28 $result = $apiInstance->addPage($tenant_id, $create_api_page_data);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->addPage: ', $e->getMessage(), PHP_EOL;
32}
33

deletePage Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Response

Връща: DeletePageAPIResponse

Example

deletePage Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на упълномощаване с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е незадължително, `GuzzleHttp\Client` ще бъде използван по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21
22try {
23 $result = $apiInstance->deletePage($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deletePage: ', $e->getMessage(), PHP_EOL;
27}
28

getOfflineUsers Internal Link

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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesИдентификатор на URL на страницата (почистен от страна на сървъра).
afterNamestringqueryNoКурсор: подайте nextAfterName от предишния отговор.
afterUserIdstringqueryNoТурен брейк за курсора: подайте nextAfterUserId от предишния отговор. Задължително, когато afterName е зададен, за да не се изпускат записи при равенство на имената.

Response

Returns: PageUsersOfflineResponse

Example

getOfflineUsers Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | Идентификатор на URL на страницата (почистен от страна на сървъра).
15$options = [
16 'after_name' => 'after_name_example', // string | Курсор: подайте nextAfterName от предишния отговор.
17 'after_user_id' => 'after_user_id_example', // string | Турен брейк за курсора: подайте nextAfterUserId от предишния отговор. Задължително, когато afterName е зададен, за да не се изпускат записи при равенство на имената.
18];
19
20
21try {
22 $result = $apiInstance->getOfflineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOfflineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

getOnlineUsers Internal Link

Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
urlIdstringqueryДаИдентификатор на URL на страницата (почистено от страна на сървъра).
afterNamestringqueryНеКурсор: предайте nextAfterName от предишния отговор.
afterUserIdstringqueryНеКурсор, разрешаващ равенства: предайте nextAfterUserId от предишния отговор. Задължително, когато afterName е зададен, за да равенствата по име не премахват записи.

Response

Returns: PageUsersOnlineResponse

Example

Пример getOnlineUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | Идентификатор на URL на страницата (почистено от страна на сървъра).
15$options = [
16 'after_name' => 'after_name_example', // string | Курсор: предайте nextAfterName от предишния отговор.
17 'after_user_id' => 'after_user_id_example', // string | Курсор, разрешаващ равенства: предайте nextAfterUserId от предишния отговор. Задължително, когато afterName е зададен, за да равенствата по име не премахват записи.
18];
19
20
21try {
22 $result = $apiInstance->getOnlineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOnlineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

getPageByURLId Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
urlIdstringqueryДа

Отговор

Връща: GetPageByURLIdAPIResponse

Пример

getPageByURLId Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте долното, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате собствен HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$url_id = 'url_id_example'; // низ
21
22
23try {
24 $result = $apiInstance->getPageByURLId($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
28}
29

getPages Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

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

getPagesPublic Internal Link

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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
cursorstringqueryNoНепрозрачен курсор за пагинация, връщан като nextCursor от предишна заявка. Свързан със същия sortBy.
limitintegerqueryNo1..200, default 50
qstringqueryNoОпционален филтър за заглавие, нечувствителен към регистъра.
sortBystringqueryNoРед на сортиране. updatedAt (по подразбиране, най-новите първо), commentCount (най-много коментари първо), или title (по азбучен ред).
hasCommentsbooleanqueryNoАко е true, връща само страници с поне един коментар.

Response

Returns: GetPublicPagesResponse

Example

getPagesPublic пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
9 // This is optional, `GuzzleHttp\Client` will be used as default.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'cursor' => 'cursor_example', // string | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.
16 'limit' => 56, // int | 1..200, default 50
17 'q' => 'q_example', // string | Optional case-insensitive title prefix filter.
18 'sort_by' => new \FastComments\Client\Model\\FastComments\Client\Model\PagesSortBy(), // \FastComments\Client\Model\PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).
19 'has_comments' => True, // bool | If true, only return pages with at least one comment.
20];
21
22
23try {
24 $result = $apiInstance->getPagesPublic($tenant_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->getPagesPublic: ', $e->getMessage(), PHP_EOL;
28}
29

getUsersInfo Internal Link


Масова информация за потребители за наемател. При зададени userIds, връща информация за показване от User / SSOUser. Използва се от уиджета за коментари, за да обогати потребители, които току‑що се появят чрез събитие за присъствие. Няма контекст на страница: поверителността се прилага еднакво (частните профили се маскират).

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathДа
idsstringqueryДаUserIds, разделени със запетая.

Response

Returns: PageUsersInfoResponse

Example

Пример за getUsersInfo
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$ids = 'ids_example'; // string | UserIds, разделени със запетая.
15
16
17try {
18 $result = $apiInstance->getUsersInfo($tenant_id, $ids);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUsersInfo: ', $e->getMessage(), PHP_EOL;
22}
23

patchPage Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: PatchPageAPIResponse

Пример

patchPage Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация на API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по желание, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_api_page_data = new \FastComments\Client\Model\UpdateAPIPageData(); // \FastComments\Client\Model\UpdateAPIPageData
22
23
24try {
25 $result = $apiInstance->patchPage($tenant_id, $id, $update_api_page_data);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchPage: ', $e->getMessage(), PHP_EOL;
29}
30

deletePendingWebhookEvent Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: APIEmptyResponse

Пример

Пример за deletePendingWebhookEvent
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на упълномощаване с API ключ: api_key
6// Разкоментирайте следното, за да зададете префикс (напр. Bearer) за API ключа, ако е необходимо
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
12 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // низ
18$id = 'id_example'; // низ
19
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

getPendingWebhookEventCount Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo

Отговор

Връща: GetPendingWebhookEventCountResponse

Пример

Пример за getPendingWebhookEventCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'comment_id' => 'comment_id_example', // string
22 'external_id' => 'external_id_example', // string
23 'event_type' => 'event_type_example', // string
24 'type' => 'type_example', // string
25 'domain' => 'domain_example', // string
26 'attempt_count_gt' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getPendingWebhookEventCount($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getPendingWebhookEventCount: ', $e->getMessage(), PHP_EOL;
35}
36

getPendingWebhookEvents Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo
skipnumberqueryNo

Отговор

Връща: GetPendingWebhookEventsResponse

Пример

Пример за getPendingWebhookEvents
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'comment_id' => 'comment_id_example', // string
22 'external_id' => 'external_id_example', // string
23 'event_type' => 'event_type_example', // string
24 'type' => 'type_example', // string
25 'domain' => 'domain_example', // string
26 'attempt_count_gt' => 3.4, // float
27 'skip' => 3.4, // float
28];
29
30
31try {
32 $result = $apiInstance->getPendingWebhookEvents($tenant_id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->getPendingWebhookEvents: ', $e->getMessage(), PHP_EOL;
36}
37

createQuestionConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: CreateQuestionConfigResponse

Пример

Пример за createQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (напр. Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, подайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

deleteQuestionConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

deleteQuestionConfig Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // стринг
20$id = 'id_example'; // стринг
21
22
23try {
24 $result = $apiInstance->deleteQuestionConfig($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

getQuestionConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Returns: GetQuestionConfigResponse

Пример

Пример за getQuestionConfig
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()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
12// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
13
14
15$apiInstance = new FastComments\Client\Api\DefaultApi(
16 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
17 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
18 // This is optional, `GuzzleHttp\Client` will be used as default.
19 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
20 new GuzzleHttp\Client(),
21 $config
22);
23
24$tenant_id = 'tenant_id_example'; // string
25$id = 'id_example'; // string
26
27
28try {
29 $result = $apiInstance->getQuestionConfig($tenant_id, $id);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getQuestionConfig: ', $e->getMessage(), PHP_EOL;
33}
34

getQuestionConfigs Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
skipnumberqueryНе

Отговор

Връща: GetQuestionConfigsResponse

Пример

Пример за getQuestionConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключ, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // стринг
20$skip = 3.4; // дробно
21
22
23try {
24 $result = $apiInstance->getQuestionConfigs($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionConfigs: ', $e->getMessage(), PHP_EOL;
28}
29

updateQuestionConfig Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

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

createQuestionResult Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: CreateQuestionResultResponse

Пример

Пример за createQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на API ключ за авторизация: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Откоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте ваш клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
21
22
23try {
24 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

deleteQuestionResult Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptyResponse

Пример

deleteQuestionResult Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация за API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, при нужда
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // стринг
20$id = 'id_example'; // стринг
21
22
23try {
24 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

getQuestionResult Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: GetQuestionResultResponse

Пример

Пример за getQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключ, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате собствен HTTP клиент, подайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getQuestionResult($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

getQuestionResults Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
urlIdstringqueryНе
userIdstringqueryНе
startDatestringqueryНе
questionIdstringqueryНе
questionIdsstringqueryНе
skipnumberqueryНе

Отговор

Връща: GetQuestionResultsResponse

Пример

Пример getQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'url_id' => 'url_id_example', // string
22 'user_id' => 'user_id_example', // string
23 'start_date' => 'start_date_example', // string
24 'question_id' => 'question_id_example', // string
25 'question_ids' => 'question_ids_example', // string
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getQuestionResults($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
35}
36

updateQuestionResult Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Response

Връща: APIEmptyResponse

Example

updateQuestionResult Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, като подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_question_result_body = new \FastComments\Client\Model\UpdateQuestionResultBody(); // \FastComments\Client\Model\UpdateQuestionResultBody
22
23
24try {
25 $result = $apiInstance->updateQuestionResult($tenant_id, $id, $update_question_result_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateQuestionResult: ', $e->getMessage(), PHP_EOL;
29}
30

aggregateQuestionResults Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

Response

Връща: AggregateQuestionResultsResponse

Пример

aggregateQuestionResults Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key // Конфигуриране на удостоверяване с 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 // Махнете коментара от реда по-долу, за да зададете префикс (например 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`. // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default. // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'question_id' => 'question_id_example', // string
22 'question_ids' => array('question_ids_example'), // string[]
23 'url_id' => 'url_id_example', // string
24 'time_bucket' => new \FastComments\Client\Model\\FastComments\Client\Model\AggregateTimeBucket(), // \FastComments\Client\Model\AggregateTimeBucket
25 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
26 'force_recalculate' => True, // bool
27];
28
29
30try {
31 $result = $apiInstance->aggregateQuestionResults($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->aggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
35}
36

bulkAggregateQuestionResults Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
forceRecalculatebooleanqueryНе

Отговор

Връща: BulkAggregateQuestionResultsResponse

Пример

bulkAggregateQuestionResults Пример
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
22$tenant_id = 'tenant_id_example'; // низ
23$bulk_aggregate_question_results_request = new \FastComments\Client\Model\BulkAggregateQuestionResultsRequest(); // \FastComments\Client\Model\BulkAggregateQuestionResultsRequest
24$force_recalculate = True; // бул
25
26
27try {
28 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
32}
33

combineCommentsWithQuestionResults Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
questionIdstringqueryНе
questionIdsarrayqueryНе
urlIdstringqueryНе
startDatestringqueryНе
forceRecalculatebooleanqueryНе
minValuenumberqueryНе
maxValuenumberqueryНе
limitnumberqueryНе

Отговор

Връща: CombineQuestionResultsWithCommentsResponse

Пример

Пример за 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
19$tenant_id = 'tenant_id_example'; // низ
20$options = [
21 'question_id' => 'question_id_example', // низ
22 'question_ids' => array('question_ids_example'), // низ[]
23 'url_id' => 'url_id_example', // низ
24 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
25 'force_recalculate' => True, // булев
26 'min_value' => 3.4, // десетично число
27 'max_value' => 3.4, // десетично число
28 'limit' => 3.4, // десетично число
29];
30
31
32try {
33 $result = $apiInstance->combineCommentsWithQuestionResults($tenant_id, $options);
34 print_r($result);
35} catch (Exception $e) {
36 echo 'Exception when calling DefaultApi->combineCommentsWithQuestionResults: ', $e->getMessage(), PHP_EOL;
37}
38

addSSOUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

Връща: AddSSOUserAPIResponse

Пример

addSSOUser Пример
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// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
11// Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
12// This is optional, `GuzzleHttp\Client` will be used as default.
13// Това е опционално, `GuzzleHttp\Client` ще бъде използван като по подразбиране.
14
15$apiInstance = new FastComments\Client\Api\DefaultApi(
16 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
17 // Това е опционално, `GuzzleHttp\Client` ще бъде използван като по подразбиране.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$create_apisso_user_data = new \FastComments\Client\Model\CreateAPISSOUserData(); // \FastComments\Client\Model\CreateAPISSOUserData
24
25
26try {
27 $result = $apiInstance->addSSOUser($tenant_id, $create_apisso_user_data);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->addSSOUser: ', $e->getMessage(), PHP_EOL;
31}
32

deleteSSOUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
deleteCommentsbooleanqueryНе
commentDeleteModestringqueryНе

Отговор

Връща: DeleteSSOUserAPIResponse

Пример

deleteSSOUser Пример
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
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25$options = [
26 'delete_comments' => True, // bool
27 'comment_delete_mode' => 'comment_delete_mode_example', // string
28];
29
30
31try {
32 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
36}
37

getSSOUserByEmail Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
emailstringpathYes

Отговор

Връща: 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
19$tenant_id = 'tenant_id_example'; // string
20$email = 'email_example'; // string
21
22
23try {
24 $result = $apiInstance->getSSOUserByEmail($tenant_id, $email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserByEmail: ', $e->getMessage(), PHP_EOL;
28}
29

getSSOUserById Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: GetSSOUserByIdAPIResponse

Пример

Пример за getSSOUserById
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
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24
25
26try {
27 $result = $apiInstance->getSSOUserById($tenant_id, $id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
31}
32

getSSOUsers Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
skipintegerqueryНе

Отговор

Връща: GetSSOUsersResponse

Пример

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

patchSSOUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

Отговор

Връща: PatchSSOUserAPIResponse

Пример

Пример за patchSSOUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на оторизация чрез API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще бъде използван като по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
21$update_comments = True; // bool
22
23
24try {
25 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
29}
30

putSSOUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

Отговор

Returns: 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
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // булев
23
24
25try {
26 $result = $apiInstance->putSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->putSSOUser: ', $e->getMessage(), PHP_EOL;
30}
31

createSubscription Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: 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
19$tenant_id = 'tenant_id_example'; // string
20$create_api_user_subscription_data = new \FastComments\Client\Model\CreateAPIUserSubscriptionData(); // \FastComments\Client\Model\CreateAPIUserSubscriptionData
21
22
23try {
24 $result = $apiInstance->createSubscription($tenant_id, $create_api_user_subscription_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

deleteSubscription Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Ответ

Връща: DeleteSubscriptionAPIResponse

Пример

Пример за deleteSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на оторизация с API ключ: api_key
6// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
12 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // низ
18$id = 'id_example'; // низ
19$user_id = 'user_id_example'; // низ
20
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

getSubscriptions Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
userIdstringqueryНе

Отговор

Връща: GetSubscriptionsAPIResponse

Пример

Пример за getSubscriptions
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация за API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте долния ред за настройка на префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getSubscriptions($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
28}
29

updateSubscription Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringзаявкаДа
idstringпътДа
userIdstringзаявкаНе

Отговор

Връща: UpdateSubscriptionAPIResponse

Пример

Пример за updateSubscription
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
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$update_api_user_subscription_data = new \FastComments\Client\Model\UpdateAPIUserSubscriptionData(); // \FastComments\Client\Model\UpdateAPIUserSubscriptionData
25$user_id = 'user_id_example'; // string
26
27
28try {
29 $result = $apiInstance->updateSubscription($tenant_id, $id, $update_api_user_subscription_data, $user_id);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL;
33}
34

getTenantDailyUsages Internal Link

Параметри

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
yearNumbernumberqueryNo
monthNumbernumberqueryNo
dayNumbernumberqueryNo
skipnumberqueryNo

Отговор

Връща: GetTenantDailyUsagesResponse

Пример

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

createTenantPackage Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа

Отговор

Връща: CreateTenantPackageResponse

Пример

Пример за createTenantPackage
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()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
12// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
13
14
15$apiInstance = new FastComments\Client\Api\DefaultApi(
16 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
17 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
18 // This is optional, `GuzzleHttp\Client` will be used as default.
19 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
20 new GuzzleHttp\Client(),
21 $config
22);
23
24$tenant_id = 'tenant_id_example'; // string
25$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
26
27
28try {
29 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
33}
34

deleteTenantPackage Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Response

Returns: APIEmptyResponse

Example

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

getTenantPackage Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringзапитванеДа
idstringпътекаДа

Отговор

Връща: GetTenantPackageResponse

Пример

getTenantPackage пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключ, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getTenantPackage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

getTenantPackages Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
skipnumberqueryНе

Отговор

Връща: GetTenantPackagesResponse

Пример

Пример за getTenantPackages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация на API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, подайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$skip = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getTenantPackages($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantPackages: ', $e->getMessage(), PHP_EOL;
28}
29

replaceTenantPackage Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: APIEmptyResponse

Пример

replaceTenantPackage пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте авторизацията на API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментрайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
22
23
24try {
25 $result = $apiInstance->replaceTenantPackage($tenant_id, $id, $replace_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->replaceTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

updateTenantPackage Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Response

Връща: APIEmptyResponse

Пример

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

createTenantUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: CreateTenantUserResponse

Пример

createTenantUser Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_tenant_user_body = new \FastComments\Client\Model\CreateTenantUserBody(); // \FastComments\Client\Model\CreateTenantUserBody
21
22
23try {
24 $result = $apiInstance->createTenantUser($tenant_id, $create_tenant_user_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

deleteTenantUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
deleteCommentsstringqueryНе
commentDeleteModestringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

deleteTenantUser Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Конфигуриране на авторизация с 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
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$options = [
25 'delete_comments' => 'delete_comments_example', // string
26 'comment_delete_mode' => 'comment_delete_mode_example', // string
27];
28
29
30try {
31 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
35}
36

getTenantUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: GetTenantUserResponse

Пример

Пример за getTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21
22
23try {
24 $result = $apiInstance->getTenantUser($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenantUser: ', $e->getMessage(), PHP_EOL;
28}
29

getTenantUsers Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
skipnumberqueryNo

Отговор

Връща: GetTenantUsersResponse

Пример

Пример за getTenantUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на оторизация с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключ, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // стринг
19$skip = 3.4; // флоат
20
21
22try {
23 $result = $apiInstance->getTenantUsers($tenant_id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getTenantUsers: ', $e->getMessage(), PHP_EOL;
27}
28

replaceTenantUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
updateCommentsstringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

replaceTenantUser Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигурирайте API ключ за упълномощаване: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$replace_tenant_user_body = new \FastComments\Client\Model\ReplaceTenantUserBody(); // \FastComments\Client\Model\ReplaceTenantUserBody
22$update_comments = 'update_comments_example'; // string
23
24
25try {
26 $result = $apiInstance->replaceTenantUser($tenant_id, $id, $replace_tenant_user_body, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->replaceTenantUser: ', $e->getMessage(), PHP_EOL;
30}
31

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
redirectURLstringqueryНе

Response

Returns: APIEmptyResponse

Example

Пример за 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 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$redirect_url = 'redirect_url_example'; // string
22
23
24try {
25 $result = $apiInstance->sendLoginLink($tenant_id, $id, $redirect_url);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->sendLoginLink: ', $e->getMessage(), PHP_EOL;
29}
30

updateTenantUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
updateCommentsstringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

updateTenantUser Пример
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
22$tenant_id = 'tenant_id_example'; // низ
23$id = 'id_example'; // низ
24$update_tenant_user_body = new \FastComments\Client\Model\UpdateTenantUserBody(); // \FastComments\Client\Model\UpdateTenantUserBody
25$update_comments = 'update_comments_example'; // низ
26
27
28try {
29 $result = $apiInstance->updateTenantUser($tenant_id, $id, $update_tenant_user_body, $update_comments);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->updateTenantUser: ', $e->getMessage(), PHP_EOL;
33}
34

createTenant Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: CreateTenantResponse

Пример

createTenant Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте следното, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте клиента, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$create_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
21
22
23try {
24 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
28}
29

deleteTenant Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
surestringqueryНе

Отговор

Връща: APIEmptyResponse

Пример

Пример за deleteTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$sure = 'sure_example'; // string
22
23
24try {
25 $result = $apiInstance->deleteTenant($tenant_id, $id, $sure);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteTenant: ', $e->getMessage(), PHP_EOL;
29}
30

getTenant Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: GetTenantResponse

Пример

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

getTenants Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
metastringqueryНе
skipnumberqueryНе

Отговор

Връща: GetTenantsResponse

Пример

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

updateTenant Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Отговор

Връща: APIEmptyResponse

Пример

updateTenant Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на автентикация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Този ред разкоментарирайте, за да зададете префикс (напр. Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21$update_tenant_body = new \FastComments\Client\Model\UpdateTenantBody(); // \FastComments\Client\Model\UpdateTenantBody
22
23
24try {
25 $result = $apiInstance->updateTenant($tenant_id, $id, $update_tenant_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenant: ', $e->getMessage(), PHP_EOL;
29}
30

changeTicketState Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
userIdstringqueryYes
idstringpathYes

Отговор

Връща: ChangeTicketStateResponse

Пример

Пример за changeTicketState
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация за API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21$id = 'id_example'; // string
22$change_ticket_state_body = new \FastComments\Client\Model\ChangeTicketStateBody(); // \FastComments\Client\Model\ChangeTicketStateBody
23
24
25try {
26 $result = $apiInstance->changeTicketState($tenant_id, $user_id, $id, $change_ticket_state_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->changeTicketState: ', $e->getMessage(), PHP_EOL;
30}
31

createTicket Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
userIdstringqueryДа

Response

Връща: CreateTicketResponse

Example

createTicket Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21$create_ticket_body = new \FastComments\Client\Model\CreateTicketBody(); // \FastComments\Client\Model\CreateTicketBody
22
23
24try {
25 $result = $apiInstance->createTicket($tenant_id, $user_id, $create_ticket_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->createTicket: ', $e->getMessage(), PHP_EOL;
29}
30

getTicket Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Отговор

Връща: GetTicketResponse

Пример

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

getTickets Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
userIdstringqueryNo
statenumberqueryNo
skipnumberqueryNo
limitnumberqueryNo

Отговор

Връща: GetTicketsResponse

Пример

Пример за getTickets
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$options = [
21 'user_id' => 'user_id_example', // низ
22 'state' => 3.4, // плаваща точка
23 'skip' => 3.4, // плаваща точка
24 'limit' => 3.4, // плаваща точка
25];
26
27
28try {
29 $result = $apiInstance->getTickets($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getTickets: ', $e->getMessage(), PHP_EOL;
33}
34

getTranslations Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
namespacestringpathДа
componentstringpathДа
localestringqueryНе
useFullTranslationIdsbooleanqueryНе

Отговор

Връща: GetTranslationsResponse

Пример

Пример getTranslations
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$namespace = 'namespace_example'; // низ
14$component = 'component_example'; // низ
15$options = [
16 'locale' => 'locale_example', // низ
17 'use_full_translation_ids' => True, // бул
18];
19
20
21try {
22 $result = $apiInstance->getTranslations($namespace, $component, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getTranslations: ', $e->getMessage(), PHP_EOL;
26}
27

uploadImage Internal Link

Upload and resize an image

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
sizePresetstringqueryNoПредварително зададен размер: "Default" (1000x1000px) или "CrossPlatform" (създава размери за популярни устройства)
urlIdstringqueryNoИдентификатор на страницата, от която се извършва качването, за конфигуриране

Response

Returns: UploadImageResponse

Example

uploadImage Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$file = '/path/to/file.txt'; // \SplFileObject
15$options = [
16 'size_preset' => new \FastComments\Client\Model\\FastComments\Client\Model\SizePreset(), // \FastComments\Client\Model\SizePreset | Предварително зададен размер: \"Default\" (1000x1000px) или \"CrossPlatform\" (създава размери за популярни устройства)
17 'url_id' => 'url_id_example', // string | Идентификатор на страницата, от която се извършва качването, за конфигуриране
18];
19
20
21try {
22 $result = $apiInstance->uploadImage($tenant_id, $file, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->uploadImage: ', $e->getMessage(), PHP_EOL;
26}
27

getUserBadgeProgressById Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIGetUserBadgeProgressResponse

Пример

getUserBadgeProgressById Пример
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
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25
26
27try {
28 $result = $apiInstance->getUserBadgeProgressById($tenant_id, $id);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getUserBadgeProgressById: ', $e->getMessage(), PHP_EOL;
32}
33

getUserBadgeProgressByUserId Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
userIdstringpathДа

Response

Връща: APIGetUserBadgeProgressResponse

Example

Пример getUserBadgeProgressByUserId
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
22$tenant_id = 'tenant_id_example'; // низ
23$user_id = 'user_id_example'; // низ
24
25
26try {
27 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
31}
32

getUserBadgeProgressList Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
userIdstringqueryNo
limitnumberqueryNo
skipnumberqueryNo

Отговор

Връща: APIGetUserBadgeProgressListResponse

Пример

getUserBadgeProgressList Пример
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 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще се използва по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // низ
19$options = [
20 'user_id' => 'user_id_example', // низ
21 'limit' => 3.4, // десетично число
22 'skip' => 3.4, // десетично число
23];
24
25
26try {
27 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
31}
32

createUserBadge Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes

Отговор

Връща: APICreateUserBadgeResponse

Пример

Пример createUserBadge
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
22$tenant_id = 'tenant_id_example'; // string
23$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
24
25
26try {
27 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
31}
32

deleteUserBadge Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа

Response

Връща: APIEmptySuccessResponse

Пример

deleteUserBadge Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е незадължително, по подразбиране ще се използва `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Изключение при извикване на DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

getUserBadge Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIGetUserBadgeResponse

Пример

Пример за getUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на оторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (напр. Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако желаете да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$id = 'id_example'; // низ
21
22
23try {
24 $result = $apiInstance->getUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

getUserBadges Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
userIdstringqueryNo
badgeIdstringqueryNo
typenumberqueryNo
displayedOnCommentsbooleanqueryNo
limitnumberqueryNo
skipnumberqueryNo

Отговор

Връща: APIGetUserBadgesResponse

Пример

Пример за 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
19$tenant_id = 'tenant_id_example'; // стринг
20$options = [
21 'user_id' => 'user_id_example', // стринг
22 'badge_id' => 'badge_id_example', // стринг
23 'type' => 3.4, // float
24 'displayed_on_comments' => True, // булев
25 'limit' => 3.4, // float
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getUserBadges($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
35}
36

updateUserBadge Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: APIEmptySuccessResponse

Пример

updateUserBadge Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на упълномощаване чрез API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да настроите префикс (например Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който реализира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
22
23
24try {
25 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
29}
30

getUserNotificationCount Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
ssostringqueryНе

Отговор

Връща: GetUserNotificationCountResponse

Пример

getUserNotificationCount Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$sso = 'sso_example'; // низ
15
16
17try {
18 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

getUserNotifications Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
urlIdstringqueryNoИзползва се за определяне дали текущата страница е абонирана.
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

Отговор

Връща: GetMyNotificationsResponse

Пример

getUserNotifications Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'url_id' => 'url_id_example', // string | Използва се за определяне дали текущата страница е абонирана.
16 'page_size' => 56, // int
17 'after_id' => 'after_id_example', // string
18 'include_context' => True, // bool
19 'after_created_at' => 56, // int
20 'unread_only' => True, // bool
21 'dm_only' => True, // bool
22 'no_dm' => True, // bool
23 'include_translations' => True, // bool
24 'include_tenant_notifications' => True, // bool
25 'sso' => 'sso_example', // string
26];
27
28
29try {
30 $result = $apiInstance->getUserNotifications($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling PublicApi->getUserNotifications: ', $e->getMessage(), PHP_EOL;
34}
35

resetUserNotificationCount Internal Link

Параметри

ИмеТипLocationЗадължителноОписание
tenantIdstringqueryДа
ssostringqueryНе

Отговор

Връща: ResetUserNotificationsResponse

Пример

Пример за resetUserNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$sso = 'sso_example'; // низ
15
16
17try {
18 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

resetUserNotifications Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
afterIdstringqueryНе
afterCreatedAtintegerqueryНе
unreadOnlybooleanqueryНе
dmOnlybooleanqueryНе
noDmbooleanqueryНе
ssostringqueryНе

Отговор

Връща: ResetUserNotificationsResponse

Пример

пример за resetUserNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, по подразбиране ще се използва `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'after_created_at' => 56, // int
17 'unread_only' => True, // bool
18 'dm_only' => True, // bool
19 'no_dm' => True, // bool
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->resetUserNotifications($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->resetUserNotifications: ', $e->getMessage(), PHP_EOL;
29}
30

updateUserNotificationCommentSubscriptionStatus Internal Link

Enable or disable notifications for a specific comment.

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
notificationIdstringpathДа
optedInOrOutstringpathДа
commentIdstringqueryДа
ssostringqueryНе

Response

Връща: UpdateUserNotificationCommentSubscriptionStatusResponse

Пример

Пример за updateUserNotificationCommentSubscriptionStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$notification_id = 'notification_id_example'; // string
15$opted_in_or_out = 'opted_in_or_out_example'; // string
16$comment_id = 'comment_id_example'; // string
17$sso = 'sso_example'; // string
18
19
20try {
21 $result = $apiInstance->updateUserNotificationCommentSubscriptionStatus($tenant_id, $notification_id, $opted_in_or_out, $comment_id, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
25}
26

updateUserNotificationPageSubscriptionStatus Internal Link

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

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
urlIdstringqueryYes
urlstringqueryYes
pageTitlestringqueryYes
subscribedOrUnsubscribedstringpathYes
ssostringqueryNo

Response

Returns: UpdateUserNotificationPageSubscriptionStatusResponse

Пример

updateUserNotificationPageSubscriptionStatus Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$url = 'url_example'; // string
16$page_title = 'page_title_example'; // string
17$subscribed_or_unsubscribed = 'subscribed_or_unsubscribed_example'; // string
18$sso = 'sso_example'; // string
19
20
21try {
22 $result = $apiInstance->updateUserNotificationPageSubscriptionStatus($tenant_id, $url_id, $url, $page_title, $subscribed_or_unsubscribed, $sso);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
26}
27

updateUserNotificationStatus Internal Link

Параметри

ИмеТипМестоположениеЗадължителенОписание
tenantIdstringqueryYes
notificationIdstringpathYes
newStatusstringpathYes
ssostringqueryNo

Отговор

Връща: UpdateUserNotificationStatusResponse

Пример

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

getUserPresenceStatuses Internal Link

Параметри

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdWSstringqueryYes
userIdsstringqueryYes

Отговор

Връща: GetUserPresenceStatusesResponse

Пример

Пример за getUserPresenceStatuses
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id_ws = 'url_id_ws_example'; // string
15$user_ids = 'user_ids_example'; // string
16
17
18try {
19 $result = $apiInstance->getUserPresenceStatuses($tenant_id, $url_id_ws, $user_ids);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getUserPresenceStatuses: ', $e->getMessage(), PHP_EOL;
23}
24

searchUsers Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringpathYes
urlIdstringqueryYes
usernameStartsWithstringqueryNo
mentionGroupIdsarrayqueryNo
ssostringqueryNo
searchSectionstringqueryNo

Отговор

Връща: SearchUsersResult

Пример

searchUsers Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
9 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // низ
14$url_id = 'url_id_example'; // низ
15$options = [
16 'username_starts_with' => 'username_starts_with_example', // низ
17 'mention_group_ids' => array('mention_group_ids_example'), // низове[]
18 'sso' => 'sso_example', // низ
19 'search_section' => 'search_section_example', // низ
20];
21
22
23try {
24 $result = $apiInstance->searchUsers($tenant_id, $url_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
28}
29

getUser Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
idstringpathYes

Отговор

Връща: GetUserResponse

Пример

Пример за getUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Конфигуриране на упълномощаване с 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
23$tenant_id = 'tenant_id_example'; // string
24// низ
25$id = 'id_example'; // string
26// низ
27
28
29try {
30 $result = $apiInstance->getUser($tenant_id, $id);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL;
34}
35

createVote Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
commentIdstringqueryДа
directionstringqueryДа
userIdstringqueryНе
anonUserIdstringqueryНе

Отговор

Връща: VoteResponse

Пример

createVote пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация с API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте долния ред, за да зададете префикс (напр. Bearer) за API ключа, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$comment_id = 'comment_id_example'; // string
21$direction = 'direction_example'; // string
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->createVote($tenant_id, $comment_id, $direction, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
33}
34

deleteVote Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
idstringpathДа
editKeystringqueryНе

Отговор

Връща: VoteDeleteResponse

Пример

Пример за deleteVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Конфигурирайте авторизация чрез API ключ: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Разкоментирайте долното, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
10$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25$edit_key = 'edit_key_example'; // string
26
27
28try {
29 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
33}
34

getVotes Internal Link

Параметри

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryYes
urlIdstringqueryYes

Отговор

Returns: GetVotesResponse

Пример

Пример за getVotes
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Конфигуриране на оторизация с API ключ: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключа, ако е необходимо
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Ако искате да използвате персонализиран HTTP клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
13 // Това е по избор, `GuzzleHttp\Client` ще бъде използван по подразбиране.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // стринг
19$url_id = 'url_id_example'; // стринг
20
21
22try {
23 $result = $apiInstance->getVotes($tenant_id, $url_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
27}
28

getVotesForUser Internal Link

Parameters

ИмеТипМестоположениеЗадължителноОписание
tenantIdstringqueryДа
urlIdstringqueryДа
userIdstringqueryНе
anonUserIdstringqueryНе

Отговор

Връща: GetVotesForUserResponse

Пример

getVotesForUser Пример
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Конфигуриране на авторизация за API ключ: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Разкоментирайте по-долу, за да зададете префикс (например Bearer) за API ключ, ако е необходимо
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Ако искате да използвате персонализиран http клиент, предайте вашия клиент, който имплементира `GuzzleHttp\ClientInterface`.
14 // Това е опционално, `GuzzleHttp\Client` ще се използва по подразбиране.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // низ
20$url_id = 'url_id_example'; // низ
21$options = [
22 'user_id' => 'user_id_example', // низ
23 'anon_user_id' => 'anon_user_id_example', // низ
24];
25
26
27try {
28 $result = $apiInstance->getVotesForUser($tenant_id, $url_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getVotesForUser: ', $e->getMessage(), PHP_EOL;
32}
33

Нужна помощ?

Ако срещнете проблеми или имате въпроси относно PHP SDK, моля:

Принос

Приносите са добре дошли! Моля посетете GitHub хранилището за указания за приноси.