All URIs are relative to https://fastcomments.com
| Method | HTTP request | Description |
|---|---|---|
| block_from_comment_public | POST /block-from-comment/{commentId} | |
| checked_comments_for_blocked | GET /check-blocked-comments | |
| create_comment_public | POST /comments/{tenantId} | |
| create_feed_post_public | POST /feed-posts/{tenantId} | |
| delete_comment_public | DELETE /comments/{tenantId}/{commentId} | |
| delete_comment_vote | DELETE /comments/{tenantId}/{commentId}/vote/{voteId} | |
| delete_feed_post_public | DELETE /feed-posts/{tenantId}/{postId} | |
| flag_comment_public | POST /flag-comment/{commentId} | |
| get_comment_text | GET /comments/{tenantId}/{commentId}/text | |
| get_comment_vote_user_names | GET /comments/{tenantId}/{commentId}/votes | |
| get_comments_public | GET /comments/{tenantId} | |
| get_event_log | GET /event-log/{tenantId} | |
| get_feed_posts_public | GET /feed-posts/{tenantId} | |
| get_feed_posts_stats | GET /feed-posts/{tenantId}/stats | |
| get_global_event_log | GET /event-log/global/{tenantId} | |
| get_user_notification_count | GET /user-notifications/get-count | |
| get_user_notifications | GET /user-notifications | |
| get_user_presence_statuses | GET /user-presence-status | |
| get_user_reacts_public | GET /feed-posts/{tenantId}/user-reacts | |
| lock_comment | POST /comments/{tenantId}/{commentId}/lock | |
| pin_comment | POST /comments/{tenantId}/{commentId}/pin | |
| react_feed_post_public | POST /feed-posts/{tenantId}/react/{postId} | |
| reset_user_notification_count | POST /user-notifications/reset-count | |
| reset_user_notifications | POST /user-notifications/reset | |
| search_users | GET /user-search/{tenantId} | |
| set_comment_text | POST /comments/{tenantId}/{commentId}/update-text | |
| un_block_comment_public | DELETE /block-from-comment/{commentId} | |
| un_lock_comment | POST /comments/{tenantId}/{commentId}/unlock | |
| un_pin_comment | POST /comments/{tenantId}/{commentId}/unpin | |
| update_feed_post_public | PUT /feed-posts/{tenantId}/{postId} | |
| update_user_notification_comment_subscription_status | POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | |
| update_user_notification_page_subscription_status | POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | |
| update_user_notification_status | POST /user-notifications/{notificationId}/mark/{newStatus} | |
| upload_image | POST /upload-image/{tenantId} | |
| vote_comment | POST /comments/{tenantId}/{commentId}/vote |
block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
public_block_from_comment_params = FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}) # PublicBlockFromCommentParams |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->block_from_comment_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts)
begin
data, status_code, headers = api_instance.block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <BlockFromCommentPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->block_from_comment_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| public_block_from_comment_params | PublicBlockFromCommentParams | ||
| sso | String | [optional] |
BlockFromCommentPublic200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
checked_comments_for_blocked(tenant_id, comment_ids, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_ids = 'comment_ids_example' # String | A comma separated list of comment ids.
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.checked_comments_for_blocked(tenant_id, comment_ids, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->checked_comments_for_blocked: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts)
begin
data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CheckedCommentsForBlocked200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->checked_comments_for_blocked_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_ids | String | A comma separated list of comment ids. | |
| sso | String | [optional] |
CheckedCommentsForBlocked200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id = 'url_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
comment_data = FastCommentsClient::CommentData.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example'}) # CommentData |
opts = {
session_id: 'session_id_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->create_comment_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts)
begin
data, status_code, headers = api_instance.create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateCommentPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->create_comment_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id | String | ||
| broadcast_id | String | ||
| comment_data | CommentData | ||
| session_id | String | [optional] | |
| sso | String | [optional] |
CreateCommentPublic200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
create_feed_post_public(tenant_id, create_feed_post_params, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
create_feed_post_params = FastCommentsClient::CreateFeedPostParams.new # CreateFeedPostParams |
opts = {
broadcast_id: 'broadcast_id_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.create_feed_post_public(tenant_id, create_feed_post_params, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->create_feed_post_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts)
begin
data, status_code, headers = api_instance.create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateFeedPostPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->create_feed_post_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| create_feed_post_params | CreateFeedPostParams | ||
| broadcast_id | String | [optional] | |
| sso | String | [optional] |
CreateFeedPostPublic200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
delete_comment_public(tenant_id, comment_id, broadcast_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
opts = {
edit_key: 'edit_key_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.delete_comment_public(tenant_id, comment_id, broadcast_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->delete_comment_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts)
begin
data, status_code, headers = api_instance.delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DeleteCommentPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->delete_comment_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| broadcast_id | String | ||
| edit_key | String | [optional] | |
| sso | String | [optional] |
DeleteCommentPublic200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
vote_id = 'vote_id_example' # String |
url_id = 'url_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
opts = {
edit_key: 'edit_key_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->delete_comment_vote: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts)
begin
data, status_code, headers = api_instance.delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DeleteCommentVote200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->delete_comment_vote_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| vote_id | String | ||
| url_id | String | ||
| broadcast_id | String | ||
| edit_key | String | [optional] | |
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
delete_feed_post_public(tenant_id, post_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
post_id = 'post_id_example' # String |
opts = {
broadcast_id: 'broadcast_id_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.delete_feed_post_public(tenant_id, post_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->delete_feed_post_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_feed_post_public_with_http_info(tenant_id, post_id, opts)
begin
data, status_code, headers = api_instance.delete_feed_post_public_with_http_info(tenant_id, post_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DeleteFeedPostPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->delete_feed_post_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| post_id | String | ||
| broadcast_id | String | [optional] | |
| sso | String | [optional] |
DeleteFeedPostPublic200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
flag_comment_public(tenant_id, comment_id, is_flagged, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
is_flagged = true # Boolean |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.flag_comment_public(tenant_id, comment_id, is_flagged, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->flag_comment_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts)
begin
data, status_code, headers = api_instance.flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <FlagCommentPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->flag_comment_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| is_flagged | Boolean | ||
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_comment_text(tenant_id, comment_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
opts = {
edit_key: 'edit_key_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.get_comment_text(tenant_id, comment_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_comment_text: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts)
begin
data, status_code, headers = api_instance.get_comment_text_with_http_info(tenant_id, comment_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetCommentText200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_comment_text_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| edit_key | String | [optional] | |
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_comment_vote_user_names(tenant_id, comment_id, dir, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
dir = 56 # Integer |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.get_comment_vote_user_names(tenant_id, comment_id, dir, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_comment_vote_user_names: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts)
begin
data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetCommentVoteUserNames200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_comment_vote_user_names_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| dir | Integer | ||
| sso | String | [optional] |
GetCommentVoteUserNames200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_comments_public(tenant_id, url_id, opts)
req tenantId urlId
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id = 'url_id_example' # String |
opts = {
page: 56, # Integer |
direction: FastCommentsClient::SortDirections::OF, # SortDirections |
sso: 'sso_example', # String |
skip: 56, # Integer |
skip_children: 56, # Integer |
limit: 56, # Integer |
limit_children: 56, # Integer |
count_children: true, # Boolean |
fetch_page_for_comment_id: 'fetch_page_for_comment_id_example', # String |
include_config: true, # Boolean |
count_all: true, # Boolean |
includei10n: true, # Boolean |
locale: 'locale_example', # String |
modules: 'modules_example', # String |
is_crawler: true, # Boolean |
include_notification_count: true, # Boolean |
as_tree: true, # Boolean |
max_tree_depth: 56, # Integer |
use_full_translation_ids: true, # Boolean |
parent_id: 'parent_id_example', # String |
search_text: 'search_text_example', # String |
hash_tags: ['inner_example'], # Array<String> |
user_id: 'user_id_example', # String |
custom_config_str: 'custom_config_str_example', # String |
after_comment_id: 'after_comment_id_example', # String |
before_comment_id: 'before_comment_id_example' # String |
}
begin
result = api_instance.get_comments_public(tenant_id, url_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_comments_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts)
begin
data, status_code, headers = api_instance.get_comments_public_with_http_info(tenant_id, url_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetCommentsPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_comments_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id | String | ||
| page | Integer | [optional] | |
| direction | SortDirections | [optional] | |
| sso | String | [optional] | |
| skip | Integer | [optional] | |
| skip_children | Integer | [optional] | |
| limit | Integer | [optional] | |
| limit_children | Integer | [optional] | |
| count_children | Boolean | [optional] | |
| fetch_page_for_comment_id | String | [optional] | |
| include_config | Boolean | [optional] | |
| count_all | Boolean | [optional] | |
| includei10n | Boolean | [optional] | |
| locale | String | [optional] | |
| modules | String | [optional] | |
| is_crawler | Boolean | [optional] | |
| include_notification_count | Boolean | [optional] | |
| as_tree | Boolean | [optional] | |
| max_tree_depth | Integer | [optional] | |
| use_full_translation_ids | Boolean | [optional] | |
| parent_id | String | [optional] | |
| search_text | String | [optional] | |
| hash_tags | Array<String> | [optional] | |
| user_id | String | [optional] | |
| custom_config_str | String | [optional] | |
| after_comment_id | String | [optional] | |
| before_comment_id | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time)
req tenantId urlId userIdWS
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id = 'url_id_example' # String |
user_id_ws = 'user_id_ws_example' # String |
start_time = 789 # Integer |
end_time = 789 # Integer |
begin
result = api_instance.get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_event_log: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time)
begin
data, status_code, headers = api_instance.get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetEventLog200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_event_log_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id | String | ||
| user_id_ws | String | ||
| start_time | Integer | ||
| end_time | Integer |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_feed_posts_public(tenant_id, opts)
req tenantId afterId
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
opts = {
after_id: 'after_id_example', # String |
limit: 56, # Integer |
tags: ['inner_example'], # Array<String> |
sso: 'sso_example', # String |
is_crawler: true, # Boolean |
include_user_info: true # Boolean |
}
begin
result = api_instance.get_feed_posts_public(tenant_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_feed_posts_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts)
begin
data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(tenant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetFeedPostsPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_feed_posts_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| after_id | String | [optional] | |
| limit | Integer | [optional] | |
| tags | Array<String> | [optional] | |
| sso | String | [optional] | |
| is_crawler | Boolean | [optional] | |
| include_user_info | Boolean | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_feed_posts_stats(tenant_id, post_ids, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
post_ids = ['inner_example'] # Array<String> |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.get_feed_posts_stats(tenant_id, post_ids, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_feed_posts_stats: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts)
begin
data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetFeedPostsStats200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_feed_posts_stats_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| post_ids | Array<String> | ||
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time)
req tenantId urlId userIdWS
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id = 'url_id_example' # String |
user_id_ws = 'user_id_ws_example' # String |
start_time = 789 # Integer |
end_time = 789 # Integer |
begin
result = api_instance.get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_global_event_log: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time)
begin
data, status_code, headers = api_instance.get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetEventLog200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_global_event_log_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id | String | ||
| user_id_ws | String | ||
| start_time | Integer | ||
| end_time | Integer |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_user_notification_count(tenant_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.get_user_notification_count(tenant_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_notification_count: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts)
begin
data, status_code, headers = api_instance.get_user_notification_count_with_http_info(tenant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetUserNotificationCount200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_notification_count_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| sso | String | [optional] |
GetUserNotificationCount200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_user_notifications(tenant_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
opts = {
page_size: 56, # Integer |
after_id: 'after_id_example', # String |
include_context: true, # Boolean |
after_created_at: 789, # Integer |
unread_only: true, # Boolean |
dm_only: true, # Boolean |
no_dm: true, # Boolean |
include_translations: true, # Boolean |
sso: 'sso_example' # String |
}
begin
result = api_instance.get_user_notifications(tenant_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_notifications: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts)
begin
data, status_code, headers = api_instance.get_user_notifications_with_http_info(tenant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetUserNotifications200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_notifications_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| page_size | Integer | [optional] | |
| after_id | String | [optional] | |
| include_context | Boolean | [optional] | |
| after_created_at | Integer | [optional] | |
| unread_only | Boolean | [optional] | |
| dm_only | Boolean | [optional] | |
| no_dm | Boolean | [optional] | |
| include_translations | Boolean | [optional] | |
| sso | String | [optional] |
GetUserNotifications200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_user_presence_statuses(tenant_id, url_id_ws, user_ids)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id_ws = 'url_id_ws_example' # String |
user_ids = 'user_ids_example' # String |
begin
result = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_presence_statuses: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids)
begin
data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetUserPresenceStatuses200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_presence_statuses_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id_ws | String | ||
| user_ids | String |
GetUserPresenceStatuses200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_user_reacts_public(tenant_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
opts = {
post_ids: ['inner_example'], # Array<String> |
sso: 'sso_example' # String |
}
begin
result = api_instance.get_user_reacts_public(tenant_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_reacts_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts)
begin
data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(tenant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetUserReactsPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->get_user_reacts_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| post_ids | Array<String> | [optional] | |
| sso | String | [optional] |
GetUserReactsPublic200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
lock_comment(tenant_id, comment_id, broadcast_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.lock_comment(tenant_id, comment_id, broadcast_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->lock_comment: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
begin
data, status_code, headers = api_instance.lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <LockComment200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->lock_comment_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| broadcast_id | String | ||
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
pin_comment(tenant_id, comment_id, broadcast_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.pin_comment(tenant_id, comment_id, broadcast_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->pin_comment: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
begin
data, status_code, headers = api_instance.pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <PinComment200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->pin_comment_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| broadcast_id | String | ||
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
react_feed_post_public(tenant_id, post_id, react_body_params, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
post_id = 'post_id_example' # String |
react_body_params = FastCommentsClient::ReactBodyParams.new # ReactBodyParams |
opts = {
is_undo: true, # Boolean |
broadcast_id: 'broadcast_id_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.react_feed_post_public(tenant_id, post_id, react_body_params, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->react_feed_post_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts)
begin
data, status_code, headers = api_instance.react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ReactFeedPostPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->react_feed_post_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| post_id | String | ||
| react_body_params | ReactBodyParams | ||
| is_undo | Boolean | [optional] | |
| broadcast_id | String | [optional] | |
| sso | String | [optional] |
ReactFeedPostPublic200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
reset_user_notification_count(tenant_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.reset_user_notification_count(tenant_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->reset_user_notification_count: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts)
begin
data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(tenant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ResetUserNotifications200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->reset_user_notification_count_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| sso | String | [optional] |
ResetUserNotifications200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
reset_user_notifications(tenant_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
opts = {
after_id: 'after_id_example', # String |
after_created_at: 789, # Integer |
unread_only: true, # Boolean |
dm_only: true, # Boolean |
no_dm: true, # Boolean |
sso: 'sso_example' # String |
}
begin
result = api_instance.reset_user_notifications(tenant_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->reset_user_notifications: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts)
begin
data, status_code, headers = api_instance.reset_user_notifications_with_http_info(tenant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ResetUserNotifications200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->reset_user_notifications_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| after_id | String | [optional] | |
| after_created_at | Integer | [optional] | |
| unread_only | Boolean | [optional] | |
| dm_only | Boolean | [optional] | |
| no_dm | Boolean | [optional] | |
| sso | String | [optional] |
ResetUserNotifications200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
search_users(tenant_id, url_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id = 'url_id_example' # String |
opts = {
username_starts_with: 'username_starts_with_example', # String |
mention_group_ids: ['inner_example'], # Array<String> |
sso: 'sso_example', # String |
search_section: 'fast' # String |
}
begin
result = api_instance.search_users(tenant_id, url_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->search_users: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts)
begin
data, status_code, headers = api_instance.search_users_with_http_info(tenant_id, url_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <SearchUsers200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->search_users_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id | String | ||
| username_starts_with | String | [optional] | |
| mention_group_ids | Array<String> | [optional] | |
| sso | String | [optional] | |
| search_section | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
comment_text_update_request = FastCommentsClient::CommentTextUpdateRequest.new({comment: 'comment_example'}) # CommentTextUpdateRequest |
opts = {
edit_key: 'edit_key_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->set_comment_text: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts)
begin
data, status_code, headers = api_instance.set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <SetCommentText200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->set_comment_text_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| broadcast_id | String | ||
| comment_text_update_request | CommentTextUpdateRequest | ||
| edit_key | String | [optional] | |
| sso | String | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
public_block_from_comment_params = FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}) # PublicBlockFromCommentParams |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->un_block_comment_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts)
begin
data, status_code, headers = api_instance.un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UnBlockCommentPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->un_block_comment_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| public_block_from_comment_params | PublicBlockFromCommentParams | ||
| sso | String | [optional] |
UnBlockCommentPublic200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
un_lock_comment(tenant_id, comment_id, broadcast_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.un_lock_comment(tenant_id, comment_id, broadcast_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->un_lock_comment: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
begin
data, status_code, headers = api_instance.un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <LockComment200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->un_lock_comment_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| broadcast_id | String | ||
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
un_pin_comment(tenant_id, comment_id, broadcast_id, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.un_pin_comment(tenant_id, comment_id, broadcast_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->un_pin_comment: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
begin
data, status_code, headers = api_instance.un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <PinComment200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->un_pin_comment_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| broadcast_id | String | ||
| sso | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
post_id = 'post_id_example' # String |
update_feed_post_params = FastCommentsClient::UpdateFeedPostParams.new # UpdateFeedPostParams |
opts = {
broadcast_id: 'broadcast_id_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_feed_post_public: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts)
begin
data, status_code, headers = api_instance.update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateFeedPostPublic200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_feed_post_public_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| post_id | String | ||
| update_feed_post_params | UpdateFeedPostParams | ||
| broadcast_id | String | [optional] | |
| sso | String | [optional] |
CreateFeedPostPublic200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts)
Enable or disable notifications for a specific comment.
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
notification_id = 'notification_id_example' # String |
opted_in_or_out = 'in' # String |
comment_id = 'comment_id_example' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_user_notification_comment_subscription_status: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts)
begin
data, status_code, headers = api_instance.update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UpdateUserNotificationStatus200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_user_notification_comment_subscription_status_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| notification_id | String | ||
| opted_in_or_out | String | ||
| comment_id | String | ||
| sso | String | [optional] |
UpdateUserNotificationStatus200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts)
Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
url_id = 'url_id_example' # String |
url = 'url_example' # String |
page_title = 'page_title_example' # String |
subscribed_or_unsubscribed = 'subscribe' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_user_notification_page_subscription_status: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts)
begin
data, status_code, headers = api_instance.update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UpdateUserNotificationStatus200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_user_notification_page_subscription_status_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| url_id | String | ||
| url | String | ||
| page_title | String | ||
| subscribed_or_unsubscribed | String | ||
| sso | String | [optional] |
UpdateUserNotificationStatus200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
update_user_notification_status(tenant_id, notification_id, new_status, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
notification_id = 'notification_id_example' # String |
new_status = 'read' # String |
opts = {
sso: 'sso_example' # String |
}
begin
result = api_instance.update_user_notification_status(tenant_id, notification_id, new_status, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_user_notification_status: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts)
begin
data, status_code, headers = api_instance.update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UpdateUserNotificationStatus200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->update_user_notification_status_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| notification_id | String | ||
| new_status | String | ||
| sso | String | [optional] |
UpdateUserNotificationStatus200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
upload_image(tenant_id, file, opts)
Upload and resize an image
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
file = File.new('/path/to/some/file') # File |
opts = {
size_preset: FastCommentsClient::SizePreset::DEFAULT, # SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)
url_id: 'url_id_example' # String | Page id that upload is happening from, to configure
}
begin
result = api_instance.upload_image(tenant_id, file, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->upload_image: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> upload_image_with_http_info(tenant_id, file, opts)
begin
data, status_code, headers = api_instance.upload_image_with_http_info(tenant_id, file, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UploadImageResponse>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->upload_image_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| file | File | ||
| size_preset | SizePreset | Size preset: "Default" (1000x1000px) or "CrossPlatform" (creates sizes for popular devices) | [optional] |
| url_id | String | Page id that upload is happening from, to configure | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts)
require 'time'
require 'fastcomments-client'
api_instance = FastCommentsClient::PublicApi.new
tenant_id = 'tenant_id_example' # String |
comment_id = 'comment_id_example' # String |
url_id = 'url_id_example' # String |
broadcast_id = 'broadcast_id_example' # String |
vote_body_params = FastCommentsClient::VoteBodyParams.new({commenter_email: 'commenter_email_example', commenter_name: 'commenter_name_example', vote_dir: 'up', url: 'url_example'}) # VoteBodyParams |
opts = {
session_id: 'session_id_example', # String |
sso: 'sso_example' # String |
}
begin
result = api_instance.vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts)
p result
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->vote_comment: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts)
begin
data, status_code, headers = api_instance.vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <VoteComment200Response>
rescue FastCommentsClient::ApiError => e
puts "Error when calling PublicApi->vote_comment_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tenant_id | String | ||
| comment_id | String | ||
| url_id | String | ||
| broadcast_id | String | ||
| vote_body_params | VoteBodyParams | ||
| session_id | String | [optional] | |
| sso | String | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json