FastComments.com

FastComments SDK של PHP


זה ה-SDK הרשמי ב-PHP עבור FastComments.

ה-SDK הרשמי ב-PHP עבור ממשק ה-API של FastComments

מאגר

צפה ב-GitHub


התקנה ושימוש Internal Link

דרישות

PHP 7.4 ומעלה. אמור גם לעבוד עם PHP 8.0.

Composer

כדי להתקין את הספרייה דרך Composer, הוסף את השורות הבאות ל־composer.json:

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

לאחר מכן הרץ composer install

התקנה ידנית

הורד את הקבצים והכלל את autoload.php:

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

התחלה Internal Link

אנא פעל לפי הליך ההתקנה ואז הרץ את הקוד הבא:

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



// הגדר הרשאת מפתח ה-API: api_key
$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// הסר את ההערה בשורה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');


$apiInstance = new FastComments\Client\Api\DefaultApi(
    // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שמממש את `GuzzleHttp\ClientInterface`.
    // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // string
$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams

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

לקוחות API Internal Link

The SDK מחזיק שלושה מחלקות לקוח של API:

  • DefaultApi - שיטות מאומתות באמצעות מפתח API לשימוש בצד השרת. הגדירו מפתח API כפי שמופיע בGetting Started.
  • PublicApi - שיטות ציבוריות שאינן דורשות מפתח API, בטוחות לקריאה מדפדפנים ויישומים ניידים.
  • ModerationApi - מערכת מקיפה של API למודרציה בזמן אמת ומהירה. כל שיטה של ModerationApi מקבלת פרמטר $sso ויכולה לאמת באמצעות SSO או באמצעות קוביית סשן של FastComments.com.

שימוש ב‑PublicApi

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

// שיטות ציבוריות אינן דורשות מפתח API.
$apiInstance = new FastComments\Client\Api\PublicApi(
    new GuzzleHttp\Client()
);
$tenant_id = 'tenant_id_example'; // מחרוזת
$url_id = 'url_id_example'; // מחרוזת

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

שימוש ב‑ModerationApi

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

$apiInstance = new FastComments\Client\Api\ModerationApi(
    new GuzzleHttp\Client()
);
$sso = 'sso_example'; // מחרוזת - מטעינת SSO המאמתת את המפקח

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

מודלים Internal Link

הרשאה Internal Link

שיטות אימות שהוגדרו עבור ה-API:

api_key

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

מחבר Internal Link

support@fastcomments.com

אגרגציה Internal Link

Aggregates מסמכים על‑ידי קיבוץ שלהם (אם מסופק groupBy) והחלת פעולות מרובות.
פעולות שונות (למשל sum, countDistinct, avg וכד׳) נתמכות.

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
parentTenantIdstringqueryNo
includeStatsbooleanqueryNo

Response

Returns: AggregateResponse

Example

דוגמת צבירה
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$aggregation_request = new \FastComments\Client\Model\AggregationRequest(); // \FastComments\Client\Model\AggregationRequest
21$options = [
22 'parent_tenant_id' => 'parent_tenant_id_example', // string
23 'include_stats' => True, // bool
24];
25
26
27try {
28 $result = $apiInstance->aggregate($tenant_id, $aggregation_request, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->aggregate: ', $e->getMessage(), PHP_EOL;
32}
33

קבלת יומני ביקורת Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
limitnumberqueryלא
skipnumberqueryלא
orderstringqueryלא
afternumberqueryלא
beforenumberqueryלא

Response

מחזיר: GetAuditLogsResponse

Example

דוגמת getAuditLogs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑http client מותאם אישית, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$options = [
21 'limit' => 3.4, // float
22 'skip' => 3.4, // float
23 'order' => new \FastComments\Client\Model\\FastComments\Client\Model\SORTDIR(), // \FastComments\Client\Model\SORTDIR
24 'after' => 3.4, // float
25 'before' => 3.4, // float
26];
27
28
29try {
30 $result = $apiInstance->getAuditLogs($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getAuditLogs: ', $e->getMessage(), PHP_EOL;
34}
35

התנתקות (ציבורי) Internal Link

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת logoutPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש ב‑client HTTP מותאם אישית, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13
14
15try {
16 $result = $apiInstance->logoutPublic();
17 print_r($result);
18} catch (Exception $e) {
19 echo 'Exception when calling PublicApi->logoutPublic: ', $e->getMessage(), PHP_EOL;
20}
21

חסום מהתגובה (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

תשובה

מחזיר: BlockSuccess

דוגמה

דוגמה של blockFromCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client http מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->blockFromCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->blockFromCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

בטל חסימה מתגובה (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

תגובה

מחזיר: UnblockSuccess

דוגמה

דוגמת unBlockCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$public_block_from_comment_params = new \FastComments\Client\Model\PublicBlockFromCommentParams(); // \FastComments\Client\Model\PublicBlockFromCommentParams
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unBlockCommentPublic($tenant_id, $comment_id, $public_block_from_comment_params, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unBlockCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

בדוק תגובות לחסימה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
commentIdsstringqueryכןרשימת מזהי תגובות מופרדת בפסיקים.
ssostringqueryלא

תגובה

מחזיר: CheckBlockedCommentsResponse

דוגמה

דוגמת checkedCommentsForBlocked
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑http client מותאם, העבר את ה‑client שלך שממימש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_ids = 'comment_ids_example'; // string | רשימת מזהי תגובות מופרדת בפסיקים.
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->checkedCommentsForBlocked($tenant_id, $comment_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->checkedCommentsForBlocked: ', $e->getMessage(), PHP_EOL;
23}
24

חסום משתמש מהתגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

תגובה

מחזיר: BlockSuccess

דוגמה

blockUserFromComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה שלהלן כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` יהיה בשימוש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$block_from_comment_params = new \FastComments\Client\Model\BlockFromCommentParams(); // \FastComments\Client\Model\BlockFromCommentParams
22$options = [
23 'user_id' => 'user_id_example', // string
24 'anon_user_id' => 'anon_user_id_example', // string
25];
26
27
28try {
29 $result = $apiInstance->blockUserFromComment($tenant_id, $id, $block_from_comment_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->blockUserFromComment: ', $e->getMessage(), PHP_EOL;
33}
34

צור תגובה (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
urlIdstringqueryכן
broadcastIdstringqueryכן
sessionIdstringqueryלא
ssostringqueryלא

תגובה

Returns: SaveCommentsResponseWithPresence

דוגמה

דוגמת createCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$url_id = 'url_id_example'; // מחרוזת
15$broadcast_id = 'broadcast_id_example'; // מחרוזת
16$comment_data = new \FastComments\Client\Model\CommentData(); // \FastComments\Client\Model\CommentData
17$options = [
18 'session_id' => 'session_id_example', // מחרוזת
19 'sso' => 'sso_example', // מחרוזת
20];
21
22
23try {
24 $result = $apiInstance->createCommentPublic($tenant_id, $url_id, $broadcast_id, $comment_data, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->createCommentPublic: ', $e->getMessage(), PHP_EOL;
28}
29

מחק תגובה Internal Link

פרמטרים

שםטיפוסמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן
contextUserIdstringqueryלא
isLivebooleanqueryלא

תגובה

מחזיר: DeleteCommentResult

דוגמה

דוגמת deleteComment
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 '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

מחק תגובה (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםדרושתיאור
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

תגובה

מחזירה: PublicAPIDeleteCommentResponse

דוגמה

דוגמת deleteCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$options = [
17 'edit_key' => 'edit_key_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->deleteCommentPublic($tenant_id, $comment_id, $broadcast_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->deleteCommentPublic: ', $e->getMessage(), PHP_EOL;
27}
28

מחק הצבעת תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
commentIdstringpathכן
voteIdstringpathכן
urlIdstringqueryכן
broadcastIdstringqueryכן
editKeystringqueryלא
ssostringqueryלא

תגובה

מחזיר: VoteDeleteResponse

דוגמה

דוגמת deleteCommentVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑http client מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$vote_id = 'vote_id_example'; // מחרוזת
16$url_id = 'url_id_example'; // מחרוזת
17$broadcast_id = 'broadcast_id_example'; // מחרוזת
18$options = [
19 'edit_key' => 'edit_key_example', // מחרוזת
20 'sso' => 'sso_example', // מחרוזת
21];
22
23
24try {
25 $result = $apiInstance->deleteCommentVote($tenant_id, $comment_id, $vote_id, $url_id, $broadcast_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->deleteCommentVote: ', $e->getMessage(), PHP_EOL;
29}
30

דווח על תגובה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
idstringpathכן
userIdstringqueryלא
anonUserIdstringqueryלא

תגובה

מחזיר: FlagCommentResponse

דוגמה

דוגמת flagComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // קונפיגורציית אימות מפתח API: api_key
7// // בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
13 // // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'anon_user_id' => 'anon_user_id_example', // string
23];
24
25
26try {
27 $result = $apiInstance->flagComment($tenant_id, $id, $options);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->flagComment: ', $e->getMessage(), PHP_EOL;
31}
32

קבל תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: APIGetCommentResponse

דוגמה

דוגמת getComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
8// אם אתה רוצה להשתמש ב‑client http מותאם אישית, העבר את ה‑client שלך המיישם `GuzzleHttp\ClientInterface`.
9// זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10$apiInstance = new FastComments\Client\Api\DefaultApi(
11 // אם אתה רוצה להשתמש ב‑client http מותאם אישית, העבר את ה‑client שלך המיישם `GuzzleHttp\ClientInterface`.
12 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
13 new GuzzleHttp\Client(),
14 $config
15);
16
17$tenant_id = 'tenant_id_example'; // string
18$id = 'id_example'; // string
19
20
21try {
22 $result = $apiInstance->getComment($tenant_id, $id);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling DefaultApi->getComment: ', $e->getMessage(), PHP_EOL;
26}
27

קבל תגובות Internal Link

פרמטרים

שםסוגמיקוםהכרחיתתיאור
tenantIdstringqueryYes
pageintegerqueryNo
limitintegerqueryNo
skipintegerqueryNo
asTreebooleanqueryNo
skipChildrenintegerqueryNo
limitChildrenintegerqueryNo
maxTreeDepthintegerqueryNo
urlIdstringqueryNo
userIdstringqueryNo
anonUserIdstringqueryNo
contextUserIdstringqueryNo
hashTagstringqueryNo
parentIdstringqueryNo
directionstringqueryNo
fromDateintegerqueryNo
toDateintegerqueryNo

תשובה

מחזיר: APIGetCommentsResponse

דוגמה

דוגמת getComments
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמימש `GuzzleHttp\ClientInterface`.
14 // זה אופציונאלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$options = [
21 'page' => 56, // int
22 'limit' => 56, // int
23 'skip' => 56, // int
24 'as_tree' => True, // bool
25 'skip_children' => 56, // int
26 'limit_children' => 56, // int
27 'max_tree_depth' => 56, // int
28 'url_id' => 'url_id_example', // מחרוזת
29 'user_id' => 'user_id_example', // מחרוזת
30 'anon_user_id' => 'anon_user_id_example', // מחרוזת
31 'context_user_id' => 'context_user_id_example', // מחרוזת
32 'hash_tag' => 'hash_tag_example', // מחרוזת
33 'parent_id' => 'parent_id_example', // מחרוזת
34 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
35 'from_date' => 56, // int
36 'to_date' => 56, // int
37];
38
39
40try {
41 $result = $apiInstance->getComments($tenant_id, $options);
42 print_r($result);
43} catch (Exception $e) {
44 echo 'Exception when calling DefaultApi->getComments: ', $e->getMessage(), PHP_EOL;
45}
46

קבל תגובות (ציבורי) Internal Link

req tenantId urlId

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
urlIdstringqueryYes
pageintegerqueryNo
directionstringqueryNo
ssostringqueryNo
skipintegerqueryNo
skipChildrenintegerqueryNo
limitintegerqueryNo
limitChildrenintegerqueryNo
countChildrenbooleanqueryNo
fetchPageForCommentIdstringqueryNo
includeConfigbooleanqueryNo
countAllbooleanqueryNo
includei10nbooleanqueryNo
localestringqueryNo
modulesstringqueryNo
isCrawlerbooleanqueryNo
includeNotificationCountbooleanqueryNo
asTreebooleanqueryNo
maxTreeDepthintegerqueryNo
useFullTranslationIdsbooleanqueryNo
parentIdstringqueryNo
searchTextstringqueryNo
hashTagsarrayqueryNo
userIdstringqueryNo
customConfigStrstringqueryNo
afterCommentIdstringqueryNo
beforeCommentIdstringqueryNo

תגובה

מחזיר: GetCommentsResponseWithPresencePublicComment

דוגמה

דוגמת getCommentsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'page' => 56, // int
17 'direction' => new \FastComments\Client\Model\\FastComments\Client\Model\SortDirections(), // \FastComments\Client\Model\SortDirections
18 'sso' => 'sso_example', // string
19 'skip' => 56, // int
20 'skip_children' => 56, // int
21 'limit' => 56, // int
22 'limit_children' => 56, // int
23 'count_children' => True, // bool
24 'fetch_page_for_comment_id' => 'fetch_page_for_comment_id_example', // string
25 'include_config' => True, // bool
26 'count_all' => True, // bool
27 'includei10n' => True, // bool
28 'locale' => 'locale_example', // string
29 'modules' => 'modules_example', // string
30 'is_crawler' => True, // bool
31 'include_notification_count' => True, // bool
32 'as_tree' => True, // bool
33 'max_tree_depth' => 56, // int
34 'use_full_translation_ids' => True, // bool
35 'parent_id' => 'parent_id_example', // string
36 'search_text' => 'search_text_example', // string
37 'hash_tags' => array('hash_tags_example'), // string[]
38 'user_id' => 'user_id_example', // string
39 'custom_config_str' => 'custom_config_str_example', // string
40 'after_comment_id' => 'after_comment_id_example', // string
41 'before_comment_id' => 'before_comment_id_example', // string
42];
43
44
45try {
46 $result = $apiInstance->getCommentsPublic($tenant_id, $url_id, $options);
47 print_r($result);
48} catch (Exception $e) {
49 echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
50}
51

קבל טקסט תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
commentIdstringpathכן
editKeystringqueryלא
ssostringqueryלא

תגובה

מחזיר: PublicAPIGetCommentTextResponse

דוגמה

דוגמת getCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client http מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'edit_key' => 'edit_key_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->getCommentText($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getCommentText: ', $e->getMessage(), PHP_EOL;
26}
27

קבל שמות משתמשים שהצביעו על תגובה Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringpathYes
commentIdstringpathYes
dirintegerqueryYes
ssostringqueryNo

תגובה

מחזיר: GetCommentVoteUserNamesSuccessResponse

דוגמה

דוגמת getCommentVoteUserNames
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש ב‑client http מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$dir = 56; // שלם
16$sso = 'sso_example'; // מחרוזת
17
18
19try {
20 $result = $apiInstance->getCommentVoteUserNames($tenant_id, $comment_id, $dir, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->getCommentVoteUserNames: ', $e->getMessage(), PHP_EOL;
24}
25

נעל תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת lockComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$broadcast_id = 'broadcast_id_example'; // מחרוזת
16$sso = 'sso_example'; // מחרוזת
17
18
19try {
20 $result = $apiInstance->lockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->lockComment: ', $e->getMessage(), PHP_EOL;
24}
25

נעץ תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

תגובה

מחזיר: ChangeCommentPinStatusResponse

דוגמה

דוגמה pinComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->pinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->pinComment: ', $e->getMessage(), PHP_EOL;
24}
25

שמור תגובה Internal Link

פרמטרים

שםטיפוסמיקוםנדרשתיאור
tenantIdstringqueryכן
isLivebooleanqueryלא
doSpamCheckbooleanqueryלא
sendEmailsbooleanqueryלא
populateNotificationsbooleanqueryלא

תגובה

מחזירה: APISaveCommentResponse

דוגמה

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

שמור תגובות באצווה Internal Link

פרמטרים

שםסוגמיקוםדרושתיאור
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

תגובה

מחזיר: SaveCommentsBulkResponse

דוגמה

דוגמת saveCommentsBulk
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_comment_params = array(new \FastComments\Client\Model\CreateCommentParams()); // \FastComments\Client\Model\CreateCommentParams[]
21$options = [
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'send_emails' => True, // bool
25 'populate_notifications' => True, // bool
26];
27
28
29try {
30 $result = $apiInstance->saveCommentsBulk($tenant_id, $create_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->saveCommentsBulk: ', $e->getMessage(), PHP_EOL;
34}
35

קבע טקסט תגובה Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
commentIdstringpathכן
broadcastIdstringqueryכן
editKeystringqueryלא
ssostringqueryלא

Response

מחזירים: PublicAPISetCommentTextResponse

Example

דוגמת setCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$broadcast_id = 'broadcast_id_example'; // מחרוזת
16$comment_text_update_request = new \FastComments\Client\Model\CommentTextUpdateRequest(); // \FastComments\Client\Model\CommentTextUpdateRequest
17$options = [
18 'edit_key' => 'edit_key_example', // מחרוזת
19 'sso' => 'sso_example', // מחרוזת
20];
21
22
23try {
24 $result = $apiInstance->setCommentText($tenant_id, $comment_id, $broadcast_id, $comment_text_update_request, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->setCommentText: ', $e->getMessage(), PHP_EOL;
28}
29

בטל חסימת משתמש מהתגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

תגובה

מחזיר: UnblockSuccess

דוגמה

unBlockUserFromComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
11// אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
12// This is optional, `GuzzleHttp\Client` will be used as default.
13// זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14
15
16$apiInstance = new FastComments\Client\Api\DefaultApi(
17 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
18 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
19 // This is optional, `GuzzleHttp\Client` will be used as default.
20 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
21 new GuzzleHttp\Client(),
22 $config
23);
24
25$tenant_id = 'tenant_id_example'; // string
26// string
27$id = 'id_example'; // string
28// string
29$un_block_from_comment_params = new \FastComments\Client\Model\UnBlockFromCommentParams(); // \FastComments\Client\Model\UnBlockFromCommentParams
30$options = [
31 'user_id' => 'user_id_example', // string
32 // מחרוזת
33 'anon_user_id' => 'anon_user_id_example', // string
34 // מחרוזת
35];
36
37
38try {
39 $result = $apiInstance->unBlockUserFromComment($tenant_id, $id, $un_block_from_comment_params, $options);
40 print_r($result);
41} catch (Exception $e) {
42 echo 'Exception when calling DefaultApi->unBlockUserFromComment: ', $e->getMessage(), PHP_EOL;
43}
44

הסר דגל מתגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

תגובה

מחזיר: FlagCommentResponse

דוגמה

דוגמת unFlagComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // הגדר אישור מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // // זה אופציונלי, `GuzzleHttp\Client` יישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21$options = [
22 'user_id' => 'user_id_example', // מחרוזת
23 'anon_user_id' => 'anon_user_id_example', // מחרוזת
24];
25
26
27try {
28 $result = $apiInstance->unFlagComment($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->unFlagComment: ', $e->getMessage(), PHP_EOL;
32}
33

בטל נעילת תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
commentIdstringpathכן
broadcastIdstringqueryכן
ssostringqueryלא

תגובה

מחזירה: APIEmptyResponse

דוגמה

דוגמה ל‑unLockComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$broadcast_id = 'broadcast_id_example'; // string
16$sso = 'sso_example'; // string
17
18
19try {
20 $result = $apiInstance->unLockComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unLockComment: ', $e->getMessage(), PHP_EOL;
24}
25

בטל נעיצת תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
commentIdstringpathכן
broadcastIdstringqueryכן
ssostringqueryלא

תגובה

מחזירה: ChangeCommentPinStatusResponse

דוגמה

unPinComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$broadcast_id = 'broadcast_id_example'; // מחרוזת
16$sso = 'sso_example'; // מחרוזת
17
18
19try {
20 $result = $apiInstance->unPinComment($tenant_id, $comment_id, $broadcast_id, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->unPinComment: ', $e->getMessage(), PHP_EOL;
24}
25

עדכן תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
doSpamCheckbooleanqueryNo
isLivebooleanqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת updateComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$updatable_comment_params = new \FastComments\Client\Model\UpdatableCommentParams(); // \FastComments\Client\Model\UpdatableCommentParams
22$options = [
23 'context_user_id' => 'context_user_id_example', // מחרוזת
24 'do_spam_check' => True, // בוליאני
25 'is_live' => True, // בוליאני
26];
27
28
29try {
30 $result = $apiInstance->updateComment($tenant_id, $id, $updatable_comment_params, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL;
34}
35

הצביע על תגובה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringpathכן
commentIdstringpathכן
urlIdstringqueryכן
broadcastIdstringqueryכן
sessionIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: VoteResponse

דוגמה

voteComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` יופעל כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$url_id = 'url_id_example'; // מחרוזת
16$broadcast_id = 'broadcast_id_example'; // מחרוזת
17$vote_body_params = new \FastComments\Client\Model\VoteBodyParams(); // \FastComments\Client\Model\VoteBodyParams
18$options = [
19 'session_id' => 'session_id_example', // מחרוזת
20 'sso' => 'sso_example', // מחרוזת
21];
22
23
24try {
25 $result = $apiInstance->voteComment($tenant_id, $comment_id, $url_id, $broadcast_id, $vote_body_params, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception כאשר קוראים ל‑PublicApi->voteComment: ', $e->getMessage(), PHP_EOL;
29}
30

קבל תגובות עבור משתמש Internal Link

פרמטרים

NameTypeLocationRequiredDescription
userIdstringqueryNo
directionstringqueryNo
repliesToUserIdstringqueryNo
pagenumberqueryNo
includei10nbooleanqueryNo
localestringqueryNo
isCrawlerbooleanqueryNo

תגובה

Returns: GetCommentsForUserResponse

דוגמה

דוגמת getCommentsForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
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

הוסף תצורת דומיין Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes

תגובה

מחזיר: AddDomainConfigResponse

דוגמה

דוגמה של addDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
24
25
26try {
27 $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
31}
32

מחק תצורת דומיין Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
domainstringpathYes

תשובה

מחזיר: DeleteDomainConfigResponse

דוגמה

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

קבל תצורת דומיין Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
domainstringpathYes

תגובה

מחזיר: GetDomainConfigResponse

דוגמה

דוגמת getDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7// בטל את ההערה מהשורה שלמטה כדי להגדיר קידומת (למשל, Bearer) למפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$domain = 'domain_example'; // string
20
21
22try {
23 $result = $apiInstance->getDomainConfig($tenant_id, $domain);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getDomainConfig: ', $e->getMessage(), PHP_EOL;
27}
28

קבל תצורות דומיין Internal Link

פרמטרים

שםסוגמקוםחובהתיאור
tenantIdstringqueryכן

תגובה

מחזיר: GetDomainConfigsResponse

דוגמה

דוגמת getDomainConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדר אישור מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה של השורה שלמטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // מחרוזת
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

עדכן חלקית תצורת דומיין Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
domainToUpdatestringpathכן

תגובה

מחזיר: PatchDomainConfigResponse

דוגמה

patchDomainConfig דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קבע את אימות מפתח ה-API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) עבור מפתח ה-API, אם צריך
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$domain_to_update = 'domain_to_update_example'; // string
24$patch_domain_config_params = new \FastComments\Client\Model\PatchDomainConfigParams(); // \FastComments\Client\Model\PatchDomainConfigParams
25
26
27try {
28 $result = $apiInstance->patchDomainConfig($tenant_id, $domain_to_update, $patch_domain_config_params);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->patchDomainConfig: ', $e->getMessage(), PHP_EOL;
32}
33

החלף תצורת דומיין Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
domainToUpdatestringpathYes

תגובה

מחזיר: PutDomainConfigResponse

דוגמה

דוגמה של putDomainConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$domain_to_update = 'domain_to_update_example'; // מחרוזת
21$update_domain_config_params = new \FastComments\Client\Model\UpdateDomainConfigParams(); // \FastComments\Client\Model\UpdateDomainConfigParams
22
23
24try {
25 $result = $apiInstance->putDomainConfig($tenant_id, $domain_to_update, $update_domain_config_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->putDomainConfig: ', $e->getMessage(), PHP_EOL;
29}
30

צור תבנית אימייל Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes

תשובה

מחזיר: CreateEmailTemplateResponse

דוגמה

createEmailTemplate דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר רישיון מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם צריך
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$create_email_template_body = new \FastComments\Client\Model\CreateEmailTemplateBody(); // \FastComments\Client\Model\CreateEmailTemplateBody
21
22
23try {
24 $result = $apiInstance->createEmailTemplate($tenant_id, $create_email_template_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

מחק תבנית אימייל Internal Link

פרמטרים

שםטיפוסמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה למחיקת תבנית אימייל
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסירו את ההערה למטה כדי להגדיר קידומת (לדוגמה, Bearer) למפתח ה-API, אם צריך
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

מחק שגיאת רינדור של תבנית אימייל Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן
errorIdstringpathכן

תשובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה למחיקת שגיאת תבנית אימייל
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה בקו למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זהו אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$error_id = 'error_id_example'; // string
22
23
24try {
25 $result = $apiInstance->deleteEmailTemplateRenderError($tenant_id, $id, $error_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteEmailTemplateRenderError: ', $e->getMessage(), PHP_EOL;
29}
30

קבל תבנית אימייל Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

Returns: GetEmailTemplateResponse

דוגמת getEmailTemplate

דוגמת getEmailTemplate
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // בטל את השורה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // אם אתה רוצה להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
14 // // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->getEmailTemplate($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

קבל הגדרות תבניות אימייל Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes

תגובה

מחזיר: GetEmailTemplateDefinitionsResponse

דוגמה

דוגמת getEmailTemplateDefinitions
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קבע אישור מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם אתה רוצה להשתמש במלקוח http מותאם, העבר את המלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // מחרוזת
22
23
24try {
25 $result = $apiInstance->getEmailTemplateDefinitions($tenant_id);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getEmailTemplateDefinitions: ', $e->getMessage(), PHP_EOL;
29}
30

קבל שגיאות רינדור של תבנית אימייל Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
skipnumberqueryNo

תגובה

מחזיר: GetEmailTemplateRenderErrorsResponse

דוגמה

דוגמה ל‑getEmailTemplateRenderErrors
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה‑API, במידת הצורך
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21$skip = 3.4; // מספר עשרוני
22
23
24try {
25 $result = $apiInstance->getEmailTemplateRenderErrors($tenant_id, $id, $skip);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->getEmailTemplateRenderErrors: ', $e->getMessage(), PHP_EOL;
29}
30

קבל תבניות אימייל Internal Link

פרמטרים

שםסוגמיקוםהכרחיתיאור
tenantIdstringqueryYes
skipnumberqueryNo

תגובה

מחזירה: GetEmailTemplatesResponse

דוגמה

דוגמת getEmailTemplates
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרות הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטלו את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש במנוע HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$skip = 3.4; // מספר עשרוני
21
22
23try {
24 $result = $apiInstance->getEmailTemplates($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getEmailTemplates: ', $e->getMessage(), PHP_EOL;
28}
29

רנדר תבנית אימייל Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
localestringqueryלא

תגובה

מחזיר: RenderEmailTemplateResponse

דוגמה

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

עדכן תבנית אימייל Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringשאילתהכן
idstringנתיבכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

updateEmailTemplate דוגמה
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// 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
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
13 // This is optional, `GuzzleHttp\Client` will be used as default.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$update_email_template_body = new \FastComments\Client\Model\UpdateEmailTemplateBody(); // \FastComments\Client\Model\UpdateEmailTemplateBody
21
22
23try {
24 $result = $apiInstance->updateEmailTemplate($tenant_id, $id, $update_email_template_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->updateEmailTemplate: ', $e->getMessage(), PHP_EOL;
28}
29

קבל יומן אירועים Internal Link

req tenantId urlId userIdWS

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

תגובה

מחזיר: GetEventLogResponse

דוגמה

דוגמת getEventLog
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$user_id_ws = 'user_id_ws_example'; // string
16$start_time = 56; // int
17$end_time = 56; // int
18
19
20try {
21 $result = $apiInstance->getEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

קבל יומן אירועים גלובלי Internal Link


req tenantId urlId userIdWS

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

תגובה

מחזיר: GetEventLogResponse

דוגמה

דוגמה getGlobalEventLog
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$user_id_ws = 'user_id_ws_example'; // string
16$start_time = 56; // int
17$end_time = 56; // int
18
19
20try {
21 $result = $apiInstance->getGlobalEventLog($tenant_id, $url_id, $user_id_ws, $start_time, $end_time);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getGlobalEventLog: ', $e->getMessage(), PHP_EOL;
25}
26

צור פוסט פיד Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
broadcastIdstringqueryNo
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
skipDupCheckbooleanqueryNo

תגובה

מחזיר: CreateFeedPostsResponse

דוגמה

דוגמה createFeedPost
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדר הרשאת מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם אתה רוצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שממימש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
20$options = [
21 'broadcast_id' => 'broadcast_id_example', // string
22 'is_live' => True, // bool
23 'do_spam_check' => True, // bool
24 'skip_dup_check' => True, // bool
25];
26
27
28try {
29 $result = $apiInstance->createFeedPost($tenant_id, $create_feed_post_params, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->createFeedPost: ', $e->getMessage(), PHP_EOL;
33}
34

צור פוסט פיד (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: CreateFeedPostResponse

דוגמה

דוגמה ל-createFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$create_feed_post_params = new \FastComments\Client\Model\CreateFeedPostParams(); // \FastComments\Client\Model\CreateFeedPostParams
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->createFeedPostPublic($tenant_id, $create_feed_post_params, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->createFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

מחק פוסט פיד (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
postIdstringpathכן
broadcastIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: DeleteFeedPostPublicResponse

דוגמה

דוגמה ל-deleteFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->deleteFeedPostPublic($tenant_id, $post_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->deleteFeedPostPublic: ', $e->getMessage(), PHP_EOL;
26}
27

קבל פוסטים בפיד Internal Link

req tenantId afterId

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo

תגובה

מחזיר: GetFeedPostsResponse

דוגמה

דוגמת getFeedPosts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קביעת אימות מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->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 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // מחרוזת
23$options = [
24 'after_id' => 'after_id_example', // מחרוזת
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

קבל פוסטים בפיד (ציבורי) Internal Link

req tenantId afterId

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo
ssostringqueryNo
isCrawlerbooleanqueryNo
includeUserInfobooleanqueryNo

תגובה

מחזיר: PublicFeedPostsResponse

דוגמה

דוגמת getFeedPostsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'after_id' => 'after_id_example', // string
16 'limit' => 56, // int
17 'tags' => array('tags_example'), // string[]
18 'sso' => 'sso_example', // string
19 'is_crawler' => True, // bool
20 'include_user_info' => True, // bool
21];
22
23
24try {
25 $result = $apiInstance->getFeedPostsPublic($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getFeedPostsPublic: ', $e->getMessage(), PHP_EOL;
29}
30

קבל סטטיסטיקות פוסטים בפיד Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
postIdsarrayqueryYes
ssostringqueryNo

תגובה

מחזיר: FeedPostsStatsResponse

דוגמה

דוגמת getFeedPostsStats
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$post_ids = array('post_ids_example'); // מחרוזת[]
15$sso = 'sso_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->getFeedPostsStats($tenant_id, $post_ids, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getFeedPostsStats: ', $e->getMessage(), PHP_EOL;
23}
24

קבל רגשות משתמשים (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringpathכן
postIdsarrayqueryלא
ssostringqueryלא

תגובה

מחזיר: UserReactsResponse

דוגמה

דוגמת getUserReactsPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'post_ids' => array('post_ids_example'), // מחרוזת[]
16 'sso' => 'sso_example', // מחרוזת
17];
18
19
20try {
21 $result = $apiInstance->getUserReactsPublic($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->getUserReactsPublic: ', $e->getMessage(), PHP_EOL;
25}
26

הגב בפיד (ציבורי) Internal Link

פרמטרים

שםטיפוסמיקוםחובהתיאור
tenantIdstringpathYes
postIdstringpathYes
isUndobooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: ReactFeedPostResponse

דוגמה

דוגמה ל-reactFeedPostPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` יהיה בשימוש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$post_id = 'post_id_example'; // string
15$react_body_params = new \FastComments\Client\Model\ReactBodyParams(); // \FastComments\Client\Model\ReactBodyParams
16$options = [
17 'is_undo' => True, // bool
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->reactFeedPostPublic($tenant_id, $post_id, $react_body_params, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->reactFeedPostPublic: ', $e->getMessage(), PHP_EOL;
28}
29

עדכן פוסט פיד Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

updateFeedPost דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה של הקו הבא כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21$feed_post = new \FastComments\Client\Model\FeedPost(); // \FastComments\Client\Model\FeedPost
22
23
24try {
25 $result = $apiInstance->updateFeedPost($tenant_id, $id, $feed_post);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateFeedPost: ', $e->getMessage(), PHP_EOL;
29}
30

עדכן פוסט פיד (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
postIdstringpathכן
broadcastIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: CreateFeedPostResponse

דוגמה

updateFeedPostPublic דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$post_id = 'post_id_example'; // מחרוזת
15$update_feed_post_params = new \FastComments\Client\Model\UpdateFeedPostParams(); // \FastComments\Client\Model\UpdateFeedPostParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // מחרוזת
18 'sso' => 'sso_example', // מחרוזת
19];
20
21
22try {
23 $result = $apiInstance->updateFeedPostPublic($tenant_id, $post_id, $update_feed_post_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->updateFeedPostPublic: ', $e->getMessage(), PHP_EOL;
27}
28

דווח על תגובה (ציבורי) Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
commentIdstringpathYes
isFlaggedbooleanqueryYes
snostringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה ל-flagCommentPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$is_flagged = True; // בוליאני
16$sso = 'sso_example'; // מחרוזת
17
18
19try {
20 $result = $apiInstance->flagCommentPublic($tenant_id, $comment_id, $is_flagged, $sso);
21 print_r($result);
22} catch (Exception $e) {
23 echo 'Exception when calling PublicApi->flagCommentPublic: ', $e->getMessage(), PHP_EOL;
24}
25

קבל GIF גדול Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
largeInternalURLSanitizedstringqueryYes

תגובה

Returns: GifGetLargeResponse

דוגמה

getGifLarge דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
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

חפש גיפים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
searchstringqueryכן
localestringqueryלא
ratingstringqueryלא
pagenumberqueryלא

תגובה

מחזיר: GetGifsSearchResponse

דוגמה

דוגמת getGifsSearch
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` יהיה בשימוש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$search = 'search_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'rating' => 'rating_example', // string
18 'page' => 3.4, // float
19];
20
21
22try {
23 $result = $apiInstance->getGifsSearch($tenant_id, $search, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling PublicApi->getGifsSearch: ', $e->getMessage(), PHP_EOL;
27}
28

קבל גיפים פופולריים Internal Link

פרמטרים

שםסוגמיקוםדרושתיאור
tenantIdstringpathכן
localestringqueryלא
ratingstringqueryלא
pagenumberqueryלא

תגובה

מחזיר: GetGifsTrendingResponse

דוגמה

דוגמת getGifsTrending
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונאלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

הוסף האשטאג Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן

תגובה

מחזיר: CreateHashTagResponse

דוגמה

דוגמה של addHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה מהשורה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה‑API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם תרצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שממומש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_hash_tag_body = new \FastComments\Client\Model\CreateHashTagBody(); // \FastComments\Client\Model\CreateHashTagBody
21
22
23try {
24 $result = $apiInstance->addHashTag($tenant_id, $create_hash_tag_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->addHashTag: ', $e->getMessage(), PHP_EOL;
28}
29

הוסף האשטאגים באצווה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן

תגובה

Returns: BulkCreateHashTagsResponse

דוגמה

דוגמה של addHashTagsBulk
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'; // מחרוזת
19$bulk_create_hash_tags_body = new \FastComments\Client\Model\BulkCreateHashTagsBody(); // \FastComments\Client\Model\BulkCreateHashTagsBody
20
21
22try {
23 $result = $apiInstance->addHashTagsBulk($tenant_id, $bulk_create_hash_tags_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->addHashTagsBulk: ', $e->getMessage(), PHP_EOL;
27}
28

מחק האשטאג Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
tagstringpathכן

תגובה

Returns: APIEmptyResponse

דוגמה

דוגמת deleteHashTag
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$tag = 'tag_example'; // string
21$delete_hash_tag_request_body = new \FastComments\Client\Model\DeleteHashTagRequestBody(); // \FastComments\Client\Model\DeleteHashTagRequestBody
22
23
24try {
25 $result = $apiInstance->deleteHashTag($tenant_id, $tag, $delete_hash_tag_request_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->deleteHashTag: ', $e->getMessage(), PHP_EOL;
29}
30

קבל האשטאגים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
pagenumberqueryNo

תגובה

מחזיר: GetHashTagsResponse

דוגמה

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

עדכן חלקית האשטאג Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
tagstringpathYes

תגובה

מחזיר: UpdateHashTagResponse

דוגמה

patchHashTag דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה שלהלן כדי להגדיר קידומת (למשל Bearer) למפתח API, אם צריך
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$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

מחק הצבעת moderation Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
commentIdstringpathכן
voteIdstringpathכן
broadcastIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: VoteDeleteResponse

דוגמה

deleteModerationVote דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$vote_id = 'vote_id_example'; // string
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->deleteModerationVote($tenant_id, $comment_id, $vote_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->deleteModerationVote: ', $e->getMessage(), PHP_EOL;
27}
28

קבל תגובות API Internal Link

Parameters

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
pagenumberqueryלא
countnumberqueryלא
text-searchstringqueryלא
byIPFromCommentstringqueryלא
filtersstringqueryלא
searchFiltersstringqueryלא
sortsstringqueryלא
demobooleanqueryלא
ssostringqueryלא

תגובה

מחזיר: ModerationAPIGetCommentsResponse

דוגמה

דוגמת getApiComments
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

קבל סטטוס ייצוא API Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryכן
batchJobIdstringqueryלא
ssostringqueryלא

Response

מחזיר: ModerationExportStatusResponse

Example

getApiExportStatus דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'batch_job_id' => 'batch_job_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getApiExportStatus($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getApiExportStatus: ', $e->getMessage(), PHP_EOL;
25}
26

קבל מזהי API Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
afterIdstringqueryNo
demobooleanqueryNo
ssostringqueryNo

תגובה

מחזיר: ModerationAPIGetCommentIdsResponse

דוגמה

דוגמת getApiIds
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filters' => 'filters_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'after_id' => 'after_id_example', // string
20 'demo' => True, // bool
21 'sso' => 'sso_example', // string
22];
23
24
25try {
26 $result = $apiInstance->getApiIds($tenant_id, $options);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'שגיאה בעת קריאת ModerationApi->getApiIds: ', $e->getMessage(), PHP_EOL;
30}
31

קבל משתמשים בחסימה מתוך תגובה Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

תגובה

מחזיר: GetBannedUsersFromCommentResponse

דוגמה

דוגמה getBanUsersFromComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getBanUsersFromComment($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getBanUsersFromComment: ', $e->getMessage(), PHP_EOL;
23}
24

קבל סטטוס חסימת תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

תגובה

מחזיר: GetCommentBanStatusResponse

דוגמה

דוגמת getCommentBanStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getCommentBanStatus($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentBanStatus: ', $e->getMessage(), PHP_EOL;
23}
24

קבל ילדים של תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
commentIdstringpathכן
ssostringqueryלא

תגובה

מחזיר: ModerationAPIChildCommentsResponse

דוגמה

דוגמת getCommentChildren
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$sso = 'sso_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->getCommentChildren($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getCommentChildren: ', $e->getMessage(), PHP_EOL;
23}
24

קבל ספירה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
text-searchstringqueryלא
byIPFromCommentstringqueryלא
filterstringqueryלא
searchFiltersstringqueryלא
demobooleanqueryלא
ssostringqueryלא

תגובה

מחזיר: ModerationAPICountCommentsResponse

דוגמה

דוגמת getCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'text_search' => 'text_search_example', // מחרוזת
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // מחרוזת
17 'filter' => 'filter_example', // מחרוזת
18 'search_filters' => 'search_filters_example', // מחרוזת
19 'demo' => True, // בוליאני
20 'sso' => 'sso_example', // מחרוזת
21];
22
23
24try {
25 $result = $apiInstance->getCount($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->getCount: ', $e->getMessage(), PHP_EOL;
29}
30

קבל ספירות Internal Link

Parameters

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
ssostringqueryNo

Response

מחזיר: GetBannedUsersCountResponse

Example

דוגמת getCounts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$sso = 'sso_example'; // מחרוזת
15
16
17try {
18 $result = $apiInstance->getCounts($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getCounts: ', $e->getMessage(), PHP_EOL;
22}
23

קבל יומנים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

תשובה

מחזיר: ModerationAPIGetLogsResponse

דוגמה

דוגמת getLogs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$sso = 'sso_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->getLogs($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getLogs: ', $e->getMessage(), PHP_EOL;
23}
24

קבל תגי ידני Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
ssostringqueryלא

תגובה

מחזיר: GetTenantManualBadgesResponse

דוגמה

getManualBadges דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$sso = 'sso_example'; // מחרוזת
15
16
17try {
18 $result = $apiInstance->getManualBadges($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getManualBadges: ', $e->getMessage(), PHP_EOL;
22}
23

קבל תגי ידני עבור משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
badgesUserIdstringqueryNo
commentIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: GetUserManualBadgesResponse

דוגמה

דוגמה ל‑getManualBadgesForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'badges_user_id' => 'badges_user_id_example', // מחרוזת
16 'comment_id' => 'comment_id_example', // מחרוזת
17 'sso' => 'sso_example', // מחרוזת
18];
19
20
21try {
22 $result = $apiInstance->getManualBadgesForUser($tenant_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->getManualBadgesForUser: ', $e->getMessage(), PHP_EOL;
26}
27

קבל תג למודרציה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
includeEmailbooleanqueryNo
includeIPbooleanqueryNo
ssostringqueryNo

תגובה

מחזיר: ModerationAPICommentResponse

דוגמה

דוגמת getModerationComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'include_email' => True, // בוליאני
17 'include_ip' => True, // בוליאני
18 'sso' => 'sso_example', // מחרוזת
19];
20
21
22try {
23 $result = $apiInstance->getModerationComment($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getModerationComment: ', $e->getMessage(), PHP_EOL;
27}
28

קבל טקסט תג למודרציה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
commentIdstringpathכן
ssostringqueryלא

תגובה

מחזיר: GetCommentTextResponse

דוגמה

דוגמת getModerationCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->getModerationCommentText($tenant_id, $comment_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->getModerationCommentText: ', $e->getMessage(), PHP_EOL;
23}
24

קבל סיכום לפני חסימה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
commentIdstringpathכן
includeByUserIdAndEmailbooleanqueryלא
includeByIPbooleanqueryלא
includeByEmailDomainbooleanqueryלא
ssostringqueryלא

תגובה

מחזיר: PreBanSummary

דוגמה

דוגמת getPreBanSummary
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'include_by_user_id_and_email' => True, // בוליאני
17 'include_by_ip' => True, // בוליאני
18 'include_by_email_domain' => True, // בוליאני
19 'sso' => 'sso_example', // מחרוזת
20];
21
22
23try {
24 $result = $apiInstance->getPreBanSummary($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->getPreBanSummary: ', $e->getMessage(), PHP_EOL;
28}
29

קבל סיכום חיפוש תגובות Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryכן
valuestringqueryלא
filtersstringqueryלא
searchFiltersstringqueryלא
ssostringqueryלא

תגובה

מחזיר: ModerationCommentSearchResponse

דוגמה

getSearchCommentsSummary דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'value' => 'value_example', // מחרוזת
16 'filters' => 'filters_example', // מחרוזת
17 'search_filters' => 'search_filters_example', // מחרוזת
18 'sso' => 'sso_example', // מחרוזת
19];
20
21
22try {
23 $result = $apiInstance->getSearchCommentsSummary($tenant_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->getSearchCommentsSummary: ', $e->getMessage(), PHP_EOL;
27}
28

קבל עמודי חיפוש Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

תגובה

Returns: ModerationPageSearchResponse

דוגמה

getSearchPages דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'value' => 'value_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchPages($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception בעת קריאה ל-ModerationApi->getSearchPages: ', $e->getMessage(), PHP_EOL;
25}
26

קבל אתרי חיפוש Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Response

מחזיר: ModerationSiteSearchResponse

דוגמה

דוגמת getSearchSites
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'value' => 'value_example', // מחרוזת
16 'sso' => 'sso_example', // מחרוזת
17];
18
19
20try {
21 $result = $apiInstance->getSearchSites($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSites: ', $e->getMessage(), PHP_EOL;
25}
26

קבל הצעות חיפוש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
text-searchstringqueryלא
ssostringqueryלא

תגובה

מחזיר: ModerationSuggestResponse

דוגמה

getSearchSuggest דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getSearchSuggest($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchSuggest: ', $e->getMessage(), PHP_EOL;
25}
26

קבל משתמשים בחיפוש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

תגובה

מחזיר: ModerationUserSearchResponse

דוגמה

דוגמה של getSearchUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'value' => 'value_example', // מחרוזת
16 'sso' => 'sso_example', // מחרוזת
17];
18
19
20try {
21 $result = $apiInstance->getSearchUsers($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getSearchUsers: ', $e->getMessage(), PHP_EOL;
25}
26

קבל גורם אמון Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
userIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: GetUserTrustFactorResponse

דוגמה

דוגמה getTrustFactor
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 'sso' => 'sso_example', // string
17];
18
19
20try {
21 $result = $apiInstance->getTrustFactor($tenant_id, $options);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling ModerationApi->getTrustFactor: ', $e->getMessage(), PHP_EOL;
25}
26

קבל העדפת חסימה של משתמש Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryכן
ssostringqueryלא

תגובה

מחזיר: APIModerateGetUserBanPreferencesResponse

דוגמה

דוגמת getUserBanPreference
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$sso = 'sso_example'; // מחרוזת
15
16
17try {
18 $result = $apiInstance->getUserBanPreference($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling ModerationApi->getUserBanPreference: ', $e->getMessage(), PHP_EOL;
22}
23

קבל פרופיל פנימי של משתמש Internal Link

פרמטרים

שםטיפוסמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: GetUserInternalProfileResponse

דוגמה

דוגמת getUserInternalProfile
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

התאם הצבעות תגובות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
commentIdstringpathכן
broadcastIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: AdjustVotesResponse

דוגמה

דוגמת postAdjustCommentVotes
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

שלח בקשת יצוא API Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
text-searchstringqueryלא
byIPFromCommentstringqueryלא
filtersstringqueryלא
searchFiltersstringqueryלא
sortsstringqueryלא
ssostringqueryלא

תגובה

מחזיר: ModerationExportResponse

דוגמה

postApiExport דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'text_search' => 'text_search_example', // string
16 'by_ip_from_comment' => 'by_ip_from_comment_example', // string
17 'filters' => 'filters_example', // string
18 'search_filters' => 'search_filters_example', // string
19 'sorts' => 'sorts_example', // string
20 'sso' => 'sso_example', // string
21];
22
23
24try {
25 $result = $apiInstance->postApiExport($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling ModerationApi->postApiExport: ', $e->getMessage(), PHP_EOL;
29}
30

חסום משתמש מהתגובה (מודרציה) Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
commentIdstringpathYes
banEmailbooleanqueryNo
banEmailDomainbooleanqueryNo
banIPbooleanqueryNo
deleteAllUsersCommentsbooleanqueryNo
bannedUntilstringqueryNo
isShadowBanbooleanqueryNo
updateIdstringqueryNo
banReasonstringqueryNo
ssostringqueryNo

תגובה

מחזיר: BanUserFromCommentResult

דוגמה

postBanUserFromComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

בטל חסימת משתמש Internal Link

Parameters

שםסוגמיקוםדרושתיאור
tenantIdstringqueryYes
ssostringqueryNo

Response

מחזיר: APIEmptyResponse

Example

postBanUserUndo דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש ב‑client http מותאם אישית, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$ban_user_undo_params = new \FastComments\Client\Model\BanUserUndoParams(); // \FastComments\Client\Model\BanUserUndoParams
15$sso = 'sso_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->postBanUserUndo($tenant_id, $ban_user_undo_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postBanUserUndo: ', $e->getMessage(), PHP_EOL;
23}
24

שלח סיכום מקדמי חסימה באצווה Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

Response

מחזירה: BulkPreBanSummary

Example

postBulkPreBanSummary דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

קבל תגובות לפי מזהים Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
ssostringqueryלא

תגובה

מחזיר: ModerationAPIChildCommentsResponse

דוגמה

postCommentsByIds דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comments_by_ids_params = new \FastComments\Client\Model\CommentsByIdsParams(); // \FastComments\Client\Model\CommentsByIdsParams
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->postCommentsByIds($tenant_id, $comments_by_ids_params, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->postCommentsByIds: ', $e->getMessage(), PHP_EOL;
23}
24

שלח דיווח על תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: APIEmptyResponse

Example

postFlagComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // מחרוזת
17 'sso' => 'sso_example', // מחרוזת
18];
19
20
21try {
22 $result = $apiInstance->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

שלח הסרת תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: PostRemoveCommentApiResponse

דוגמה

דוגמת postRemoveComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // מחרוזת
17 'sso' => 'sso_example', // מחרוזת
18];
19
20
21try {
22 $result = $apiInstance->postRemoveComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRemoveComment: ', $e->getMessage(), PHP_EOL;
26}
27

שחזר תגובה שנמחקה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה לpostRestoreDeletedComment
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש במתאם HTTP מותאם אישית, העבר את הלקוח שלך שממומש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postRestoreDeletedComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postRestoreDeletedComment: ', $e->getMessage(), PHP_EOL;
26}
27

קבע סטטוס אישור תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
approvedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

תשובה

מחזיר: SetCommentApprovedResponse

דוגמה

דוגמה ל‑postSetCommentApprovalStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'approved' => True, // בוליאני
17 'broadcast_id' => 'broadcast_id_example', // מחרוזת
18 'sso' => 'sso_example', // מחרוזת
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentApprovalStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentApprovalStatus: ', $e->getMessage(), PHP_EOL;
27}
28

קבע סטטוס בדיקת תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
commentIdstringpathכן
reviewedbooleanqueryלא
broadcastIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: APIEmptyResponse

דוגמה

postSetCommentReviewStatus דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'reviewed' => True, // בוליאני
17 'broadcast_id' => 'broadcast_id_example', // מחרוזת
18 'sso' => 'sso_example', // מחרוזת
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentReviewStatus($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentReviewStatus: ', $e->getMessage(), PHP_EOL;
27}
28

קבע סטטוס דואר זבל לתגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
spambooleanqueryNo
permNotSpambooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

postSetCommentSpamStatus דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח http מותאם אישית, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'spam' => True, // בוליאני
17 'perm_not_spam' => True, // בוליאני
18 'broadcast_id' => 'broadcast_id_example', // מחרוזת
19 'sso' => 'sso_example', // מחרוזת
20];
21
22
23try {
24 $result = $apiInstance->postSetCommentSpamStatus($tenant_id, $comment_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->postSetCommentSpamStatus: ', $e->getMessage(), PHP_EOL;
28}
29

קבע טקסט תגובה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: SetCommentTextResponse

דוגמה

דוגמת postSetCommentText
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$set_comment_text_params = new \FastComments\Client\Model\SetCommentTextParams(); // \FastComments\Client\Model\SetCommentTextParams
16$options = [
17 'broadcast_id' => 'broadcast_id_example', // string
18 'sso' => 'sso_example', // string
19];
20
21
22try {
23 $result = $apiInstance->postSetCommentText($tenant_id, $comment_id, $set_comment_text_params, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postSetCommentText: ', $e->getMessage(), PHP_EOL;
27}
28

בטל דיווח על תגובה Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
commentIdstringpathכן
broadcastIdstringqueryלא
ssostringqueryלא

Response

מחזיר: APIEmptyResponse

Example

postUnFlagComment דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$comment_id = 'comment_id_example'; // string
15$options = [
16 'broadcast_id' => 'broadcast_id_example', // string
17 'sso' => 'sso_example', // string
18];
19
20
21try {
22 $result = $apiInstance->postUnFlagComment($tenant_id, $comment_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling ModerationApi->postUnFlagComment: ', $e->getMessage(), PHP_EOL;
26}
27

שלח הצבעה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringpathYes
directionstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

תגובה

מחזיר: VoteResponse

דוגמה

postVote דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$comment_id = 'comment_id_example'; // מחרוזת
15$options = [
16 'direction' => 'direction_example', // מחרוזת
17 'broadcast_id' => 'broadcast_id_example', // מחרוזת
18 'sso' => 'sso_example', // מחרוזת
19];
20
21
22try {
23 $result = $apiInstance->postVote($tenant_id, $comment_id, $options);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling ModerationApi->postVote: ', $e->getMessage(), PHP_EOL;
27}
28

הענק תג פרס Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

תשובה

Returns: AwardUserBadgeResponse

דוגמה

דוגמת putAwardBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם תרצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$badge_id = 'badge_id_example'; // string
15$options = [
16 'user_id' => 'user_id_example', // string
17 'comment_id' => 'comment_id_example', // string
18 'broadcast_id' => 'broadcast_id_example', // string
19 'sso' => 'sso_example', // string
20];
21
22
23try {
24 $result = $apiInstance->putAwardBadge($tenant_id, $badge_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling ModerationApi->putAwardBadge: ', $e->getMessage(), PHP_EOL;
28}
29

סגור שרשור Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringשאילתהכן
urlIdstringשאילתהכן
ssostringשאילתהלא

תשובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת putCloseThread
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑לקוח HTTP מותאם, העבר את ה‑לקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$sso = 'sso_example'; // string
16
17
18try {
19 $result = $apiInstance->putCloseThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putCloseThread: ', $e->getMessage(), PHP_EOL;
23}
24

הסר תג פרס Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
badgeIdstringqueryכן
userIdstringqueryלא
commentIdstringqueryלא
broadcastIdstringqueryלא
ssostringqueryלא

תגובה

מחזיר: RemoveUserBadgeResponse

דוגמה

putRemoveBadge דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח http מותאם אישית, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

פתח מחדש שרשור Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
urlIdstringqueryYes
ssostringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה של putReopenThread
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שממומש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$url_id = 'url_id_example'; // מחרוזת
15$sso = 'sso_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->putReopenThread($tenant_id, $url_id, $sso);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling ModerationApi->putReopenThread: ', $e->getMessage(), PHP_EOL;
23}
24

קבע גורם אמון Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryNo
trustFactorstringqueryNo
ssostringqueryNo

Response

מחזיר: SetUserTrustFactorResponse

Example

דוגמת setTrustFactor
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\ModerationApi(
8 // אם ברצונך להשתמש ב‑http client מותאם, העבר את ה‑client שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'user_id' => 'user_id_example', // string
16 '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

צור מודרטור Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes

תגובה

מחזיר: CreateModeratorResponse

דוגמה

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

מחק מודרטור Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
idstringpathYes
sendEmailstringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה של deleteModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, במידת הצורך
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$send_email = 'send_email_example'; // string
25
26
27try {
28 $result = $apiInstance->deleteModerator($tenant_id, $id, $send_email);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteModerator: ', $e->getMessage(), PHP_EOL;
32}
33

קבל מודרטור Internal Link

פרמטרים

שםסוגמיקוםהכרחיתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: GetModeratorResponse

דוגמה

דוגמת getModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // אם אתה רוצה להשתמש בלקוח http מותאם אישית, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // // זה אפשרי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->getModerator($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerator: ', $e->getMessage(), PHP_EOL;
28}
29

קבל מודרטורים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
skipnumberqueryלא

תגובה

מחזיר: GetModeratorsResponse

דוגמה

דוגמת getModerators
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאה של מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסרת ההערה למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש ב-client HTTP מותאם, העבר את ה-client שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$skip = 3.4; // מספר ממשי
21
22
23try {
24 $result = $apiInstance->getModerators($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getModerators: ', $e->getMessage(), PHP_EOL;
28}
29

שלח הזמנה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
fromNamestringqueryYes

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת sendInvite
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$from_name = 'from_name_example'; // string
22
23
24try {
25 $result = $apiInstance->sendInvite($tenant_id, $id, $from_name);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->sendInvite: ', $e->getMessage(), PHP_EOL;
29}
30

עדכן מודרטור Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה של updateModerator
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת אימות מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21$update_moderator_body = new \FastComments\Client\Model\UpdateModeratorBody(); // \FastComments\Client\Model\UpdateModeratorBody
22
23
24try {
25 $result = $apiInstance->updateModerator($tenant_id, $id, $update_moderator_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateModerator: ', $e->getMessage(), PHP_EOL;
29}
30

מחק ספירת התראות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה ל-deleteNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונאלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->deleteNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

קבל ספירת התראות מטמון Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: GetCachedNotificationCountResponse

דוגמה

getCachedNotificationCount דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// קבע הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה של הקוד למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->getCachedNotificationCount($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getCachedNotificationCount: ', $e->getMessage(), PHP_EOL;
28}
29

קבל ספירת התראות Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryNo
urlIdstringqueryNo
fromCommentIdstringqueryNo
viewedbooleanqueryNo
typestringqueryNo

תגובה

מחזיר: GetNotificationCountResponse

דוגמה

דוגמת getNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמימש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'user_id' => 'user_id_example', // string
22 'url_id' => 'url_id_example', // string
23 'from_comment_id' => 'from_comment_id_example', // string
24 'viewed' => True, // bool
25 'type' => 'type_example', // string
26];
27
28
29try {
30 $result = $apiInstance->getNotificationCount($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->getNotificationCount: ', $e->getMessage(), PHP_EOL;
34}
35

קבל התראות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
userIdstringqueryלא
urlIdstringqueryלא
fromCommentIdstringqueryלא
viewedbooleanqueryלא
typestringqueryלא
skipnumberqueryלא

תגובה

מחזיר: GetNotificationsResponse

דוגמה

דוגמת getNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// 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 'user_id' => 'user_id_example', // string
22 'url_id' => 'url_id_example', // string
23 'from_comment_id' => 'from_comment_id_example', // string
24 'viewed' => True, // bool
25 'type' => 'type_example', // string
26 'skip' => 3.4, // float
27];
28
29
30try {
31 $result = $apiInstance->getNotifications($tenant_id, $options);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL;
35}
36

עדכן התראה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
idstringpathכן
userIdstringqueryלא

תגובה

מחזיר: APIEmptyResponse

דוגמה

updateNotification דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר אישור מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$update_notification_body = new \FastComments\Client\Model\UpdateNotificationBody(); // \FastComments\Client\Model\UpdateNotificationBody
25$user_id = 'user_id_example'; // string
26
27
28try {
29 $result = $apiInstance->updateNotification($tenant_id, $id, $update_notification_body, $user_id);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->updateNotification: ', $e->getMessage(), PHP_EOL;
33}
34

צור תגובת דף V1 Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
urlIdstringqueryYes
titlestringqueryNo

תגובה

מחזיר: CreateV1PageReact

דוגמה

דוגמת createV1PageReact
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$url_id = 'url_id_example'; // מחרוזת
15$title = 'title_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->createV1PageReact($tenant_id, $url_id, $title);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->createV1PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

צור תגובת דף V2 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathכן
urlIdstringqueryכן
idstringqueryכן
titlestringqueryלא

Response

מחזיר: CreateV1PageReact

Example

דוגמת createV2PageReact
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

מחק תגובת דף V1 Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
urlIdstringqueryכן

תגובה

מחזיר: CreateV1PageReact

דוגמה

דוגמה ל-deleteV1PageReact
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7// $apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

מחק תגובת דף V2 Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
urlIdstringqueryכן
idstringqueryכן

תשובה

מחזיר: CreateV1PageReact

דוגמה

דוגמת deleteV2PageReact
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$url_id = 'url_id_example'; // מחרוזת
15$id = 'id_example'; // מחרוזת
16
17
18try {
19 $result = $apiInstance->deleteV2PageReact($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->deleteV2PageReact: ', $e->getMessage(), PHP_EOL;
23}
24

קבל לייקים לדף V1 Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
urlIdstringqueryכן

תגובה

Returns: GetV1PageLikes

דוגמה

דוגמה לgetV1PageLikes
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$url_id = 'url_id_example'; // מחרוזת
15
16
17try {
18 $result = $apiInstance->getV1PageLikes($tenant_id, $url_id);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getV1PageLikes: ', $e->getMessage(), PHP_EOL;
22}
23

קבל תגובות לדף V2 Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
urlIdstringqueryYes

Response

מחזיר: GetV2PageReacts

Example

דוגמה getV2PageReacts
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש במונה http מותאם אישית, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

קבל משתמשים שהגיבו לדף V2 Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

תגובה

מחזיר: GetV2PageReactUsersResponse

דוגמא

דוגמא getV2PageReactUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$id = 'id_example'; // string
16
17
18try {
19 $result = $apiInstance->getV2PageReactUsers($tenant_id, $url_id, $id);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getV2PageReactUsers: ', $e->getMessage(), PHP_EOL;
23}
24

הוסף דף Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryכן

Response

מחזיר: AddPageAPIResponse

Example

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

מחק דף Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: DeletePageAPIResponse

דוגמה

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

קבל משתמשים לא מקוונים Internal Link

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

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
urlIdstringqueryYesמזהה URL של הדף (נוקב בצד השרת).
afterNamestringqueryNoמצביע: העבר nextAfterName מהתגובה הקודמת.
afterUserIdstringqueryNoמפריד תחרות למצב מצביע: העבר nextAfterUserId מהתגובה הקודמת. נדרש כאשר afterName מוגדר כדי שמקשרים באותו שם לא יוחזרו.

Response

Returns: PageUsersOfflineResponse

Example

getOfflineUsers דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | מזהה URL של הדף (נוקב בצד השרת).
15$options = [
16 'after_name' => 'after_name_example', // string | מצביע: העבר nextAfterName מהתגובה הקודמת.
17 'after_user_id' => 'after_user_id_example', // string | מפריד תחרות למצב מצביע: העבר nextAfterUserId מהתגובה הקודמת. נדרש כאשר afterName מוגדר כדי שמקשרים באותו שם לא יוחזרו.
18];
19
20
21try {
22 $result = $apiInstance->getOfflineUsers($tenant_id, $url_id, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getOfflineUsers: ', $e->getMessage(), PHP_EOL;
26}
27

קבל משתמשים מקוונים Internal Link

Currently-online viewers of a page: people whose websocket session is subscribed to the page right now.
מחזיר anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).
מחזיר anonCount + totalCount (מנויים בכל החדר, כולל צופים אנונימיים שאנו לא סופרים).

Parameters

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesPage URL identifier (cleaned server-side).
urlIdstringqueryYesמזהה כתובת URL של הדף (ניקוי בצד השרת).
afterNamestringqueryNoCursor: pass nextAfterName from the previous response.
afterNamestringqueryNoסמן: העבר nextAfterName מהתגובה הקודמת.
afterUserIdstringqueryNoCursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.
afterUserIdstringqueryNoשובר קושי של סמן: העבר nextAfterUserId מהתגובה הקודמת. נדרש כאשר afterName מוגדר כדי שמקשרים על שם לא יפלו מהתוצאות.

Response

תגובה

Returns: PageUsersOnlineResponse
מחזיר: PageUsersOnlineResponse

Example

דוגמה

getOnlineUsers דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string | Page URL identifier (cleaned server-side).
15$url_id = 'url_id_example'; // string | מזהה כתובת URL של הדף (ניקוי בצד השרת).
16$options = [
17 'after_name' => 'after_name_example', // string | Cursor: pass nextAfterName from the previous response.
18 'after_name' => 'after_name_example', // string | סמן: העבר nextAfterName מהתגובה הקודמת.
19 'after_user_id' => 'after_user_id_example', // string | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.
20 'after_user_id' => 'after_user_id_example', // string | שובר קושי של סמן: העבר nextAfterUserId מהתגובה הקודמת. נדרש כאשר afterName מוגדר כדי שמקשרים על שם לא יפלו מהתוצאות.
21];
22
23
24try {
25 $result = $apiInstance->getOnlineUsers($tenant_id, $url_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->getOnlineUsers: ', $e->getMessage(), PHP_EOL;
29}
30

קבל דף לפי מזהה URL Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryYes

Response

Returns: GetPageByURLIdAPIResponse

Example

דוגמה של getPageByURLId
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑http client מותאם, ספק את ה‑client שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
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->getPageByURLId($tenant_id, $url_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getPageByURLId: ', $e->getMessage(), PHP_EOL;
28}
29

קבל דפים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes

תגובה

מחזיר: GetPagesAPIResponse

דוגמת getPages

דוגמת getPages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23
24
25try {
26 $result = $apiInstance->getPages($tenant_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->getPages: ', $e->getMessage(), PHP_EOL;
30}
31

קבל דפים (ציבורי) Internal Link

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

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringpathYes
cursorstringqueryNoמצביע דפדוף אטום שהוחזר כ‑nextCursor מבקשה קודמת. קשור לאותו sortBy.
limitintegerqueryNo1..200, ברירת מחדל 50
qstringqueryNoמסנן קידומת כותרת רגישות למקרה ואופציונלי.
sortBystringqueryNoסדר מיון. updatedAt (ברירת מחדל, החדשות ביותר תחילה), commentCount (רוב ההערות תחילה), או title (בסדר אלפביתי).
hasCommentsbooleanqueryNoאם true, מחזיר רק דפים עם לפחות הערה אחת.

Response

מחזיר: GetPublicPagesResponse

דוגמה

דוגמת getPagesPublic
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'cursor' => 'cursor_example', // string | מצביע דפדוף אטום שהוחזר כ‑`nextCursor` מבקשה קודמת. קשור לאותו `sortBy`.
16 'limit' => 56, // int | 1..200, ברירת מחדל 50
17 'q' => 'q_example', // string | מסנן קידומת כותרת רגישות למקרה ואופציונלי.
18 'sort_by' => new \FastComments\Client\Model\\FastComments\Client\Model\PagesSortBy(), // \FastComments\Client\Model\PagesSortBy | סדר מיון. `updatedAt` (ברירת מחדל, החדשות ביותר תחילה), `commentCount` (רוב ההערות תחילה), או `title` (בסדר אלפביתי).
19 'has_comments' => True, // bool | אם true, מחזיר רק דפים עם לפחות הערה אחת.
20];
21
22
23try {
24 $result = $apiInstance->getPagesPublic($tenant_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->getPagesPublic: ', $e->getMessage(), PHP_EOL;
28}
29

קבל מידע על משתמשים Internal Link

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

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
idsstringqueryכןמופרדים בפסיקים userIds.

תגובה

מחזיר: PageUsersInfoResponse

דוגמה

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

עדכן חלקית דף Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: PatchPageAPIResponse

דוגמה

patchPage דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה שלהלן כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22// מחרוזת
23$id = 'id_example'; // string
24// מחרוזת
25$update_api_page_data = new \FastComments\Client\Model\UpdateAPIPageData(); // \FastComments\Client\Model\UpdateAPIPageData
26
27
28try {
29 $result = $apiInstance->patchPage($tenant_id, $id, $update_api_page_data);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->patchPage: ', $e->getMessage(), PHP_EOL;
33}
34

מחק אירוע webhook ממתין Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

deletePendingWebhookEvent דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם אתה רוצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21
22try {
23 $result = $apiInstance->deletePendingWebhookEvent($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deletePendingWebhookEvent: ', $e->getMessage(), PHP_EOL;
27}
28

קבל ספירת אירועי webhook ממתינים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo

תגובה

מחזירה: GetPendingWebhookEventCountResponse

דוגמה

getPendingWebhookEventCount דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה שלהלן כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 '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

קבל אירועי webhook ממתינים Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo
skipnumberqueryNo

Response

מחזיר: GetPendingWebhookEventsResponse

Example

דוגמת getPendingWebhookEvents
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש ב‑client http מותאם אישית, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$options = [
21 'comment_id' => 'comment_id_example', // מחרוזת
22 'external_id' => 'external_id_example', // מחרוזת
23 'event_type' => 'event_type_example', // מחרוזת
24 'type' => 'type_example', // מחרוזת
25 'domain' => 'domain_example', // מחרוזת
26 'attempt_count_gt' => 3.4, // מספר עשרוני
27 'skip' => 3.4, // מספר עשרוני
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

צור תצורת שאלה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן

תגובה

מחזיר: CreateQuestionConfigResponse

דוגמה

createQuestionConfig דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$create_question_config_body = new \FastComments\Client\Model\CreateQuestionConfigBody(); // \FastComments\Client\Model\CreateQuestionConfigBody
21
22
23try {
24 $result = $apiInstance->createQuestionConfig($tenant_id, $create_question_config_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionConfig: ', $e->getMessage(), PHP_EOL;
28}
29

מחק תצורת שאלה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת deleteQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר אימות מפתח API: api_key
7// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה, Bearer) למפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20
21
22try {
23 $result = $apiInstance->deleteQuestionConfig($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteQuestionConfig: ', $e->getMessage(), PHP_EOL;
27}
28

קבל תצורת שאלה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: GetQuestionConfigResponse

דוגמה

דוגמת getQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדרת אימות מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטלו את ההערה למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // מחרוזת
19$id = 'id_example'; // מחרוזת
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

קבל תצורות שאלות Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
skipnumberqueryNo

תגובה

מחזיר: GetQuestionConfigsResponse

דוגמה

דוגמת getQuestionConfigs
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$skip = 3.4; // float
21
22
23try {
24 $result = $apiInstance->getQuestionConfigs($tenant_id, $skip);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getQuestionConfigs: ', $e->getMessage(), PHP_EOL;
28}
29

עדכן תצורת שאלה Internal Link


פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזירה: APIEmptyResponse

דוגמה

דוגמת updateQuestionConfig
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
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

צור תוצאת שאלה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes

תגובה

מחזיר: CreateQuestionResultResponse

דוגמה

createQuestionResult דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$create_question_result_body = new \FastComments\Client\Model\CreateQuestionResultBody(); // \FastComments\Client\Model\CreateQuestionResultBody
21
22
23try {
24 $result = $apiInstance->createQuestionResult($tenant_id, $create_question_result_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->createQuestionResult: ', $e->getMessage(), PHP_EOL;
28}
29

מחק תוצאת שאלה Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Response

Returns: APIEmptyResponse

Example

דוגמה של deleteQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטלו את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23// מחרוזת
24$id = 'id_example'; // string
25// מחרוזת
26
27
28try {
29 $result = $apiInstance->deleteQuestionResult($tenant_id, $id);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->deleteQuestionResult: ', $e->getMessage(), PHP_EOL;
33}
34

קבל תוצאת שאלה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזירה: GetQuestionResultResponse

דוגמה

דוגמת getQuestionResult
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->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

קבל תוצאות שאלות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
urlIdstringqueryלא
userIdstringqueryלא
startDatestringqueryלא
questionIdstringqueryלא
questionIdsstringqueryלא
skipnumberqueryלא

תגובה

מחזיר: GetQuestionResultsResponse

דוגמה

דוגמת getQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קביעת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטלו את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך הממומש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22// מחרוזת
23$options = [
24 'url_id' => 'url_id_example', // string
25 // מחרוזת
26 'user_id' => 'user_id_example', // string
27 // מחרוזת
28 'start_date' => 'start_date_example', // string
29 // מחרוזת
30 'question_id' => 'question_id_example', // string
31 // מחרוזת
32 'question_ids' => 'question_ids_example', // string
33 // מחרוזת
34 'skip' => 3.4, // float
35 // מספר עשרוני
36];
37
38
39try {
40 $result = $apiInstance->getQuestionResults($tenant_id, $options);
41 print_r($result);
42} catch (Exception $e) {
43 echo 'Exception when calling DefaultApi->getQuestionResults: ', $e->getMessage(), PHP_EOL;
44}
45

עדכן תוצאת שאלה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה ל‑updateQuestionResult
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר את האימות באמצעות מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה‑API, אם נדרש
10$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // אם ברצונך להשתמש ב‑client http מותאם, העבר את ה‑client שלך המממש את `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24// מחרוזת
25$id = 'id_example'; // string
26// מחרוזת
27$update_question_result_body = new \FastComments\Client\Model\UpdateQuestionResultBody(); // \FastComments\Client\Model\UpdateQuestionResultBody
28
29
30try {
31 $result = $apiInstance->updateQuestionResult($tenant_id, $id, $update_question_result_body);
32 print_r($result);
33} catch (Exception $e) {
34 echo 'Exception when calling DefaultApi->updateQuestionResult: ', $e->getMessage(), PHP_EOL;
35}
36

אגרגציית תוצאות שאלות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

תגובה

מחזיר: AggregateQuestionResultsResponse

דוגמה

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

אגרגציית תוצאות שאלות באצווה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
forceRecalculatebooleanqueryNo

תגובה

Returns: BulkAggregateQuestionResultsResponse

דוגמה

bulkAggregateQuestionResults דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה, Bearer) למפתח ה-API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$bulk_aggregate_question_results_request = new \FastComments\Client\Model\BulkAggregateQuestionResultsRequest(); // \FastComments\Client\Model\BulkAggregateQuestionResultsRequest
24$force_recalculate = True; // bool
25
26
27try {
28 $result = $apiInstance->bulkAggregateQuestionResults($tenant_id, $bulk_aggregate_question_results_request, $force_recalculate);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->bulkAggregateQuestionResults: ', $e->getMessage(), PHP_EOL;
32}
33

שילוב תגובות עם תוצאות שאלות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo
minValuenumberqueryNo
maxValuenumberqueryNo
limitnumberqueryNo

תגובה

מחזיר: CombineQuestionResultsWithCommentsResponse

דוגמה

דוגמה של combineCommentsWithQuestionResults
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$options = [
24 'question_id' => 'question_id_example', // string
25 'question_ids' => array('question_ids_example'), // string[]
26 'url_id' => 'url_id_example', // string
27 'start_date' => new \DateTime('2013-10-20T19:20:30+01:00'), // \DateTime
28 'force_recalculate' => True, // bool
29 'min_value' => 3.4, // float
30 'max_value' => 3.4, // float
31 'limit' => 3.4, // float
32];
33
34
35try {
36 $result = $apiInstance->combineCommentsWithQuestionResults($tenant_id, $options);
37 print_r($result);
38} catch (Exception $e) {
39 echo 'Exception when calling DefaultApi->combineCommentsWithQuestionResults: ', $e->getMessage(), PHP_EOL;
40 // חריגה בזמן קריאה ל-DefaultApi->combineCommentsWithQuestionResults:
41}
42

הוסף משתמש SSO Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן

תגובה

מחזירה: AddSSOUserAPIResponse

דוגמה

דוגמה של addSSOUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת אימות באמצעות מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
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

מחק משתמש SSO Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן
deleteCommentsbooleanqueryלא
commentDeleteModestringqueryלא

תגובה

מחזיר: DeleteSSOUserAPIResponse

דוגמה

דוגמת deleteSSOUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21$options = [
22 'delete_comments' => True, // בוליאני
23 'comment_delete_mode' => 'comment_delete_mode_example', // מחרוזת
24];
25
26
27try {
28 $result = $apiInstance->deleteSSOUser($tenant_id, $id, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->deleteSSOUser: ', $e->getMessage(), PHP_EOL;
32}
33

קבל משתמש SSO לפי אימייל Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringשאילתהכן
emailstringנתיבכן

תגובה

מחזיר: GetSSOUserByEmailAPIResponse

דוגמת getSSOUserByEmail

דוגמת getSSOUserByEmail
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$email = 'email_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->getSSOUserByEmail($tenant_id, $email);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserByEmail: ', $e->getMessage(), PHP_EOL;
28}
29

קבל משתמש SSO לפי מזהה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזירה: GetSSOUserByIdAPIResponse

דוגמה

getSSOUserById דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאות מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->getSSOUserById($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getSSOUserById: ', $e->getMessage(), PHP_EOL;
28}
29

קבל משתמשי SSO Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
skipintegerqueryלא

תגובה

מחזיר: GetSSOUsersResponse

דוגמה

דוגמה getSSOUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדרת הרשאה למפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטלו את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$skip = 56; // int
20
21
22try {
23 $result = $apiInstance->getSSOUsers($tenant_id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getSSOUsers: ', $e->getMessage(), PHP_EOL;
27}
28

עדכן חלקית משתמש SSO Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

תגובה

מחזיר: PatchSSOUserAPIResponse

דוגמה

patchSSOUser דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קונפיגורציית הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22$id = 'id_example'; // string
23$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
24$update_comments = True; // bool
25
26
27try {
28 $result = $apiInstance->patchSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->patchSSOUser: ', $e->getMessage(), PHP_EOL;
32}
33

החלף משתמש SSO Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

תשובה

מחזיר: PutSSOUserAPIResponse

דוגמת putSSOUser

דוגמת putSSOUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת אימות מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
11// אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
12// This is optional, `GuzzleHttp\Client` will be used as default.
13// זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
14
15
16$apiInstance = new FastComments\Client\Api\DefaultApi(
17 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
18 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
19 // This is optional, `GuzzleHttp\Client` will be used as default.
20 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
21 new GuzzleHttp\Client(),
22 $config
23);
24
25$tenant_id = 'tenant_id_example'; // string
26$id = 'id_example'; // string
27$update_apisso_user_data = new \FastComments\Client\Model\UpdateAPISSOUserData(); // \FastComments\Client\Model\UpdateAPISSOUserData
28$update_comments = True; // bool
29
30
31try {
32 $result = $apiInstance->putSSOUser($tenant_id, $id, $update_apisso_user_data, $update_comments);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->putSSOUser: ', $e->getMessage(), PHP_EOL;
36}
37

צור מנוי Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes

תגובה

מחזיר: CreateSubscriptionAPIResponse

דוגמה

דוגמת createSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאה של מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש ב‑client http מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` יישומש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22$create_api_user_subscription_data = new \FastComments\Client\Model\CreateAPIUserSubscriptionData(); // \FastComments\Client\Model\CreateAPIUserSubscriptionData
23
24
25try {
26 $result = $apiInstance->createSubscription($tenant_id, $create_api_user_subscription_data);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
30}
31

מחק מנוי Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

תגובה

מחזיר: DeleteSubscriptionAPIResponse

דוגמה

דוגמת deleteSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7// בטל את ההערה על הקו למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח API, אם יש צורך
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך המממש את `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$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

קבל מנויים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
userIdstringqueryלא

תגובה

מחזיר: GetSubscriptionsAPIResponse

דוגמה

דוגמת getSubscriptions
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדר הרשאת מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם אתה רוצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$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

עדכן מנוי Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן
userIdstringqueryלא

תשובה

מחזיר: UpdateSubscriptionAPIResponse

דוגמה

דוגמת updateSubscription
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_api_user_subscription_data = new \FastComments\Client\Model\UpdateAPIUserSubscriptionData(); // \FastComments\Client\Model\UpdateAPIUserSubscriptionData
22$user_id = 'user_id_example'; // string
23
24
25try {
26 $result = $apiInstance->updateSubscription($tenant_id, $id, $update_api_user_subscription_data, $user_id);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL;
30}
31

קבל שימוש יומי של השוכר Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
yearNumbernumberqueryNo
monthNumbernumberqueryNo
dayNumbernumberqueryNo
skipnumberqueryNo

תגובה

מחזיר: GetTenantDailyUsagesResponse

דוגמה

דוגמת getTenantDailyUsages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$options = [
21 'year_number' => 3.4, // float
22 'month_number' => 3.4, // float
23 'day_number' => 3.4, // float
24 'skip' => 3.4, // float
25];
26
27
28try {
29 $result = $apiInstance->getTenantDailyUsages($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getTenantDailyUsages: ', $e->getMessage(), PHP_EOL;
33}
34

צור חבילת שוכר Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן

Response

מחזיר: CreateTenantPackageResponse

דוגמה

createTenantPackage דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדר הרשאת מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמא Bearer) למפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // מחרוזת
19$create_tenant_package_body = new \FastComments\Client\Model\CreateTenantPackageBody(); // \FastComments\Client\Model\CreateTenantPackageBody
20
21
22try {
23 $result = $apiInstance->createTenantPackage($tenant_id, $create_tenant_package_body);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->createTenantPackage: ', $e->getMessage(), PHP_EOL;
27}
28

מחק חבילת שוכר Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה deleteTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21
22
23try {
24 $result = $apiInstance->deleteTenantPackage($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->deleteTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

קבל חבילת שוכר Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Response

מחזיר: GetTenantPackageResponse

Example

getTenantPackage דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאות מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24
25
26try {
27 $result = $apiInstance->getTenantPackage($tenant_id, $id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getTenantPackage: ', $e->getMessage(), PHP_EOL;
31}
32

קבל חבילות שוכרים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
skipnumberqueryNo

תגובה

מחזיר: GetTenantPackagesResponse

דוגמה

דוגמת getTenantPackages
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$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

החלף חבילת שוכר Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת replaceTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדר הרשאת מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$id = 'id_example'; // string
20$replace_tenant_package_body = new \FastComments\Client\Model\ReplaceTenantPackageBody(); // \FastComments\Client\Model\ReplaceTenantPackageBody
21
22
23try {
24 $result = $apiInstance->replaceTenantPackage($tenant_id, $id, $replace_tenant_package_body);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->replaceTenantPackage: ', $e->getMessage(), PHP_EOL;
28}
29

עדכן חבילת שוכר Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת updateTenantPackage
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // תצורת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
14 // // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_tenant_package_body = new \FastComments\Client\Model\UpdateTenantPackageBody(); // \FastComments\Client\Model\UpdateTenantPackageBody
22
23
24try {
25 $result = $apiInstance->updateTenantPackage($tenant_id, $id, $update_tenant_package_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateTenantPackage: ', $e->getMessage(), PHP_EOL;
29}
30

צור משתמש שוכר Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן

תגובה

מחזיר: CreateTenantUserResponse

דוגמה

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

מחק משתמש שוכר Internal Link

פרמטרים

שםסוגמיקוםנחוץתיאור
tenantIdstringqueryYes
idstringpathYes
deleteCommentsstringqueryNo
commentDeleteModestringqueryNo

תגובה

מחזירים: APIEmptyResponse

דוגמה

deleteTenantUser דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם אתה רוצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22// מחרוזת
23$id = 'id_example'; // string
24// מחרוזת
25$options = [
26 'delete_comments' => 'delete_comments_example', // string
27 // מחרוזת
28 'comment_delete_mode' => 'comment_delete_mode_example', // string
29 // מחרוזת
30];
31
32
33try {
34 $result = $apiInstance->deleteTenantUser($tenant_id, $id, $options);
35 print_r($result);
36} catch (Exception $e) {
37 echo 'Exception when calling DefaultApi->deleteTenantUser: ', $e->getMessage(), PHP_EOL;
38}
39

קבל משתמש שוכר Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

Response

מחזיר: GetTenantUserResponse

Example

דוגמה getTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24$id = 'id_example'; // string
25
26
27try {
28 $result = $apiInstance->getTenantUser($tenant_id, $id);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->getTenantUser: ', $e->getMessage(), PHP_EOL;
32}
33

קבל משתמשי שוכר Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
skipnumberqueryלא

תגובה

מחזיר: GetTenantUsersResponse

דוגמה

דוגמת getTenantUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדרת הרשאת מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטלו את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$skip = 3.4; // float
20
21
22try {
23 $result = $apiInstance->getTenantUsers($tenant_id, $skip);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getTenantUsers: ', $e->getMessage(), PHP_EOL;
27}
28

החלף משתמש שוכר Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן
updateCommentsstringqueryלא

תגובה

מחזיר: APIEmptyResponse

דוגמה

replaceTenantUser דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קביעת הרשאה עם מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // מחרוזת
22$id = 'id_example'; // מחרוזת
23$replace_tenant_user_body = new \FastComments\Client\Model\ReplaceTenantUserBody(); // \FastComments\Client\Model\ReplaceTenantUserBody
24$update_comments = 'update_comments_example'; // מחרוזת
25
26
27try {
28 $result = $apiInstance->replaceTenantUser($tenant_id, $id, $replace_tenant_user_body, $update_comments);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->replaceTenantUser: ', $e->getMessage(), PHP_EOL;
32}
33

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes
redirectURLstringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמת sendLoginLink
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// קבעו הרשאת מפתח API: api_key
7// בטלו הערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונכם להשתמש בלקוח HTTP מותאם, העבירו את הלקוח שלכם המממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // מחרוזת
19$id = 'id_example'; // מחרוזת
20$redirect_url = 'redirect_url_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->sendLoginLink($tenant_id, $id, $redirect_url);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->sendLoginLink: ', $e->getMessage(), PHP_EOL;
28}
29

עדכן משתמש שוכר Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן
updateCommentsstringqueryלא

תגובה

מחזיר: APIEmptyResponse

דוגמה

דוגמה ל‑updateTenantUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי לקבוע קידומת (לדוגמה, Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑http client מותאם, העביר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
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

צור שוכר Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן

תגובה

מחזיר: CreateTenantResponse

דוגמה

דוגמה לcreateTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת האימות באמצעות מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22$create_tenant_body = new \FastComments\Client\Model\CreateTenantBody(); // \FastComments\Client\Model\CreateTenantBody
23
24
25try {
26 $result = $apiInstance->createTenant($tenant_id, $create_tenant_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->createTenant: ', $e->getMessage(), PHP_EOL;
30}
31

מחק שוכר Internal Link

פרמטרים

שםסוגמיקוםדרושתיאור
tenantIdstringqueryYes
idstringpathYes
surestringqueryNo

תגובה

מחזיר: APIEmptyResponse

דוגמא

דוגמא deleteTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה‑API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש ב‑client HTTP מותאם אישית, העבר את ה‑client שלך שמקיים את `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` יהיה בשימוש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21$sure = 'sure_example'; // מחרוזת
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

קבל שוכר Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
idstringpathכן

תשובה

מחזיר: GetTenantResponse

דוגמה

דוגמת getTenant
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח http מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->getTenant($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getTenant: ', $e->getMessage(), PHP_EOL;
28}
29

קבל שוכרים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
metastringqueryלא
skipnumberqueryלא

תגובה

מחזיר: GetTenantsResponse

דוגמה

דוגמת getTenants
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח http מותאם אישית, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // מחרוזת
22$options = [
23 'meta' => 'meta_example', // מחרוזת
24 'skip' => 3.4, // מספר עשרוני
25];
26
27
28try {
29 $result = $apiInstance->getTenants($tenant_id, $options);
30 print_r($result);
31} catch (Exception $e) {
32 echo 'Exception when calling DefaultApi->getTenants: ', $e->getMessage(), PHP_EOL;
33}
34

עדכן שוכר Internal Link

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

Response

מחזיר: APIEmptyResponse

דוגמה

updateTenant דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// הסר את ההערה מהשורה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם צריך
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שממימש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זוהי אופציונלית, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23$id = 'id_example'; // string
24$update_tenant_body = new \FastComments\Client\Model\UpdateTenantBody(); // \FastComments\Client\Model\UpdateTenantBody
25
26
27try {
28 $result = $apiInstance->updateTenant($tenant_id, $id, $update_tenant_body);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->updateTenant: ', $e->getMessage(), PHP_EOL;
32}
33

שנה מצב פניה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
userIdstringqueryכן
idstringpathכן

תגובה

מחזיר: ChangeTicketStateResponse

דוגמה

changeTicketState דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את הקומנט הקוּף למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך שמממש את `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$user_id = 'user_id_example'; // מחרוזת
21$id = 'id_example'; // מחרוזת
22$change_ticket_state_body = new \FastComments\Client\Model\ChangeTicketStateBody(); // \FastComments\Client\Model\ChangeTicketStateBody
23
24
25try {
26 $result = $apiInstance->changeTicketState($tenant_id, $user_id, $id, $change_ticket_state_body);
27 print_r($result);
28} catch (Exception $e) {
29 echo 'Exception when calling DefaultApi->changeTicketState: ', $e->getMessage(), PHP_EOL;
30}
31

צור פניה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
userIdstringqueryכן

תגובה

מחזיר: CreateTicketResponse

דוגמה

createTicket דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדרת הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש במלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21$create_ticket_body = new \FastComments\Client\Model\CreateTicketBody(); // \FastComments\Client\Model\CreateTicketBody
22
23
24try {
25 $result = $apiInstance->createTicket($tenant_id, $user_id, $create_ticket_body);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->createTicket: ', $e->getMessage(), PHP_EOL;
29}
30

קבל פניה Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
idstringpathכן
userIdstringqueryלא

תגובה

מחזיר: GetTicketResponse

דוגמה

דוגמת getTicket
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22$id = 'id_example'; // string
23$user_id = 'user_id_example'; // string
24
25
26try {
27 $result = $apiInstance->getTicket($tenant_id, $id, $user_id);
28 print_r($result);
29} catch (Exception $e) {
30 echo 'Exception when calling DefaultApi->getTicket: ', $e->getMessage(), PHP_EOL;
31}
32

קבל פניות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
userIdstringqueryNo
statenumberqueryNo
skipnumberqueryNo
limitnumberqueryNo

תשובה

מחזיר: GetTicketsResponse

דוגמה

דוגמת getTickets
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קבע תצורת הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה-API, במידה ונדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // מחרוזת
23$options = [
24 'user_id' => 'user_id_example', // מחרוזת
25 'state' => 3.4, // מספר ממשי
26 'skip' => 3.4, // מספר ממשי
27 'limit' => 3.4, // מספר ממשי
28];
29
30
31try {
32 $result = $apiInstance->getTickets($tenant_id, $options);
33 print_r($result);
34} catch (Exception $e) {
35 echo 'Exception when calling DefaultApi->getTickets: ', $e->getMessage(), PHP_EOL;
36}
37

קבל תרגומים Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
namespacestringpathYes
componentstringpathYes
localestringqueryNo
useFullTranslationIdsbooleanqueryNo

תגובה

מחזירים: GetTranslationsResponse

דוגמה

דוגמת getTranslations
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` יישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$namespace = 'namespace_example'; // string
14$component = 'component_example'; // string
15$options = [
16 'locale' => 'locale_example', // string
17 'use_full_translation_ids' => True, // bool
18];
19
20
21try {
22 $result = $apiInstance->getTranslations($namespace, $component, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->getTranslations: ', $e->getMessage(), PHP_EOL;
26}
27

העלה תמונה Internal Link

העלאת תמונה ושינוי גודלה

Parameters

שםסוגמיקוםחובהתיאור
tenantIdstringpathYes
sizePresetstringqueryNoתבנית גודל: "Default" (1000x1000px) או "CrossPlatform" (יוצרת גדלים למכשירים פופולריים)
urlIdstringqueryNoמזהה העמוד שממ ממנו מתבצעת העלאה, לצורך קונפיגורציה

Response

Returns: UploadImageResponse

Example

uploadImage דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$file = '/path/to/file.txt'; // \SplFileObject
15$options = [
16 'size_preset' => new \FastComments\Client\Model\\FastComments\Client\Model\SizePreset(), // \FastComments\Client\Model\SizePreset | תבנית גודל: \"Default\" (1000x1000px) או \"CrossPlatform\" (יוצרת גדלים למכשירים פופולריים)
17 'url_id' => 'url_id_example', // string | מזהה העמוד שממ ממנו מתבצעת העלאה, לצורך קונפיגורציה
18];
19
20
21try {
22 $result = $apiInstance->uploadImage($tenant_id, $file, $options);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->uploadImage: ', $e->getMessage(), PHP_EOL;
26}
27

קבל התקדמות תג משתמש לפי מזהה Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: APIGetUserBadgeProgressResponse

דוגמה

דוגמה ל‑getUserBadgeProgressById
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// הסר את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה‑API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
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

קבל התקדמות תג משתמש לפי מזהה משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
userIdstringpathYes

תגובה

מחזיר: APIGetUserBadgeProgressResponse

דוגמה

דוגמת getUserBadgeProgressByUserId
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר אישור מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את השורה למטה אם צריך להגדיר קידומת (לדוגמה Bearer) למפתח ה‑API
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$user_id = 'user_id_example'; // string
21
22
23try {
24 $result = $apiInstance->getUserBadgeProgressByUserId($tenant_id, $user_id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadgeProgressByUserId: ', $e->getMessage(), PHP_EOL;
28}
29

קבל רשימת התקדמות תגי משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
userIdstringqueryNo
limitnumberqueryNo
skipnumberqueryNo

תגובה

מחזיר: APIGetUserBadgeProgressListResponse

דוגמה

דוגמה getUserBadgeProgressList
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קונפיגורציית הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה Bearer) למפתח ה‑API, אם נדרש
10// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
11
12
13$apiInstance = new FastComments\Client\Api\DefaultApi(
14 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
15 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
16 // This is optional, `GuzzleHttp\Client` will be used as default.
17 // זאת אפשרות, `GuzzleHttp\Client` ישמש כברירת מחדל.
18 new GuzzleHttp\Client(),
19 $config
20);
21
22$tenant_id = 'tenant_id_example'; // string
23// מחרוזת
24$options = [
25 'user_id' => 'user_id_example', // string
26 // מחרוזת
27 'limit' => 3.4, // float
28 // float
29 'skip' => 3.4, // float
30 // float
31];
32
33
34try {
35 $result = $apiInstance->getUserBadgeProgressList($tenant_id, $options);
36 print_r($result);
37} catch (Exception $e) {
38 echo 'Exception when calling DefaultApi->getUserBadgeProgressList: ', $e->getMessage(), PHP_EOL;
39}
40

צור תג משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן

תגובה

מחזיר: APICreateUserBadgeResponse

דוגמה

createUserBadge דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדרת הרשאת מפתח API: api_key
8$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
9// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
10// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש);
11// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
12
13
14$apiInstance = new FastComments\Client\Api\DefaultApi(
15 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
16 // אם ברצונך להשתמש בלקוח http מותאם אישית, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
17 // This is optional, `GuzzleHttp\Client` will be used as default.
18 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
19 new GuzzleHttp\Client(),
20 $config
21);
22
23$tenant_id = 'tenant_id_example'; // string
24$create_user_badge_params = new \FastComments\Client\Model\CreateUserBadgeParams(); // \FastComments\Client\Model\CreateUserBadgeParams
25
26
27try {
28 $result = $apiInstance->createUserBadge($tenant_id, $create_user_badge_params);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createUserBadge: ', $e->getMessage(), PHP_EOL;
32}
33

מחק תג משתמש Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryכן
idstringpathכן

Response

מחזיר: APIEmptySuccessResponse

Example

deleteUserBadge דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // הגדר את אימות מפתח ה‑API: api_key
7// // בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה‑API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // // אם ברצונך להשתמש ב‑client HTTP מותאם אישית, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
13 // // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // מחרוזת
19$id = 'id_example'; // מחרוזת
20
21
22try {
23 $result = $apiInstance->deleteUserBadge($tenant_id, $id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->deleteUserBadge: ', $e->getMessage(), PHP_EOL;
27}
28

קבל תג משתמש Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
idstringpathYes

תשובה

מחזיר: APIGetUserBadgeResponse

דוגמה

דוגמת getUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר אימות מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה למטה כדי להגדיר קידומת (לדוגמה, Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש ב‑client http מותאם, העבר את ה‑client שלך המיישם `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // מחרוזת
20$id = 'id_example'; // מחרוזת
21
22
23try {
24 $result = $apiInstance->getUserBadge($tenant_id, $id);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling DefaultApi->getUserBadge: ', $e->getMessage(), PHP_EOL;
28}
29

קבל תגי משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
userIdstringqueryNo
badgeIdstringqueryNo
typenumberqueryNo
displayedOnCommentsbooleanqueryNo
limitnumberqueryNo
skipnumberqueryNo

תגובה

מחזירה: APIGetUserBadgesResponse

דוגמה

דוגמת getUserBadges
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// קונפיגורציית אימות מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה מטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22$options = [
23 'user_id' => 'user_id_example', // string
24 'badge_id' => 'badge_id_example', // string
25 'type' => 3.4, // float
26 'displayed_on_comments' => True, // bool
27 'limit' => 3.4, // float
28 'skip' => 3.4, // float
29];
30
31
32try {
33 $result = $apiInstance->getUserBadges($tenant_id, $options);
34 print_r($result);
35} catch (Exception $e) {
36 echo 'Exception when calling DefaultApi->getUserBadges: ', $e->getMessage(), PHP_EOL;
37}
38

עדכן תג משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
idstringpathכן

תגובה

Returns: APIEmptySuccessResponse

דוגמה

דוגמה ל‑updateUserBadge
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// // להגדיר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// // בטל הערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח ה-API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // string
20$id = 'id_example'; // string
21$update_user_badge_params = new \FastComments\Client\Model\UpdateUserBadgeParams(); // \FastComments\Client\Model\UpdateUserBadgeParams
22
23
24try {
25 $result = $apiInstance->updateUserBadge($tenant_id, $id, $update_user_badge_params);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling DefaultApi->updateUserBadge: ', $e->getMessage(), PHP_EOL;
29}
30

קבל ספירת התראות משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
ssostringqueryNo

תגובה

מחזיר: GetUserNotificationCountResponse

דוגמה

דוגמה של getUserNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->getUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->getUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

קבל התראות משתמש Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
urlIdstringqueryNoמשמש לקביעת האם הדף הנוכחי מנוי.
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

תגובה

מחזיר: GetMyNotificationsResponse

דוגמה

דוגמת getUserNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$options = [
15 'url_id' => 'url_id_example', // string | משמש לקביעת האם הדף הנוכחי מנוי.
16 'page_size' => 56, // int
17 'after_id' => 'after_id_example', // string
18 'include_context' => True, // bool
19 'after_created_at' => 56, // int
20 'unread_only' => True, // bool
21 'dm_only' => True, // bool
22 'no_dm' => True, // bool
23 'include_translations' => True, // bool
24 'include_tenant_notifications' => True, // bool
25 'sso' => 'sso_example', // string
26];
27
28
29try {
30 $result = $apiInstance->getUserNotifications($tenant_id, $options);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling PublicApi->getUserNotifications: ', $e->getMessage(), PHP_EOL;
34}
35

אפס ספירת התראות משתמש Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
ssostringqueryNo

Response

Returns: ResetUserNotificationsResponse

Example

דוגמה resetUserNotificationCount
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם תרצה להשתמש ב‑לקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$sso = 'sso_example'; // string
15
16
17try {
18 $result = $apiInstance->resetUserNotificationCount($tenant_id, $sso);
19 print_r($result);
20} catch (Exception $e) {
21 echo 'Exception when calling PublicApi->resetUserNotificationCount: ', $e->getMessage(), PHP_EOL;
22}
23

אפס התראות משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
afterIdstringqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
ssostringqueryNo

תגובה

מחזירה: ResetUserNotificationsResponse

דוגמה

דוגמת resetUserNotifications
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // מחרוזת
14$options = [
15 'after_id' => 'after_id_example', // מחרוזת
16 'after_created_at' => 56, // int
17 'unread_only' => True, // בוליאני
18 'dm_only' => True, // בוליאני
19 'no_dm' => True, // בוליאני
20 'sso' => 'sso_example', // מחרוזת
21];
22
23
24try {
25 $result = $apiInstance->resetUserNotifications($tenant_id, $options);
26 print_r($result);
27} catch (Exception $e) {
28 echo 'Exception when calling PublicApi->resetUserNotifications: ', $e->getMessage(), PHP_EOL;
29}
30

עדכן סטטוס מנוי תגובה להתראות משתמש Internal Link

Enable or disable notifications for a specific comment.

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
notificationIdstringpathYes
optedInOrOutstringpathYes
commentIdstringqueryYes
ssostringqueryNo

Response

מחזיר: UpdateUserNotificationCommentSubscriptionStatusResponse

דוגמה

updateUserNotificationCommentSubscriptionStatus דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם אתה רוצה להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$notification_id = 'notification_id_example'; // string
15$opted_in_or_out = 'opted_in_or_out_example'; // string
16$comment_id = 'comment_id_example'; // string
17$sso = 'sso_example'; // string
18
19
20try {
21 $result = $apiInstance->updateUserNotificationCommentSubscriptionStatus($tenant_id, $notification_id, $opted_in_or_out, $comment_id, $sso);
22 print_r($result);
23} catch (Exception $e) {
24 echo 'Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
25}
26

עדכן סטטוס מנוי דף להתראות משתמש Internal Link

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

Parameters

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
urlIdstringqueryYes
urlstringqueryYes
pageTitlestringqueryYes
subscribedOrUnsubscribedstringpathYes
ssostringqueryNo

Response

מחזיר: UpdateUserNotificationPageSubscriptionStatusResponse

Example

דוגמה של updateUserNotificationPageSubscriptionStatus
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המממש את `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$url = 'url_example'; // string
16$page_title = 'page_title_example'; // string
17$subscribed_or_unsubscribed = 'subscribed_or_unsubscribed_example'; // string
18$sso = 'sso_example'; // string
19
20
21try {
22 $result = $apiInstance->updateUserNotificationPageSubscriptionStatus($tenant_id, $url_id, $url, $page_title, $subscribed_or_unsubscribed, $sso);
23 print_r($result);
24} catch (Exception $e) {
25 echo 'Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: ', $e->getMessage(), PHP_EOL;
26}
27

עדכן סטטוס התראות משתמש Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryכן
notificationIdstringpathכן
newStatusstringpathכן
ssostringqueryלא

תגובה

מחזיר: UpdateUserNotificationStatusResponse

דוגמה

updateUserNotificationStatus דוגמה
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // 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

קבל מצבי נוכחות משתמש Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryכן
urlIdWSstringqueryכן
userIdsstringqueryכן

תגובה

מחזיר: GetUserPresenceStatusesResponse

דוגמה

דוגמת getUserPresenceStatuses
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך המיישם `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id_ws = 'url_id_ws_example'; // string
15$user_ids = 'user_ids_example'; // string
16
17
18try {
19 $result = $apiInstance->getUserPresenceStatuses($tenant_id, $url_id_ws, $user_ids);
20 print_r($result);
21} catch (Exception $e) {
22 echo 'Exception when calling PublicApi->getUserPresenceStatuses: ', $e->getMessage(), PHP_EOL;
23}
24

חפש משתמשים Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringpathכן
urlIdstringqueryכן
usernameStartsWithstringqueryלא
mentionGroupIdsarrayqueryלא
ssostringqueryלא
searchSectionstringqueryלא

תגובה

מחזירה: SearchUsersResult

דוגמה

דוגמת searchUsers
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6
7$apiInstance = new FastComments\Client\Api\PublicApi(
8 // אם ברצונך להשתמש ב‑client HTTP מותאם, העבר את ה‑client שלך שמממש `GuzzleHttp\ClientInterface`.
9 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
10 new GuzzleHttp\Client()
11);
12
13$tenant_id = 'tenant_id_example'; // string
14$url_id = 'url_id_example'; // string
15$options = [
16 'username_starts_with' => 'username_starts_with_example', // string
17 'mention_group_ids' => array('mention_group_ids_example'), // string[]
18 'sso' => 'sso_example', // string
19 'search_section' => 'search_section_example', // string
20];
21
22
23try {
24 $result = $apiInstance->searchUsers($tenant_id, $url_id, $options);
25 print_r($result);
26} catch (Exception $e) {
27 echo 'Exception when calling PublicApi->searchUsers: ', $e->getMessage(), PHP_EOL;
28}
29

קבל משתמש Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
idstringpathYes

תגובה

מחזיר: GetUserResponse

דוגמה

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

צור הצבעה Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryכן
commentIdstringqueryכן
directionstringqueryכן
userIdstringqueryלא
anonUserIdstringqueryלא

תשובה

מחזירה: VoteResponse

דוגמה

דוגמת createVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// קבע הרשאה באמצעות מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) עבור מפתח ה-API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם ברצונך להשתמש בלקוח HTTP מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // מחרוזת
19$comment_id = 'comment_id_example'; // מחרוזת
20$direction = 'direction_example'; // מחרוזת
21$options = [
22 'user_id' => 'user_id_example', // מחרוזת
23 'anon_user_id' => 'anon_user_id_example', // מחרוזת
24];
25
26
27try {
28 $result = $apiInstance->createVote($tenant_id, $comment_id, $direction, $options);
29 print_r($result);
30} catch (Exception $e) {
31 echo 'Exception when calling DefaultApi->createVote: ', $e->getMessage(), PHP_EOL;
32}
33

מחק הצבעה Internal Link

פרמטרים

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
editKeystringqueryNo

תגובה

מחזיר: VoteDeleteResponse

דוגמה

דוגמת deleteVote
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// Configure API key authorization: api_key
7// הגדר הרשאת מפתח API: api_key
8// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14 // אם ברצונך להשתמש בלקוח HTTP מותאם אישית, העבר את הלקוח שלך המממש `GuzzleHttp\ClientInterface`.
15 // This is optional, `GuzzleHttp\Client` will be used as default.
16 // זה אופציונלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
17 new GuzzleHttp\Client(),
18 $config
19);
20
21$tenant_id = 'tenant_id_example'; // string
22// מחרוזת
23$id = 'id_example'; // string
24// מחרוזת
25$edit_key = 'edit_key_example'; // string
26// מחרוזת
27
28
29try {
30 $result = $apiInstance->deleteVote($tenant_id, $id, $edit_key);
31 print_r($result);
32} catch (Exception $e) {
33 echo 'Exception when calling DefaultApi->deleteVote: ', $e->getMessage(), PHP_EOL;
34}
35

קבל הצבעות Internal Link

פרמטרים

שםסוגמיקוםנדרשתיאור
tenantIdstringqueryYes
urlIdstringqueryYes

תגובה

מחזיר: GetVotesResponse

דוגמה

דוגמת getVotes
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5// הגדר אישור מפתח API: api_key
6$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
7// בטל את ההערה למטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
8// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
9
10
11$apiInstance = new FastComments\Client\Api\DefaultApi(
12 // אם תרצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
13 // זה אופציונלי, `GuzzleHttp\Client` ישמש ברירת מחדל.
14 new GuzzleHttp\Client(),
15 $config
16);
17
18$tenant_id = 'tenant_id_example'; // string
19$url_id = 'url_id_example'; // string
20
21
22try {
23 $result = $apiInstance->getVotes($tenant_id, $url_id);
24 print_r($result);
25} catch (Exception $e) {
26 echo 'Exception when calling DefaultApi->getVotes: ', $e->getMessage(), PHP_EOL;
27}
28

קבל הצבעות עבור משתמש Internal Link

פרמטרים

שםסוגמיקוםחובהתיאור
tenantIdstringqueryYes
urlIdstringqueryYes
userIdstringqueryNo
anonUserIdstringqueryNo

תגובה

Returns: GetVotesForUserResponse

דוגמה

דוגמת getVotesForUser
Copy Copy
1
2<?php
3require_once(__DIR__ . '/vendor/autoload.php');
4
5
6// הגדר הרשאת מפתח API: api_key
7$config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
8// בטל את ההערה שלמטה כדי להגדיר קידומת (למשל Bearer) למפתח API, אם נדרש
9// $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
10
11
12$apiInstance = new FastComments\Client\Api\DefaultApi(
13 // אם אתה רוצה להשתמש בלקוח http מותאם, העבר את הלקוח שלך שמממש `GuzzleHttp\ClientInterface`.
14 // זה אופציונאלי, `GuzzleHttp\Client` ישמש כברירת מחדל.
15 new GuzzleHttp\Client(),
16 $config
17);
18
19$tenant_id = 'tenant_id_example'; // 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

צריך עזרה?

אם תיתקלו בבעיות או יש לכם שאלות לגבי ה-PHP SDK, אנא:

תרומה

תרומות מתקבלות בברכה! נא לבקר ב-מאגר ה-GitHub לקבלת הנחיות לתרומה.