Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
fastcomments (1.2.0)
fastcomments (2.0.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ This library contains the generated API client and the SSO utilities to make wor
For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains api calls
that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` contains the methods that power the moderator dashboard.

The `ModerationApi` covers comment moderation (list, count, search, logs, export), moderation actions (remove/restore, flag, set review/spam/approval status, votes, reopen/close thread),
bans (ban from a comment, undo, pre-ban summaries, ban status/preferences, banned-user counts), and badges & trust (award/remove badge, manual badges, get/set trust factor, user internal profile).
Each `ModerationApi` method accepts an `sso` parameter so the request can be made on behalf of an SSO-authenticated moderator.
The `ModerationApi` provides an extensive suite of live and fast moderation APIs. Every `ModerationApi` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie.

## Quick Start

Expand Down Expand Up @@ -86,8 +84,8 @@ public_api = FastCommentsClient::PublicApi.new

begin
response = public_api.get_comments_public(
tenant_id: 'YOUR_TENANT_ID',
url_id: 'page-url-id'
'YOUR_TENANT_ID',
'page-url-id'
)
puts response
rescue FastCommentsClient::ApiError => e
Expand Down Expand Up @@ -157,8 +155,8 @@ api_client = FastCommentsClient::ApiClient.new(config)
public_api = FastCommentsClient::PublicApi.new(api_client)

response = public_api.get_comments_public(
tenant_id: 'your-tenant-id',
url_id: 'your-page-url-id',
'your-tenant-id',
'your-page-url-id',
sso: token
)

Expand Down Expand Up @@ -190,8 +188,8 @@ api_client = FastCommentsClient::ApiClient.new(config)
public_api = FastCommentsClient::PublicApi.new(api_client)

response = public_api.get_comments_public(
tenant_id: 'your-tenant-id',
url_id: 'your-page-url-id',
'your-tenant-id',
'your-page-url-id',
sso: token
)

Expand Down
10 changes: 4 additions & 6 deletions client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ docs/PatchDomainConfigResponse.md
docs/PatchPageAPIResponse.md
docs/PatchSSOUserAPIResponse.md
docs/PendingCommentToSyncOutbound.md
docs/PostRemoveCommentResponse.md
docs/PostRemoveCommentApiResponse.md
docs/PreBanSummary.md
docs/PubSubComment.md
docs/PubSubCommentBase.md
Expand Down Expand Up @@ -368,7 +368,6 @@ docs/UsersListLocation.md
docs/VoteBodyParams.md
docs/VoteDeleteResponse.md
docs/VoteResponse.md
docs/VoteResponseStatus.md
docs/VoteResponseUser.md
docs/VoteStyle.md
fastcomments-client.gemspec
Expand All @@ -379,6 +378,7 @@ lib/fastcomments-client/api/moderation_api.rb
lib/fastcomments-client/api/public_api.rb
lib/fastcomments-client/api_client.rb
lib/fastcomments-client/api_error.rb
lib/fastcomments-client/api_model_base.rb
lib/fastcomments-client/configuration.rb
lib/fastcomments-client/models/add_domain_config_params.rb
lib/fastcomments-client/models/add_domain_config_response.rb
Expand Down Expand Up @@ -639,7 +639,7 @@ lib/fastcomments-client/models/patch_domain_config_response.rb
lib/fastcomments-client/models/patch_page_api_response.rb
lib/fastcomments-client/models/patch_sso_user_api_response.rb
lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb
lib/fastcomments-client/models/post_remove_comment_response.rb
lib/fastcomments-client/models/post_remove_comment_api_response.rb
lib/fastcomments-client/models/pre_ban_summary.rb
lib/fastcomments-client/models/pub_sub_comment.rb
lib/fastcomments-client/models/pub_sub_comment_base.rb
Expand Down Expand Up @@ -738,7 +738,6 @@ lib/fastcomments-client/models/users_list_location.rb
lib/fastcomments-client/models/vote_body_params.rb
lib/fastcomments-client/models/vote_delete_response.rb
lib/fastcomments-client/models/vote_response.rb
lib/fastcomments-client/models/vote_response_status.rb
lib/fastcomments-client/models/vote_response_user.rb
lib/fastcomments-client/models/vote_style.rb
lib/fastcomments-client/version.rb
Expand Down Expand Up @@ -1004,7 +1003,7 @@ spec/models/patch_domain_config_response_spec.rb
spec/models/patch_page_api_response_spec.rb
spec/models/patch_sso_user_api_response_spec.rb
spec/models/pending_comment_to_sync_outbound_spec.rb
spec/models/post_remove_comment_response_spec.rb
spec/models/post_remove_comment_api_response_spec.rb
spec/models/pre_ban_summary_spec.rb
spec/models/pub_sub_comment_base_spec.rb
spec/models/pub_sub_comment_spec.rb
Expand Down Expand Up @@ -1103,7 +1102,6 @@ spec/models/users_list_location_spec.rb
spec/models/vote_body_params_spec.rb
spec/models/vote_delete_response_spec.rb
spec/models/vote_response_spec.rb
spec/models/vote_response_status_spec.rb
spec/models/vote_response_user_spec.rb
spec/models/vote_style_spec.rb
spec/spec_helper.rb
2 changes: 1 addition & 1 deletion client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.14.0
7.23.0-SNAPSHOT
2 changes: 1 addition & 1 deletion client/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build fastcomments-client.gemspec
- gem install ./fastcomments-client-1.2.1.gem
- gem install ./fastcomments-client-3.0.0.gem
Loading
Loading