FastComments.com

FastComments PHP SDK


To je uradni PHP SDK za FastComments.

Uradni PHP SDK za API FastComments

Repozitorij

Poglej na GitHub


Namestitev in uporaba Internal Link

Zahteve

PHP 7.4 ali novejši. Naj bi delovalo tudi s PHP 8.0.

Composer

Za namestitev vezav s pomočjo Composer, dodajte naslednje v composer.json:

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

Nato zaženite composer install

Ročna namestitev

Prenesite datoteke in vključite autoload.php:

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

Začetek Internal Link

Sledite prosim postopku namestitve in nato zaženite naslednje:

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



// Konfigurirajte pooblastilo API ključa: api_key
$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');


$apiInstance = new FastComments\Client\Api\DefaultApi(
    // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
    // To je izbirno, `GuzzleHttp\Client` will be used as default.
    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 odjemalci Internal Link

The SDK razkriva tri razrede odjemalcev API:

  • DefaultApi - metode, avtenticirane s ključem API za strežniško uporabo. Ključ API nastavite, kot je prikazano v Getting Started.
  • PublicApi - javne metode, ki ne zahtevajo ključa API, varno jih je klicati iz brskalnikov in mobilnih aplikacij.
  • ModerationApi - obsežen nabor API-jev za takojšnjo in hitro moderacijo. Vsaka metoda ModerationApi sprejme parameter $sso in se lahko avtenticira prek SSO ali piškotka seje FastComments.com.

Uporaba PublicApi

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

// Javni metode ne zahtevajo ključa API.
$apiInstance = new FastComments\Client\Api\PublicApi(
    new GuzzleHttp\Client()
);
$tenant_id = 'tenant_id_example'; // niz
$url_id = 'url_id_example'; // niz

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

Uporaba ModerationApi

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

$apiInstance = new FastComments\Client\Api\ModerationApi(
    new GuzzleHttp\Client()
);
$sso = 'sso_example'; // niz - SSO payload, ki avtenticira moderatorja

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

Modeli Internal Link

Avtorizacija Internal Link


Sheme avtentikacije, definirane za API:

api_key

  • Vrsta: API key
  • Ime parametra API ključa: x-api-key
  • Lokacija: HTTP header

Avtor Internal Link


support@fastcomments.com

Agregiraj Internal Link

Aggregira dokumente z združevanjem (če je podano groupBy) in uporabo več operacij. Podprte so različne operacije (npr. sum, countDistinct, avg itd.).

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
parentTenantIdstringqueryNo
includeStatsbooleanqueryNo

Odgovor

Vrne: AggregateResponse

Primer

agregat Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Konfiguriraj avtorizacijo API ključa: 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// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želiš uporabiti lasten HTTP odjemalec, posreduj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24// string
25$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
26$options = [
27 'parent_tenant_id' => 'parent_tenant_id_example', // string
28 // string
29 'include_stats' => True, // bool
30 // bool
31];
32
33
34try {
35 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $options);
36 print_r($result);
37} catch (Exception $e) {
38 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
39}
40

Pridobi revizijske zapise Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
limitnumberqueryNo
skipnumberqueryNo
orderstringqueryNo
afternumberqueryNo
beforenumberqueryNo

Response

Vrne: GetAuditLogsResponse

Primer

Primer getAuditLogs
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 'limit' => 3.4, // float
22 'skip' => 3.4, // float
23 'order' => new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(), // \FastComments\Client\Model\SORTDIR
24 'after' => 3.4, // float
25 'before' => 3.4, // float
26];
27
28
29try {
30 $result = $apiInstance->getAuditLogs($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
34}
35

Odjava (javno) Internal Link

Odgovor

Vrne: APIEmptyResponse

Primer

logoutPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je opcijsko, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Blokiraj iz komentarja (javno) Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
ssostringqueryNe

Odgovor

Vrne: BlockSuccess

Primer

blockFromCommentPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // niz
14$comment_id = 'comment_id_example'; // niz
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // niz
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

Odblokiraj komentar (javno) Internal Link

Parameteri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
ssostringqueryNe

Odziv

Vrne: UnblockSuccess

Primer

unBlockCommentPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Preverjeni komentarji za blokirane Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdsstringqueryYesSeznam ID-jev komentarjev, ločen z vejicami.
ssostringqueryNo

Odgovor

Vrne: CheckBlockedCommentsResponse

Primer

checkedCommentsForBlocked Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_ids = 'comment_ids_example'; // string | Seznam ID-jev komentarjev, ločen z vejicami.
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

Blokiraj uporabnika iz komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odgovor

Vrne: BlockSuccess

Primer

blockUserFromComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavi avtentikacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
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->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
32}
33

Ustvari javni komentar Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpotDa
urlIdstringpoizvedbaDa
broadcastIdstringpoizvedbaDa
sessionIdstringpoizvedbaNe
ssostringpoizvedbaNe

Odgovor

Vrne: SaveCommentsResponseWithPresence

Primer

Primer createCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši komentar Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
contextUserIdstringqueryNe
isLivebooleanqueryNe

Odgovor

Vrne: DeleteCommentResult

Primer

deleteComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti lasten HTTP odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'context_user_id' => 'context_user_id_example', // string
23 'is_live' => True, // bool
24];
25
26
27try {
28 $result = $apiInstance->deleteComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteComment: ', $e->getMessage(), PHP_EOL;
32}
33

Izbriši komentar (javno) Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
sSOstringqueryNo

Odgovor

Vrne: PublicAPIDeleteCommentResponse

Primer

deleteCommentPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je opcijsko, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši glas za komentar Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringpathDa
commentIdstringpathDa
voteIdstringpathDa
urlIdstringqueryDa
broadcastIdstringqueryDa
editKeystringqueryNe
ssostringqueryNe

Odgovor

Vrne: VoteDeleteResponse

Primer

deleteCommentVote Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti lastnega HTTP odjemalca, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo privzeto uporabljen.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // niz
14$comment_id = 'comment_id_example'; // niz
15$vote_id = 'vote_id_example'; // niz
16$url_id = 'url_id_example'; // niz
17$broadcast_id = 'broadcast_id_example'; // niz
18$options = [
19 'edit_key' => 'edit_key_example', // niz
20 'sso' => 'sso_example', // niz
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

Označi komentar Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odgovor

Vrne: FlagCommentResponse

Primer

Primer flagComment
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$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

Pridobi komentar Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: APIGetCommentResponse

Primer

Primer getComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi komentarje Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
pageintegerqueryNo
limitintegerqueryNo
skipintegerqueryNo
asTreebooleanqueryNo
skipChildrenintegerqueryNo
limitChildrenintegerqueryNo
maxTreeDepthintegerqueryNo
urlIdstringqueryNo
userIdstringqueryNo
anonUserIdstringqueryNo
contextUserIdstringqueryNo
hashTagstringqueryNo
parentIdstringqueryNo
directionstringqueryNo
fromDateintegerqueryNo
toDateintegerqueryNo

Odgovor

Vrne: APIGetCommentsResponse

Primer

Primer getComments
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavite pooblastitev API ključa: 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// $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 // Če želite uporabiti svoj HTTP odjemalec, podajte odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$options = [
24 'page' => 56, // int
25 'limit' => 56, // int
26 'skip' => 56, // int
27 'as_tree' => True, // bool
28 'skip_children' => 56, // int
29 'limit_children' => 56, // int
30 'max_tree_depth' => 56, // int
31 'url_id' => 'url_id_example', // string
32 'user_id' => 'user_id_example', // string
33 'anon_user_id' => 'anon_user_id_example', // string
34 'context_user_id' => 'context_user_id_example', // string
35 'hash_tag' => 'hash_tag_example', // string
36 'parent_id' => 'parent_id_example', // string
37 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
38 'from_date' => 56, // int
39 'to_date' => 56, // int
40];
41
42
43try {
44 $result = $apiInstance->getComments($tenant_id, $options);
45 print_r($result);
46} catch (Exception $e) {
47 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
48}
49

Pridobi javne komentarje Internal Link

req tenantId urlId

Parametri

ImeVrstaLokacijaObveznoOpis
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

Odgovor

Vrne: GetCommentsResponseWithPresencePublicComment

Primer

getCommentsPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'page' => 56, // int
17 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
18 'sso' => 'sso_example', // string
19 'skip' => 56, // int
20 'skip_children' => 56, // int
21 'limit' => 56, // int
22 'limit_children' => 56, // int
23 'count_children' => True, // bool
24 'fetch_page_for_comment_id' => 'fetch_page_for_comment_id_example', // string
25 'include_config' => True, // bool
26 'count_all' => True, // bool
27 'includei10n' => True, // bool
28 'locale' => 'locale_example', // string
29 'modules' => 'modules_example', // string
30 'is_crawler' => True, // bool
31 'include_notification_count' => True, // bool
32 'as_tree' => True, // bool
33 'max_tree_depth' => 56, // int
34 'use_full_translation_ids' => True, // bool
35 'parent_id' => 'parent_id_example', // string
36 'search_text' => 'search_text_example', // string
37 'hash_tags' => array('hash_tags_example'), // string[]
38 'user_id' => 'user_id_example', // string
39 'custom_config_str' => 'custom_config_str_example', // string
40 'after_comment_id' => 'after_comment_id_example', // string
41 'before_comment_id' => 'before_comment_id_example', // string
42];
43
44
45try {
46 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $options);
47 print_r($result);
48} catch (Exception $e) {
49 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
50}
51

Pridobi besedilo komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
commentIdstringpathYes
editKeystringqueryNo
ssostringqueryNo

Odgovor

Vrne: PublicAPIGetCommentTextResponse

Primer

Primer getCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi uporabniška imena glasovalcev komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathDa
commentIdstringpathDa
dirintegerqueryDa
ssostringqueryNe

Odgovor

Vrne: GetCommentVoteUserNamesSuccessResponse

Primer

getCommentVoteUserNames Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
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

Zakleni komentar Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

lockComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabljati lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je opcijsko, kot privzeto bo uporabljen `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

Pripni komentar Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Odgovor

Vrne: ChangeCommentPinStatusResponse

Primer

pinComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti lastni http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
24}
25

Shrani komentar Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

Odgovor

Vrne: APISaveCommentResponse

Primer

Primer saveComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_comment_params = new \FastComments\Client\Model\CreateCommentParams(); // \FastComments\Client\Model\CreateCommentParams
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveComment($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveComment: ', $e->getMessage(), PHP_EOL;
34}
35

Shrani komentarje v skupini Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

Odgovor

Vrne: SaveCommentsBulkResponse

Primer

Primer saveCommentsBulk
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti uporabniški HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
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

Nastavi besedilo komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

Odgovor

Vrne: PublicAPISetCommentTextResponse

Primer

setCommentText Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Odblokiraj uporabnika iz komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
userIdstringqueryNe
anonUserIdstringqueryNe

Odgovor

Vrne: UnblockSuccess

Primer

Primer unBlockUserFromComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP klient, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

Odstrani označbo komentarja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odgovor

Vrne: FlagCommentResponse

Primer

Primer unFlagComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte overitev API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzet.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'user_id' => 'user_id_example', // string
23 'anon_user_id' => 'anon_user_id_example', // string
24];
25
26
27try {
28 $result = $apiInstance->unFlagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
32}
33

Odkleni komentar Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Odziv

Vrne: APIEmptyResponse

Primer

Primer unLockComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
24}
25

Odstrani pripetek komentarja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
commentIdstringpathDa
broadcastIdstringqueryDa
ssostringqueryNe

Odgovor

Vrne: ChangeCommentPinStatusResponse

Primer

unPinComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
24}
25

Posodobi komentar Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
contextUserIdstringqueryNe
doSpamCheckbooleanqueryNe
isLivebooleanqueryNe

Odziv

Returns: APIEmptyResponse

Primer

updateComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavi avtorizacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentiraj spodaj, če želiš nastaviti predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želiš uporabiti svoj HTTP odjemalec, podaj odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$updatable_comment_params = new \FastComments\Client\Model\UpdatableCommentParams(); // \FastComments\Client\Model\UpdatableCommentParams
21$options = [
22 'context_user_id' => 'context_user_id_example', // string
23 'do_spam_check' => True, // bool
24 'is_live' => True, // bool
25];
26
27
28try {
29 $result = $apiInstance->updateComment($tenant_id, $id, $updatable_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL;
33}
34

Glasuj za komentar Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
commentIdstringpathDa
urlIdstringqueryDa
broadcastIdstringqueryDa
sessionIdstringqueryNe
ssostringqueryNe

Odziv

Vrne: VoteResponse

Primer

voteComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$url_id = 'url_id_example'; // string
16$broadcast_id = 'broadcast_id_example'; // string
17$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
18$options = [
19 'session_id' => 'session_id_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
29}
30

Pridobi komentarje za uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
userIdstringqueryNe
directionstringqueryNe
repliesToUserIdstringqueryNe
pagenumberqueryNe
includei10nbooleanqueryNe
localestringqueryNe
isCrawlerbooleanqueryNe

Odgovor

Vrne: GetCommentsForUserResponse

Primer

Primer getCommentsForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$options = [
14 'user_id' => 'user_id_example', // string
15 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
16 'replies_to_user_id' => 'replies_to_user_id_example', // string
17 'page' => 3.4, // float
18 'includei10n' => True, // bool
19 'locale' => 'locale_example', // string
20 'is_crawler' => True, // bool
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

Dodaj konfiguracijo domene Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: AddDomainConfigResponse

Primer

addDomainConfig Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti prilagojen HTTP odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
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

Izbriši konfiguracijo domene Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
domainstringpathYes

Odziv

Vrne: DeleteDomainConfigResponse

Primer

deleteDomainConfig Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti prilagojen http odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi konfiguracijo domene Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryDa
domainstringpathDa

Response

Vrne: GetDomainConfigResponse

Example

Primer getDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavite avtentikacijo ključev 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// Odkomentirajte spodaj, če je potrebno nastaviti predpono (npr. Bearer) za ključ 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 // Če želite uporabiti svoj HTTP odjemalec, podajte svojega odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24// niz
25$domain = 'domain_example'; // string
26// niz
27
28
29try {
30 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
34}
35

Pridobi konfiguracije domen Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: GetDomainConfigsResponse

Primer

Primer getDomainConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavi avtorizacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentiraj spodaj za nastavitev predpone (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želiš uporabiti lasten HTTP odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Delno posodobi konfiguracijo domene Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
domainToUpdatestringpathDa

Odgovor

Vrne: PatchDomainConfigResponse

Primer

patchDomainConfig Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojen HTTP klient, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Nadomesti konfiguracijo domene Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
domainToUpdatestringpathYes

Odgovor

Vrne: PutDomainConfigResponse

Primer

putDomainConfig Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo ključev API: api_key
7// Odkomentirajte spodaj za nastavitev predpone (npr. Bearer) za ključ API, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // niz
19$domain_to_update = 'domain_to_update_example'; // niz
20$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
21
22
23try {
24 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
28}
29

Ustvari predlogo e-pošte Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: CreateEmailTemplateResponse

Primer

createEmailTemplate Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavi overitev API ključev: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
20
21
22try {
23 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
27}
28

Izbriši predlogo e-pošte Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: APIEmptyResponse

Primer

Primer deleteEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavi avtorizacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želiš uporabiti prilagojeni http odjemalec, posreduj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->deleteEmailTemplate($tenant_id, $id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Izjema pri klicu DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
31}
32

Izbriši napako upodabljanja predloge e-pošte Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
errorIdstringpathDa

Odgovor

Vrne: APIEmptyResponse

Primer

deleteEmailTemplateRenderError Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
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// $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 // Če želite uporabiti prilagojeni http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$error_id = 'error_id_example'; // string
25
26
27try {
28 $result = $apiInstance->deleteEmailTemplateRenderError($tenant_id, $id, $error_id);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteEmailTemplateRenderError: ', $e->getMessage(), PHP_EOL;
32}
33

Pridobi predlogo e-pošte Internal Link

Parametri

ImeVrstaMestoObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: GetEmailTemplateResponse

Primer

Primer getEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastni HTTP klient, posredujte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->getEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi definicije predlog e-pošte Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes

Odgovor

Vrne: GetEmailTemplateDefinitionsResponse

Primer

Primer getEmailTemplateDefinitions
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
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

Pridobi napake upodabljanja predlog e-pošte Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
skipnumberqueryNe

Odgovor

Vrne: GetEmailTemplateRenderErrorsResponse

Primer

Primer getEmailTemplateRenderErrors
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$skip = 3.4; // float
22
23
24try {
25 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
29}
30

Pridobi predloge e-pošte Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryDa
skipnumberqueryNe

Odgovor

Vrne: GetEmailTemplatesResponse

Primer

getEmailTemplates Primer
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'; // niz
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

Upodobi predlogo e-pošte Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
localestringqueryNe

Odgovor

Vrne: RenderEmailTemplateResponse

Primer

renderEmailTemplate Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtentikacijo ključa API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Posodobi predlogo e-pošte Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: APIEmptyResponse

Primer

Primer updateEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavite avtorizacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23// niz
24$id = 'id_example'; // string
25// niz
26$update_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
27
28
29try {
30 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
34}
35

Pridobi dnevnik dogodkov Internal Link

req tenantId urlId userIdWS

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

Odgovor

Vrne: GetEventLogResponse

Primer

Primer getEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi globalni dnevnik dogodkov Internal Link

req
tenantId
urlId
userIdWS

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
urlIdstringqueryDa
userIdWSstringqueryDa
startTimeintegerqueryDa
endTimeintegerqueryNe

Odziv

Vrne: GetEventLogResponse

Primer

Primer getGlobalEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Ustvari objavo vira Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
broadcastIdstringqueryNo
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
skipDupCheckbooleanqueryNo

Odgovor

Vrne: CreateFeedPostResponse

Primer

createFeedPost Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi overitev API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Ustvari javno objavo vira Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathDa
broadcastIdstringqueryNe
ssostringqueryNe

Odziv

Vrne: CreateFeedPostResponse

Primer

Primer createFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagodljen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši javno objavo vira Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpotDa
postIdstringpotDa
broadcastIdstringpoizvedbaNe
ssostringpoizvedbaNe

Odgovor

Vrne: DeleteFeedPostPublicResponse

Primer

deleteFeedPostPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

Pridobi objave vira Internal Link

zahteva tenantId afterId

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo

Odziv

Vrne: GetFeedPostsResponse

Primer

Primer getFeedPosts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Konfigurirajte avtentikacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želite uporabiti lastnega HTTP odjemalca, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$options = [
24 'after_id' => 'after_id_example', // string
25 'limit' => 56, // int
26 'tags' => array('tags_example'), // string[]
27];
28
29
30try {
31 $result = $apiInstance->getFeedPosts($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getFeedPosts: ', $e->getMessage(), PHP_EOL;
35}
36

Pridobi javne objave vira Internal Link

req tenantId afterId

Parametri

ImeTipLokacijaPotrebnoOpis
tenantIdstringpathYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo
ssostringqueryNo
isCrawlerbooleanqueryNo
includeUserInfobooleanqueryNo

Odgovor

Vrne: PublicFeedPostsResponse

Primer

getFeedPostsPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `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

Pridobi statistiko objav vira Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
postIdsarrayqueryYes
ssostringqueryNo

Odgovor

Vrne: FeedPostsStatsResponse

Primer

getFeedPostsStats Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabljati prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi javne reakcije uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
postIdsarrayqueryNo
ssostringqueryNo

Odgovor

Vrne: UserReactsResponse

Primer

getUserReactsPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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 'Izjema pri klicanju PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

Reagiraj na javno objavo vira Internal Link


Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
postIdstringpathDa
isUndobooleanqueryNe
broadcastIdstringqueryNe
ssostringqueryNe

Odgovor

Vrne: ReactFeedPostResponse

Primer

reactFeedPostPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
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

Posodobi objavo vira Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Response

Vrne: APIEmptyResponse

Primer

Primer updateFeedPost
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojeni HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Posodobi javno objavo vira Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: CreateFeedPostResponse

Primer

updateFeedPostPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Označi komentar (javno) Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
isFlaggedbooleanqueryYes
ssostringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

flagCommentPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabljati svoj HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi velik GIF Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringpathYes
largeInternalURLSanitizedstringqueryYes

Odgovor

Vrne: GifGetLargeResponse

Primer

Primer getGifLarge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$large_internal_url_sanitized = 'large_internal_url_sanitized_example'; // string
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

Pridobi GIF-e (iskanje) Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathDa
searchstringqueryDa
localestringqueryNe
ratingstringqueryNe
pagenumberqueryNe

Odziv

Vrne: GetGifsSearchResponse

Primer

getGifsSearch Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi priljubljene GIF-e Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
localestringqueryNe
ratingstringqueryNe
pagenumberqueryNe

Response

Vrne: GetGifsTrendingResponse

Example

Primer getGifsTrending
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabljati lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'locale' => 'locale_example', // string
16 'rating' => 'rating_example', // string
17 'page' => 3.4, // float
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

Dodaj hashtag Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes

Odgovor

Vrne: CreateHashTagResponse

Primer

addHashTag Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizaacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je izborno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Dodaj hashtage v skupini Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: BulkCreateHashTagsResponse

Primer

Primer addHashTagsBulk
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
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

Izbriši hashtag Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
tagstringpathDa

Odziv

Vrne: APIEmptyResponse

Primer

deleteHashTag Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavite avtentikacijo API ključa: api_key
6// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
12 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // niz
18$tag = 'tag_example'; // niz
19$delete_hash_tag_request_body = new \FastComments\Client\Model\DeleteHashTagRequestBody(); // \FastComments\Client\Model\DeleteHashTagRequestBody
20
21
22try {
23 $result = $apiInstance->deleteHashTag($tenant_id, $tag, $delete_hash_tag_request_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
27}
28

Pridobi hashtage Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
pagenumberqueryNe

Odgovor

Vrne: GetHashTagsResponse

Primer

Primer getHashTags
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavite avtentikacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // niz
19$page = 3.4; // float
20
21
22try {
23 $result = $apiInstance->getHashTags($tenant_id, $page);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getHashTags: ', $e->getMessage(), PHP_EOL;
27}
28

Delno posodobi hashtag Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
tagstringpathYes

Odgovor

Vrne: UpdateHashTagResponse

Primer

patchHashTag Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
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$tag = 'tag_example'; // string
21$update_hash_tag_body = new \FastComments\Client\Model\UpdateHashTagBody(); // \FastComments\Client\Model\UpdateHashTagBody
22
23
24try {
25 $result = $apiInstance->patchHashTag($tenant_id, $tag, $update_hash_tag_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->patchHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

Izbriši glas moderacije Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
voteIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odziv

Vrne: VoteDeleteResponse

Primer

deleteModerationVote Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
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

Pridobi API komentarje Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
pagenumberqueryNo
countnumberqueryNo
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
demobooleanqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationAPIGetCommentsResponse

Primer

Primer getApiComments
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'page' => 3.4, // float
16 'count' => 3.4, // float
17 'text_search' => 'text_search_example', // string
18 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
19 'filters' => 'filters_example', // string
20 'search_filters' => 'search_filters_example', // string
21 'sorts' => 'sorts_example', // string
22 'demo' => True, // bool
23 'sso' => 'sso_example', // string
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

Pridobi stanje izvoza API Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
batchJobIdstringqueryNo
ssostringqueryNo

Odziv

Vrne: ModerationExportStatusResponse

Primer

Primer getApiExportStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\ModerationApi(
8// // Če želite uporabiti custom http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9// // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10// new GuzzleHttp\Client()
11// );
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'batch_job_id' => 'batch_job_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getApiExportStatus($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getApiExportStatus: ', $e->getMessage(), PHP_EOL;
25}
26

Pridobi API ID-je Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
afterIdstringqueryNo
demobooleanqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationAPIGetCommentIdsResponse

Primer

getApiIds Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filters' => 'filters_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'after_id' => 'after_id_example', // string
20 'demo' => True, // bool
21 'sso' => 'sso_example', // string
22];
23
24
25try {
26 $result = $apiInstance->getApiIds($tenant_id, $options);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling ModerationApi->getApiIds: ', $e->getMessage(), PHP_EOL;
30}
31

Pridobi blokirane uporabnike iz komentarja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Odgovor

Vrne: GetBannedUsersFromCommentResponse

Primer

Primer getBanUsersFromComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeti.
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

Pridobi status blokade komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
ssostringqueryNe

Odgovor

Vrnitev: GetCommentBanStatusResponse

Primer

Primer getCommentBanStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // niz
14$comment_id = 'comment_id_example'; // niz
15$sso = 'sso_example'; // niz
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

Pridobi podkomentarje Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
ssostringqueryNe

Odziv

Vrne: ModerationAPIChildCommentsResponse

Primer

getCommentChildren Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj po meri http odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi štetje Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
text-searchstringqueryNe
byIPFromCommentstringqueryNe
filterstringqueryNe
searchFiltersstringqueryNe
demobooleanqueryNe
ssostringqueryNe

Odziv

Vrne: ModerationAPICountCommentsResponse

Primer

Primer getCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti po meri HTTP odjemalca, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi števila Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
ssostringqueryNe

Odgovor

Vrne: GetBannedUsersCountResponse

Primer

Primer getCounts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, privzeto bo uporabljen `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

Pridobi zapise Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
ssostringqueryNe

Odziv

Vrne: ModerationAPIGetLogsResponse

Primer

getLogs Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getLogs($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getLogs: ', $e->getMessage(), PHP_EOL;
23}
24

Pridobi ročne značke Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryDa
ssostringqueryNe

Odziv

Vrne: GetTenantManualBadgesResponse

Primer

Primer getManualBadges
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi ročne značke za uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
badgesUserIdstringqueryNe
commentIdstringqueryNe
ssostringqueryNe

Odgovor

Vrne: GetUserManualBadgesResponse

Primer

getManualBadgesForUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'badges_user_id' => 'badges_user_id_example', // string
16 'comment_id' => 'comment_id_example', // string
17 'sso' => 'sso_example', // string
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

Pridobi moderacijski komentar Internal Link

Parametri

ImeVrstaMestoObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
includeEmailbooleanqueryNo
includeIPbooleanqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationAPICommentResponse

Primer

Primer getModerationComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\ModerationApi(
8// // Če želite uporabiti uporabniško HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9// // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi besedilo moderacijskega komentarja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Odgovor

Vrne: GetCommentTextResponse

Primer

Primer getModerationCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi povzetek pred blokado Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

Odziv

Vrne: PreBanSummary

Primer

Primer getPreBanSummary
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi povzetek iskanja komentarjev Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
valuestringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationCommentSearchResponse

Primer

Primer getSearchCommentsSummary
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeti.
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

Pridobi iskalne strani Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
valuestringqueryNe
ssostringqueryNe

Odgovor

Vrne: ModerationPageSearchResponse

Primer

Primer getSearchPages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchPages($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchPages: ', $e->getMessage(), PHP_EOL;
25}
26

Pridobi iskalna mesta Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationSiteSearchResponse

Primer

Primer getSearchSites
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchSites($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSites: ', $e->getMessage(), PHP_EOL;
25}
26

Pridobi iskalne predloge Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
text-searchstringqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationSuggestResponse

Primer

Primer getSearchSuggest
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi iskalne uporabnike Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Response

Returns: ModerationUserSearchResponse

Example

Primer getSearchUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti po meri HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, privzeto bo uporabljen `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

Pridobi faktor zaupanja Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: GetUserTrustFactorResponse

Primer

Primer getTrustFactor
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi nastavitve blokade uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
ssostringqueryNe

Odgovor

Vrne: APIModerateGetUserBanPreferencesResponse

Primer

getUserBanPreference Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi notranji profil uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: GetUserInternalProfileResponse

Primer

getUserInternalProfile Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Prilagodi glasove komentarja Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
broadcastIdstringqueryNe
ssostringqueryNe

Response

Returns: AdjustVotesResponse

Example

postAdjustCommentVotes Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$adjust_comment_votes_params = new \FastComments\Client\Model\AdjustCommentVotesParams(); // \FastComments\Client\Model\AdjustCommentVotesParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
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

Ustvari izvoz API Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
sortsstringqueryNo
ssostringqueryNo

Odgovor

Vrne: ModerationExportResponse

Primer

postApiExport Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Prepovej uporabnika iz komentarja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
banEmailbooleanqueryNe
banEmailDomainbooleanqueryNe
banIPbooleanqueryNe
deleteAllUsersCommentsbooleanqueryNe
bannedUntilstringqueryNe
isShadowBanbooleanqueryNe
updateIdstringqueryNe
banReasonstringqueryNe
ssostringqueryNe

Odgovor

Vrne: BanUserFromCommentResult

Primer

postBanUserFromComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'ban_email' => True, // bool
17 'ban_email_domain' => True, // bool
18 'ban_ip' => True, // bool
19 'delete_all_users_comments' => True, // bool
20 'banned_until' => 'banned_until_example', // string
21 'is_shadow_ban' => True, // bool
22 'update_id' => 'update_id_example', // string
23 'ban_reason' => 'ban_reason_example', // string
24 'sso' => 'sso_example', // string
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

Razveljavi prepoved uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
ssostringqueryNe

Odgovor

Vrne: APIEmptyResponse

Primer

postBanUserUndo Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Ustvari množični povzetek pred blokado Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

Odgovor

Vrne: BulkPreBanSummary

Primer

postBulkPreBanSummary Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$bulk_pre_ban_params = new \FastComments\Client\Model\BulkPreBanParams(); // \FastComments\Client\Model\BulkPreBanParams
15$options = [
16 'include_by_user_id_and_email' => True, // bool
17 'include_by_ip' => True, // bool
18 'include_by_email_domain' => True, // bool
19 'sso' => 'sso_example', // string
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

Pridobi komentarje po ID-jih Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
ssostringqueryNo

Odgovor

Vrne: ModerationAPIChildCommentsResponse

Primer

postCommentsByIds Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojeni http odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // niz
14$comments_by_ids_params = new \FastComments\Client\Model\CommentsByIdsParams(); // \FastComments\Client\Model\CommentsByIdsParams
15$sso = 'sso_example'; // niz
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

Označi komentar Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

postFlagComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Odstrani komentar Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryDa
commentIdstringpathDa
broadcastIdstringqueryNe
ssostringqueryNe

Odgovor

Vrne: PostRemoveCommentApiResponse

Primer

postRemoveComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postRemoveComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRemoveComment: ', $e->getMessage(), PHP_EOL;
26}
27

Obnovi izbrisani komentar Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odziv

Vrne: APIEmptyResponse

Primer

postRestoreDeletedComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je opcijsko, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Nastavi status odobritve komentarja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
approvedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: SetCommentApprovedResponse

Primer

postSetCommentApprovalStatus Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // niz
14$comment_id = 'comment_id_example'; // niz
15$options = [
16 'approved' => True, // bool
17 'broadcast_id' => 'broadcast_id_example', // niz
18 'sso' => 'sso_example', // niz
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

Nastavi status pregleda komentarja Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
reviewedbooleanqueryNe
broadcastIdstringqueryNe
ssostringqueryNe

Response

Vrne: APIEmptyResponse

Primer

postSetCommentReviewStatus Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Nastavi status spama komentarja Internal Link


Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryDa
commentIdstringpathDa
spambooleanqueryNe
permNotSpambooleanqueryNe
broadcastIdstringqueryNe
ssostringqueryNe

Odziv

Vrne: APIEmptyResponse

Primer

postSetCommentSpamStatus Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Nastavi besedilo komentarja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
broadcastIdstringqueryNe
ssostringqueryNe

Odgovor

Vrne: SetCommentTextResponse

Primer

Primer postSetCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$set_comment_text_params = new \FastComments\Client\Model\SetCommentTextParams(); // \FastComments\Client\Model\SetCommentTextParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentText($tenant_id, $comment_id, $set_comment_text_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Izjema pri klicu ModerationApi->postSetCommentText: ', $e->getMessage(), PHP_EOL;
27}
28

Odstrani označbo komentarja Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

postUnFlagComment Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Oddaj glas Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringpathDa
directionstringqueryNe
broadcastIdstringqueryNe
ssostringqueryNe

Odziv

Vrne: VoteResponse

Primer

postVote Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\ModerationApi(
8// // Če želite uporabiti svoj HTTP odjemalec, prenesite svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9// // To je neobvezno, kot privzeto bo uporabljen `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 'direction' => 'direction_example', // string
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postVote($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Izjema pri klicu ModerationApi->postVote: ', $e->getMessage(), PHP_EOL;
27}
28

Podeli značko Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Odgovor

Vrne: AwardUserBadgeResponse

Primer

putAwardBadge Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lastni HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$badge_id = 'badge_id_example'; // string
15$options = [
16 'user_id' => 'user_id_example', // string
17 'comment_id' => 'comment_id_example', // string
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->putAwardBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putAwardBadge: ', $e->getMessage(), PHP_EOL;
28}
29

Zapri nit Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

Odziv

Vrne: APIEmptyResponse

Primer

putCloseThread Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->putCloseThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putCloseThread: ', $e->getMessage(), PHP_EOL;
23}
24

Odstrani značko Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryDa
badgeIdstringqueryDa
userIdstringqueryNe
commentIdstringqueryNe
broadcastIdstringqueryNe
ssostringqueryNe

Odgovor

Vrne: RemoveUserBadgeResponse

Primer

Primer putRemoveBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je izbirno, privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$badge_id = 'badge_id_example'; // string
15$options = [
16 'user_id' => 'user_id_example', // string
17 'comment_id' => 'comment_id_example', // string
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->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

Znova odpri nit Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

Primer putReopenThread
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti svoj HTTP klient, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeti.
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

Nastavi faktor zaupanja Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
userIdstringqueryNo
trustFactorstringqueryNo
ssostringqueryNo

Odgovor

Vrne: SetUserTrustFactorResponse

Primer

setTrustFactor Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 'trust_factor' => 'trust_factor_example', // string
17 'sso' => 'sso_example', // string
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

Ustvari moderatorja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa

Odziv

Vrne: CreateModeratorResponse

Primer

createModerator Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavite pooblastitev ključa API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, če je potrebno
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 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzet.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23// niz
24$create_moderator_body = new \FastComments\Client\Model\CreateModeratorBody(); // \FastComments\Client\Model\CreateModeratorBody
25
26
27try {
28 $result = $apiInstance->createModerator($tenant_id, $create_moderator_body);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createModerator: ', $e->getMessage(), PHP_EOL;
32}
33

Izbriši moderatorja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
sendEmailstringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

deleteModerator Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte overitev API ključa: api_key
7// Odkomentirajte spodaj za nastavitev predpone (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti prilagojen http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$send_email = 'send_email_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi moderatorja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: GetModeratorResponse

Primer

getModerator Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, če želiš nastaviti predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti lasten HTTP klient, podaj svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je opcijsko, kot privzeto bo uporabljen `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getModerator($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerator: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi moderatorje Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
skipnumberqueryNo

Odgovor

Vrne: GetModeratorsResponse

Primer

Primer getModerators
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavite avtorizacijo API ključa: api_key
6// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
12 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // string
18$skip = 3.4; // float
19
20
21try {
22 $result = $apiInstance->getModerators($tenant_id, $skip);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getModerators: ', $e->getMessage(), PHP_EOL;
26}
27

Pošlji povabilo Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
fromNamestringqueryYes

Odziv

Vrne: APIEmptyResponse

Primer

sendInvite Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi pooblastitev API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti svoj HTTP odjemalec, predaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
20$id = 'id_example'; // niz
21$from_name = 'from_name_example'; // niz
22
23
24try {
25 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
29}
30

Posodobi moderatorja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: APIEmptyResponse

Primer

updateModerator Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Konfigurirajte avtorizacijo API ključa: api_key
6// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // Če želite uporabiti prilagojen http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
12 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // string
18$id = 'id_example'; // string
19$update_moderator_body = new \FastComments\Client\Model\UpdateModeratorBody(); // \FastComments\Client\Model\UpdateModeratorBody
20
21
22try {
23 $result = $apiInstance->updateModerator($tenant_id, $id, $update_moderator_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->updateModerator: ', $e->getMessage(), PHP_EOL;
27}
28

Izbriši štetje obvestil Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: APIEmptyResponse

Primer

deleteNotificationCount Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtentikacijo ključa API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj za nastavitev predpon (npr. Bearer) za ključ API, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->deleteNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi predpomnjeno štetje obvestil Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: GetCachedNotificationCountResponse

Primer

Primer getCachedNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti uporabniški http klient, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi število obvestil Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo

Odgovor

Vrne: GetNotificationCountResponse

Primer

getNotificationCount Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavite avtentikacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj, če je potrebno nastaviti predpono (npr. Bearer) za API ključ, če je potrebno
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi obvestila Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo
skipnumberqueryNo

Response

Vrne: GetNotificationsResponse

Primer

Primer getNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Konfigurirajte avtorizacijo ključa API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj za nastavitev predpone (npr. Bearer) za ključ API, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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 'skip' => 3.4, // float
26];
27
28
29try {
30 $result = $apiInstance->getNotifications($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
34}
35

Posodobi obvestilo Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Odgovor

Vrne: APIEmptyResponse

Primer

updateNotification Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_notification_body = new \FastComments\Client\Model\UpdateNotificationBody(); // \FastComments\Client\Model\UpdateNotificationBody
21$user_id = 'user_id_example'; // string
22
23
24try {
25 $result = $apiInstance->updateNotification($tenant_id, $id, $update_notification_body, $user_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateNotification: ', $e->getMessage(), PHP_EOL;
29}
30

Ustvari reakcijo strani V1 Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
urlIdstringqueryYes
titlestringqueryNo

Odziv

Vrne: CreateV1PageReact

Primer

createV1PageReact Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Ustvari reakcijo strani V2 Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathDa
urlIdstringqueryDa
idstringqueryDa
titlestringqueryNe

Odgovor

Vrne: CreateV1PageReact

Primer

createV2PageReact Primer
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$title = 'title_example'; // string
17
18
19try {
20 $result = $apiInstance->createV2PageReact($tenant_id, $url_id, $id, $title);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->createV2PageReact: ', $e->getMessage(), PHP_EOL;
24}
25

Izbriši reakcijo strani V1 Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
urlIdstringqueryYes

Odgovor

Returns: CreateV1PageReact

Primer

deleteV1PageReact Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki izvaja `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši reakcijo strani V2 Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
urlIdstringqueryDa
idstringqueryDa

Response

Vrne: CreateV1PageReact

Example

deleteV2PageReact Primer
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->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

Pridobi všečke strani V1 Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathDa
urlIdstringqueryDa

Odziv

Returns: GetV1PageLikes

Primer

Primer getV1PageLikes
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, po privzetku bo uporabljen `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

Pridobi reakcije strani V2 Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
urlIdstringqueryYes

Odgovor

Vrne: GetV2PageReacts

Primer

getV2PageReacts Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->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

Pridobi uporabnike reakcij strani V2 Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

Odgovor

Vrne: GetV2PageReactUsersResponse

Primer

getV2PageReactUsers Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Dodaj stran Internal Link

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryYes

Odgovor

Returns: AddPageAPIResponse

Primer

addPage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Konfiguriraj avtentikacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentiraj spodaj za nastavitev predpon (npr. Bearer) za API ključ, po potrebi
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 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23// niz
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

Izbriši stran Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: DeletePageAPIResponse

Primer

deletePage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtentikacijo API ključa: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi uporabnike brez povezave Internal Link

Past komentatorji na strani, KI NI trenutno povezani. Razvrščeno po displayName.
Uporabite to po izčrpanju /users/online za prikaz sekcije "Members".
Kazalno straničenje na commenterName: strežnik hodi po delnem {tenantId, urlId, commenterName} indeksu od afterName naprej prek $gt, brez $skip stroška.

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesIdentifikator URL strani (čiščen na strežniku).
afterNamestringqueryNoKazalec: podajte nextAfterName iz prejšnjega odgovora.
afterUserIdstringqueryNoKazalec za razreševanje neenakosti: podajte nextAfterUserId iz prejšnjega odgovora. Potrebno, ko je afterName nastavljen, da se ne izpustijo vnosi pri enakih imenih.

Response

Returns: PageUsersOfflineResponse

Example

Primer getOfflineUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | Identifikator URL strani (čiščen na strežniku).
15$options = [
16 'after_name' => 'after_name_example', // string | Kazalec: podajte nextAfterName iz prejšnjega odgovora.
17 'after_user_id' => 'after_user_id_example', // string | Kazalec za razreševanje neenakosti: podajte nextAfterUserId iz prejšnjega odgovora. Potrebno, ko je afterName nastavljen, da se ne izpustijo vnosi pri enakih imenah.
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

Pridobi uporabnike na spletu Internal Link

Trenutno‑online gledalci strani: ljudje, katerih websocket seja je v tem trenutku naročena na stran. Vrne anonCount + totalCount (naročniki po celotni sobi, vključno z anonimnimi gledalci, ki jih ne izpisujemo).

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesIdentifikator URL strani (čiščen na strežniku).
afterNamestringqueryNoKazalec: pošljite nextAfterName iz prejšnjega odgovora.
afterUserIdstringqueryNoPrekinitveni kazalec: pošljite nextAfterUserId iz prejšnjega odgovora. Obvezno, ko je nastavljen afterName, da se pri enakih imenih ne izpustijo vnosi.

Response

Returns: PageUsersOnlineResponse

Primer

Primer getOnlineUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | Identifikator URL strani (čiščen na strežniku).
15$options = [
16 'after_name' => 'after_name_example', // string | Kazalec: pošljite nextAfterName iz prejšnjega odgovora.
17 'after_user_id' => 'after_user_id_example', // string | Prekinitveni kazalec: pošljite nextAfterUserId iz prejšnjega odgovora. Obvezno, ko je nastavljen afterName, da se pri enakih imenih ne izpustijo vnosi.
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

Pridobi stran po URL ID-ju Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
urlIdstringqueryYes

Odgovor

Vrne: GetPageByURLIdAPIResponse

Primer

Primer getPageByURLId
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Konfigurirajte avtorizacijo ključa API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, po potrebi
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 // Če želite uporabiti prilagojeni HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$url_id = 'url_id_example'; // string
24
25
26try {
27 $result = $apiInstance->getPageByURLId($tenant_id, $url_id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
31}
32

Pridobi strani Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa

Odziv

Vrne: GetPagesAPIResponse

Primer

getPages Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
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

Pridobi javne strani 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.

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathYes
cursorstringqueryNoNeprosojen kurzor za paginacijo, vrnjen kot nextCursor iz prejšnje zahteve. Povezan z istim sortBy.
limitintegerqueryNo1..200, privzeto 50
qstringqueryNoNeobvezni filter predpone naslova, neobčutljiv na velikost črk.
sortBystringqueryNoVrstni red. updatedAt (privzeto, najnovejši najprej), commentCount (največ komentarjev najprej) ali title (abecedno).
hasCommentsbooleanqueryNoČe je true, vrne samo strani z vsaj enim komentarjem.

Odgovor

Vrne: GetPublicPagesResponse

Primer

getPagesPublic Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'cursor' => 'cursor_example', // string | Neprosojen kurzor za paginacijo, vrnjen kot `nextCursor` iz prejšnje zahteve. Povezan z istim `sortBy`.
16 'limit' => 56, // int | 1..200, privzeto 50
17 'q' => 'q_example', // string | Neobvezni filter predpone naslova, neobčutljiv na velikost črk.
18 'sort_by' => new \FastComments\Client\Model\\FastComments\Client\Model\PagesSortBy(), // \FastComments\Client\Model\PagesSortBy | Vrstni red. `updatedAt` (privzeto, najnovejši najprej), `commentCount` (največ komentarjev najprej) ali `title` (abecedno).
19 'has_comments' => True, // bool | Če je true, vrne samo strani z vsaj enim komentarjem.
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

Pridobi informacije o uporabnikih Internal Link

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

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
idsstringqueryYesZ vejicami ločeni ID-ji uporabnikov.

Odgovor

Returns: PageUsersInfoResponse

Primer

Primer getUsersInfo
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$ids = 'ids_example'; // string | Z vejicami ločeni ID-ji uporabnikov.
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

Delno posodobi stran Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: PatchPageAPIResponse

Primer

patchPage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši čakajoči webhook dogodek Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: APIEmptyResponse

Primer

Primer deletePendingWebhookEvent
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti uporabniški HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deletePendingWebhookEvent($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deletePendingWebhookEvent: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi štetje čakajočih webhook dogodkov Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo

Odgovor

Vrne: GetPendingWebhookEventCountResponse

Primer

getPendingWebhookEventCount Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite overitev API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi čakajoče webhook dogodke Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo
skipnumberqueryNo

Response

Vrne: GetPendingWebhookEventsResponse

Example

Primer getPendingWebhookEvents
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj za nastavitev predpone (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti lastni HTTP odjemalec, posreduj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'comment_id' => 'comment_id_example', // niz
22 'external_id' => 'external_id_example', // niz
23 'event_type' => 'event_type_example', // niz
24 'type' => 'type_example', // niz
25 'domain' => 'domain_example', // niz
26 'attempt_count_gt' => 3.4, // decimalno število
27 'skip' => 3.4, // decimalno število
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

Ustvari konfiguracijo vprašanja Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: CreateQuestionConfigResponse

Primer

Primer createQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

Izbriši konfiguracijo vprašanja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: APIEmptyResponse

Primer

deleteQuestionConfig Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavite avtorizacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno)
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 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->deleteQuestionConfig($tenant_id, $id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
31}
32

Pridobi konfiguracijo vprašanja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: GetQuestionConfigResponse

Primer

Primer getQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Konfigurirajte avtorizacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti uporabniško HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->getQuestionConfig($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getQuestionConfig: ', $e->getMessage(), PHP_EOL;
27}
28

Pridobi konfiguracije vprašanj Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
skipnumberqueryNe

Odgovor

Returns: GetQuestionConfigsResponse

Primer

Primer getQuestionConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21
22try {
23 $result = $apiInstance->getQuestionConfigs($tenant_id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getQuestionConfigs: ', $e->getMessage(), PHP_EOL;
27}
28

Posodobi konfiguracijo vprašanja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: APIEmptyResponse

Primer

updateQuestionConfig Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite pooblastitev ključa API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za ključ API, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti vlastni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
20$id = 'id_example'; // niz
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

Ustvari rezultat vprašanja Internal Link

Parametri

ImeVrstaMestoObveznoOpis
tenantIdstringqueryDa

Odziv

Vrne: CreateQuestionResultResponse

Primer

Primer createQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojeni http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
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

Izbriši rezultat vprašanja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: APIEmptyResponse

Primer

deleteQuestionResult Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, podajte odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->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

Pridobi rezultat vprašanja Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: GetQuestionResultResponse

Primer

getQuestionResult Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti custom http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi rezultate vprašanj Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
urlIdstringqueryNe
userIdstringqueryNe
startDatestringqueryNe
questionIdstringqueryNe
questionIdsstringqueryNe
skipnumberqueryNe

Odziv

Returns: GetQuestionResultsResponse

Primer

Primer getQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Konfigurirajte avtorizacijo API ključa: api_key
6// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
7// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
8
9
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
12 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // niz
18$options = [
19 'url_id' => 'url_id_example', // niz
20 'user_id' => 'user_id_example', // niz
21 'start_date' => 'start_date_example', // niz
22 'question_id' => 'question_id_example', // niz
23 'question_ids' => 'question_ids_example', // niz
24 'skip' => 3.4, // float
25];
26
27
28try {
29 $result = $apiInstance->getQuestionResults($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
33}
34

Posodobi rezultat vprašanja Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: APIEmptyResponse

Primer

updateQuestionResult Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Agregiraj rezultate vprašanj Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

Odgovor

Vrne: AggregateQuestionResultsResponse

Primer

Primer aggregateQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7// Odkomentiraj spodaj, če želiš nastaviti predpono (npr. Bearer) za API ključ
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želiš uporabiti svoj HTTP odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'question_id' => 'question_id_example', // string
21 'question_ids' => array('question_ids_example'), // string[]
22 'url_id' => 'url_id_example', // string
23 'time_bucket' => new \FastComments\Client\Model\\FastComments\Client\Model\AggregateTimeBucket(), // \FastComments\Client\Model\AggregateTimeBucket
24 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
25 'force_recalculate' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->aggregateQuestionResults($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->aggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
34}
35

Množično agregiraj rezultate vprašanj Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
forceRecalculatebooleanqueryNe

Odziv

Vrne: BulkAggregateQuestionResultsResponse

Primer

bulkAggregateQuestionResults Primer
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$bulk_aggregate_question_results_request = new \FastComments\Client\Model\BulkAggregateQuestionResultsRequest(); // \FastComments\Client\Model\BulkAggregateQuestionResultsRequest
21$force_recalculate = True; // bool
22
23
24try {
25 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
29}
30

Združi komentarje z rezultati vprašanj Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo
minValuenumberqueryNo
maxValuenumberqueryNo
limitnumberqueryNo

Odgovor

Vrne: CombineQuestionResultsWithCommentsResponse

Primer

combineCommentsWithQuestionResults Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'question_id' => 'question_id_example', // string
22 'question_ids' => array('question_ids_example'), // string[]
23 'url_id' => 'url_id_example', // string
24 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
25 'force_recalculate' => True, // bool
26 'min_value' => 3.4, // float
27 'max_value' => 3.4, // float
28 'limit' => 3.4, // float
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

Dodaj SSO uporabnika Internal Link

Parameteri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: AddSSOUserAPIResponse

Primer

addSSOUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastnega http odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_apisso_user_data = new \FastComments\Client\Model\CreateAPISSOUserData(); // \FastComments\Client\Model\CreateAPISSOUserData
21
22
23try {
24 $result = $apiInstance->addSSOUser($tenant_id, $create_apisso_user_data);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addSSOUser: ', $e->getMessage(), PHP_EOL;
28}
29

Izbriši SSO uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
deleteCommentsbooleanqueryNo
commentDeleteModestringqueryNo

Odziv

Returns: DeleteSSOUserAPIResponse

Primer

deleteSSOUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi overitev API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti po meri http odjemalca, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'delete_comments' => True, // bool
23 'comment_delete_mode' => 'comment_delete_mode_example', // string
24];
25
26
27try {
28 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
32}
33

Pridobi SSO uporabnika po e-pošti Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
emailstringpathDa

Odgovor

Vrne: GetSSOUserByEmailAPIResponse

Primer

Primer getSSOUserByEmail
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$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

Pridobi SSO uporabnika po ID-ju Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: GetSSOUserByIdAPIResponse

Primer

Primer getSSOUserById
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Konfiguriraj avtentikacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentiraj spodaj za nastavitev predpone (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želiš uporabiti lasten http odjemalec, posreduj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->getSSOUserById($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
27}
28

Pridobi SSO uporabnike Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
skipintegerqueryNe

Response

Vrne: GetSSOUsersResponse

Primer

getSSOUsers Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Delno posodobi SSO uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

Odgovor

Vrne: PatchSSOUserAPIResponse

Primer

patchSSOUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, če želiš nastaviti predpono (npr. Bearer) za API ključ, po potrebi
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_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
22$update_comments = True; // bool
23
24
25try {
26 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
30}
31

Nadomesti SSO uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
updateCommentsbooleanqueryNe

Odgovor

Vrne: PutSSOUserAPIResponse

Primer

putSSOUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavi avtentikacijo s ključem API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, po potrebi
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 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
25$update_comments = True; // bool
26
27
28try {
29 $result = $apiInstance->putSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->putSSOUser: ', $e->getMessage(), PHP_EOL;
33}
34

Ustvari naročnino Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes

Odgovor

Vrača: CreateSubscriptionAPIResponse

Primer

Primer createSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši naročnino Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
userIdstringqueryNe

Odgovor

Vrne: DeleteSubscriptionAPIResponse

Primer

deleteSubscription Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7// Odkomentiraj spodaj za nastavitve prefiksa (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti lasten HTTP klient, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$user_id = 'user_id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteSubscription($tenant_id, $id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi naročnine Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
userIdstringqueryNe

Odgovor

Returns: GetSubscriptionsAPIResponse

Primer

getSubscriptions Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$user_id = 'user_id_example'; // string
20
21
22try {
23 $result = $apiInstance->getSubscriptions($tenant_id, $user_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
27}
28

Posodobi naročnino Internal Link

Parameters

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Response

Vrne: UpdateSubscriptionAPIResponse

Primer

Primer updateSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Configure avtorizacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, če želite nastaviti predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, kot privzeto bo uporabljen `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

Pridobi dnevne uporabe najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
yearNumbernumberqueryNe
monthNumbernumberqueryNe
dayDatenumberqueryNe
skipnumberqueryNe

Odziv

Vrne: GetTenantDailyUsagesResponse

Primer

Primer getTenantDailyUsages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// Nastavi avtorizacijo API ključa: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// Odkomentirajte spodaj za nastavitev predpone (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'year_number' => 3.4, // float
21 'month_number' => 3.4, // float
22 'day_number' => 3.4, // float
23 'skip' => 3.4, // float
24];
25
26
27try {
28 $result = $apiInstance->getTenantDailyUsages($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
32}
33

Ustvari paket najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes

Odgovor

Vrne: CreateTenantPackageResponse

Primer

createTenantPackage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo ključa API-ja: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, po potrebi
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 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
21
22
23try {
24 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

Izbriši paket najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: APIEmptyResponse

Primer

deleteTenantPackage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj za nastavitev predpone (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // This is optional, `GuzzleHttp\Client` will be used as default.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->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

Pridobi paket najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odziv

Returns: GetTenantPackageResponse

Primer

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

Pridobi pakete najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
skipnumberqueryNe

Odgovor

Vrne: GetTenantPackagesResponse

Primer

Primer getTenantPackages
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 = 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

Nadomesti paket najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: APIEmptyResponse

Primer

replaceTenantPackage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj za nastavitev predpone (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP klient, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
22
23
24try {
25 $result = $apiInstance->replaceTenantPackage($tenant_id, $id, $replace_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->replaceTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

Posodobi paket najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: APIEmptyResponse

Primer

Primer updateTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite pooblastitev ključ API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, podajte odjemalca, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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 'Izjema pri klicu DefaultApi->updateTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

Ustvari uporabnika najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: CreateTenantUserResponse

Primer

createTenantUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj http odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Izbriši uporabnika najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
deleteCommentsstringqueryNe
commentDeleteModestringqueryNe

Odgovor

Vrne: APIEmptyResponse

Primer

deleteTenantUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite pooblastitev ključa API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti uporabniški http odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$options = [
22 'delete_comments' => 'delete_comments_example', // string
23 'comment_delete_mode' => 'comment_delete_mode_example', // string
24];
25
26
27try {
28 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
32}
33

Pridobi uporabnika najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: GetTenantUserResponse

Primer

Primer getTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte overitev API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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->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

Pridobi uporabnike najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
skipnumberqueryNe

Odgovor

Vrne: GetTenantUsersResponse

Primer

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

Nadomesti uporabnika najemnika Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
updateCommentsstringqueryNe

Response

Returns: APIEmptyResponse

Example

replaceTenantUser Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključev: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
redirectURLstringqueryNo

Odziv

Vrne: APIEmptyResponse

Primer

Primer sendLoginLink
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Posodobi uporabnika najemnika Internal Link

Parametri

ImeTipLokacijaPotrebnoOpis
tenantIdstringqueryYes
idstringpathYes
updateCommentsstringqueryNo

Odziv

Returns: APIEmptyResponse

Primer

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

Ustvari najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa

Odgovor

Vrne: CreateTenantResponse

Primer

createTenant Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
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

Izbriši najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa
surestringqueryNe

Odgovor

Vrne: APIEmptyResponse

Primer

deleteTenant Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtentikacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj za nastavitev predpone (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti lasten http odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, privzeto bo uporabljen `GuzzleHttp\Client`.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
20$id = 'id_example'; // niz
21$sure = 'sure_example'; // niz
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

Pridobi najemnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Returns: GetTenantResponse

Primer

Primer getTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi najemnike Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
metastringqueryNe
skipnumberqueryNe

Odziv

Vrne: GetTenantsResponse

Primer

getTenants Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabljati prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$options = [
20 'meta' => 'meta_example', // string
21 'skip' => 3.4, // float
22];
23
24
25try {
26 $result = $apiInstance->getTenants($tenant_id, $options);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getTenants: ', $e->getMessage(), PHP_EOL;
30}
31

Posodobi najemnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: APIEmptyResponse

Primer

Primer updateTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj za nastavitev prefiksa (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti svoj HTTP klient, podaj svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je opcijsko, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
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

Spremeni stanje vstopnice Internal Link

Parametri

ImeVrstaLokacijaPotrebnoOpis
tenantIdstringqueryYes
userIdstringqueryYes
idstringpathYes

Odziv

Vrne: ChangeTicketStateResponse

Primer

changeTicketState Primer
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'; // niz
20$user_id = 'user_id_example'; // niz
21$id = 'id_example'; // niz
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

Ustvari vstopnico Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
userIdstringqueryDa

Odgovor

Vrne: CreateTicketResponse

Primer

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

Pridobi vstopnico Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Odgovor

Vrne: GetTicketResponse

Primer

Primer getTicket
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj za nastavitev predpone (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabiti lastni HTTP odjemalec, podaj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je opcijsko, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // niz
20$id = 'id_example'; // niz
21$user_id = 'user_id_example'; // niz
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

Pridobi vstopnice Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
userIdstringqueryNo
statenumberqueryNo
skipnumberqueryNo
limitnumberqueryNo

Odgovor

Vrne: GetTicketsResponse

Primer

Primer getTickets
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$options = [
20 'user_id' => 'user_id_example', // string
21 'state' => 3.4, // float
22 'skip' => 3.4, // float
23 'limit' => 3.4, // float
24];
25
26
27try {
28 $result = $apiInstance->getTickets($tenant_id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getTickets: ', $e->getMessage(), PHP_EOL;
32}
33

Pridobi prevode Internal Link

Parametri

ImeTipLokacijaObveznoOpis
namespacestringpathYes
componentstringpathYes
localestringqueryNo
useFullTranslationIdsbooleanqueryNo

Odziv

Vrne: GetTranslationsResponse

Primer

Primer getTranslations
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
10 new GuzzleHttp\Client()
11);
12
13$namespace = 'namespace_example'; // string
14$component = 'component_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'use_full_translation_ids' => True, // bool
18];
19
20
21try {
22 $result = $apiInstance->getTranslations($namespace, $component, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getTranslations: ', $e->getMessage(), PHP_EOL;
26}
27

Naloži sliko Internal Link

Upload and resize an image

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringpathYes
sizePresetstringqueryNoPrednastavitev velikosti: "Default" (1000x1000px) ali "CrossPlatform" (ustvari velikosti za priljubljene naprave)
urlIdstringqueryNoID strani, s katere se nalaganje izvaja, za konfiguracijo

Response

Returns: UploadImageResponse

Example

uploadImage Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti namenski HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, kot privzeto bo uporabljen `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 | Prednastavitev velikosti: \"Default\" (1000x1000px) ali \"CrossPlatform\" (ustvari velikosti za priljubljene naprave)
17 'url_id' => 'url_id_example', // string | ID strani, s katere se nalaganje izvaja, za konfiguracijo
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

Pridobi napredek značke uporabnika po ID-ju Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odziv

Vrne: APIGetUserBadgeProgressResponse

Primer

Primer getUserBadgeProgressById
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtentikacijo API ključa: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želite uporabiti prilagojen http odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressById($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressById: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi napredek značke uporabnika po ID-ju uporabnika Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringpathYes

Odgovor

Vrne: APIGetUserBadgeProgressResponse

Primer

getUserBadgeProgressByUserId Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastnega HTTP odjemalca, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi seznam napredka značk uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
userIdstringqueryNo
limitnumberqueryNo
skipnumberqueryNo

Odziv

Vrne: APIGetUserBadgeProgressListResponse

Primer

Primer getUserBadgeProgressList
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// Nastavite avtorizacijo API ključa: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, po potrebi
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 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$options = [
24 'user_id' => 'user_id_example', // string
25 'limit' => 3.4, // float
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
35}
36

Ustvari značko uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes

Odgovor

Vrne: APICreateUserBadgeResponse

Primer

createUserBadge Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtentikacijo prek API ključa: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
8// Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9// To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
20
21
22try {
23 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
27}
28

Izbriši značko uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odgovor

Vrne: APIEmptySuccessResponse

Primer

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

Pridobi značko uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
idstringpathDa

Odgovor

Vrne: APIGetUserBadgeResponse

Primer

Primer getUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo ključ API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi značke uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
userIdstringqueryNe
badgeIdstringqueryNe
typenumberqueryNe
displayedOnCommentsbooleanqueryNe
limitnumberqueryNe
skipnumberqueryNe

Odgovor

Vrne: APIGetUserBadgesResponse

Primer

Primer getUserBadges
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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 'badge_id' => 'badge_id_example', // string
23 'type' => 3.4, // float
24 'displayed_on_comments' => True, // bool
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

Posodobi značko uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpoizvedbaDa
idstringpotDa

Odgovor

Vrne: APIEmptySuccessResponse

Primer

updateUserBadge Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo ključev API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za ključ API, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi število obvestil uporabnika Internal Link

Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
ssostringqueryNe

Response

Vrne: GetUserNotificationCountResponse

Primer

Primer getUserNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeno HTTP kliento, podajte svoj klient, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

Pridobi obvestila uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
urlIdstringqueryNoUporablja se za določitev, ali je trenutna stran naročena.
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

Odgovor

Vrne: GetMyNotificationsResponse

Primer

Primer getUserNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'url_id' => 'url_id_example', // string | Uporablja se za določitev, ali je trenutna stran naročena.
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

Ponastavi štetje obvestil uporabnika Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
ssostringqueryNe

Odgovor

Vrne: ResetUserNotificationsResponse

Primer

resetUserNotificationCount Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\PublicApi(
8// // Če želite uporabiti svoj HTTP odjemalec, prenesite svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9// // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
10// new GuzzleHttp\Client()
11// );
12
13$apiInstance = new FastComments\Client\Api\PublicApi(
14 // Če želite uporabiti svoj HTTP odjemalec, prenesite svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
15 // To je neobvezno, kot privzeto bo uporabljen `GuzzleHttp\Client`.
16 new GuzzleHttp\Client()
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$sso = 'sso_example'; // string
21
22
23try {
24 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

Ponastavi obvestila uporabnika Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
afterIdstringqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
ssostringqueryNo

Response

Vrne: ResetUserNotificationsResponse

Example

resetUserNotifications Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // niz
14$options = [
15 'after_id' => 'after_id_example', // niz
16 'after_created_at' => 56, // celo število
17 'unread_only' => True, // logična
18 'dm_only' => True, // logična
19 'no_dm' => True, // logična
20 'sso' => 'sso_example', // niz
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

Posodobi status naročnine na komentarje obvestil uporabnika Internal Link

Omogoči ali onemogoči obvestila za določen komentar.

Parametri

ImeTipLokacijaZahtevanoOpis
tenantIdstringqueryYes
notificationIdstringpathYes
optedInOrOutstringpathYes
commentIdstringqueryYes
ssostringqueryNo

Odgovor

Vrne: UpdateUserNotificationCommentSubscriptionStatusResponse

Primer

updateUserNotificationCommentSubscriptionStatus Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Posodobi status naročnine na stran obvestil uporabnika Internal Link

Omogočite ali onemogočite obvestila za stran. Ko so uporabniki naročeni na stran, se ustvarijo obvestila za nove korenske komentarje, in tudi

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
urlIdstringqueryYes
urlstringqueryYes
pageTitlestringqueryYes
subscribedOrUnsubscribedstringpathYes
ssostringqueryNo

Odgovor

Vrne: UpdateUserNotificationPageSubscriptionStatusResponse

Primer

Primer updateUserNotificationPageSubscriptionStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Posodobi status obvestila uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryDa
notificationIdstringpathDa
newStatusstringpathDa
ssostringqueryNe

Odziv

Vrne: UpdateUserNotificationStatusResponse

Primer

Primer updateUserNotificationStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Pridobi statuse prisotnosti uporabnikov Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryDa
urlIdWSstringqueryDa
userIdsstringqueryDa

Odgovor

Vrne: GetUserPresenceStatusesResponse

Primer

Primer getUserPresenceStatuses
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti svoj prilagojeni HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
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

Išči uporabnike Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringpathDa
urlIdstringqueryDa
usernameStartsWithstringqueryNe
mentionGroupIdsarrayqueryNe
ssostringqueryNe
searchSectionstringqueryNe

Odgovor

Vrne: SearchUsersResult

Primer

searchUsers Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // Če želite uporabiti prilagojen HTTP odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
9 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'username_starts_with' => 'username_starts_with_example', // string
17 'mention_group_ids' => array('mention_group_ids_example'), // string[]
18 'sso' => 'sso_example', // string
19 'search_section' => 'search_section_example', // string
20];
21
22
23try {
24 $result = $apiInstance->searchUsers($tenant_id, $url_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi uporabnika Internal Link

Parametri

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes

Odziv

Vrne: GetUserResponse

Primer

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

Ustvari glas Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryDa
commentIdstringqueryDa
directionstringqueryDa
userIdstringqueryNe
anonUserIdstringqueryNe

Odgovor

Vrne: VoteResponse

Primer

Primer createVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavite avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lasten HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzet.
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

Izbriši glas Internal Link

Parametri

ImeVrstaLokacijaObveznoOpis
tenantIdstringqueryYes
idstringpathYes
editKeystringqueryNo

Odziv

Vrne: VoteDeleteResponse

Primer

deleteVote Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Nastavi avtorizacijo API ključa: api_key
7// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // Če želite uporabiti prilagojen HTTP odjemalec, podajte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
13 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$edit_key = 'edit_key_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi glasove Internal Link

Parametri

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes

Odgovor

Vrne: GetVotesResponse

Primer

getVotes Primer
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfigurirajte avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentirajte spodaj, da nastavite predpono (npr. Bearer) za API ključ, če je potrebno
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želite uporabiti lastni http odjemalec, posredujte svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$url_id = 'url_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getVotes($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
28}
29

Pridobi glasove za uporabnika Internal Link


Parameters

ImeTipLokacijaObveznoOpis
tenantIdstringqueryYes
urlIdstringqueryYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odziv

Vrne: GetVotesForUserResponse

Primer

Primer getVotesForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Konfiguriraj avtorizacijo API ključa: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Odkomentiraj spodaj, da nastaviš predpono (npr. Bearer) za API ključ, po potrebi
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // Če želiš uporabljati po meri HTTP odjemalca, posreduj svoj odjemalec, ki implementira `GuzzleHttp\ClientInterface`.
14 // To je neobvezno, `GuzzleHttp\Client` bo uporabljen kot privzeto.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$url_id = 'url_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->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

Potrebujete pomoč?

Če naletite na težave ali imate vprašanja glede PHP SDK, prosimo:

Prispevanje

Prispevki so dobrodošli! Prosimo, obiščite GitHub repozitorij za smernice za prispevanje.