Skip to content

Latest commit

 

History

History
672 lines (632 loc) · 61.5 KB

File metadata and controls

672 lines (632 loc) · 61.5 KB

fastcomments-client

FastCommentsClient - the Ruby gem for the fastcomments

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.0
  • Package version: 3.0.0
  • Generator version: 7.23.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build fastcomments-client.gemspec

Then either install the gem locally:

gem install ./fastcomments-client-3.0.0.gem

(for development, run gem install --dev ./fastcomments-client-3.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'fastcomments-client', '~> 3.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'fastcomments-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'fastcomments-client'

# Setup authorization
FastCommentsClient.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['x-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-api-key'] = 'Bearer'
end

api_instance = FastCommentsClient::DefaultApi.new
tenant_id = 'tenant_id_example' # String | 
add_domain_config_params = FastCommentsClient::AddDomainConfigParams.new({domain: 'domain_example'}) # AddDomainConfigParams | 

begin
  result = api_instance.add_domain_config(tenant_id, add_domain_config_params)
  p result
rescue FastCommentsClient::ApiError => e
  puts "Exception when calling DefaultApi->add_domain_config: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://fastcomments.com

Class Method HTTP request Description
FastCommentsClient::DefaultApi add_domain_config POST /api/v1/domain-configs
FastCommentsClient::DefaultApi add_hash_tag POST /api/v1/hash-tags
FastCommentsClient::DefaultApi add_hash_tags_bulk POST /api/v1/hash-tags/bulk
FastCommentsClient::DefaultApi add_page POST /api/v1/pages
FastCommentsClient::DefaultApi add_sso_user POST /api/v1/sso-users
FastCommentsClient::DefaultApi aggregate POST /api/v1/aggregate
FastCommentsClient::DefaultApi aggregate_question_results GET /api/v1/question-results-aggregation
FastCommentsClient::DefaultApi block_user_from_comment POST /api/v1/comments/{id}/block
FastCommentsClient::DefaultApi bulk_aggregate_question_results POST /api/v1/question-results-aggregation/bulk
FastCommentsClient::DefaultApi change_ticket_state PATCH /api/v1/tickets/{id}/state
FastCommentsClient::DefaultApi combine_comments_with_question_results GET /api/v1/question-results-aggregation/combine/comments
FastCommentsClient::DefaultApi create_email_template POST /api/v1/email-templates
FastCommentsClient::DefaultApi create_feed_post POST /api/v1/feed-posts
FastCommentsClient::DefaultApi create_moderator POST /api/v1/moderators
FastCommentsClient::DefaultApi create_question_config POST /api/v1/question-configs
FastCommentsClient::DefaultApi create_question_result POST /api/v1/question-results
FastCommentsClient::DefaultApi create_subscription POST /api/v1/subscriptions
FastCommentsClient::DefaultApi create_tenant POST /api/v1/tenants
FastCommentsClient::DefaultApi create_tenant_package POST /api/v1/tenant-packages
FastCommentsClient::DefaultApi create_tenant_user POST /api/v1/tenant-users
FastCommentsClient::DefaultApi create_ticket POST /api/v1/tickets
FastCommentsClient::DefaultApi create_user_badge POST /api/v1/user-badges
FastCommentsClient::DefaultApi create_vote POST /api/v1/votes
FastCommentsClient::DefaultApi delete_comment DELETE /api/v1/comments/{id}
FastCommentsClient::DefaultApi delete_domain_config DELETE /api/v1/domain-configs/{domain}
FastCommentsClient::DefaultApi delete_email_template DELETE /api/v1/email-templates/{id}
FastCommentsClient::DefaultApi delete_email_template_render_error DELETE /api/v1/email-templates/{id}/render-errors/{errorId}
FastCommentsClient::DefaultApi delete_hash_tag DELETE /api/v1/hash-tags/{tag}
FastCommentsClient::DefaultApi delete_moderator DELETE /api/v1/moderators/{id}
FastCommentsClient::DefaultApi delete_notification_count DELETE /api/v1/notification-count/{id}
FastCommentsClient::DefaultApi delete_page DELETE /api/v1/pages/{id}
FastCommentsClient::DefaultApi delete_pending_webhook_event DELETE /api/v1/pending-webhook-events/{id}
FastCommentsClient::DefaultApi delete_question_config DELETE /api/v1/question-configs/{id}
FastCommentsClient::DefaultApi delete_question_result DELETE /api/v1/question-results/{id}
FastCommentsClient::DefaultApi delete_sso_user DELETE /api/v1/sso-users/{id}
FastCommentsClient::DefaultApi delete_subscription DELETE /api/v1/subscriptions/{id}
FastCommentsClient::DefaultApi delete_tenant DELETE /api/v1/tenants/{id}
FastCommentsClient::DefaultApi delete_tenant_package DELETE /api/v1/tenant-packages/{id}
FastCommentsClient::DefaultApi delete_tenant_user DELETE /api/v1/tenant-users/{id}
FastCommentsClient::DefaultApi delete_user_badge DELETE /api/v1/user-badges/{id}
FastCommentsClient::DefaultApi delete_vote DELETE /api/v1/votes/{id}
FastCommentsClient::DefaultApi flag_comment POST /api/v1/comments/{id}/flag
FastCommentsClient::DefaultApi get_audit_logs GET /api/v1/audit-logs
FastCommentsClient::DefaultApi get_cached_notification_count GET /api/v1/notification-count/{id}
FastCommentsClient::DefaultApi get_comment GET /api/v1/comments/{id}
FastCommentsClient::DefaultApi get_comments GET /api/v1/comments
FastCommentsClient::DefaultApi get_domain_config GET /api/v1/domain-configs/{domain}
FastCommentsClient::DefaultApi get_domain_configs GET /api/v1/domain-configs
FastCommentsClient::DefaultApi get_email_template GET /api/v1/email-templates/{id}
FastCommentsClient::DefaultApi get_email_template_definitions GET /api/v1/email-templates/definitions
FastCommentsClient::DefaultApi get_email_template_render_errors GET /api/v1/email-templates/{id}/render-errors
FastCommentsClient::DefaultApi get_email_templates GET /api/v1/email-templates
FastCommentsClient::DefaultApi get_feed_posts GET /api/v1/feed-posts
FastCommentsClient::DefaultApi get_hash_tags GET /api/v1/hash-tags
FastCommentsClient::DefaultApi get_moderator GET /api/v1/moderators/{id}
FastCommentsClient::DefaultApi get_moderators GET /api/v1/moderators
FastCommentsClient::DefaultApi get_notification_count GET /api/v1/notifications/count
FastCommentsClient::DefaultApi get_notifications GET /api/v1/notifications
FastCommentsClient::DefaultApi get_page_by_urlid GET /api/v1/pages/by-url-id
FastCommentsClient::DefaultApi get_pages GET /api/v1/pages
FastCommentsClient::DefaultApi get_pending_webhook_event_count GET /api/v1/pending-webhook-events/count
FastCommentsClient::DefaultApi get_pending_webhook_events GET /api/v1/pending-webhook-events
FastCommentsClient::DefaultApi get_question_config GET /api/v1/question-configs/{id}
FastCommentsClient::DefaultApi get_question_configs GET /api/v1/question-configs
FastCommentsClient::DefaultApi get_question_result GET /api/v1/question-results/{id}
FastCommentsClient::DefaultApi get_question_results GET /api/v1/question-results
FastCommentsClient::DefaultApi get_sso_user_by_email GET /api/v1/sso-users/by-email/{email}
FastCommentsClient::DefaultApi get_sso_user_by_id GET /api/v1/sso-users/by-id/{id}
FastCommentsClient::DefaultApi get_sso_users GET /api/v1/sso-users
FastCommentsClient::DefaultApi get_subscriptions GET /api/v1/subscriptions
FastCommentsClient::DefaultApi get_tenant GET /api/v1/tenants/{id}
FastCommentsClient::DefaultApi get_tenant_daily_usages GET /api/v1/tenant-daily-usage
FastCommentsClient::DefaultApi get_tenant_package GET /api/v1/tenant-packages/{id}
FastCommentsClient::DefaultApi get_tenant_packages GET /api/v1/tenant-packages
FastCommentsClient::DefaultApi get_tenant_user GET /api/v1/tenant-users/{id}
FastCommentsClient::DefaultApi get_tenant_users GET /api/v1/tenant-users
FastCommentsClient::DefaultApi get_tenants GET /api/v1/tenants
FastCommentsClient::DefaultApi get_ticket GET /api/v1/tickets/{id}
FastCommentsClient::DefaultApi get_tickets GET /api/v1/tickets
FastCommentsClient::DefaultApi get_user GET /api/v1/users/{id}
FastCommentsClient::DefaultApi get_user_badge GET /api/v1/user-badges/{id}
FastCommentsClient::DefaultApi get_user_badge_progress_by_id GET /api/v1/user-badge-progress/{id}
FastCommentsClient::DefaultApi get_user_badge_progress_by_user_id GET /api/v1/user-badge-progress/user/{userId}
FastCommentsClient::DefaultApi get_user_badge_progress_list GET /api/v1/user-badge-progress
FastCommentsClient::DefaultApi get_user_badges GET /api/v1/user-badges
FastCommentsClient::DefaultApi get_votes GET /api/v1/votes
FastCommentsClient::DefaultApi get_votes_for_user GET /api/v1/votes/for-user
FastCommentsClient::DefaultApi patch_domain_config PATCH /api/v1/domain-configs/{domainToUpdate}
FastCommentsClient::DefaultApi patch_hash_tag PATCH /api/v1/hash-tags/{tag}
FastCommentsClient::DefaultApi patch_page PATCH /api/v1/pages/{id}
FastCommentsClient::DefaultApi patch_sso_user PATCH /api/v1/sso-users/{id}
FastCommentsClient::DefaultApi put_domain_config PUT /api/v1/domain-configs/{domainToUpdate}
FastCommentsClient::DefaultApi put_sso_user PUT /api/v1/sso-users/{id}
FastCommentsClient::DefaultApi render_email_template POST /api/v1/email-templates/render
FastCommentsClient::DefaultApi replace_tenant_package PUT /api/v1/tenant-packages/{id}
FastCommentsClient::DefaultApi replace_tenant_user PUT /api/v1/tenant-users/{id}
FastCommentsClient::DefaultApi save_comment POST /api/v1/comments
FastCommentsClient::DefaultApi save_comments_bulk POST /api/v1/comments/bulk
FastCommentsClient::DefaultApi send_invite POST /api/v1/moderators/{id}/send-invite
FastCommentsClient::DefaultApi send_login_link POST /api/v1/tenant-users/{id}/send-login-link
FastCommentsClient::DefaultApi un_block_user_from_comment POST /api/v1/comments/{id}/un-block
FastCommentsClient::DefaultApi un_flag_comment POST /api/v1/comments/{id}/un-flag
FastCommentsClient::DefaultApi update_comment PATCH /api/v1/comments/{id}
FastCommentsClient::DefaultApi update_email_template PATCH /api/v1/email-templates/{id}
FastCommentsClient::DefaultApi update_feed_post PATCH /api/v1/feed-posts/{id}
FastCommentsClient::DefaultApi update_moderator PATCH /api/v1/moderators/{id}
FastCommentsClient::DefaultApi update_notification PATCH /api/v1/notifications/{id}
FastCommentsClient::DefaultApi update_question_config PATCH /api/v1/question-configs/{id}
FastCommentsClient::DefaultApi update_question_result PATCH /api/v1/question-results/{id}
FastCommentsClient::DefaultApi update_subscription PATCH /api/v1/subscriptions/{id}
FastCommentsClient::DefaultApi update_tenant PATCH /api/v1/tenants/{id}
FastCommentsClient::DefaultApi update_tenant_package PATCH /api/v1/tenant-packages/{id}
FastCommentsClient::DefaultApi update_tenant_user PATCH /api/v1/tenant-users/{id}
FastCommentsClient::DefaultApi update_user_badge PUT /api/v1/user-badges/{id}
FastCommentsClient::ModerationApi delete_moderation_vote DELETE /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}
FastCommentsClient::ModerationApi get_api_comments GET /auth/my-account/moderate-comments/mod_api/api/comments
FastCommentsClient::ModerationApi get_api_export_status GET /auth/my-account/moderate-comments/mod_api/api/export/status
FastCommentsClient::ModerationApi get_api_ids GET /auth/my-account/moderate-comments/mod_api/api/ids
FastCommentsClient::ModerationApi get_ban_users_from_comment GET /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}
FastCommentsClient::ModerationApi get_comment_ban_status GET /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}
FastCommentsClient::ModerationApi get_comment_children GET /auth/my-account/moderate-comments/mod_api/comment-children/{commentId}
FastCommentsClient::ModerationApi get_count GET /auth/my-account/moderate-comments/mod_api/count
FastCommentsClient::ModerationApi get_counts GET /auth/my-account/moderate-comments/banned-users/mod_api/counts
FastCommentsClient::ModerationApi get_logs GET /auth/my-account/moderate-comments/mod_api/logs/{commentId}
FastCommentsClient::ModerationApi get_manual_badges GET /auth/my-account/moderate-comments/mod_api/get-manual-badges
FastCommentsClient::ModerationApi get_manual_badges_for_user GET /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user
FastCommentsClient::ModerationApi get_moderation_comment GET /auth/my-account/moderate-comments/mod_api/comment/{commentId}
FastCommentsClient::ModerationApi get_moderation_comment_text GET /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}
FastCommentsClient::ModerationApi get_pre_ban_summary GET /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}
FastCommentsClient::ModerationApi get_search_comments_summary GET /auth/my-account/moderate-comments/mod_api/search/comments/summary
FastCommentsClient::ModerationApi get_search_pages GET /auth/my-account/moderate-comments/mod_api/search/pages
FastCommentsClient::ModerationApi get_search_sites GET /auth/my-account/moderate-comments/mod_api/search/sites
FastCommentsClient::ModerationApi get_search_suggest GET /auth/my-account/moderate-comments/mod_api/search/suggest
FastCommentsClient::ModerationApi get_search_users GET /auth/my-account/moderate-comments/mod_api/search/users
FastCommentsClient::ModerationApi get_trust_factor GET /auth/my-account/moderate-comments/mod_api/get-trust-factor
FastCommentsClient::ModerationApi get_user_ban_preference GET /auth/my-account/moderate-comments/mod_api/user-ban-preference
FastCommentsClient::ModerationApi get_user_internal_profile GET /auth/my-account/moderate-comments/mod_api/get-user-internal-profile
FastCommentsClient::ModerationApi post_adjust_comment_votes POST /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}
FastCommentsClient::ModerationApi post_api_export POST /auth/my-account/moderate-comments/mod_api/api/export
FastCommentsClient::ModerationApi post_ban_user_from_comment POST /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}
FastCommentsClient::ModerationApi post_ban_user_undo POST /auth/my-account/moderate-comments/mod_api/ban-user/undo
FastCommentsClient::ModerationApi post_bulk_pre_ban_summary POST /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary
FastCommentsClient::ModerationApi post_comments_by_ids POST /auth/my-account/moderate-comments/mod_api/comments-by-ids
FastCommentsClient::ModerationApi post_flag_comment POST /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}
FastCommentsClient::ModerationApi post_remove_comment POST /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}
FastCommentsClient::ModerationApi post_restore_deleted_comment POST /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}
FastCommentsClient::ModerationApi post_set_comment_approval_status POST /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}
FastCommentsClient::ModerationApi post_set_comment_review_status POST /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}
FastCommentsClient::ModerationApi post_set_comment_spam_status POST /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}
FastCommentsClient::ModerationApi post_set_comment_text POST /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}
FastCommentsClient::ModerationApi post_un_flag_comment POST /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}
FastCommentsClient::ModerationApi post_vote POST /auth/my-account/moderate-comments/mod_api/vote/{commentId}
FastCommentsClient::ModerationApi put_award_badge PUT /auth/my-account/moderate-comments/mod_api/award-badge
FastCommentsClient::ModerationApi put_close_thread PUT /auth/my-account/moderate-comments/mod_api/close-thread
FastCommentsClient::ModerationApi put_remove_badge PUT /auth/my-account/moderate-comments/mod_api/remove-badge
FastCommentsClient::ModerationApi put_reopen_thread PUT /auth/my-account/moderate-comments/mod_api/reopen-thread
FastCommentsClient::ModerationApi set_trust_factor PUT /auth/my-account/moderate-comments/mod_api/set-trust-factor
FastCommentsClient::PublicApi block_from_comment_public POST /block-from-comment/{commentId}
FastCommentsClient::PublicApi checked_comments_for_blocked GET /check-blocked-comments
FastCommentsClient::PublicApi create_comment_public POST /comments/{tenantId}
FastCommentsClient::PublicApi create_feed_post_public POST /feed-posts/{tenantId}
FastCommentsClient::PublicApi create_v1_page_react POST /page-reacts/v1/likes/{tenantId}
FastCommentsClient::PublicApi create_v2_page_react POST /page-reacts/v2/{tenantId}
FastCommentsClient::PublicApi delete_comment_public DELETE /comments/{tenantId}/{commentId}
FastCommentsClient::PublicApi delete_comment_vote DELETE /comments/{tenantId}/{commentId}/vote/{voteId}
FastCommentsClient::PublicApi delete_feed_post_public DELETE /feed-posts/{tenantId}/{postId}
FastCommentsClient::PublicApi delete_v1_page_react DELETE /page-reacts/v1/likes/{tenantId}
FastCommentsClient::PublicApi delete_v2_page_react DELETE /page-reacts/v2/{tenantId}
FastCommentsClient::PublicApi flag_comment_public POST /flag-comment/{commentId}
FastCommentsClient::PublicApi get_comment_text GET /comments/{tenantId}/{commentId}/text
FastCommentsClient::PublicApi get_comment_vote_user_names GET /comments/{tenantId}/{commentId}/votes
FastCommentsClient::PublicApi get_comments_for_user GET /comments-for-user
FastCommentsClient::PublicApi get_comments_public GET /comments/{tenantId}
FastCommentsClient::PublicApi get_event_log GET /event-log/{tenantId}
FastCommentsClient::PublicApi get_feed_posts_public GET /feed-posts/{tenantId}
FastCommentsClient::PublicApi get_feed_posts_stats GET /feed-posts/{tenantId}/stats
FastCommentsClient::PublicApi get_gif_large GET /gifs/get-large/{tenantId}
FastCommentsClient::PublicApi get_gifs_search GET /gifs/search/{tenantId}
FastCommentsClient::PublicApi get_gifs_trending GET /gifs/trending/{tenantId}
FastCommentsClient::PublicApi get_global_event_log GET /event-log/global/{tenantId}
FastCommentsClient::PublicApi get_offline_users GET /pages/{tenantId}/users/offline
FastCommentsClient::PublicApi get_online_users GET /pages/{tenantId}/users/online
FastCommentsClient::PublicApi get_pages_public GET /pages/{tenantId}
FastCommentsClient::PublicApi get_translations GET /translations/{namespace}/{component}
FastCommentsClient::PublicApi get_user_notification_count GET /user-notifications/get-count
FastCommentsClient::PublicApi get_user_notifications GET /user-notifications
FastCommentsClient::PublicApi get_user_presence_statuses GET /user-presence-status
FastCommentsClient::PublicApi get_user_reacts_public GET /feed-posts/{tenantId}/user-reacts
FastCommentsClient::PublicApi get_users_info GET /pages/{tenantId}/users/info
FastCommentsClient::PublicApi get_v1_page_likes GET /page-reacts/v1/likes/{tenantId}
FastCommentsClient::PublicApi get_v2_page_react_users GET /page-reacts/v2/{tenantId}/list
FastCommentsClient::PublicApi get_v2_page_reacts GET /page-reacts/v2/{tenantId}
FastCommentsClient::PublicApi lock_comment POST /comments/{tenantId}/{commentId}/lock
FastCommentsClient::PublicApi logout_public PUT /auth/logout
FastCommentsClient::PublicApi pin_comment POST /comments/{tenantId}/{commentId}/pin
FastCommentsClient::PublicApi react_feed_post_public POST /feed-posts/{tenantId}/react/{postId}
FastCommentsClient::PublicApi reset_user_notification_count POST /user-notifications/reset-count
FastCommentsClient::PublicApi reset_user_notifications POST /user-notifications/reset
FastCommentsClient::PublicApi search_users GET /user-search/{tenantId}
FastCommentsClient::PublicApi set_comment_text POST /comments/{tenantId}/{commentId}/update-text
FastCommentsClient::PublicApi un_block_comment_public DELETE /block-from-comment/{commentId}
FastCommentsClient::PublicApi un_lock_comment POST /comments/{tenantId}/{commentId}/unlock
FastCommentsClient::PublicApi un_pin_comment POST /comments/{tenantId}/{commentId}/unpin
FastCommentsClient::PublicApi update_feed_post_public PUT /feed-posts/{tenantId}/{postId}
FastCommentsClient::PublicApi update_user_notification_comment_subscription_status POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut}
FastCommentsClient::PublicApi update_user_notification_page_subscription_status POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed}
FastCommentsClient::PublicApi update_user_notification_status POST /user-notifications/{notificationId}/mark/{newStatus}
FastCommentsClient::PublicApi upload_image POST /upload-image/{tenantId}
FastCommentsClient::PublicApi vote_comment POST /comments/{tenantId}/{commentId}/vote

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

api_key

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