fastcomments / fastcomments-php
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
v0.0.3
2025-04-09 19:54 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
README
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/fastcomments/fastcomments-php.git" } ], "require": { "fastcomments/fastcomments-php": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/fastcomments/client/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: api_key $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = FastComments\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer'); $apiInstance = new FastComments\Client\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $tenant_id = 'tenant_id_example'; // string $add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams try { $result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | addDomainConfig | POST /api/v1/domain-configs | |
DefaultApi | aggregate | POST /api/v1/aggregate | |
DefaultApi | aggregateQuestionResults | GET /api/v1/question-results-aggregation | |
DefaultApi | blockUserFromComment | POST /api/v1/comments/{id}/block | |
DefaultApi | bulkAggregateQuestionResults | POST /api/v1/question-results-aggregation/bulk | |
DefaultApi | combineCommentsWithQuestionResults | GET /api/v1/question-results-aggregation/combine/comments | |
DefaultApi | createFeedPost | POST /api/v1/feed-posts | |
DefaultApi | deleteComment | DELETE /api/v1/comments/{id} | |
DefaultApi | deleteDomainConfig | DELETE /api/v1/domain-configs/{domain} | |
DefaultApi | flagComment | POST /api/v1/comments/{id}/flag | |
DefaultApi | getAuditLogs | GET /api/v1/audit-logs | |
DefaultApi | getComment | GET /api/v1/comments/{id} | |
DefaultApi | getComments | GET /api/v1/comments | |
DefaultApi | getDomainConfig | GET /api/v1/domain-configs/{domain} | |
DefaultApi | getDomainConfigs | GET /api/v1/domain-configs | |
DefaultApi | getFeedPosts | GET /api/v1/feed-posts | |
DefaultApi | patchDomainConfig | PATCH /api/v1/domain-configs/{domainToUpdate} | |
DefaultApi | putDomainConfig | PUT /api/v1/domain-configs/{domainToUpdate} | |
DefaultApi | saveComment | POST /api/v1/comments | |
DefaultApi | unBlockUserFromComment | POST /api/v1/comments/{id}/un-block | |
DefaultApi | unFlagComment | POST /api/v1/comments/{id}/un-flag | |
DefaultApi | updateComment | PATCH /api/v1/comments/{id} | |
DefaultApi | updateFeedPost | PATCH /api/v1/feed-posts/{id} | |
HiddenApi | uploadImageOptions | OPTIONS /upload-image/{tenantId} | |
PublicApi | blockFromCommentPublic | POST /block-from-comment/{commentId} | |
PublicApi | checkedCommentsForBlocked | GET /check-blocked-comments | |
PublicApi | createCommentPublic | POST /comments/{tenantId} | |
PublicApi | createFeedPostPublic | POST /feed-posts/{tenantId} | |
PublicApi | deleteCommentPublic | DELETE /comments/{tenantId}/{commentId} | |
PublicApi | deleteCommentVote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
PublicApi | flagCommentPublic | POST /flag-comment/{commentId} | |
PublicApi | getCommentText | GET /comments/{tenantId}/{commentId}/text | |
PublicApi | getCommentVoteUserNames | GET /comments/{tenantId}/{commentId}/votes | |
PublicApi | getCommentsPublic | GET /comments/{tenantId} | |
PublicApi | getEventLog | GET /event-log/{tenantId} | |
PublicApi | getFeedPostsPublic | GET /feed-posts/{tenantId} | |
PublicApi | getGlobalEventLog | GET /event-log/global/{tenantId} | |
PublicApi | getUserNotificationCount | GET /user-notifications/get-count | |
PublicApi | getUserNotifications | GET /user-notifications | |
PublicApi | getUserPresenceStatuses | GET /user-presence-status | |
PublicApi | getUserReactsPublic | GET /feed-posts/{tenantId}/user-reacts | |
PublicApi | lockComment | POST /comments/{tenantId}/{commentId}/lock | |
PublicApi | pinComment | POST /comments/{tenantId}/{commentId}/pin | |
PublicApi | reactFeedPostPublic | POST /feed-posts/{tenantId}/react/{postId} | |
PublicApi | resetUserNotificationCount | POST /user-notifications/reset-count | |
PublicApi | resetUserNotifications | POST /user-notifications/reset | |
PublicApi | setCommentText | POST /comments/{tenantId}/{commentId}/update-text | |
PublicApi | unBlockCommentPublic | DELETE /block-from-comment/{commentId} | |
PublicApi | unLockComment | POST /comments/{tenantId}/{commentId}/unlock | |
PublicApi | unPinComment | POST /comments/{tenantId}/{commentId}/unpin | |
PublicApi | updateUserNotificationCommentSubscriptionStatus | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | |
PublicApi | updateUserNotificationPageSubscriptionStatus | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | |
PublicApi | updateUserNotificationStatus | POST /user-notifications/{notificationId}/mark/{newStatus} | |
PublicApi | uploadImage | POST /upload-image/{tenantId} | |
PublicApi | voteComment | POST /comments/{tenantId}/{commentId}/vote |
Models
- APIEmptyResponse
- APIError
- APIGetCommentResponse
- APIGetCommentsResponse
- APIStatus
- AddDomainConfig200Response
- AddDomainConfig200ResponseAnyOf
- AddDomainConfigParams
- AggregateQuestionResults200Response
- AggregateQuestionResultsResponse
- AggregateTimeBucket
- AggregationItem
- AggregationOpType
- AggregationOperation
- AggregationRequest
- AggregationRequestSort
- AggregationResponse
- AggregationResponseStats
- AggregationValue
- BlockFromCommentParams
- BlockFromCommentPublic200Response
- BlockSuccess
- BulkAggregateQuestionItem
- BulkAggregateQuestionResults200Response
- BulkAggregateQuestionResultsRequest
- BulkAggregateQuestionResultsResponse
- ChangeCommentPinStatusResponse
- CheckBlockedCommentsResponse
- CheckedCommentsForBlocked200Response
- CombineCommentsWithQuestionResults200Response
- CombineQuestionResultsWithCommentsResponse
- CommentData
- CommentHTMLRenderingMode
- CommentQuestionResultsRenderingType
- CommentQuestionsRequired
- CommentTextUpdateRequest
- CommentThreadDeletionMode
- CommentUserBadgeInfo
- CommentUserHashTagInfo
- CommentUserMentionInfo
- CommenterNameFormats
- CreateCommentParams
- CreateCommentPublic200Response
- CreateFeedPost200Response
- CreateFeedPostParams
- CreateFeedPostPublic200Response
- CreateFeedPostResponse
- CreateFeedPostsResponse
- CustomConfigParameters
- DeleteComment200Response
- DeleteCommentAction
- DeleteCommentPublic200Response
- DeleteCommentResult
- DeleteCommentVote200Response
- DeleteDomainConfig200Response
- EventLogEntry
- FComment
- FCommentMeta
- FeedPost
- FeedPostLink
- FeedPostMediaItem
- FeedPostMediaItemAsset
- FindCommentsByRangeItem
- FindCommentsByRangeResponse
- FlagComment200Response
- FlagCommentPublic200Response
- FlagCommentResponse
- GetAuditLogs200Response
- GetAuditLogsResponse
- GetComment200Response
- GetCommentText200Response
- GetCommentVoteUserNames200Response
- GetCommentVoteUserNamesSuccessResponse
- GetComments200Response
- GetCommentsPublic200Response
- GetCommentsResponsePublicComment
- GetCommentsResponseWithPresencePublicComment
- GetDomainConfig200Response
- GetDomainConfigs200Response
- GetDomainConfigs200ResponseAnyOf
- GetDomainConfigs200ResponseAnyOf1
- GetEventLog200Response
- GetEventLogResponse
- GetFeedPosts200Response
- GetFeedPostsPublic200Response
- GetFeedPostsResponse
- GetMyNotificationsResponse
- GetUserNotificationCount200Response
- GetUserNotificationCountResponse
- GetUserNotifications200Response
- GetUserPresenceStatuses200Response
- GetUserPresenceStatusesResponse
- GetUserReactsPublic200Response
- GifRating
- HeaderState
- IgnoredResponse
- ImageContentProfanityLevel
- ImportedAPIStatusFAILED
- ImportedAPIStatusSUCCESS
- LiveEvent
- LiveEventExtraInfo
- LiveEventType
- LockComment200Response
- MediaAsset
- MetaItem
- NotificationAndCount
- NotificationType
- PatchDomainConfigParams
- PickAPICommentUpdatableCommentFields
- PickFCommentAPICommentFieldsKeys
- PickFCommentAPICommentFieldsKeysMeta
- PickFCommentApprovedOrCommentHTML
- PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId
- PickFCommentPublicCommentFieldsKeys
- PickOmitFCommentDatePublicCommentPubSubFieldsKeys
- PickTenantAuditLogTenantAuditLogKeys
- PickUserNotificationIdOrUrlIdOrUrlOrPageTitleOrRelatedObjectTypeOrRelatedObjectIdOrViewedOrSentOrCreatedAtOrTypeOrFromCommentIdOrFromUserNameOrFromUserIdOrFromUserAvatarSrcOrOptedOut
- PinComment200Response
- PubSubComment
- PubSubVote
- PublicAPIDeleteCommentResponse
- PublicAPIGetCommentTextResponse
- PublicAPISetCommentTextResponse
- PublicBlockFromCommentParams
- PublicComment
- PublicFeedPostsResponse
- QueryPredicate
- QueryPredicateValue
- QuestionDatum
- QuestionRenderingType
- QuestionResult
- QuestionResultAggregationOverall
- QuestionSubQuestionVisibility
- QuestionWhenSave
- ReactBodyParams
- ReactFeedPostPublic200Response
- ReactFeedPostResponse
- RecordStringBeforeStringOrNullAfterStringOrNullValue
- RecordStringStringOrNumberValue
- RenderableUserNotification
- ResetUserNotifications200Response
- ResetUserNotificationsResponse
- SORTDIR
- SSOSecurityLevel
- SaveComment200Response
- SaveCommentResponse
- SaveCommentResponseOptimized
- SaveCommentsResponseWithPresence
- SetCommentText200Response
- SizePreset
- SortDirections
- SpamRule
- UnBlockCommentPublic200Response
- UnBlockFromCommentParams
- UnblockSuccess
- UpdateDomainConfigParams
- UpdateUserNotificationStatus200Response
- UploadImageResponse
- UserNotification
- UserNotificationWriteResponse
- UserPresenceData
- UserReactsResponse
- UserSessionInfo
- VoteBodyParams
- VoteComment200Response
- VoteDeleteResponse
- VoteDeleteResponseStatus
- VoteResponse
- VoteResponseStatus
- VoteResponseUser
- VoteStyle
Authorization
Authentication schemes defined for the API:
api_key
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
0.0.0
- Generator version:
7.12.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen