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

This package is auto-updated.

Last update: 2025-05-09 20:13:48 UTC


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

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

support@fastcomments.com

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.0
    • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen