FastComments.com

FastComments Dart SDK

To jest oficjalny Dart SDK dla FastComments.

Zarządzaj komentarzami, użytkownikami, SSO i moderacją z aplikacji Dart i Flutter.

Repozytorium

Zobacz na GitHubie


Agenci programowania AI Internal Link

skills.sh

Daj swojemu agentowi kodującemu kontekst FastComments, którego potrzebuje - widgety, konfiguracja, Secure SSO, REST API i SDK:

npx skills add fastcomments/skills

Działa z Claude Code, Codex, Cursor, Copilot, Gemini i każdym innym agentem obsługiwanym przez skills CLI.

Układ Internal Link

fastcomments-dart/
  client/        generowany klient dart (nie edytować ręcznie)
  sso/           ręcznie napisane pomocniki tokenów SSO
  openapi.json   zatwierdzona kopia specyfikacji użytej do generacji
  config.json    konfiguracja openapi-generator
  update.py      regenerować klienta ze specyfikacji

SSO Internal Link

import 'package:fastcomments_dart/sso/fastcomments_sso.dart';
import 'package:fastcomments_dart/sso/secure_sso_user_data.dart';

final sso = FastCommentsSSO.secure(
  apiKey: 'YOUR_API_SECRET',
  user: SecureSSOUserData(
    id: 'user-123',
    email: 'jane@example.com',
    username: 'jane',
    avatar: 'https://example.com/jane.png',
  ),
);
final token = sso.prepareToSend();

agreguj Internal Link

Agreguje dokumenty, grupując je (jeśli podano parametr groupBy) i stosując wiele operacji. Obsługiwane są różne operacje (np. sum, countDistinct, avg itp.).

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
parentTenantIdstringqueryNo
includeStatsbooleanqueryNo

Odpowiedź

Zwraca: AggregateResponse

Przykład

Przykład agregacji
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final aggregationRequest = AggregationRequest(); // AggregationRequest |
11final parentTenantId = parentTenantId_example; // String |
12final includeStats = true; // bool |
13
14try {
15 final result = api_instance.aggregate(tenantId, aggregationRequest, AggregateOptions(parentTenantId: parentTenantId, includeStats: includeStats));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->aggregate: $e\n');
19}
20

pobierzLogiAudytu Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
limitnumberqueryNo
skipnumberqueryNo
orderstringqueryNo
afternumberqueryNo
beforenumberqueryNo

Response

Zwraca: GetAuditLogsResponse

Example

Przykład getAuditLogs
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final limit = 1.2; // double |
11final skip = 1.2; // double |
12final order = ; // SORTDIR |
13final after = 1.2; // double |
14final before = 1.2; // double |
15
16try {
17 final result = api_instance.getAuditLogs(tenantId, GetAuditLogsOptions(limit: limit, skip: skip, order: order, after: after, before: before));
18 print(result);
19} catch (e) {
20 print('Exception when calling DefaultApi->getAuditLogs: $e\n');
21}
22

wylogujPublicznie Internal Link

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład logoutPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5
6try {
7 final result = api_instance.logoutPublic();
8 print(result);
9} catch (e) {
10 print('Exception when calling PublicApi->logoutPublic: $e\n');
11}
12

zablokujZKomentarzaPublicznie Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
ssostringqueryNie

Response

Zwraca: BlockSuccess

Example

blockFromCommentPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final publicBlockFromCommentParams = PublicBlockFromCommentParams(); // PublicBlockFromCommentParams |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->blockFromCommentPublic: $e\n'); // Wyjątek podczas wywoływania PublicApi->blockFromCommentPublic: $e\n
15}
16

odblokujKomentarzPublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
ssostringqueryNie

Odpowiedź

Returns: UnblockSuccess

Przykład

Przykład unBlockCommentPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final publicBlockFromCommentParams = PublicBlockFromCommentParams(); // PublicBlockFromCommentParams |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->unBlockCommentPublic: $e\n');
15}
16

sprawdzoneKomentarzeDlaZablokowanych Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdsstringqueryYesLista identyfikatorów komentarzy oddzielonych przecinkami.
ssostringqueryNo

Odpowiedź

Zwraca: CheckBlockedCommentsResponse

Przykład

checkedCommentsForBlocked Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentIds = commentIds_example; // String | Lista identyfikatorów komentarzy oddzielonych przecinkami.
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.checkedCommentsForBlocked(tenantId, commentIds, sso);
11 print(result);
12} catch (e) {
13 print('Wyjątek podczas wywoływania PublicApi->checkedCommentsForBlocked: $e\n');
14}
15

zablokujUżytkownikaZKomentarza Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Response

Returns: BlockSuccess

Example

blockUserFromComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final blockFromCommentParams = BlockFromCommentParams(); // BlockFromCommentParams |
12final userId = userId_example; // String |
13final anonUserId = anonUserId_example; // String |
14
15try {
16 final result = api_instance.blockUserFromComment(tenantId, id, blockFromCommentParams, BlockUserFromCommentOptions(userId: userId, anonUserId: anonUserId));
17 print(result);
18} catch (e) {
19 print('Exception when calling DefaultApi->blockUserFromComment: $e\n');
20}
21

utwórzKomentarzPublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: SaveCommentsResponseWithPresence

Przykład

Przykład createCommentPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final commentData = CommentData(); // CommentData |
9final sessionId = sessionId_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.createCommentPublic(tenantId, urlId, broadcastId, commentData, CreateCommentPublicOptions(sessionId: sessionId, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling PublicApi->createCommentPublic: $e\n');
17}
18

usuńKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
isLivebooleanqueryNo

Odpowiedź

Zwraca: DeleteCommentResult

Przykład

deleteComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final contextUserId = contextUserId_example; // String |
12final isLive = true; // bool |
13
14try {
15 final result = api_instance.deleteComment(tenantId, id, DeleteCommentOptions(contextUserId: contextUserId, isLive: isLive));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->deleteComment: $e\n');
19}
20

usuńKomentarzPublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: PublicAPIDeleteCommentResponse

Przykład

Przykład deleteCommentPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final editKey = editKey_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.deleteCommentPublic(tenantId, commentId, broadcastId, DeleteCommentPublicOptions(editKey: editKey, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling PublicApi->deleteCommentPublic: $e\n');
16}
17

usuńGłosKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
commentIdstringpathYes
voteIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
editKeystringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: VoteDeleteResponse

Przykład

deleteCommentVote Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final voteId = voteId_example; // String |
8final urlId = urlId_example; // String |
9final broadcastId = broadcastId_example; // String |
10final editKey = editKey_example; // String |
11final sso = sso_example; // String |
12
13try {
14 final result = api_instance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, DeleteCommentVoteOptions(editKey: editKey, sso: sso));
15 print(result);
16} catch (e) {
17 print('Exception when calling PublicApi->deleteCommentVote: $e\n');
18}
19

oznaczKomentarz Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odpowiedź

Zwraca: FlagCommentResponse

Przykład

flagComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final userId = userId_example; // String |
12final anonUserId = anonUserId_example; // String |
13
14try {
15 final result = api_instance.flagComment(tenantId, id, FlagCommentOptions(userId: userId, anonUserId: anonUserId));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->flagComment: $e\n');
19}
20

pobierzKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIGetCommentResponse

Przykład

Przykład getComment
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getComment(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getComment: $e\n');
17}
18

pobierzKomentarze Internal Link

Parametry

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

Odpowiedź

Zwraca: APIGetCommentsResponse

Przykład

Przykład getComments
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final page = 56; // int |
11final limit = 56; // int |
12final skip = 56; // int |
13final asTree = true; // bool |
14final skipChildren = 56; // int |
15final limitChildren = 56; // int |
16final maxTreeDepth = 56; // int |
17final urlId = urlId_example; // String |
18final userId = userId_example; // String |
19final anonUserId = anonUserId_example; // String |
20final contextUserId = contextUserId_example; // String |
21final hashTag = hashTag_example; // String |
22final parentId = parentId_example; // String |
23final direction = ; // SortDirections |
24final fromDate = 789; // int |
25final toDate = 789; // int |
26
27try {
28 final result = api_instance.getComments(tenantId, GetCommentsOptions(page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate));
29 print(result);
30} catch (e) {
31 print('Exception when calling DefaultApi->getComments: $e\n');
32}
33

pobierzKomentarzePublicznie Internal Link

req tenantId urlId

Parametry

NazwaTypLokalizacjaWymaganeOpis
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

Odpowiedź

Zwraca: GetCommentsResponseWithPresencePublicComment

Przykład

Przykład getCommentsPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final page = 56; // int |
8final direction = ; // SortDirections |
9final sso = sso_example; // String |
10final skip = 56; // int |
11final skipChildren = 56; // int |
12final limit = 56; // int |
13final limitChildren = 56; // int |
14final countChildren = true; // bool |
15final fetchPageForCommentId = fetchPageForCommentId_example; // String |
16final includeConfig = true; // bool |
17final countAll = true; // bool |
18final includei10n = true; // bool |
19final locale = locale_example; // String |
20final modules = modules_example; // String |
21final isCrawler = true; // bool |
22final includeNotificationCount = true; // bool |
23final asTree = true; // bool |
24final maxTreeDepth = 56; // int |
25final useFullTranslationIds = true; // bool |
26final parentId = parentId_example; // String |
27final searchText = searchText_example; // String |
28final hashTags = []; // List<String> |
29final userId = userId_example; // String |
30final customConfigStr = customConfigStr_example; // String |
31final afterCommentId = afterCommentId_example; // String |
32final beforeCommentId = beforeCommentId_example; // String |
33
34try {
35 final result = api_instance.getCommentsPublic(tenantId, urlId, GetCommentsPublicOptions(page: page, direction: direction, sso: sss, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId));
36 print(result);
37} catch (e) {
38 print('Exception when calling PublicApi->getCommentsPublic: $e\n');
39}
40

pobierzTekstKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
commentIdstringpathTak
editKeystringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: PublicAPIGetCommentTextResponse

Przykład

Przykład getCommentText
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final editKey = editKey_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.getCommentText(tenantId, commentId, GetCommentTextOptions(editKey: editKey, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->getCommentText: $e\n');
15}
16

pobierzNazwyUżytkownikówGłosówKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
commentIdstringpathTak
dirintegerqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: GetCommentVoteUserNamesSuccessResponse

Przykład

getCommentVoteUserNames Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final dir = 56; // int |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.getCommentVoteUserNames(tenantId, commentId, dir, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->getCommentVoteUserNames: $e\n');
15}
16

zablokujKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
commentIdstringpathTak
broadcastIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

lockComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.lockComment(tenantId, commentId, broadcastId, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->lockComment: $e\n');
15}
16

przypnijKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Odpowiedź

Zwraca: ChangeCommentPinStatusResponse

Przykład

Przykład pinComment
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.pinComment(tenantId, commentId, broadcastId, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->pinComment: $e\n');
15}
16

zapiszKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

Odpowiedź

Zwraca: APISaveCommentResponse

Przykład

saveComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createCommentParams = CreateCommentParams(); // CreateCommentParams |
11final isLive = true; // bool |
12final doSpamCheck = true; // bool |
13final sendEmails = true; // bool |
14final populateNotifications = true; // bool |
15
16try {
17 final result = api_instance.saveComment(tenantId, createCommentParams, SaveCommentOptions(isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications));
18 print(result);
19} catch (e) {
20 print('Exception when calling DefaultApi->saveComment: $e\n');
21}
22

zapiszKomentarzeMasowo Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
sendEmailsbooleanqueryNo
populateNotificationsbooleanqueryNo

Odpowiedź

Zwraca: SaveCommentsBulkResponse

Przykład

saveCommentsBulk Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację kluczem API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createCommentParams = [List<CreateCommentParams>()]; // List<CreateCommentParams> |
11final isLive = true; // bool |
12final doSpamCheck = true; // bool |
13final sendEmails = true; // bool |
14final populateNotifications = true; // bool |
15
16try {
17 final result = api_instance.saveCommentsBulk(tenantId, createCommentParams, SaveCommentsBulkOptions(isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications));
18 print(result);
19} catch (e) {
20 print('Exception when calling DefaultApi->saveCommentsBulk: $e\n');
21}
22

ustawTekstKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
commentIdstringpathTak
broadcastIdstringqueryTak
editKeystringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: PublicAPISetCommentTextResponse

Przykład

setCommentText Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final commentTextUpdateRequest = CommentTextUpdateRequest(); // CommentTextUpdateRequest |
9final editKey = editKey_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, SetCommentTextOptions(editKey: editKey, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling PublicApi->setCommentText: $e\n');
17}
18

odblokujUżytkownikaZKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak
userIdstringqueryNie
anonUserIdstringqueryNie

Odpowiedź

Zwraca: UnblockSuccess

Przykład

Przykład unBlockUserFromComment
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final unBlockFromCommentParams = UnBlockFromCommentParams(); // UnBlockFromCommentParams |
12final userId = userId_example; // String |
13final anonUserId = anonUserId_example; // String |
14
15try {
16 final result = api_instance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, UnBlockUserFromCommentOptions(userId: userId, anonUserId: anonUserId));
17 print(result);
18} catch (e) {
19 print('Wyjątek podczas wywoływania DefaultApi->unBlockUserFromComment: $e\n');
20}
21

odznaczKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odpowiedź

Zwraca: FlagCommentResponse

Przykład

unFlagComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Configure API key authorization: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final userId = userId_example; // String |
12final anonUserId = anonUserId_example; // String |
13
14try {
15 final result = api_instance.unFlagComment(tenantId, id, UnFlagCommentOptions(userId: userId, anonUserId: anonUserId));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->unFlagComment: $e\n');
19}
20

odblokujKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład unLockComment
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.unLockComment(tenantId, commentId, broadcastId, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->unLockComment: $e\n');
15}
16

odprzypnijKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
commentIdstringpathYes
broadcastIdstringqueryYes
ssostringqueryNo

Odpowiedź

Zwraca: ChangeCommentPinStatusResponse

Przykład

unPinComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.unPinComment(tenantId, commentId, broadcastId, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->unPinComment: $e\n');
15}
16

zaktualizujKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
contextUserIdstringqueryNo
doSpamCheckbooleanqueryNo
isLivebooleanqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład updateComment
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updatableCommentParams = UpdatableCommentParams(); // UpdatableCommentParams |
12final contextUserId = contextUserId_example; // String |
13final doSpamCheck = true; // bool |
14final isLive = true; // bool |
15
16try {
17 final result = api_instance.updateComment(tenantId, id, updatableCommentParams, UpdateCommentOptions(contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive));
18 print(result);
19} catch (e) {
20 print('Exception when calling DefaultApi->updateComment: $e\n');
21}
22

głosujZaKomentarzem Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringpathYes
commentIdstringpathYes
urlIdstringqueryYes
broadcastIdstringqueryYes
sessionIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: VoteResponse

Przykład

voteComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final urlId = urlId_example; // String |
8final broadcastId = broadcastId_example; // String |
9final voteBodyParams = VoteBodyParams(); // VoteBodyParams |
10final sessionId = sessionId_example; // String |
11final sso = sso_example; // String |
12
13try {
14 final result = api_instance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, VoteCommentOptions(sessionId: sessionId, sso: sso));
15 print(result);
16} catch (e) {
17 print('Exception when calling PublicApi->voteComment: $e\n');
18}
19

pobierzKomentarzeDlaUżytkownika Internal Link

Parametry

NameTypeLocationRequiredDescription
userIdstringqueryNo
directionstringqueryNo
repliesToUserIdstringqueryNo
pagenumberqueryNo
includei10nbooleanqueryNo
localestringqueryNo
isCrawlerbooleanqueryNo

Odpowiedź

Zwraca: GetCommentsForUserResponse

Przykład

Przykład getCommentsForUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final userId = userId_example; // String |
6final direction = ; // SortDirections |
7final repliesToUserId = repliesToUserId_example; // String |
8final page = 1.2; // double |
9final includei10n = true; // bool |
10final locale = locale_example; // String |
11final isCrawler = true; // bool |
12
13try {
14 final result = api_instance.getCommentsForUser(GetCommentsForUserOptions(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler));
15 print(result);
16} catch (e) {
17 print('Exception when calling PublicApi->getCommentsForUser: $e\n');
18}
19

dodajKonfiguracjęDomeny Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Returns: AddDomainConfigResponse

Przykład

Przykład addDomainConfig
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final addDomainConfigParams = AddDomainConfigParams(); // AddDomainConfigParams |
11
12try {
13 final result = api_instance.addDomainConfig(tenantId, addDomainConfigParams);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->addDomainConfig: $e\n');
17}
18

usuńKonfiguracjęDomeny Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
domainstringpathTak

Odpowiedź

Zwraca: DeleteDomainConfigResponse

Przykład

deleteDomainConfig Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final domain = domain_example; // String |
11
12try {
13 final result = api_instance.deleteDomainConfig(tenantId, domain);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteDomainConfig: $e\n');
17}
18

pobierzKonfiguracjęDomeny Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
domainstringpathYes

Response

Zwraca: GetDomainConfigResponse

Example

getDomainConfig Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final domain = domain_example; // String |
11
12try {
13 final result = api_instance.getDomainConfig(tenantId, domain);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getDomainConfig: $e\n');
17}
18

pobierzKonfiguracjeDomen Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: GetDomainConfigsResponse

Przykład

Przykład getDomainConfigs
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10
11try {
12 final result = api_instance.getDomainConfigs(tenantId);
13 print(result);
14} catch (e) {
15 print('Exception when calling DefaultApi->getDomainConfigs: $e\n');
16}
17

modyfikujKonfiguracjęDomeny Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
domainToUpdatestringpathYes

Odpowiedź

Zwraca: PatchDomainConfigResponse

Przykład

patchDomainConfig Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final domainToUpdate = domainToUpdate_example; // String |
11final patchDomainConfigParams = PatchDomainConfigParams(); // PatchDomainConfigParams |
12
13try {
14 final result = api_instance.patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->patchDomainConfig: $e\n');
18}
19

ustawKonfiguracjęDomeny Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
domainToUpdatestringpathTak

Response

Zwraca: PutDomainConfigResponse

Example

putDomainConfig Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final domainToUpdate = domainToUpdate_example; // String |
11final updateDomainConfigParams = UpdateDomainConfigParams(); // UpdateDomainConfigParams |
12
13try {
14 final result = api_instance.putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->putDomainConfig: $e\n');
18}
19

utwórzSzablonE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: CreateEmailTemplateResponse

Przykład

Przykład createEmailTemplate
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createEmailTemplateBody = CreateEmailTemplateBody(); // CreateEmailTemplateBody |
11
12try {
13 final result = api_instance.createEmailTemplate(tenantId, createEmailTemplateBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createEmailTemplate: $e\n');
17}
18

usuńSzablonE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład deleteEmailTemplate
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deleteEmailTemplate(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteEmailTemplate: $e\n');
17}
18

usuńBłądRenderowaniaSzablonuE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
errorIdstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład deleteEmailTemplateRenderError
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final errorId = errorId_example; // String |
12
13try {
14 final result = api_instance.deleteEmailTemplateRenderError(tenantId, id, errorId);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->deleteEmailTemplateRenderError: $e\n');
18}
19

pobierzSzablonE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: GetEmailTemplateResponse

Przykład

Przykład getEmailTemplate
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getEmailTemplate(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getEmailTemplate: $e\n');
17}
18

pobierzDefinicjeSzablonuE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: GetEmailTemplateDefinitionsResponse

Przykład

Przykład getEmailTemplateDefinitions
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (e.g. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10
11try {
12 final result = api_instance.getEmailTemplateDefinitions(tenantId);
13 print(result);
14} catch (e) {
15 print('Exception when calling DefaultApi->getEmailTemplateDefinitions: $e\n');
16}
17

pobierzBłędyRenderowaniaSzablonuE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
skipnumberqueryNo

Odpowiedź

Zwraca: GetEmailTemplateRenderErrorsResponse

Przykład

Przykład getEmailTemplateRenderErrors
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final skip = 1.2; // double |
12
13try {
14 final result = api_instance.getEmailTemplateRenderErrors(tenantId, id, skip);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->getEmailTemplateRenderErrors: $e\n');
18}
19

pobierzSzablonyE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
skipnumberqueryNie

Odpowiedź

Zwraca: GetEmailTemplatesResponse

Przykład

Przykład getEmailTemplates
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final skip = 1.2; // double |
11
12try {
13 final result = api_instance.getEmailTemplates(tenantId, skip);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getEmailTemplates: $e\n');
17}
18

renderujSzablonE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
localestringqueryNie

Odpowiedź

Zwraca: RenderEmailTemplateResponse

Przykład

renderEmailTemplate Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Konfiguracja autoryzacji klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final renderEmailTemplateBody = RenderEmailTemplateBody(); // RenderEmailTemplateBody |
11final locale = locale_example; // String |
12
13try {
14 final result = api_instance.renderEmailTemplate(tenantId, renderEmailTemplateBody, locale);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->renderEmailTemplate: $e\n');
18}
19

zaktualizujSzablonE-mail Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

updateEmailTemplate Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateEmailTemplateBody = UpdateEmailTemplateBody(); // UpdateEmailTemplateBody |
12
13try {
14 final result = api_instance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody);
15 print(result);
16} catch (e) {
17 print('Wyjątek podczas wywoływania DefaultApi->updateEmailTemplate: $e\n');
18}
19

pobierzLogZdarzeń Internal Link

żądanie
tenantId
urlId
userIdWS

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
urlIdstringqueryTak
userIdWSstringqueryTak
startTimeintegerqueryTak
endTimeintegerqueryNie

Odpowiedź

Zwraca: GetEventLogResponse

Przykład

getEventLog Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final userIdWS = userIdWS_example; // String |
8final startTime = 789; // int |
9final endTime = 789; // int |
10
11try {
12 final result = api_instance.getEventLog(tenantId, urlId, userIdWS, startTime, endTime);
13 print(result);
14} catch (e) {
15 print('Exception when calling PublicApi->getEventLog: $e\n');
16}
17

pobierzGlobalnyLogZdarzeń Internal Link

req tenantId urlId userIdWS

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
urlIdstringqueryYes
userIdWSstringqueryYes
startTimeintegerqueryYes
endTimeintegerqueryNo

Odpowiedź

Zwraca: GetEventLogResponse

Przykład

Przykład getGlobalEventLog
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final userIdWS = userIdWS_example; // String |
8final startTime = 789; // int |
9final endTime = 789; // int |
10
11try {
12 final result = api_instance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime);
13 print(result);
14} catch (e) {
15 print('Exception when calling PublicApi->getGlobalEventLog: $e\n');
16}
17

utwórzPostNaKanale Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
broadcastIdstringqueryNo
isLivebooleanqueryNo
doSpamCheckbooleanqueryNo
skipDupCheckbooleanqueryNo

Odpowiedź

Zwraca: CreateFeedPostsResponse

Przykład

Przykład createFeedPost
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createFeedPostParams = CreateFeedPostParams(); // CreateFeedPostParams |
11final broadcastId = broadcastId_example; // String |
12final isLive = true; // bool |
13final doSpamCheck = true; // bool |
14final skipDupCheck = true; // bool |
15
16try {
17 final result = api_instance.createFeedPost(tenantId, createFeedPostParams, CreateFeedPostOptions(broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck));
18 print(result);
19} catch (e) {
20 print('Exception when calling DefaultApi->createFeedPost: $e\n');
21}
22

utwórzPostNaKanalePublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: CreateFeedPostResponse

Przykład

createFeedPostPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final createFeedPostParams = CreateFeedPostParams(); // CreateFeedPostParams |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.createFeedPostPublic(tenantId, createFeedPostParams, CreateFeedPostPublicOptions(broadcastId: broadcastId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->createFeedPostPublic: $e\n');
15}
16

usuńPostNaKanalePublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
postIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: DeleteFeedPostPublicResponse

Przykład

deleteFeedPostPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final postId = postId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.deleteFeedPostPublic(tenantId, postId, DeleteFeedPostPublicOptions(broadcastId: broadcastId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->deleteFeedPostPublic: $e\n');
15}
16

pobierzPostyNaKanale Internal Link

req tenantId afterId

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
afterIdstringqueryNie
limitintegerqueryNie
tagsarrayqueryNie

Odpowiedź

Zwraca: GetFeedPostsResponse

Przykład

Przykład getFeedPosts
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final afterId = afterId_example; // String |
11final limit = 56; // int |
12final tags = []; // List<String> |
13
14try {
15 final result = api_instance.getFeedPosts(tenantId, GetFeedPostsOptions(afterId: afterId, limit: limit, tags: tags));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->getFeedPosts: $e\n');
19}
20

pobierzPostyNaKanalePublicznie Internal Link

req
tenantId
afterId

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
afterIdstringqueryNo
limitintegerqueryNo
tagsarrayqueryNo
ssostringqueryNo
isCrawlerbooleanqueryNo
includeUserInfobooleanqueryNo

Odpowiedź

Zwraca: PublicFeedPostsResponse

Przykład

Przykład getFeedPostsPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final afterId = afterId_example; // String |
7final limit = 56; // int |
8final tags = []; // List<String> |
9final sso = sso_example; // String |
10final isCrawler = true; // bool |
11final includeUserInfo = true; // bool |
12
13try {
14 final result = api_instance.getFeedPostsPublic(tenantId, GetFeedPostsPublicOptions(afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo));
15 print(result);
16} catch (e) {
17 print('Exception when calling PublicApi->getFeedPostsPublic: $e\n');
18}
19

pobierzStatystykiPostówNaKanale Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
postIdsarrayqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: FeedPostsStatsResponse

Przykład

Przykład getFeedPostsStats
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final postIds = []; // List<String> |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getFeedPostsStats(tenantId, postIds, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling PublicApi->getFeedPostsStats: $e\n');
14}
15

pobierzReakcjeUżytkownikaPublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
postIdsarrayqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: UserReactsResponse

Przykład

getUserReactsPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final postIds = []; // List<String> |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getUserReactsPublic(tenantId, GetUserReactsPublicOptions(postIds: postIds, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling PublicApi->getUserReactsPublic: $e\n');
14}
15

zareagujNaPostNaKanalePublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
postIdstringpathYes
isUndobooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: ReactFeedPostResponse

Przykład

Przykład reactFeedPostPublic
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final postId = postId_example; // String |
7final reactBodyParams = ReactBodyParams(); // ReactBodyParams |
8final isUndo = true; // bool |
9final broadcastId = broadcastId_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.reactFeedPostPublic(tenantId, postId, reactBodyParams, ReactFeedPostPublicOptions(isUndo: isUndo, broadcastId: broadcastId, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling PublicApi->reactFeedPostPublic: $e\n');
17}
18

zaktualizujPostNaKanale Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład updateFeedPost
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final feedPost = FeedPost(); // FeedPost |
12
13try {
14 final result = api_instance.updateFeedPost(tenantId, id, feedPost);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->updateFeedPost: $e\n');
18}
19

zaktualizujPostNaKanalePublicznie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
postIdstringpathTak
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: CreateFeedPostResponse

Przykład

updateFeedPostPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final postId = postId_example; // String |
7final updateFeedPostParams = UpdateFeedPostParams(); // UpdateFeedPostParams |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams, UpdateFeedPostPublicOptions(broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling PublicApi->updateFeedPostPublic: $e\n');
16}
17

oznaczKomentarzPublicznie Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
isFlaggedbooleanqueryYes
ssostringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

flagCommentPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final isFlagged = true; // bool |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.flagCommentPublic(tenantId, commentId, isFlagged, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->flagCommentPublic: $e\n');
15}
16

pobierzDużyGif Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
largeInternalURLSanitizedstringqueryYes

Odpowiedź

Zwraca: GifGetLargeResponse

Przykład

Przykład getGifLarge
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final largeInternalURLSanitized = largeInternalURLSanitized_example; // String |
7
8try {
9 final result = api_instance.getGifLarge(tenantId, largeInternalURLSanitized);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->getGifLarge: $e\n');
13}
14

wyszukajGify Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
searchstringqueryTak
localestringqueryNie
ratingstringqueryNie
pagenumberqueryNie

Odpowiedź

Zwraca: GetGifsSearchResponse

Przykład

Przykład getGifsSearch
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final search = search_example; // String |
7final locale = locale_example; // String |
8final rating = rating_example; // String |
9final page = 1.2; // double |
10
11try {
12 final result = api_instance.getGifsSearch(tenantId, search, GetGifsSearchOptions(locale: locale, rating: rating, page: page));
13 print(result);
14} catch (e) {
15 print('Exception when calling PublicApi->getGifsSearch: $e\n');
16}
17

pobierzPopularneGify Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
localestringqueryNo
ratingstringqueryNo
pagenumberqueryNo

Odpowiedź

Zwraca: GetGifsTrendingResponse

Przykład

Przykład getGifsTrending
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final locale = locale_example; // String |
7final rating = rating_example; // String |
8final page = 1.2; // double |
9
10try {
11 final result = api_instance.getGifsTrending(tenantId, GetGifsTrendingOptions(locale: locale, rating: rating, page: page));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->getGifsTrending: $e\n');
15}
16

dodajHashtag Internal Link


Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: CreateHashTagResponse

Przykład

Przykład addHashTag
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createHashTagBody = CreateHashTagBody(); // CreateHashTagBody |
11
12try {
13 final result = api_instance.addHashTag(tenantId, createHashTagBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->addHashTag: $e\n');
17}
18

dodajHashtagiMasowo Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: BulkCreateHashTagsResponse

Przykład

addHashTagsBulk Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final bulkCreateHashTagsBody = BulkCreateHashTagsBody(); // BulkCreateHashTagsBody |
11
12try {
13 final result = api_instance.addHashTagsBulk(tenantId, bulkCreateHashTagsBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->addHashTagsBulk: $e\n');
17}
18

usuńHashtag Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
tagstringpathTak

Odpowiedź

Returns: APIEmptyResponse

Przykład

deleteHashTag Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final tag = tag_example; // String |
11final deleteHashTagRequestBody = DeleteHashTagRequestBody(); // DeleteHashTagRequestBody |
12
13try {
14 final result = api_instance.deleteHashTag(tenantId, tag, deleteHashTagRequestBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->deleteHashTag: $e\n');
18}
19

pobierzHashtagi Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
pagenumberqueryNie

Odpowiedź

Zwraca: GetHashTagsResponse

Przykład

Przykład getHashTags
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację kluczem API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final page = 1.2; // double |
11
12try {
13 final result = api_instance.getHashTags(tenantId, page);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getHashTags: $e\n');
17}
18

modyfikujHashtag Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
tagstringpathTak

Odpowiedź

Zwraca: UpdateHashTagResponse

Przykład

patchHashTag Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final tag = tag_example; // String |
11final updateHashTagBody = UpdateHashTagBody(); // UpdateHashTagBody |
12
13try {
14 final result = api_instance.patchHashTag(tenantId, tag, updateHashTagBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->patchHashTag: $e\n');
18}
19

usuńGłosModeracji Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
voteIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: VoteDeleteResponse

Przykład

deleteModerationVote Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final voteId = voteId_example; // String |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.deleteModerationVote(tenantId, commentId, voteId, DeleteModerationVoteOptions(broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->deleteModerationVote: $e\n');
16}
17

pobierzKomentarzeAPI Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
pagenumberqueryNie
countnumberqueryNie
text-searchstringqueryNie
byIPFromCommentstringqueryNie
filtersstringqueryNie
searchFiltersstringqueryNie
sortsstringqueryNie
demobooleanqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: ModerationAPIGetCommentsResponse

Przykład

Przykład getApiComments
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final page = 1.2; // double |
7final count = 1.2; // double |
8final textSearch = textSearch_example; // String |
9final byIPFromComment = byIPFromComment_example; // String |
10final filters = filters_example; // String |
11final searchFilters = searchFilters_example; // String |
12final sorts = sorts_example; // String |
13final demo = true; // bool |
14final sso = sso_example; // String |
15
16try {
17 final result = api_instance.getApiComments(tenantId, GetApiCommentsOptions(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso));
18 print(result);
19} catch (e) {
20 print('Exception when calling ModerationApi->getApiComments: $e\n');
21}
22

pobierzStatusEksportuAPI Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
batchJobIdstringqueryNie
ssostringqueryNie

Odpowiedź

Returns: ModerationExportStatusResponse

Przykład

getApiExportStatus Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final batchJobId = batchJobId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getApiExportStatus(tenantId, GetApiExportStatusOptions(batchJobId: batchJobId, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getApiExportStatus: $e\n');
14}
15

pobierzIdAPI Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
text-searchstringqueryNo
byIPFromCommentstringqueryNo
filtersstringqueryNo
searchFiltersstringqueryNo
afterIdstringqueryNo
demobooleanqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: ModerationAPIGetCommentIdsResponse

Przykład

getApiIds Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final textSearch = textSearch_example; // String |
7final byIPFromComment = byIPFromComment_example; // String |
8final filters = filters_example; // String |
9final searchFilters = searchFilters_example; // String |
10final afterId = afterId_example; // String |
11final demo = true; // bool |
12final sso = sso_example; // String |
13
14try {
15 final result = api_instance.getApiIds(tenantId, GetApiIdsOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso));
16 print(result);
17} catch (e) {
18 print('Exception when calling ModerationApi->getApiIds: $e\n');
19}
20

pobierzZbanowanychUżytkownikówZKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
ssostringqueryNie

Odpowiedź

Zwraca: GetBannedUsersFromCommentResponse

Przykład

Przykład getBanUsersFromComment
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getBanUsersFromComment(tenantId, commentId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getBanUsersFromComment: $e\n');
14}
15

pobierzStatusBanaKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
ssostringqueryNie

Odpowiedź

Returns: GetCommentBanStatusResponse

Przykład

getCommentBanStatus Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getCommentBanStatus(tenantId, commentId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getCommentBanStatus: $e\n');
14}
15

pobierzDzieciKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Odpowiedź

Zwraca: ModerationAPIChildCommentsResponse

Przykład

Przykład getCommentChildren
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getCommentChildren(tenantId, commentId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getCommentChildren: $e\n');
14}
15

pobierzLiczbę Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
text-searchstringqueryNie
byIPFromCommentstringqueryNie
filterstringqueryNie
searchFiltersstringqueryNie
demobooleanqueryNie
ssostringqueryNie

Response

Zwraca: ModerationAPICountCommentsResponse

Example

Przykład getCount
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final textSearch = textSearch_example; // String |
7final byIPFromComment = byIPFromComment_example; // String |
8final filter = filter_example; // String |
9final searchFilters = searchFilters_example; // String |
10final demo = true; // bool |
11final sso = sso_example; // String |
12
13try {
14 final result = api_instance.getCount(tenantId, GetCountOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso));
15 print(result);
16} catch (e) {
17 print('Exception when calling ModerationApi->getCount: $e\n');
18}
19

pobierzLiczby Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: GetBannedUsersCountResponse

Przykład

Przykład getCounts
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final sso = sso_example; // String |
7
8try {
9 final result = api_instance.getCounts(tenantId, sso);
10 print(result);
11} catch (e) {
12 print('Exception when calling ModerationApi->getCounts: $e\n');
13}
14

pobierzLogi Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Odpowiedź

Returns: ModerationAPIGetLogsResponse

Przykład

Przykład getLogs
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getLogs(tenantId, commentId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getLogs: $e\n');
14}
15

pobierzRęczneOdznaki Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: GetTenantManualBadgesResponse

Przykład

getManualBadges Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final sso = sso_example; // String |
7
8try {
9 final result = api_instance.getManualBadges(tenantId, sso);
10 print(result);
11} catch (e) {
12 print('Exception when calling ModerationApi->getManualBadges: $e\n');
13}
14

pobierzRęczneOdznakiDlaUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
badgesUserIdstringqueryNie
commentIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: GetUserManualBadgesResponse

Przykład

getManualBadgesForUser Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final badgesUserId = badgesUserId_example; // String |
7final commentId = commentId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.getManualBadgesForUser(tenantId, GetManualBadgesForUserOptions(badgesUserId: badgesUserId, commentId: commentId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Wyjątek podczas wywoływania ModerationApi->getManualBadgesForUser: $e\n');
15}
16

pobierzKomentarzModeracji Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
includeEmailbooleanqueryNo
includeIPbooleanqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: ModerationAPICommentResponse

Przykład

getModerationComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final includeEmail = true; // bool |
8final includeIP = true; // bool |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.getModerationComment(tenantId, commentId, GetModerationCommentOptions(includeEmail: includeEmail, includeIP: includeIP, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->getModerationComment: $e\n');
16}
17

pobierzTekstKomentarzaModeracji Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
ssostringqueryNo

Odpowiedź

Zwraca: GetCommentTextResponse

Przykład

getModerationCommentText Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getModerationCommentText(tenantId, commentId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getModerationCommentText: $e\n');
14}
15

pobierzPodsumowaniePrzedBaniem Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
includeByUserIdAndEmailbooleanqueryNo
includeByIPbooleanqueryNo
includeByEmailDomainbooleanqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: PreBanSummary

Przykład

Przykład getPreBanSummary
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final includeByUserIdAndEmail = true; // bool |
8final includeByIP = true; // bool |
9final includeByEmailDomain = true; // bool |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.getPreBanSummary(tenantId, commentId, GetPreBanSummaryOptions(includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling ModerationApi->getPreBanSummary: $e\n');
17}
18

pobierzPodsumowanieWyszukiwaniaKomentarzy Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
valuestringqueryNie
filtersstringqueryNie
searchFiltersstringqueryNie
ssostringqueryNie

Response

Returns: ModerationCommentSearchResponse

Example

getSearchCommentsSummary Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final value = value_example; // String |
7final filters = filters_example; // String |
8final searchFilters = searchFilters_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.getSearchCommentsSummary(tenantId, GetSearchCommentsSummaryOptions(value: value, filters: filters, searchFilters: searchFilters, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->getSearchCommentsSummary: $e\n');
16}
17

pobierzStronyWyszukiwania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
valuestringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: ModerationPageSearchResponse

Przykład

getSearchPages Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final value = value_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getSearchPages(tenantId, GetSearchPagesOptions(value: value, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getSearchPages: $e\n');
14}
15

pobierzStronyWyszukiwania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
valuestringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: ModerationSiteSearchResponse

Przykład

Przykład getSearchSites
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final value = value_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getSearchSites(tenantId, GetSearchSitesOptions(value: value, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getSearchSites: $e\n');
14}
15

pobierzSugestieWyszukiwania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
text-searchstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: ModerationSuggestResponse

Przykład

Przykład getSearchSuggest
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final textSearch = textSearch_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getSearchSuggest(tenantId, GetSearchSuggestOptions(textSearch: textSearch, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getSearchSuggest: $e\n');
14}
15

pobierzUżytkownikówWyszukiwania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
valuestringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: ModerationUserSearchResponse

Przykład

getSearchUsers Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final value = value_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getSearchUsers(tenantId, GetSearchUsersOptions(value: value, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getSearchUsers: $e\n');
14}
15

pobierzWspółczynnikZaufania Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: GetUserTrustFactorResponse

Przykład

Przykład getTrustFactor
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final userId = userId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getTrustFactor(tenantId, GetTrustFactorOptions(userId: userId, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getTrustFactor: $e\n');
14}
15

pobierzPreferencjeBanaUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: APIModerateGetUserBanPreferencesResponse

Przykład

getUserBanPreference Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final sso = sso_example; // String |
7
8try {
9 final result = api_instance.getUserBanPreference(tenantId, sso);
10 print(result);
11} catch (e) {
12 print('Exception when calling ModerationApi->getUserBanPreference: $e\n');
13}
14

pobierzWewnętrznyProfilUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: GetUserInternalProfileResponse

Przykład

Przykład getUserInternalProfile
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.getUserInternalProfile(tenantId, GetUserInternalProfileOptions(commentId: commentId, sso: sso));
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->getUserInternalProfile: $e\n');
14}
15

dostosujGłosyKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Returns: AdjustVotesResponse

Przykład

Przykład postAdjustCommentVotes
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final adjustCommentVotesParams = AdjustCommentVotesParams(); // AdjustCommentVotesParams |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams, PostAdjustCommentVotesOptions(broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->postAdjustCommentVotes: $e\n');
16}
17

eksportAPI Internal Link


Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
text-searchstringqueryNie
byIPFromCommentstringqueryNie
filtersstringqueryNie
searchFiltersstringqueryNie
sortsstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: ModerationExportResponse

Przykład

postApiExport Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final textSearch = textSearch_example; // String |
7final byIPFromComment = byIPFromComment_example; // String |
8final filters = filters_example; // String |
9final searchFilters = searchFilters_example; // String |
10final sorts = sorts_example; // String |
11final sso = sso_example; // String |
12
13try {
14 final result = api_instance.postApiExport(tenantId, PostApiExportOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sno));
15 print(result);
16} catch (e) {
17 print('Exception when calling ModerationApi->postApiExport: $e\n');
18}
19

zbanujUżytkownikaZKomentarza Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
commentIdstringpathYes
banEmailbooleanqueryNo
banEmailDomainbooleanqueryNo
banIPbooleanqueryNo
deleteAllUsersCommentsbooleanqueryNo
bannedUntilstringqueryNo
isShadowBanbooleanqueryNo
updateIdstringqueryNo
banReasonstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: BanUserFromCommentResult

Przykład

postBanUserFromComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final banEmail = true; // bool |
8final banEmailDomain = true; // bool |
9final banIP = true; // bool |
10final deleteAllUsersComments = true; // bool |
11final bannedUntil = bannedUntil_example; // String |
12final isShadowBan = true; // bool |
13final updateId = updateId_example; // String |
14final banReason = banReason_example; // String |
15final sso = sso_example; // String |
16
17try {
18 final result = api_instance.postBanUserFromComment(tenantId, commentId, PostBanUserFromCommentOptions(banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso));
19 print(result);
20} catch (e) {
21 print('Exception when calling ModerationApi->postBanUserFromComment: $e\n');
22}
23

cofnijBanUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

postBanUserUndo Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final banUserUndoParams = BanUserUndoParams(); // BanUserUndoParams |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.postBanUserUndo(tenantId, banUserUndoParams, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->postBanUserUndo: $e\n');
14}
15

masowyPodsumowaniePrzedBaniem Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
includeByUserIdAndEmailbooleanqueryNie
includeByIPbooleanqueryNie
includeByEmailDomainbooleanqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: BulkPreBanSummary

Przykład

postBulkPreBanSummary Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final bulkPreBanParams = BulkPreBanParams(); // BulkPreBanParams |
7final includeByUserIdAndEmail = true; // bool |
8final includeByIP = true; // bool |
9final includeByEmailDomain = true; // bool |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.postBulkPreBanSummary(tenantId, bulkPreBanParams, PostBulkPreBanSummaryOptions(includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling ModerationApi->postBulkPreBanSummary: $e\n');
17}
18

komentarzePoId Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: ModerationAPIChildCommentsResponse

Przykład

postCommentsByIds Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentsByIdsParams = CommentsByIdsParams(); // CommentsByIdsParams |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.postCommentsByIds(tenantId, commentsByIdsParams, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->postCommentsByIds: $e\n');
14}
15

oznaczKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

postFlagComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.postFlagComment(tenantId, commentId, PostFlagCommentOptions(broadcastId: broadcastId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling ModerationApi->postFlagComment: $e\n');
15}
16

usuńKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: PostRemoveCommentApiResponse

Przykład

postRemoveComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.postRemoveComment(tenantId, commentId, PostRemoveCommentOptions(broadcastId: broadcastId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling ModerationApi->postRemoveComment: $e\n');
15}
16

przywróćUsuniętyKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

postRestoreDeletedComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.postRestoreDeletedComment(tenantId, commentId, PostRestoreDeletedCommentOptions(broadcastId: broadcastId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling ModerationApi->postRestoreDeletedComment: $e\n');
15}
16

ustawStatusZatwierdzeniaKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
approvedbooleanqueryNie
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Returns: SetCommentApprovedResponse

Przykład

postSetCommentApprovalStatus Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final approved = true; // bool |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.postSetCommentApprovalStatus(tenantId, commentId, PostSetCommentApprovalStatusOptions(approved: approved, broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->postSetCommentApprovalStatus: $e\n');
16}
17

ustawStatusRecenzjiKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
reviewedbooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

postSetCommentReviewStatus Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final reviewed = true; // bool |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.postSetCommentReviewStatus(tenantId, commentId, PostSetCommentReviewStatusOptions(reviewed: reviewed, broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->postSetCommentReviewStatus: $e\n');
16}
17

ustawStatusSpamuKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringpathYes
spambooleanqueryNo
permNotSpambooleanqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład postSetCommentSpamStatus
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final spam = true; // bool |
8final permNotSpam = true; // bool |
9final broadcastId = broadcastId_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.postSetCommentSpamStatus(tenantId, commentId, PostSetCommentSpamStatusOptions(spam: spam, permNotSpam: permNotSpam, broadcastId: broadcastId, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling ModerationApi->postSetCommentSpamStatus: $e\n');
17}
18

ustawTekstKomentarza Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: SetCommentTextResponse

Przykład

postSetCommentText Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final setCommentTextParams = SetCommentTextParams(); // SetCommentTextParams |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.postSetCommentText(tenantId, commentId, setCommentTextParams, PostSetCommentTextOptions(broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->postSetCommentText: $e\n');
16}
17

odznaczKomentarz Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

postUnFlagComment Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final broadcastId = broadcastId_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.postUnFlagComment(tenantId, commentId, PostUnFlagCommentOptions(broadcastId: broadcastId, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling ModerationApi->postUnFlagComment: $e\n');
15}
16

głosuj Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
commentIdstringpathTak
directionstringqueryNie
broadcastIdstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: VoteResponse

Przykład

postVote Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final commentId = commentId_example; // String |
7final direction = direction_example; // String |
8final broadcastId = broadcastId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.postVote(tenantId, commentId, PostVoteOptions(direction: direction, broadcastId: broadcastId, sso: sso));
13 print(result);
14} catch (e) {
15 print('Exception when calling ModerationApi->postVote: $e\n');
16}
17

przyznajOdznakę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
badgeIdstringqueryYes
userIdstringqueryNo
commentIdstringqueryNo
broadcastIdstringqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: AwardUserBadgeResponse

Przykład

Przykład putAwardBadge
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final badgeId = badgeId_example; // String |
7final userId = userId_example; // String |
8final commentId = commentId_example; // String |
9final broadcastId = broadcastId_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.putAwardBadge(tenantId, badgeId, PutAwardBadgeOptions(userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling ModerationApi->putAwardBadge: $e\n');
17}
18

zamknijWątek Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
urlIdstringqueryTak
ssostringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

przykład putCloseThread
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.putCloseThread(tenantId, urlId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->putCloseThread: $e\n');
14}
15

usuńOdznakę Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
badgeIdstringqueryTak
userIdstringqueryNie
commentIdstringqueryNie
broadcastIdstringqueryNie
ssostringqueryNie

Response

Zwraca: RemoveUserBadgeResponse

Example

przykład putRemoveBadge
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final badgeId = badgeId_example; // String |
7final userId = userId_example; // String |
8final commentId = commentId_example; // String |
9final broadcastId = broadcastId_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.putRemoveBadge(tenantId, badgeId, PutRemoveBadgeOptions(userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso));
14 print(result);
15} catch (e) {
16 print('Exception when calling ModerationApi->putRemoveBadge: $e\n');
17}
18

otwórzPonownieWątek Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
urlIdstringqueryTak
ssostringqueryNie

Response

Zwraca: APIEmptyResponse

Przykład

putReopenThread Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final sso = sso_example; // String |
8
9try {
10 final result = api_instance.putReopenThread(tenantId, urlId, sso);
11 print(result);
12} catch (e) {
13 print('Exception when calling ModerationApi->putReopenThread: $e\n');
14}
15

ustawWspółczynnikZaufania Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
userIdstringqueryNie
trustFactorstringqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: SetUserTrustFactorResponse

Przykład

Przykład setTrustFactor
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = ModerationApi();
5final tenantId = tenantId_example; // String |
6final userId = userId_example; // String |
7final trustFactor = trustFactor_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.setTrustFactor(tenantId, SetTrustFactorOptions(userId: userId, trustFactor: trustFactor, sso: sso));
12 print(result);
13} catch (e) {
14 print('Exception when calling ModerationApi->setTrustFactor: $e\n');
15}
16

utwórzModeratora Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: CreateModeratorResponse

Przykład

Przykład createModerator
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createModeratorBody = CreateModeratorBody(); // CreateModeratorBody |
11
12try {
13 final result = api_instance.createModerator(tenantId, createModeratorBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createModerator: $e\n');
17}
18

usuńModeratora Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
sendEmailstringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

deleteModerator Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby skonfigurować prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final sendEmail = sendEmail_example; // String |
12
13try {
14 final result = api_instance.deleteModerator(tenantId, id, sendEmail);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->deleteModerator: $e\n');
18}
19

pobierzModeratora Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: GetModeratorResponse

Przykład

Przykład getModerator
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getModerator(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getModerator: $e\n');
17}
18

pobierzModeratorów Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
skipnumberqueryNie

Odpowiedź

Zwraca: GetModeratorsResponse

Przykład

Przykład getModerators
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final skip = 1.2; // double |
11
12try {
13 final result = api_instance.getModerators(tenantId, skip);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getModerators: $e\n');
17}
18

wyślijZaproszenie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak
fromNamestringqueryTak

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład sendInvite
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest to potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final fromName = fromName_example; // String |
12
13try {
14 final result = api_instance.sendInvite(tenantId, id, fromName);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->sendInvite: $e\n');
18}
19

zaktualizujModeratora Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład updateModerator
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateModeratorBody = UpdateModeratorBody(); // UpdateModeratorBody |
12
13try {
14 final result = api_instance.updateModerator(tenantId, id, updateModeratorBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->updateModerator: $e\n');
18}
19

usuńLiczbęPowiadomień Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

deleteNotificationCount Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deleteNotificationCount(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteNotificationCount: $e\n');
17}
18

pobierzZbuforowanąLiczbęPowiadomień Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: GetCachedNotificationCountResponse

Przykład

Przykład getCachedNotificationCount
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getCachedNotificationCount(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getCachedNotificationCount: $e\n');
17}
18

pobierzLiczbęPowiadomień Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
userIdstringqueryNie
urlIdstringqueryNie
fromCommentIdstringqueryNie
viewedbooleanqueryNie
typestringqueryNie

Odpowiedź

Zwraca: GetNotificationCountResponse

Przykład

Przykład getNotificationCount
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final urlId = urlId_example; // String |
12final fromCommentId = fromCommentId_example; // String |
13final viewed = true; // bool |
14final type = type_example; // String |
15
16try {
17 final result = api_instance.getNotificationCount(tenantId, GetNotificationCountOptions(userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type));
18 print(result);
19} catch (e) {
20 print('Exception when calling DefaultApi->getNotificationCount: $e\n');
21}
22

pobierzPowiadomienia Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
userIdstringqueryNie
urlIdstringqueryNie
fromCommentIdstringqueryNie
viewedbooleanqueryNie
typestringqueryNie
skipnumberqueryNie

Odpowiedź

Zwraca: GetNotificationsResponse

Przykład

Przykład getNotifications
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final urlId = urlId_example; // String |
12final fromCommentId = fromCommentId_example; // String |
13final viewed = true; // bool |
14final type = type_example; // String |
15final skip = 1.2; // double |
16
17try {
18 final result = api_instance.getNotifications(tenantId, GetNotificationsOptions(userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip));
19 print(result);
20} catch (e) {
21 print('Exception when calling DefaultApi->getNotifications: $e\n');
22}
23

zaktualizujPowiadomienie Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak
userIdstringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład updateNotification
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateNotificationBody = UpdateNotificationBody(); // UpdateNotificationBody |
12final userId = userId_example; // String |
13
14try {
15 final result = api_instance.updateNotification(tenantId, id, updateNotificationBody, userId);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->updateNotification: $e\n');
19}
20

utwórzReakcjęStronyV1 Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
urlIdstringqueryTak
titlestringqueryNie

Odpowiedź

Zwraca: CreateV1PageReact

Przykład

createV1PageReact Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final title = title_example; // String |
8
9try {
10 final result = api_instance.createV1PageReact(tenantId, urlId, title);
11 print(result);
12} catch (e) {
13 print('Exception when calling PublicApi->createV1PageReact: $e\n');
14}
15

utwórzReakcjęStronyV2 Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes
titlestringqueryNo

Odpowiedź

Zwraca: CreateV1PageReact

Przykład

Przykład createV2PageReact
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final id = id_example; // String |
8final title = title_example; // String |
9
10try {
11 final result = api_instance.createV2PageReact(tenantId, urlId, id, title);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->createV2PageReact: $e\n');
15}
16

usuńReakcjęStronyV1 Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
urlIdstringqueryYes

Odpowiedź

Returns: CreateV1PageReact

Przykład

deleteV1PageReact Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7
8try {
9 final result = api_instance.deleteV1PageReact(tenantId, urlId);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->deleteV1PageReact: $e\n');
13}
14

usuńReakcjęStronyV2 Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
urlIdstringqueryTak
idstringqueryTak

Odpowiedź

Zwraca: CreateV1PageReact

Przykład

deleteV2PageReact Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final id = id_example; // String |
8
9try {
10 final result = api_instance.deleteV2PageReact(tenantId, urlId, id);
11 print(result);
12} catch (e) {
13 print('Exception when calling PublicApi->deleteV2PageReact: $e\n');
14}
15

pobierzPolubieniaStronyV1 Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
urlIdstringqueryTak

Odpowiedź

Zwraca: GetV1PageLikes

Przykład

Przykład getV1PageLikes
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7
8try {
9 final result = api_instance.getV1PageLikes(tenantId, urlId);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->getV1PageLikes: $e\n');
13}
14

pobierzReakcjeStronyV2 Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
urlIdstringqueryTak

Odpowiedź

Zwraca: GetV2PageReacts

Przykład

Przykład getV2PageReacts
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7
8try {
9 final result = api_instance.getV2PageReacts(tenantId, urlId);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->getV2PageReacts: $e\n');
13}
14

pobierzUżytkownikówReakcjiStronyV2 Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathYes
urlIdstringqueryYes
idstringqueryYes

Odpowiedź

Zwraca: GetV2PageReactUsersResponse

Przykład

getV2PageReactUsers Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final id = id_example; // String |
8
9try {
10 final result = api_instance.getV2PageReactUsers(tenantId, urlId, id);
11 print(result);
12} catch (e) {
13 print('Exception when calling PublicApi->getV2PageReactUsers: $e\n');
14}
15

dodajStronę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: AddPageAPIResponse

Przykład

addPage Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createAPIPageData = CreateAPIPageData(); // CreateAPIPageData |
11
12try {
13 final result = api_instance.addPage(tenantId, createAPIPageData);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->addPage: $e\n');
17}
18

usuńStronę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: DeletePageAPIResponse

Przykład

deletePage Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deletePage(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deletePage: $e\n');
17}
18

pobierzUżytkownikówOffline Internal Link

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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesIdentyfikator URL strony (oczyszczony po stronie serwera).
afterNamestringqueryNoKursor: przekaż nextAfterName z poprzedniej odpowiedzi.
afterUserIdstringqueryNoRozstrzygacz kursora: przekaż nextAfterUserId z poprzedniej odpowiedzi. Wymagane, gdy afterName jest ustawione, aby powiązania nazw nie powodowały pomijania wpisów.

Response

Returns: PageUsersOfflineResponse

Example

Przykład getOfflineUsers
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String | Identyfikator URL strony (oczyszczony po stronie serwera).
7final afterName = afterName_example; // String | Kursor: przekaż nextAfterName z poprzedniej odpowiedzi.
8final afterUserId = afterUserId_example; // String | Rozstrzygacz kursora: przekaż nextAfterUserId z poprzedniej odpowiedzi. Wymagane, gdy afterName jest ustawione, aby powiązania nazw nie powodowały pomijania wpisów.
9
10try {
11 final result = api_instance.getOfflineUsers(tenantId, urlId, GetOfflineUsersOptions(afterName: afterName, afterUserId: afterUserId));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->getOfflineUsers: $e\n');
15}
16

pobierzUżytkownikówOnline Internal Link

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

Obecnie oglądający stronę: osoby, których sesja WebSocket jest aktualnie subskrybowana do tej strony.
Zwraca anonCount + totalCount (subskrybenci w całym pokoju, w tym anonimowi oglądający, których nie wymieniamy).

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
urlIdstringqueryYesIdentyfikator URL strony (czyszczony po stronie serwera).
afterNamestringqueryNoKursor: przekaż nextAfterName z poprzedzi odpowiedzi.
afterUserIdstringqueryNoRozwiązanie remisu kursora: przekaż nextAfterUserId z poprzedzi odpowiedzi. Wymagane, gdy afterName jest ustawiony, aby w przypadku remisów nazw nie pominięto wpisów.

Response

Returns: PageUsersOnlineResponse

Zwraca: PageUsersOnlineResponse

Example

Przykład getOnlineUsers
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String | Identyfikator URL strony (czyszczony po stronie serwera).
7final afterName = afterName_example; // String | Kursor: przekaż nextAfterName z poprzedzi odpowiedzi.
8final afterUserId = afterUserId_example; // String | Rozwiązanie remisu kursora: przekaż nextAfterUserId z poprzedzi odpowiedzi. Wymagane, gdy afterName jest ustawiony, aby w przypadku remisów nazw nie pominięto wpisów.
9
10try {
11 final result = api_instance.getOnlineUsers(tenantId, urlId, GetOnlineUsersOptions(afterName: afterName, afterUserId: afterUserId));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->getOnlineUsers: $e\n');
15}
16

pobierzStronęPoIdURL Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
urlIdstringqueryTak

Odpowiedź

Zwraca: GetPageByURLIdAPIResponse

Przykład

getPageByURLId Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final urlId = urlId_example; // String |
11
12try {
13 final result = api_instance.getPageByURLId(tenantId, urlId);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getPageByURLId: $e\n');
17}
18

pobierzStrony Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: GetPagesAPIResponse

Przykład

Przykład getPages
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10
11try {
12 final result = api_instance.getPages(tenantId);
13 print(result);
14} catch (e) {
15 print('Exception when calling DefaultApi->getPages: $e\n');
16}
17

pobierzStronyPublicznie 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

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
cursorstringqueryNieNieprzezroczysty wskaźnik paginacji zwrócony jako nextCursor z poprzedniego żądania. Powiązany z tym samym sortBy.
limitintegerqueryNie1..200, domyślnie 50
qstringqueryNieOpcjonalny filtr prefiksu tytułu bez rozróżniania wielkości liter.
sortBystringqueryNieKolejność sortowania. updatedAt (domyślnie najnowsze najpierw), commentCount (najpierw najwięcej komentarzy), lub title (alfabetycznie).
hasCommentsbooleanqueryNieJeśli true, zwróć tylko strony z co najmniej jednym komentarzem.

Response

Zwraca: GetPublicPagesResponse

Example

getPagesPublic Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final cursor = cursor_example; // String | Nieprzezroczysty wskaźnik paginacji zwrócony jako `nextCursor` z poprzedniego żądania. Powiązany z tym samym `sortBy`.
7final limit = 56; // int | 1..200, domyślnie 50
8final q = q_example; // String | Opcjonalny filtr prefiksu tytułu bez rozróżniania wielkości liter.
9final sortBy = ; // PagesSortBy | Kolejność sortowania. `updatedAt` (domyślnie najnowsze najpierw), `commentCount` (najpierw najwięcej komentarzy), lub `title` (alfabetycznie).
10final hasComments = true; // bool | Jeśli true, zwróć tylko strony z co najmniej jednym komentarzem.
11
12try {
13 final result = api_instance.getPagesPublic(tenantId, GetPagesPublicOptions(cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments));
14 print(result);
15} catch (e) {
16 print('Exception when calling PublicApi->getPagesPublic: $e\n');
17}
18

pobierzInfoUżytkowników Internal Link

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

Parameters

NameTypeLocationRequiredDescription
tenantIdstringpathYes
idsstringqueryYesIdentyfikatory użytkowników oddzielone przecinkami.

Response

Returns: PageUsersInfoResponse

Example

Przykład getUsersInfo
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final ids = ids_example; // String | Identyfikatory użytkowników oddzielone przecinkami.
7
8try {
9 final result = api_instance.getUsersInfo(tenantId, ids);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->getUsersInfo: $e\n');
13}
14

modyfikujStronę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: PatchPageAPIResponse

Przykład

patchPage Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateAPIPageData = UpdateAPIPageData(); // UpdateAPIPageData |
12
13try {
14 final result = api_instance.patchPage(tenantId, id, updateAPIPageData);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->patchPage: $e\n');
18}
19

usuńOczekująceZdarzenieWebhook Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Returns: APIEmptyResponse

Przykład

deletePendingWebhookEvent Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deletePendingWebhookEvent(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deletePendingWebhookEvent: $e\n');
17}
18

pobierzLiczbęOczekującychZdarzeńWebhook Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo

Odpowiedź

Zwraca: GetPendingWebhookEventCountResponse

Przykład

Przykład getPendingWebhookEventCount
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację kluczem API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final commentId = commentId_example; // String |
11final externalId = externalId_example; // String |
12final eventType = eventType_example; // String |
13final type = type_example; // String |
14final domain = domain_example; // String |
15final attemptCountGT = 1.2; // double |
16
17try {
18 final result = api_instance.getPendingWebhookEventCount(tenantId, GetPendingWebhookEventCountOptions(commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT));
19 print(result);
20} catch (e) {
21 print('Exception when calling DefaultApi->getPendingWebhookEventCount: $e\n');
22}
23

pobierzOczekująceZdarzeniaWebhook Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringqueryNo
externalIdstringqueryNo
eventTypestringqueryNo
typestringqueryNo
domainstringqueryNo
attemptCountGTnumberqueryNo
skipnumberqueryNo

Odpowiedź

Zwraca: GetPendingWebhookEventsResponse

Przykład

Przykład getPendingWebhookEvents
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final commentId = commentId_example; // String |
11final externalId = externalId_example; // String |
12final eventType = eventType_example; // String |
13final type = type_example; // String |
14final domain = domain_example; // String |
15final attemptCountGT = 1.2; // double |
16final skip = 1.2; // double |
17
18try {
19 final result = api_instance.getPendingWebhookEvents(tenantId, GetPendingWebhookEventsOptions(commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip));
20 print(result);
21} catch (e) {
22 print('Exception when calling DefaultApi->getPendingWebhookEvents: $e\n');
23}
24

utwórzKonfiguracjęPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: CreateQuestionConfigResponse

Przykład

Przykład createQuestionConfig
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createQuestionConfigBody = CreateQuestionConfigBody(); // CreateQuestionConfigBody |
11
12try {
13 final result = api_instance.createQuestionConfig(tenantId, createQuestionConfigBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createQuestionConfig: $e\n');
17}
18

usuńKonfiguracjęPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład deleteQuestionConfig
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deleteQuestionConfig(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteQuestionConfig: $e\n');
17}
18

pobierzKonfiguracjęPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: GetQuestionConfigResponse

Przykład

Przykład getQuestionConfig
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getQuestionConfig(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getQuestionConfig: $e\n');
17}
18

pobierzKonfiguracjePytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
skipnumberqueryNie

Odpowiedź

Zwraca: GetQuestionConfigsResponse

Przykład

Przykład getQuestionConfigs
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final skip = 1.2; // double |
11
12try {
13 final result = api_instance.getQuestionConfigs(tenantId, skip);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getQuestionConfigs: $e\n');
17}
18

zaktualizujKonfiguracjęPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Returns: APIEmptyResponse

Przykład

updateQuestionConfig Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateQuestionConfigBody = UpdateQuestionConfigBody(); // UpdateQuestionConfigBody |
12
13try {
14 final result = api_instance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody);
15 print(result);
16} catch (e) {
17 print('Wyjątek podczas wywoływania DefaultApi->updateQuestionConfig: $e\n');
18}
19

utwórzWynikPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: CreateQuestionResultResponse

Przykład

createQuestionResult Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createQuestionResultBody = CreateQuestionResultBody(); // CreateQuestionResultBody |
11
12try {
13 final result = api_instance.createQuestionResult(tenantId, createQuestionResultBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createQuestionResult: $e\n');
17}
18

usuńWynikPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

deleteQuestionResult Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deleteQuestionResult(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteQuestionResult: $e\n');
17}
18

pobierzWynikPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Returns: GetQuestionResultResponse

Przykład

Przykład getQuestionResult
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getQuestionResult(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getQuestionResult: $e\n');
17}
18

pobierzWynikiPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
urlIdstringqueryNo
userIdstringqueryNo
startDatestringqueryNo
questionIdstringqueryNo
questionIdsstringqueryNo
skipnumberqueryNo

Odpowiedź

Zwraca: GetQuestionResultsResponse

Przykład

Przykład getQuestionResults
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final urlId = urlId_example; // String |
11final userId = userId_example; // String |
12final startDate = startDate_example; // String |
13final questionId = questionId_example; // String |
14final questionIds = questionIds_example; // String |
15final skip = 1.2; // double |
16
17try {
18 final result = api_instance.getQuestionResults(tenantId, GetQuestionResultsOptions(urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip));
19 print(result);
20} catch (e) {
21 print('Exception when calling DefaultApi->getQuestionResults: $e\n');
22}
23

zaktualizujWynikPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

updateQuestionResult Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateQuestionResultBody = UpdateQuestionResultBody(); // UpdateQuestionResultBody |
12
13try {
14 final result = api_instance.updateQuestionResult(tenantId, id, updateQuestionResultBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->updateQuestionResult: $e\n');
18}
19

agregujWynikiPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
questionIdstringqueryNo
questionIdsarrayqueryNo
urlIdstringqueryNo
timeBucketstringqueryNo
startDatestringqueryNo
forceRecalculatebooleanqueryNo

Odpowiedź

Zwraca: AggregateQuestionResultsResponse

Przykład

aggregateQuestionResults Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final questionId = questionId_example; // String |
11final questionIds = []; // List<String> |
12final urlId = urlId_example; // String |
13final timeBucket = ; // AggregateTimeBucket |
14final startDate = 2013-10-20T19:20:30+01:00; // DateTime |
15final forceRecalculate = true; // bool |
16
17try {
18 final result = api_instance.aggregateQuestionResults(tenantId, AggregateQuestionResultsOptions(questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate));
19 print(result);
20} catch (e) {
21 print('Exception when calling DefaultApi->aggregateQuestionResults: $e\n');
22}
23

masowaAgregacjaWynikówPytania Internal Link

Parameters

NazwaTypLocationWymaganeOpis
tenantIdstringqueryTak
forceRecalculatebooleanqueryNie

Response

Zwraca: BulkAggregateQuestionResultsResponse

Przykład

bulkAggregateQuestionResults Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final bulkAggregateQuestionResultsRequest = BulkAggregateQuestionResultsRequest(); // BulkAggregateQuestionResultsRequest |
11final forceRecalculate = true; // bool |
12
13try {
14 final result = api_instance.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->bulkAggregateQuestionResults: $e\n');
18}
19

połączKomentarzeZWynikamiPytania Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
questionIdstringqueryNie
questionIdsarrayqueryNie
urlIdstringqueryNie
startDatestringqueryNie
forceRecalculatebooleanqueryNie
minValuenumberqueryNie
maxValuenumberqueryNie
limitnumberqueryNie

Odpowiedź

Zwraca: CombineQuestionResultsWithCommentsResponse

Przykład

Przykład combineCommentsWithQuestionResults
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final questionId = questionId_example; // String |
11final questionIds = []; // List<String> |
12final urlId = urlId_example; // String |
13final startDate = 2013-10-20T19:20:30+01:00; // DateTime |
14final forceRecalculate = true; // bool |
15final minValue = 1.2; // double |
16final maxValue = 1.2; // double |
17final limit = 1.2; // double |
18
19try {
20 final result = api_instance.combineCommentsWithQuestionResults(tenantId, CombineCommentsWithQuestionResultsOptions(questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit));
21 print(result);
22} catch (e) {
23 print('Exception when calling DefaultApi->combineCommentsWithQuestionResults: $e\n');
24}
25

dodajUżytkownikaSSO Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: AddSSOUserAPIResponse

Przykład

Przykład addSSOUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createAPISSOUserData = CreateAPISSOUserData(); // CreateAPISSOUserData |
11
12try {
13 final result = api_instance.addSSOUser(tenantId, createAPISSOUserData);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->addSSOUser: $e\n');
17}
18

usuńUżytkownikaSSO Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
deleteCommentsbooleanqueryNo
commentDeleteModestringqueryNo

Odpowiedź

Zwraca: DeleteSSOUserAPIResponse

Przykład

deleteSSOUser Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// Odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final deleteComments = true; // bool |
12final commentDeleteMode = commentDeleteMode_example; // String |
13
14try {
15 final result = api_instance.deleteSSOUser(tenantId, id, DeleteSSOUserOptions(deleteComments: deleteComments, commentDeleteMode: commentDeleteMode));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->deleteSSOUser: $e\n');
19}
20

pobierzUżytkownikaSSOPoEmail Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
emailstringpathYes

Odpowiedź

Zwraca: GetSSOUserByEmailAPIResponse

Przykład

getSSOUserByEmail Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final email = email_example; // String |
11
12try {
13 final result = api_instance.getSSOUserByEmail(tenantId, email);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getSSOUserByEmail: $e\n');
17}
18

pobierzUżytkownikaSSOPoId Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryTak
idstringpathTak

Response

Zwraca: GetSSOUserByIdAPIResponse

Example

Przykład getSSOUserById
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO: Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getSSOUserById(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getSSOUserById: $e\n');
17}
18

pobierzUżytkownikówSSO Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
skipintegerqueryNo

Odpowiedź

Zwraca: GetSSOUsersResponse

Przykład

getSSOUsers Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final skip = 56; // int |
11
12try {
13 final result = api_instance.getSSOUsers(tenantId, skip);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getSSOUsers: $e\n');
17}
18

modyfikujUżytkownikaSSO Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

Odpowiedź

Zwraca: PatchSSOUserAPIResponse

Przykład

patchSSOUser Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateAPISSOUserData = UpdateAPISSOUserData(); // UpdateAPISSOUserData |
12final updateComments = true; // bool |
13
14try {
15 final result = api_instance.patchSSOUser(tenantId, id, updateAPISSOUserData, updateComments);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->patchSSOUser: $e\n');
19}
20

ustawUżytkownikaSSO Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
updateCommentsbooleanqueryNo

Odpowiedź

Zwraca: PutSSOUserAPIResponse

Przykład

przykład putSSOUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateAPISSOUserData = UpdateAPISSOUserData(); // UpdateAPISSOUserData |
12final updateComments = true; // bool |
13
14try {
15 final result = api_instance.putSSOUser(tenantId, id, updateAPISSOUserData, updateComments);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->putSSOUser: $e\n');
19}
20

utwórzSubskrypcję Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: CreateSubscriptionAPIResponse

Przykład

Przykład createSubscription
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createAPIUserSubscriptionData = CreateAPIUserSubscriptionData(); // CreateAPIUserSubscriptionData |
11
12try {
13 final result = api_instance.createSubscription(tenantId, createAPIUserSubscriptionData);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createSubscription: $e\n');
17}
18

usuńSubskrypcję Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak
userIdstringqueryNie

Odpowiedź

Zwraca: DeleteSubscriptionAPIResponse

Przykład

Przykład deleteSubscription
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final userId = userId_example; // String |
12
13try {
14 final result = api_instance.deleteSubscription(tenantId, id, userId);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->deleteSubscription: $e\n');
18}
19

pobierzSubskrypcje Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
userIdstringqueryNo

Odpowiedź

Zwraca: GetSubscriptionsAPIResponse

Przykład

Przykład getSubscriptions
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzeba
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11
12try {
13 final result = api_instance.getSubscriptions(tenantId, userId);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getSubscriptions: $e\n');
17}
18

zaktualizujSubskrypcję Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Odpowiedź

Zwraca: UpdateSubscriptionAPIResponse

Przykład

updateSubscription Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateAPIUserSubscriptionData = UpdateAPIUserSubscriptionData(); // UpdateAPIUserSubscriptionData |
12final userId = userId_example; // String |
13
14try {
15 final result = api_instance.updateSubscription(tenantId, id, updateAPIUserSubscriptionData, userId);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->updateSubscription: $e\n');
19}
20

pobierzDziennyUżytekNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
yearNumbernumberqueryNie
monthNumbernumberqueryNie
dayNumbernumberqueryNie
skipnumberqueryNie

Odpowiedź

Zwraca: GetTenantDailyUsagesResponse

Przykład

getTenantDailyUsages Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final yearNumber = 1.2; // double |
11final monthNumber = 1.2; // double |
12final dayNumber = 1.2; // double |
13final skip = 1.2; // double |
14
15try {
16 final result = api_instance.getTenantDailyUsages(tenantId, GetTenantDailyUsagesOptions(yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip));
17 print(result);
18} catch (e) {
19 print('Exception when calling DefaultApi->getTenantDailyUsages: $e\n');
20}
21

utwórzPakietNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: CreateTenantPackageResponse

Przykład

Przykład createTenantPackage
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createTenantPackageBody = CreateTenantPackageBody(); // CreateTenantPackageBody |
11
12try {
13 final result = api_instance.createTenantPackage(tenantId, createTenantPackageBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createTenantPackage: $e\n');
17}
18

usuńPakietNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład deleteTenantPackage
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Konfiguracja autoryzacji klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deleteTenantPackage(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteTenantPackage: $e\n');
17}
18

pobierzPakietNajemcy Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Response

Zwraca: GetTenantPackageResponse

Example

Przykład getTenantPackage
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getTenantPackage(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getTenantPackage: $e\n');
17}
18

pobierzPakietyNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
skipnumberqueryNie

Odpowiedź

Zwraca: GetTenantPackagesResponse

Przykład

Przykład getTenantPackages
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final skip = 1.2; // double |
11
12try {
13 final result = api_instance.getTenantPackages(tenantId, skip);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getTenantPackages: $e\n');
17}
18

zastąpPakietNajemcy Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Response

Zwraca: APIEmptyResponse

Example

replaceTenantPackage Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final replaceTenantPackageBody = ReplaceTenantPackageBody(); // ReplaceTenantPackageBody |
12
13try {
14 final result = api_instance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->replaceTenantPackage: $e\n');
18}
19

zaktualizujPakietNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład updateTenantPackage
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateTenantPackageBody = UpdateTenantPackageBody(); // UpdateTenantPackageBody |
12
13try {
14 final result = api_instance.updateTenantPackage(tenantId, id, updateTenantPackageBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->updateTenantPackage: $e\n');
18}
19

utwórzUżytkownikaNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes

Odpowiedź

Zwraca: CreateTenantUserResponse

Przykład

createTenantUser Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, w razie potrzeby
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createTenantUserBody = CreateTenantUserBody(); // CreateTenantUserBody |
11
12try {
13 final result = api_instance.createTenantUser(tenantId, createTenantUserBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createTenantUser: $e\n');
17}
18

usuńUżytkownikaNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
deleteCommentsstringqueryNo
commentDeleteModestringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład deleteTenantUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest to potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final deleteComments = deleteComments_example; // String |
12final commentDeleteMode = commentDeleteMode_example; // String |
13
14try {
15 final result = api_instance.deleteTenantUser(tenantId, id, DeleteTenantUserOptions(deleteComments: deleteComments, commentDeleteMode: commentDeleteMode));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->deleteTenantUser: $e\n');
19}
20

pobierzUżytkownikaNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: GetTenantUserResponse

Przykład

Przykład getTenantUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getTenantUser(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getTenantUser: $e\n');
17}
18

pobierzUżytkownikówNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
skipnumberqueryNo

Odpowiedź

Zwraca: GetTenantUsersResponse

Przykład

getTenantUsers Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, w razie potrzeby
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final skip = 1.2; // double |
11
12try {
13 final result = api_instance.getTenantUsers(tenantId, skip);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getTenantUsers: $e\n');
17}
18

zastąpUżytkownikaNajemcy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak
updateCommentsstringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

replaceTenantUser Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, w razie potrzeby
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final replaceTenantUserBody = ReplaceTenantUserBody(); // ReplaceTenantUserBody |
12final updateComments = updateComments_example; // String |
13
14try {
15 final result = api_instance.replaceTenantUser(tenantId, id, replaceTenantUserBody, updateComments);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->replaceTenantUser: $e\n');
19}
20

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
redirectURLstringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład sendLoginLink
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final redirectURL = redirectURL_example; // String |
12
13try {
14 final result = api_instance.sendLoginLink(tenantId, id, redirectURL);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->sendLoginLink: $e\n');
18}
19

zaktualizujUżytkownikaNajemcy Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryTak
idstringpathTak
updateCommentsstringqueryNie

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

Przykład updateTenantUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateTenantUserBody = UpdateTenantUserBody(); // UpdateTenantUserBody |
12final updateComments = updateComments_example; // String |
13
14try {
15 final result = api_instance.updateTenantUser(tenantId, id, updateTenantUserBody, updateComments);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->updateTenantUser: $e\n');
19}
20

utwórzNajemcę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak

Odpowiedź

Zwraca: CreateTenantResponse

Przykład

createTenant Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createTenantBody = CreateTenantBody(); // CreateTenantBody |
11
12try {
13 final result = api_instance.createTenant(tenantId, createTenantBody);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createTenant: $e\n');
17}
18

usuńNajemcę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes
surestringqueryNo

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

deleteTenant Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
6// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final sure = sure_example; // String |
12
13try {
14 final result = api_instance.deleteTenant(tenantId, id, sure);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->deleteTenant: $e\n');
18}
19

pobierzNajemcę Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: GetTenantResponse

Przykład

Przykład getTenant
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getTenant(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getTenant: $e\n');
17}
18

pobierzNajemców Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
metastringqueryNie
skipnumberqueryNie

Odpowiedź

Zwraca: GetTenantsResponse

Przykład

getTenants Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final meta = meta_example; // String |
11final skip = 1.2; // double |
12
13try {
14 final result = api_instance.getTenants(tenantId, GetTenantsOptions(meta: meta, skip: skip));
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->getTenants: $e\n');
18}
19

zaktualizujNajemcę Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIEmptyResponse

Przykład

updateTenant Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateTenantBody = UpdateTenantBody(); // UpdateTenantBody |
12
13try {
14 final result = api_instance.updateTenant(tenantId, id, updateTenantBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->updateTenant: $e\n');
18}
19

zmieńStanZgłoszenia Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
userIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: ChangeTicketStateResponse

Przykład

changeTicketState Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli jest to potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final id = id_example; // String |
12final changeTicketStateBody = ChangeTicketStateBody(); // ChangeTicketStateBody |
13
14try {
15 final result = api_instance.changeTicketState(tenantId, userId, id, changeTicketStateBody);
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->changeTicketState: $e\n');
19}
20

utwórzZgłoszenie Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
userIdstringqueryYes

Response

Zwraca: CreateTicketResponse

Example

createTicket Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to konieczne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final createTicketBody = CreateTicketBody(); // CreateTicketBody |
12
13try {
14 final result = api_instance.createTicket(tenantId, userId, createTicketBody);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->createTicket: $e\n');
18}
19

pobierzZgłoszenie Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
userIdstringqueryNo

Odpowiedź

Zwraca: GetTicketResponse

Przykład

Przykład getTicket
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final userId = userId_example; // String |
12
13try {
14 final result = api_instance.getTicket(tenantId, id, userId);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->getTicket: $e\n');
18}
19

pobierzZgłoszenia Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
userIdstringqueryNie
statenumberqueryNie
skipnumberqueryNie
limitnumberqueryNie

Odpowiedź

Zwraca: GetTicketsResponse

Przykład

getTickets Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final state = 1.2; // double |
12final skip = 1.2; // double |
13final limit = 1.2; // double |
14
15try {
16 final result = api_instance.getTickets(tenantId, GetTicketsOptions(userId: userId, state: state, skip: skip, limit: limit));
17 print(result);
18} catch (e) {
19 print('Exception when calling DefaultApi->getTickets: $e\n');
20}
21

pobierzTłumaczenia Internal Link

Parametry

NameTypeLocationRequiredDescription
namespacestringpathYes
componentstringpathYes
localestringqueryNo
useFullTranslationIdsbooleanqueryNo

Odpowiedź

Zwraca: GetTranslationsResponse

Przykład

Przykład getTranslations
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final namespace = namespace_example; // String |
6final component = component_example; // String |
7final locale = locale_example; // String |
8final useFullTranslationIds = true; // bool |
9
10try {
11 final result = api_instance.getTranslations(namespace, component, GetTranslationsOptions(locale: locale, useFullTranslationIds: useFullTranslationIds));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->getTranslations: $e\n');
15}
16

prześlijObraz Internal Link

Prześlij i zmień rozmiar obrazu

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
sizePresetstringqueryNieRozmiar domyślny: "Default" (1000x1000px) lub "CrossPlatform" (tworzy rozmiary dla popularnych urządzeń)
urlIdstringqueryNieId strony, z której odbywa się przesyłanie, do konfiguracji

Odpowiedź

Zwraca: UploadImageResponse

Przykład

Przykład uploadImage
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final file = BINARY_DATA_HERE; // MultipartFile |
7final sizePreset = ; // SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)
8final urlId = urlId_example; // String | Page id that upload is happening from, to configure
9
10try {
11 final result = api_instance.uploadImage(tenantId, file, UploadImageOptions(sizePreset: sizePreset, urlId: urlId));
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->uploadImage: $e\n');
15}
16

pobierzPostępOdznakiUżytkownikaPoId Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIGetUserBadgeProgressResponse

Przykład

getUserBadgeProgressById Example
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getUserBadgeProgressById(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getUserBadgeProgressById: $e\n');
17}
18

pobierzPostępOdznakiUżytkownikaPoUserId Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
userIdstringpathTak

Odpowiedź

Zwraca: APIGetUserBadgeProgressResponse

Przykład

getUserBadgeProgressByUserId Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11
12try {
13 final result = api_instance.getUserBadgeProgressByUserId(tenantId, userId);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getUserBadgeProgressByUserId: $e\n');
17}
18

pobierzListęPostępuOdznakUżytkownika Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
userIdstringqueryNo
limitnumberqueryNo
skipnumberqueryNo

Odpowiedź

Zwraca: APIGetUserBadgeProgressListResponse

Przykład

Przykład getUserBadgeProgressList
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final limit = 1.2; // double |
12final skip = 1.2; // double |
13
14try {
15 final result = api_instance.getUserBadgeProgressList(tenantId, GetUserBadgeProgressListOptions(userId: userId, limit: limit, skip: skip));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->getUserBadgeProgressList: $e\n');
19}
20

utwórzOdznakęUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringzapytanieTak

Odpowiedź

Zwraca: APICreateUserBadgeResponse

Przykład

Przykład createUserBadge
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final createUserBadgeParams = CreateUserBadgeParams(); // CreateUserBadgeParams |
11
12try {
13 final result = api_instance.createUserBadge(tenantId, createUserBadgeParams);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->createUserBadge: $e\n');
17}
18

usuńOdznakęUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIEmptySuccessResponse

Przykład

Przykład deleteUserBadge
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.deleteUserBadge(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->deleteUserBadge: $e\n');
17}
18

pobierzOdznakęUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: APIGetUserBadgeResponse

Przykład

getUserBadge Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (e.g. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getUserBadge(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getUserBadge: $e\n');
17}
18

pobierzOdznakiUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
userIdstringqueryNo
badgeIdstringqueryNo
typenumberqueryNo
displayedOnCommentsbooleanqueryNo
limitnumberqueryNo
skipnumberqueryNo

Odpowiedź

Zwraca: APIGetUserBadgesResponse

Przykład

Przykład getUserBadges
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli wymagane
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final userId = userId_example; // String |
11final badgeId = badgeId_example; // String |
12final type = 1.2; // double |
13final displayedOnComments = true; // bool |
14final limit = 1.2; // double |
15final skip = 1.2; // double |
16
17try {
18 final result = api_instance.getUserBadges(tenantId, GetUserBadgesOptions(userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip));
19 print(result);
20} catch (e) {
21 print('Exception when calling DefaultApi->getUserBadges: $e\n');
22}
23

zaktualizujOdznakęUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
idstringpathYes

Odpowiedź

Zwraca: APIEmptySuccessResponse

Przykład

Przykład updateUserBadge
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final updateUserBadgeParams = UpdateUserBadgeParams(); // UpdateUserBadgeParams |
12
13try {
14 final result = api_instance.updateUserBadge(tenantId, id, updateUserBadgeParams);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->updateUserBadge: $e\n');
18}
19

pobierzLiczbęPowiadomieńUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringzapytanieTak
ssostringzapytanieNie

Odpowiedź

Zwraca: GetUserNotificationCountResponse

Przykład

getUserNotificationCount Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final sso = sso_example; // String |
7
8try {
9 final result = api_instance.getUserNotificationCount(tenantId, sso);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->getUserNotificationCount: $e\n');
13}
14

pobierzPowiadomieniaUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
urlIdstringqueryNoUżywane do określenia, czy bieżąca strona jest subskrybowana.
pageSizeintegerqueryNo
afterIdstringqueryNo
includeContextbooleanqueryNo
afterCreatedAtintegerqueryNo
unreadOnlybooleanqueryNo
dmOnlybooleanqueryNo
noDmbooleanqueryNo
includeTranslationsbooleanqueryNo
includeTenantNotificationsbooleanqueryNo
ssostringqueryNo

Odpowiedź

Zwraca: GetMyNotificationsResponse

Przykład

Przykład getUserNotifications
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String | Używane do określenia, czy bieżąca strona jest subskrybowana.
7final pageSize = 56; // int |
8final afterId = afterId_example; // String |
9final includeContext = true; // bool |
10final afterCreatedAt = 789; // int |
11final unreadOnly = true; // bool |
12final dmOnly = true; // bool |
13final noDm = true; // bool |
14final includeTranslations = true; // bool |
15final includeTenantNotifications = true; // bool |
16final sso = sso_example; // String |
17
18try {
19 final result = api_instance.getUserNotifications(tenantId, GetUserNotificationsOptions(urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso));
20 print(result);
21} catch (e) {
22 print('Exception when calling PublicApi->getUserNotifications: $e\n');
23}
24

zresetujLiczbęPowiadomieńUżytkownika Internal Link

Parametry

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
ssostringqueryNo

Odpowiedź

Returns: ResetUserNotificationsResponse

Przykład

resetUserNotificationCount Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final sso = sso_example; // String |
7
8try {
9 final result = api_instance.resetUserNotificationCount(tenantId, sso);
10 print(result);
11} catch (e) {
12 print('Exception when calling PublicApi->resetUserNotificationCount: $e\n');
13}
14

zresetujPowiadomieniaUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
afterIdstringqueryNie
afterCreatedAtintegerqueryNie
unreadOnlybooleanqueryNie
dmOnlybooleanqueryNie
noDmbooleanqueryNie
ssostringqueryNie

Odpowiedź

Zwraca: ResetUserNotificationsResponse

Przykład

resetUserNotifications Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final afterId = afterId_example; // String |
7final afterCreatedAt = 789; // int |
8final unreadOnly = true; // bool |
9final dmOnly = true; // bool |
10final noDm = true; // bool |
11final sso = sso_example; // String |
12
13try {
14 final result = api_instance.resetUserNotifications(tenantId, ResetUserNotificationsOptions(afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso));
15 print(result);
16} catch (e) {
17 print('Exception when calling PublicApi->resetUserNotifications: $e\n');
18}
19

zaktualizujStatusSubskrypcjiKomentarzyPowiadomieńUżytkownika Internal Link

Włącz lub wyłącz powiadomienia dla konkretnego komentarza.

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
notificationIdstringpathYes
optedInOrOutstringpathYes
commentIdstringqueryYes
ssostringqueryNo

Response

Zwraca: UpdateUserNotificationCommentSubscriptionStatusResponse

Example

updateUserNotificationCommentSubscriptionStatus Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final notificationId = notificationId_example; // String |
7final optedInOrOut = optedInOrOut_example; // String |
8final commentId = commentId_example; // String |
9final sso = sso_example; // String |
10
11try {
12 final result = api_instance.updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso);
13 print(result);
14} catch (e) {
15 print('Exception when calling PublicApi->updateUserNotificationCommentSubscriptionStatus: $e\n');
16}
17

zaktualizujStatusSubskrypcjiStronPowiadomieńUżytkownika Internal Link

Włącz lub wyłącz powiadomienia dla strony. Gdy użytkownicy subskrybują stronę, tworzone są powiadomienia o nowych komentarzach głównych, a także

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
urlIdstringqueryTak
urlstringqueryTak
pageTitlestringqueryTak
subscribedOrUnsubscribedstringpathTak
ssostringqueryNie

Odpowiedź

Zwraca: UpdateUserNotificationPageSubscriptionStatusResponse

Przykład

Przykład updateUserNotificationPageSubscriptionStatus
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final url = url_example; // String |
8final pageTitle = pageTitle_example; // String |
9final subscribedOrUnsubscribed = subscribedOrUnsubscribed_example; // String |
10final sso = sso_example; // String |
11
12try {
13 final result = api_instance.updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso);
14 print(result);
15} catch (e) {
16 print('Exception when calling PublicApi->updateUserNotificationPageSubscriptionStatus: $e\n');
17}
18

zaktualizujStatusPowiadomieniaUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
notificationIdstringpathYes
newStatusstringpathYes
ssostringqueryNo

Odpowiedź

Zwraca: UpdateUserNotificationStatusResponse

Przykład

Przykład updateUserNotificationStatus
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final notificationId = notificationId_example; // String |
7final newStatus = newStatus_example; // String |
8final sso = sso_example; // String |
9
10try {
11 final result = api_instance.updateUserNotificationStatus(tenantId, notificationId, newStatus, sso);
12 print(result);
13} catch (e) {
14 print('Exception when calling PublicApi->updateUserNotificationStatus: $e\n');
15}
16

pobierzStatusyObecnościUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
urlIdWSstringqueryYes
userIdsstringqueryYes

Odpowiedź

Zwraca: GetUserPresenceStatusesResponse

Przykład

getUserPresenceStatuses Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlIdWS = urlIdWS_example; // String |
7final userIds = userIds_example; // String |
8
9try {
10 final result = api_instance.getUserPresenceStatuses(tenantId, urlIdWS, userIds);
11 print(result);
12} catch (e) {
13 print('Exception when calling PublicApi->getUserPresenceStatuses: $e\n');
14}
15

szukajUżytkowników Internal Link

Parameters

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringpathTak
urlIdstringqueryTak
usernameStartsWithstringqueryNie
mentionGroupIdsarrayqueryNie
ssostringqueryNie
searchSectionstringqueryNie

Odpowiedź

Zwraca: SearchUsersResult

Przykład

searchUsers Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3
4final api_instance = PublicApi();
5final tenantId = tenantId_example; // String |
6final urlId = urlId_example; // String |
7final usernameStartsWith = usernameStartsWith_example; // String |
8final mentionGroupIds = []; // List<String> |
9final sso = sso_example; // String |
10final searchSection = searchSection_example; // String |
11
12try {
13 final result = api_instance.searchUsers(tenantId, urlId, SearchUsersOptions(usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection));
14 print(result);
15} catch (e) {
16 print('Exception when calling PublicApi->searchUsers: $e\n');
17}
18

pobierzUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
idstringpathTak

Odpowiedź

Zwraca: GetUserResponse

Przykład

Przykład getUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11
12try {
13 final result = api_instance.getUser(tenantId, id);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getUser: $e\n');
17}
18

utwórzGłos Internal Link


Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
commentIdstringqueryYes
directionstringqueryYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odpowiedź

Zwraca: VoteResponse

Przykład

createVote Przykład
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final commentId = commentId_example; // String |
11final direction = direction_example; // String |
12final userId = userId_example; // String |
13final anonUserId = anonUserId_example; // String |
14
15try {
16 final result = api_instance.createVote(tenantId, commentId, direction, CreateVoteOptions(userId: userId, anonUserId: anonUserId));
17 print(result);
18} catch (e) {
19 print('Exception when calling DefaultApi->createVote: $e\n');
20}
21

usuńGłos Internal Link

Parameters

NameTypeLocationRequiredDescription
tenantIdstringqueryYes
idstringpathYes
editKeystringqueryNo

Response

Zwraca: VoteDeleteResponse

Example

Przykład deleteVote
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebny
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final id = id_example; // String |
11final editKey = editKey_example; // String |
12
13try {
14 final result = api_instance.deleteVote(tenantId, id, editKey);
15 print(result);
16} catch (e) {
17 print('Exception when calling DefaultApi->deleteVote: $e\n');
18}
19

pobierzGłosy Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryTak
urlIdstringqueryTak

Odpowiedź

Zwraca: GetVotesResponse

Przykład

Przykład getVotes
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli to potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final urlId = urlId_example; // String |
11
12try {
13 final result = api_instance.getVotes(tenantId, urlId);
14 print(result);
15} catch (e) {
16 print('Exception when calling DefaultApi->getVotes: $e\n');
17}
18

pobierzGłosyDlaUżytkownika Internal Link

Parametry

NazwaTypLokalizacjaWymaganeOpis
tenantIdstringqueryYes
urlIdstringqueryYes
userIdstringqueryNo
anonUserIdstringqueryNo

Odpowiedź

Zwraca: GetVotesForUserResponse

Przykład

Przykład getVotesForUser
Copy Copy
1
2import 'package:fastcomments_dart/api.dart';
3// TODO Skonfiguruj autoryzację klucza API: api_key
4//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
5// odkomentuj poniżej, aby ustawić prefiks (np. Bearer) dla klucza API, jeśli potrzebne
6//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
7
8final api_instance = DefaultApi();
9final tenantId = tenantId_example; // String |
10final urlId = urlId_example; // String |
11final userId = userId_example; // String |
12final anonUserId = anonUserId_example; // String |
13
14try {
15 final result = api_instance.getVotesForUser(tenantId, urlId, GetVotesForUserOptions(userId: userId, anonUserId: anonUserId));
16 print(result);
17} catch (e) {
18 print('Exception when calling DefaultApi->getVotesForUser: $e\n');
19}
20

Potrzebujesz pomocy?

Jeśli napotkasz jakiekolwiek problemy lub masz pytania dotyczące SDK Dart, prosimy:

Współtworzenie

Wkład jest mile widziany! Odwiedź repozytorium GitHub aby zapoznać się z wytycznymi dotyczącymi wkładu.