Class: GetStream::Generated::FeedsClient
- Inherits:
-
Object
- Object
- GetStream::Generated::FeedsClient
- Defined in:
- lib/getstream_ruby/generated/feeds_client.rb
Overview
Feeds API client with generated methods
Instance Method Summary collapse
-
#accept_feed_member_invite(feed_id, feed_group_id, accept_feed_member_invite_request) ⇒ Models::AcceptFeedMemberInviteResponse
Accepts a pending feed member request.
-
#accept_follow(accept_follow_request) ⇒ Models::AcceptFollowResponse
Accepts a pending follow request.
-
#activity_feedback(activity_id, activity_feedback_request) ⇒ Models::ActivityFeedbackResponse
Submit feedback for an activity including options to show less, hide, report, or mute the user.
-
#add_activity(add_activity_request) ⇒ Models::AddActivityResponse
Create a new activity or update an existing one.
-
#add_activity_reaction(activity_id, add_reaction_request) ⇒ Models::AddReactionResponse
Adds a reaction to an activity.
-
#add_bookmark(activity_id, add_bookmark_request) ⇒ Models::AddBookmarkResponse
Adds a bookmark to an activity.
-
#add_comment(add_comment_request) ⇒ Models::AddCommentResponse
Adds a comment to an object (e.g., activity) or a reply to an existing comment, and broadcasts appropriate events.
-
#add_comment_reaction(_id, add_comment_reaction_request) ⇒ Models::AddCommentReactionResponse
Adds a reaction to a comment.
-
#add_comments_batch(add_comments_batch_request) ⇒ Models::AddCommentsBatchResponse
Adds multiple comments in a single request.
-
#cast_poll_vote(activity_id, poll_id, cast_poll_vote_request) ⇒ Models::PollVoteResponse
Cast a vote on a pollSends events:- feeds.poll.vote_casted- feeds.poll.vote_changed- feeds.poll.vote_removed- poll.vote_casted- poll.vote_changed- poll.vote_removed.
-
#create_collections(create_collections_request) ⇒ Models::CreateCollectionsResponse
Create new collections in a batch operation.
-
#create_feed_group(create_feed_group_request) ⇒ Models::CreateFeedGroupResponse
Creates a new feed group with the specified configuration.
-
#create_feed_view(create_feed_view_request) ⇒ Models::CreateFeedViewResponse
Create a custom view for a feed group with specific selectors, ranking, or aggregation options.
-
#create_feeds_batch(create_feeds_batch_request) ⇒ Models::CreateFeedsBatchResponse
Create multiple feeds at once for a given feed group.
-
#create_membership_level(create_membership_level_request) ⇒ Models::CreateMembershipLevelResponse
Create a new membership level with tag-based access controls.
-
#delete_activities(delete_activities_request) ⇒ Models::DeleteActivitiesResponse
Delete one or more activities by their IDs.
-
#delete_activity(_id, hard_delete = nil, delete_notification_activity = nil) ⇒ Models::DeleteActivityResponse
Delete a single activity by its ID.
-
#delete_activity_reaction(activity_id, _type, delete_notification_activity = nil, user_id = nil) ⇒ Models::DeleteActivityReactionResponse
Removes a reaction from an activity.
-
#delete_bookmark(activity_id, folder_id = nil, user_id = nil) ⇒ Models::DeleteBookmarkResponse
Deletes a bookmark from an activity.
-
#delete_bookmark_folder(folder_id) ⇒ Models::DeleteBookmarkFolderResponse
Delete a bookmark folder by its ID.
-
#delete_collections(collection_refs) ⇒ Models::DeleteCollectionsResponse
Delete collections in a batch operation.
-
#delete_comment(_id, hard_delete = nil, delete_notification_activity = nil) ⇒ Models::DeleteCommentResponse
Deletes a comment from an object (e.g., activity) and broadcasts appropriate events.
-
#delete_comment_reaction(_id, _type, delete_notification_activity = nil, user_id = nil) ⇒ Models::DeleteCommentReactionResponse
Deletes a reaction from a comment.
-
#delete_feed(feed_group_id, feed_id, hard_delete = nil) ⇒ Models::DeleteFeedResponse
Delete a single feed by its ID.
-
#delete_feed_group(_id, hard_delete = nil) ⇒ Models::DeleteFeedGroupResponse
Delete a feed group by its ID.
-
#delete_feed_user_data(user_id, delete_feed_user_data_request) ⇒ Models::DeleteFeedUserDataResponse
Delete all feed data for a user including: feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user.
-
#delete_feed_view(_id) ⇒ Models::DeleteFeedViewResponse
Delete an existing custom feed view.
-
#delete_feeds_batch(delete_feeds_batch_request) ⇒ Models::DeleteFeedsBatchResponse
Delete multiple feeds by their IDs.
-
#delete_membership_level(_id) ⇒ Models::Response
Delete a membership level by its UUID.
-
#delete_poll_vote(activity_id, poll_id, vote_id, user_id = nil) ⇒ Models::PollVoteResponse
Delete a vote from a pollSends events:- feeds.poll.vote_removed- poll.vote_removed.
-
#export_feed_user_data(user_id) ⇒ Models::ExportFeedUserDataResponse
Export all feed data for a user including: user profile, feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user.
-
#follow(follow_request) ⇒ Models::SingleFollowResponse
Creates a follow and broadcasts FollowAddedEvent.
-
#follow_batch(follow_batch_request) ⇒ Models::FollowBatchResponse
Creates multiple follows at once and broadcasts FollowAddedEvent for each follow.
-
#get_activity(_id) ⇒ Models::GetActivityResponse
Returns activity by ID.
-
#get_comment(_id) ⇒ Models::GetCommentResponse
Get a comment by ID.
-
#get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) ⇒ Models::GetCommentRepliesResponse
Retrieve a threaded list of replies for a single comment, with configurable depth, sorting, and pagination.
-
#get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) ⇒ Models::GetCommentsResponse
Retrieve a threaded list of comments for a specific object (e.g., activity), with configurable depth, sorting, and pagination.
-
#get_feed_group(_id, include_soft_deleted = nil) ⇒ Models::GetFeedGroupResponse
Get a feed group by ID.
-
#get_feed_view(_id) ⇒ Models::GetFeedViewResponse
Get a feed view by its ID.
-
#get_feed_visibility(name) ⇒ Models::GetFeedVisibilityResponse
Gets feed visibility configuration and permissions.
-
#get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, server_side = nil) ⇒ Models::GetFeedsRateLimitsResponse
Retrieve current rate limit status for feeds operations.Returns information about limits, usage, and remaining quota for various feed operations.
-
#get_follow_suggestions(feed_group_id, limit = nil, user_id = nil) ⇒ Models::GetFollowSuggestionsResponse
Get follow suggestions for a feed group.
-
#get_or_create_feed(feed_group_id, feed_id, get_or_create_feed_request) ⇒ Models::GetOrCreateFeedResponse
Create a single feed for a given feed group.
-
#get_or_create_feed_group(_id, get_or_create_feed_group_request) ⇒ Models::GetOrCreateFeedGroupResponse
Get an existing feed group or create a new one if it doesn’t exist.
-
#get_or_create_feed_view(_id, get_or_create_feed_view_request) ⇒ Models::GetOrCreateFeedViewResponse
Get an existing feed view or create a new one if it doesn’t exist.
-
#get_or_create_follows(follow_batch_request) ⇒ Models::FollowBatchResponse
Creates or updates multiple follows at once.
-
#get_or_create_unfollows(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
Removes multiple follows and broadcasts FollowRemovedEvent for each.
-
#initialize(client) ⇒ FeedsClient
constructor
A new instance of FeedsClient.
-
#list_feed_groups(include_soft_deleted = nil) ⇒ Models::ListFeedGroupsResponse
List all feed groups for the application.
-
#list_feed_views ⇒ Models::ListFeedViewsResponse
List all feed views for a feed group.
-
#list_feed_visibilities ⇒ Models::ListFeedVisibilitiesResponse
Gets all available feed visibility configurations and their permissions.
-
#mark_activity(feed_group_id, feed_id, mark_activity_request) ⇒ Models::Response
Mark activities as read/seen/watched.
-
#own_batch(own_batch_request) ⇒ Models::OwnBatchResponse
Retrieves own_follows, own_capabilities, and/or own_membership for multiple feeds in a single request.
-
#pin_activity(feed_group_id, feed_id, activity_id, pin_activity_request) ⇒ Models::PinActivityResponse
Pin an activity to a feed.
-
#query_activities(query_activities_request) ⇒ Models::QueryActivitiesResponse
Query activities based on filters with pagination and sorting options.
-
#query_activity_reactions(activity_id, query_activity_reactions_request) ⇒ Models::QueryActivityReactionsResponse
Query activity reactions.
-
#query_bookmark_folders(query_bookmark_folders_request) ⇒ Models::QueryBookmarkFoldersResponse
Query bookmark folders with filter query.
-
#query_bookmarks(query_bookmarks_request) ⇒ Models::QueryBookmarksResponse
Query bookmarks with filter query.
-
#query_comment_reactions(_id, query_comment_reactions_request) ⇒ Models::QueryCommentReactionsResponse
Query comment reactions.
-
#query_comments(query_comments_request) ⇒ Models::QueryCommentsResponse
Query comments using MongoDB-style filters with pagination and sorting options.
-
#query_feed_members(feed_group_id, feed_id, query_feed_members_request) ⇒ Models::QueryFeedMembersResponse
Query feed members based on filters with pagination and sorting options.
-
#query_feeds(query_feeds_request) ⇒ Models::QueryFeedsResponse
Query feeds with filter query.
-
#query_feeds_usage_stats(query_feeds_usage_stats_request) ⇒ Models::QueryFeedsUsageStatsResponse
Retrieve usage statistics for feeds including activity count, follow count, and API request count.Returns data aggregated by day with pagination support via from/to date parameters.This endpoint is server-side only.
-
#query_follows(query_follows_request) ⇒ Models::QueryFollowsResponse
Query follows based on filters with pagination and sorting options.
-
#query_membership_levels(query_membership_levels_request) ⇒ Models::QueryMembershipLevelsResponse
Query membership levels with filter query.
-
#read_collections(collection_refs, user_id = nil) ⇒ Models::ReadCollectionsResponse
Read collections with optional filtering by user ID and collection name.
-
#reject_feed_member_invite(feed_group_id, feed_id, reject_feed_member_invite_request) ⇒ Models::RejectFeedMemberInviteResponse
Rejects a pending feed member request.
-
#reject_follow(reject_follow_request) ⇒ Models::RejectFollowResponse
Rejects a pending follow request.
-
#restore_activity(_id, restore_activity_request) ⇒ Models::RestoreActivityResponse
Restores a soft-deleted activity by its ID.
-
#unfollow(source, target, delete_notification_activity = nil) ⇒ Models::UnfollowResponse
Removes a follow and broadcasts FollowRemovedEvent.
-
#unfollow_batch(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
Removes multiple follows at once and broadcasts FollowRemovedEvent for each one.
-
#unpin_activity(feed_group_id, feed_id, activity_id, user_id = nil) ⇒ Models::UnpinActivityResponse
Unpin an activity from a feed.
-
#update_activity(_id, update_activity_request) ⇒ Models::UpdateActivityResponse
Replaces an activity with the provided data.
-
#update_activity_partial(_id, update_activity_partial_request) ⇒ Models::UpdateActivityPartialResponse
Updates certain fields of the activity.
-
#update_bookmark(activity_id, update_bookmark_request) ⇒ Models::UpdateBookmarkResponse
Updates a bookmark for an activity.
-
#update_bookmark_folder(folder_id, update_bookmark_folder_request) ⇒ Models::UpdateBookmarkFolderResponse
Update a bookmark folder by its ID.
-
#update_collections(update_collections_request) ⇒ Models::UpdateCollectionsResponse
Update existing collections in a batch operation.
-
#update_comment(_id, update_comment_request) ⇒ Models::UpdateCommentResponse
Updates a comment on an object (e.g., activity) and broadcasts appropriate events.
-
#update_feed(feed_group_id, feed_id, update_feed_request) ⇒ Models::UpdateFeedResponse
Update an existing feed.
-
#update_feed_group(_id, update_feed_group_request) ⇒ Models::UpdateFeedGroupResponse
Update a feed group by ID.
-
#update_feed_members(feed_group_id, feed_id, update_feed_members_request) ⇒ Models::UpdateFeedMembersResponse
Add, remove, or set members for a feed.
-
#update_feed_view(_id, update_feed_view_request) ⇒ Models::UpdateFeedViewResponse
Update an existing custom feed view with new selectors, ranking, or aggregation options.
-
#update_feed_visibility(name, update_feed_visibility_request) ⇒ Models::UpdateFeedVisibilityResponse
Updates an existing predefined feed visibility configuration.
-
#update_follow(update_follow_request) ⇒ Models::UpdateFollowResponse
Updates a follow’s custom data, push preference, and follower role.
-
#update_membership_level(_id, update_membership_level_request) ⇒ Models::UpdateMembershipLevelResponse
Update a membership level with partial updates.
-
#upsert_activities(upsert_activities_request) ⇒ Models::UpsertActivitiesResponse
Create new activities or update existing ones in a batch operation.
-
#upsert_collections(upsert_collections_request) ⇒ Models::UpsertCollectionsResponse
Insert new collections or update existing ones in a batch operation.
Constructor Details
#initialize(client) ⇒ FeedsClient
Returns a new instance of FeedsClient.
12 13 14 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 12 def initialize(client) @client = client end |
Instance Method Details
#accept_feed_member_invite(feed_id, feed_group_id, accept_feed_member_invite_request) ⇒ Models::AcceptFeedMemberInviteResponse
Accepts a pending feed member request
979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 979 def accept_feed_member_invite(feed_id, feed_group_id, accept_feed_member_invite_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/members/accept' # Replace path parameters path = path.gsub('{feed_id}', feed_id.to_s) path = path.gsub('{feed_group_id}', feed_group_id.to_s) # Build request body body = accept_feed_member_invite_request # Make the API request @client.make_request( :post, path, body: body ) end |
#accept_follow(accept_follow_request) ⇒ Models::AcceptFollowResponse
Accepts a pending follow request
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1427 def accept_follow(accept_follow_request) path = '/api/v2/feeds/follows/accept' # Build request body body = accept_follow_request # Make the API request @client.make_request( :post, path, body: body ) end |
#activity_feedback(activity_id, activity_feedback_request) ⇒ Models::ActivityFeedbackResponse
Submit feedback for an activity including options to show less, hide, report, or mute the user
151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 151 def activity_feedback(activity_id, activity_feedback_request) path = '/api/v2/feeds/activities/{activity_id}/feedback' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build request body body = activity_feedback_request # Make the API request @client.make_request( :post, path, body: body ) end |
#add_activity(add_activity_request) ⇒ Models::AddActivityResponse
Create a new activity or update an existing one
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 19 def add_activity(add_activity_request) path = '/api/v2/feeds/activities' # Build request body body = add_activity_request # Make the API request @client.make_request( :post, path, body: body ) end |
#add_activity_reaction(activity_id, add_reaction_request) ⇒ Models::AddReactionResponse
Adds a reaction to an activity
218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 218 def add_activity_reaction(activity_id, add_reaction_request) path = '/api/v2/feeds/activities/{activity_id}/reactions' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build request body body = add_reaction_request # Make the API request @client.make_request( :post, path, body: body ) end |
#add_bookmark(activity_id, add_bookmark_request) ⇒ Models::AddBookmarkResponse
Adds a bookmark to an activity
131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 131 def add_bookmark(activity_id, add_bookmark_request) path = '/api/v2/feeds/activities/{activity_id}/bookmarks' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build request body body = add_bookmark_request # Make the API request @client.make_request( :post, path, body: body ) end |
#add_comment(add_comment_request) ⇒ Models::AddCommentResponse
Adds a comment to an object (e.g., activity) or a reply to an existing comment, and broadcasts appropriate events
574 575 576 577 578 579 580 581 582 583 584 585 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 574 def add_comment(add_comment_request) path = '/api/v2/feeds/comments' # Build request body body = add_comment_request # Make the API request @client.make_request( :post, path, body: body ) end |
#add_comment_reaction(_id, add_comment_reaction_request) ⇒ Models::AddCommentReactionResponse
Adds a reaction to a comment
685 686 687 688 689 690 691 692 693 694 695 696 697 698 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 685 def add_comment_reaction(_id, add_comment_reaction_request) path = '/api/v2/feeds/comments/{id}/reactions' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = add_comment_reaction_request # Make the API request @client.make_request( :post, path, body: body ) end |
#add_comments_batch(add_comments_batch_request) ⇒ Models::AddCommentsBatchResponse
Adds multiple comments in a single request. Each comment must specify the object type and ID.
591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 591 def add_comments_batch(add_comments_batch_request) path = '/api/v2/feeds/comments/batch' # Build request body body = add_comments_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#cast_poll_vote(activity_id, poll_id, cast_poll_vote_request) ⇒ Models::PollVoteResponse
Cast a vote on a pollSends events:- feeds.poll.vote_casted- feeds.poll.vote_changed- feeds.poll.vote_removed- poll.vote_casted- poll.vote_changed- poll.vote_removed
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 172 def cast_poll_vote(activity_id, poll_id, cast_poll_vote_request) path = '/api/v2/feeds/activities/{activity_id}/polls/{poll_id}/vote' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) path = path.gsub('{poll_id}', poll_id.to_s) # Build request body body = cast_poll_vote_request # Make the API request @client.make_request( :post, path, body: body ) end |
#create_collections(create_collections_request) ⇒ Models::CreateCollectionsResponse
Create new collections in a batch operation. Collections are data objects that can be attached to activities for managing shared data across multiple activities.
506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 506 def create_collections(create_collections_request) path = '/api/v2/feeds/collections' # Build request body body = create_collections_request # Make the API request @client.make_request( :post, path, body: body ) end |
#create_feed_group(create_feed_group_request) ⇒ Models::CreateFeedGroupResponse
Creates a new feed group with the specified configuration
800 801 802 803 804 805 806 807 808 809 810 811 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 800 def create_feed_group(create_feed_group_request) path = '/api/v2/feeds/feed_groups' # Build request body body = create_feed_group_request # Make the API request @client.make_request( :post, path, body: body ) end |
#create_feed_view(create_feed_view_request) ⇒ Models::CreateFeedViewResponse
Create a custom view for a feed group with specific selectors, ranking, or aggregation options
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1161 def create_feed_view(create_feed_view_request) path = '/api/v2/feeds/feed_views' # Build request body body = create_feed_view_request # Make the API request @client.make_request( :post, path, body: body ) end |
#create_feeds_batch(create_feeds_batch_request) ⇒ Models::CreateFeedsBatchResponse
Create multiple feeds at once for a given feed group
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1299 def create_feeds_batch(create_feeds_batch_request) path = '/api/v2/feeds/feeds/batch' # Build request body body = create_feeds_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#create_membership_level(create_membership_level_request) ⇒ Models::CreateMembershipLevelResponse
Create a new membership level with tag-based access controls
1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1535 def create_membership_level(create_membership_level_request) path = '/api/v2/feeds/membership_levels' # Build request body body = create_membership_level_request # Make the API request @client.make_request( :post, path, body: body ) end |
#delete_activities(delete_activities_request) ⇒ Models::DeleteActivitiesResponse
Delete one or more activities by their IDs
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 53 def delete_activities(delete_activities_request) path = '/api/v2/feeds/activities/delete' # Build request body body = delete_activities_request # Make the API request @client.make_request( :post, path, body: body ) end |
#delete_activity(_id, hard_delete = nil, delete_notification_activity = nil) ⇒ Models::DeleteActivityResponse
Delete a single activity by its ID
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 284 def delete_activity(_id, hard_delete = nil, delete_notification_activity = nil) path = '/api/v2/feeds/activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['hard_delete'] = hard_delete unless hard_delete.nil? query_params['delete_notification_activity'] = delete_notification_activity unless delete_notification_activity.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_activity_reaction(activity_id, _type, delete_notification_activity = nil, user_id = nil) ⇒ Models::DeleteActivityReactionResponse
Removes a reaction from an activity
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 260 def delete_activity_reaction(activity_id, _type, delete_notification_activity = nil, user_id = nil) path = '/api/v2/feeds/activities/{activity_id}/reactions/{type}' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) path = path.gsub('{type}', _type.to_s) # Build query parameters query_params = {} query_params['delete_notification_activity'] = delete_notification_activity unless delete_notification_activity.nil? query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_bookmark(activity_id, folder_id = nil, user_id = nil) ⇒ Models::DeleteBookmarkResponse
Deletes a bookmark from an activity
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 89 def delete_bookmark(activity_id, folder_id = nil, user_id = nil) path = '/api/v2/feeds/activities/{activity_id}/bookmarks' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build query parameters query_params = {} query_params['folder_id'] = folder_id unless folder_id.nil? query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_bookmark_folder(folder_id) ⇒ Models::DeleteBookmarkFolderResponse
Delete a bookmark folder by its ID
398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 398 def delete_bookmark_folder(folder_id) path = '/api/v2/feeds/bookmark_folders/{folder_id}' # Replace path parameters path = path.gsub('{folder_id}', folder_id.to_s) # Make the API request @client.make_request( :delete, path ) end |
#delete_collections(collection_refs) ⇒ Models::DeleteCollectionsResponse
Delete collections in a batch operation. Users can only delete their own collections.
451 452 453 454 455 456 457 458 459 460 461 462 463 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 451 def delete_collections(collection_refs) path = '/api/v2/feeds/collections' # Build query parameters query_params = {} query_params['collection_refs'] = collection_refs unless collection_refs.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_comment(_id, hard_delete = nil, delete_notification_activity = nil) ⇒ Models::DeleteCommentResponse
Deletes a comment from an object (e.g., activity) and broadcasts appropriate events
627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 627 def delete_comment(_id, hard_delete = nil, delete_notification_activity = nil) path = '/api/v2/feeds/comments/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['hard_delete'] = hard_delete unless hard_delete.nil? query_params['delete_notification_activity'] = delete_notification_activity unless delete_notification_activity.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_comment_reaction(_id, _type, delete_notification_activity = nil, user_id = nil) ⇒ Models::DeleteCommentReactionResponse
Deletes a reaction from a comment
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 727 def delete_comment_reaction(_id, _type, delete_notification_activity = nil, user_id = nil) path = '/api/v2/feeds/comments/{id}/reactions/{type}' # Replace path parameters path = path.gsub('{id}', _id.to_s) path = path.gsub('{type}', _type.to_s) # Build query parameters query_params = {} query_params['delete_notification_activity'] = delete_notification_activity unless delete_notification_activity.nil? query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_feed(feed_group_id, feed_id, hard_delete = nil) ⇒ Models::DeleteFeedResponse
Delete a single feed by its ID
819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 819 def delete_feed(feed_group_id, feed_id, hard_delete = nil) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build query parameters query_params = {} query_params['hard_delete'] = hard_delete unless hard_delete.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_feed_group(_id, hard_delete = nil) ⇒ Models::DeleteFeedGroupResponse
Delete a feed group by its ID. Can perform a soft delete (default) or hard delete.
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1067 def delete_feed_group(_id, hard_delete = nil) path = '/api/v2/feeds/feed_groups/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['hard_delete'] = hard_delete unless hard_delete.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#delete_feed_user_data(user_id, delete_feed_user_data_request) ⇒ Models::DeleteFeedUserDataResponse
Delete all feed data for a user including: feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user
1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1657 def delete_feed_user_data(user_id, delete_feed_user_data_request) path = '/api/v2/feeds/users/{user_id}/delete' # Replace path parameters path = path.gsub('{user_id}', user_id.to_s) # Build request body body = delete_feed_user_data_request # Make the API request @client.make_request( :post, path, body: body ) end |
#delete_feed_view(_id) ⇒ Models::DeleteFeedViewResponse
Delete an existing custom feed view
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1178 def delete_feed_view(_id) path = '/api/v2/feeds/feed_views/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :delete, path ) end |
#delete_feeds_batch(delete_feeds_batch_request) ⇒ Models::DeleteFeedsBatchResponse
Delete multiple feeds by their IDs. All feeds must exist. This endpoint is server-side only.
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1316 def delete_feeds_batch(delete_feeds_batch_request) path = '/api/v2/feeds/feeds/delete' # Build request body body = delete_feeds_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#delete_membership_level(_id) ⇒ Models::Response
Delete a membership level by its UUID. This operation is irreversible.
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1569 def delete_membership_level(_id) path = '/api/v2/feeds/membership_levels/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :delete, path ) end |
#delete_poll_vote(activity_id, poll_id, vote_id, user_id = nil) ⇒ Models::PollVoteResponse
Delete a vote from a pollSends events:- feeds.poll.vote_removed- poll.vote_removed
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 195 def delete_poll_vote(activity_id, poll_id, vote_id, user_id = nil) path = '/api/v2/feeds/activities/{activity_id}/polls/{poll_id}/vote/{vote_id}' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) path = path.gsub('{poll_id}', poll_id.to_s) path = path.gsub('{vote_id}', vote_id.to_s) # Build query parameters query_params = {} query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#export_feed_user_data(user_id) ⇒ Models::ExportFeedUserDataResponse
Export all feed data for a user including: user profile, feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1676 def export_feed_user_data(user_id) path = '/api/v2/feeds/users/{user_id}/export' # Replace path parameters path = path.gsub('{user_id}', user_id.to_s) # Make the API request @client.make_request( :post, path ) end |
#follow(follow_request) ⇒ Models::SingleFollowResponse
Creates a follow and broadcasts FollowAddedEvent
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1410 def follow(follow_request) path = '/api/v2/feeds/follows' # Build request body body = follow_request # Make the API request @client.make_request( :post, path, body: body ) end |
#follow_batch(follow_batch_request) ⇒ Models::FollowBatchResponse
Creates multiple follows at once and broadcasts FollowAddedEvent for each follow
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1444 def follow_batch(follow_batch_request) path = '/api/v2/feeds/follows/batch' # Build request body body = follow_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#get_activity(_id) ⇒ Models::GetActivityResponse
Returns activity by ID
305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 305 def get_activity(_id) path = '/api/v2/feeds/activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :get, path ) end |
#get_comment(_id) ⇒ Models::GetCommentResponse
Get a comment by ID
648 649 650 651 652 653 654 655 656 657 658 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 648 def get_comment(_id) path = '/api/v2/feeds/comments/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :get, path ) end |
#get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) ⇒ Models::GetCommentRepliesResponse
Retrieve a threaded list of replies for a single comment, with configurable depth, sorting, and pagination
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 756 def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) path = '/api/v2/feeds/comments/{id}/replies' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['depth'] = depth unless depth.nil? query_params['sort'] = sort unless sort.nil? query_params['replies_limit'] = replies_limit unless replies_limit.nil? query_params['user_id'] = user_id unless user_id.nil? query_params['limit'] = limit unless limit.nil? query_params['prev'] = prev unless prev.nil? query_params['next'] = _next unless _next.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) ⇒ Models::GetCommentsResponse
Retrieve a threaded list of comments for a specific object (e.g., activity), with configurable depth, sorting, and pagination
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 548 def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) path = '/api/v2/feeds/comments' # Build query parameters query_params = {} query_params['object_id'] = object_id unless object_id.nil? query_params['object_type'] = object_type unless object_type.nil? query_params['depth'] = depth unless depth.nil? query_params['sort'] = sort unless sort.nil? query_params['replies_limit'] = replies_limit unless replies_limit.nil? query_params['user_id'] = user_id unless user_id.nil? query_params['limit'] = limit unless limit.nil? query_params['prev'] = prev unless prev.nil? query_params['next'] = _next unless _next.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_feed_group(_id, include_soft_deleted = nil) ⇒ Models::GetFeedGroupResponse
Get a feed group by ID
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1088 def get_feed_group(_id, include_soft_deleted = nil) path = '/api/v2/feeds/feed_groups/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['include_soft_deleted'] = include_soft_deleted unless include_soft_deleted.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_feed_view(_id) ⇒ Models::GetFeedViewResponse
Get a feed view by its ID
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1194 def get_feed_view(_id) path = '/api/v2/feeds/feed_views/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :get, path ) end |
#get_feed_visibility(name) ⇒ Models::GetFeedVisibilityResponse
Gets feed visibility configuration and permissions
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1263 def get_feed_visibility(name) path = '/api/v2/feeds/feed_visibilities/{name}' # Replace path parameters path = path.gsub('{name}', name.to_s) # Make the API request @client.make_request( :get, path ) end |
#get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, server_side = nil) ⇒ Models::GetFeedsRateLimitsResponse
Retrieve current rate limit status for feeds operations.Returns information about limits, usage, and remaining quota for various feed operations.
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1371 def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, server_side = nil) path = '/api/v2/feeds/feeds/rate_limits' # Build query parameters query_params = {} query_params['endpoints'] = endpoints unless endpoints.nil? query_params['android'] = android unless android.nil? query_params['ios'] = ios unless ios.nil? query_params['web'] = web unless web.nil? query_params['server_side'] = server_side unless server_side.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_follow_suggestions(feed_group_id, limit = nil, user_id = nil) ⇒ Models::GetFollowSuggestionsResponse
Get follow suggestions for a feed group
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1045 def get_follow_suggestions(feed_group_id, limit = nil, user_id = nil) path = '/api/v2/feeds/feed_groups/{feed_group_id}/follow_suggestions' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) # Build query parameters query_params = {} query_params['limit'] = limit unless limit.nil? query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_or_create_feed(feed_group_id, feed_id, get_or_create_feed_request) ⇒ Models::GetOrCreateFeedResponse
Create a single feed for a given feed group
842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 842 def get_or_create_feed(feed_group_id, feed_id, get_or_create_feed_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build request body body = get_or_create_feed_request # Make the API request @client.make_request( :post, path, body: body ) end |
#get_or_create_feed_group(_id, get_or_create_feed_group_request) ⇒ Models::GetOrCreateFeedGroupResponse
Get an existing feed group or create a new one if it doesn’t exist
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1109 def get_or_create_feed_group(_id, get_or_create_feed_group_request) path = '/api/v2/feeds/feed_groups/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = get_or_create_feed_group_request # Make the API request @client.make_request( :post, path, body: body ) end |
#get_or_create_feed_view(_id, get_or_create_feed_view_request) ⇒ Models::GetOrCreateFeedViewResponse
Get an existing feed view or create a new one if it doesn’t exist
1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1211 def get_or_create_feed_view(_id, get_or_create_feed_view_request) path = '/api/v2/feeds/feed_views/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = get_or_create_feed_view_request # Make the API request @client.make_request( :post, path, body: body ) end |
#get_or_create_follows(follow_batch_request) ⇒ Models::FollowBatchResponse
Creates or updates multiple follows at once. Does not return an error if follows already exist. Broadcasts FollowAddedEvent only for newly created follows.
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1461 def get_or_create_follows(follow_batch_request) path = '/api/v2/feeds/follows/batch/upsert' # Build request body body = follow_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#get_or_create_unfollows(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
Removes multiple follows and broadcasts FollowRemovedEvent for each. Does not return an error if follows don’t exist.
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1639 def get_or_create_unfollows(unfollow_batch_request) path = '/api/v2/feeds/unfollow/batch/upsert' # Build request body body = unfollow_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#list_feed_groups(include_soft_deleted = nil) ⇒ Models::ListFeedGroupsResponse
List all feed groups for the application
782 783 784 785 786 787 788 789 790 791 792 793 794 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 782 def list_feed_groups(include_soft_deleted = nil) path = '/api/v2/feeds/feed_groups' # Build query parameters query_params = {} query_params['include_soft_deleted'] = include_soft_deleted unless include_soft_deleted.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#list_feed_views ⇒ Models::ListFeedViewsResponse
List all feed views for a feed group
1147 1148 1149 1150 1151 1152 1153 1154 1155 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1147 def list_feed_views() path = '/api/v2/feeds/feed_views' # Make the API request @client.make_request( :get, path ) end |
#list_feed_visibilities ⇒ Models::ListFeedVisibilitiesResponse
Gets all available feed visibility configurations and their permissions
1249 1250 1251 1252 1253 1254 1255 1256 1257 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1249 def list_feed_visibilities() path = '/api/v2/feeds/feed_visibilities' # Make the API request @client.make_request( :get, path ) end |
#mark_activity(feed_group_id, feed_id, mark_activity_request) ⇒ Models::Response
Mark activities as read/seen/watched. Can mark by timestamp (seen), activity IDs (read), or all as read.
886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 886 def mark_activity(feed_group_id, feed_id, mark_activity_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/mark/batch' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build request body body = mark_activity_request # Make the API request @client.make_request( :post, path, body: body ) end |
#own_batch(own_batch_request) ⇒ Models::OwnBatchResponse
Retrieves own_follows, own_capabilities, and/or own_membership for multiple feeds in a single request. If fields are not specified, all three fields are returned.
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1333 def own_batch(own_batch_request) path = '/api/v2/feeds/feeds/own/batch' # Build request body body = own_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#pin_activity(feed_group_id, feed_id, activity_id, pin_activity_request) ⇒ Models::PinActivityResponse
Pin an activity to a feed. Pinned activities are typically displayed at the top of a feed.
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 934 def pin_activity(feed_group_id, feed_id, activity_id, pin_activity_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/{activity_id}/pin' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) path = path.gsub('{activity_id}', activity_id.to_s) # Build request body body = pin_activity_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_activities(query_activities_request) ⇒ Models::QueryActivitiesResponse
Query activities based on filters with pagination and sorting options
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 70 def query_activities(query_activities_request) path = '/api/v2/feeds/activities/query' # Build request body body = query_activities_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_activity_reactions(activity_id, query_activity_reactions_request) ⇒ Models::QueryActivityReactionsResponse
Query activity reactions
238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 238 def query_activity_reactions(activity_id, query_activity_reactions_request) path = '/api/v2/feeds/activities/{activity_id}/reactions/query' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build request body body = query_activity_reactions_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_bookmark_folders(query_bookmark_folders_request) ⇒ Models::QueryBookmarkFoldersResponse
Query bookmark folders with filter query
381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 381 def query_bookmark_folders(query_bookmark_folders_request) path = '/api/v2/feeds/bookmark_folders/query' # Build request body body = query_bookmark_folders_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_bookmarks(query_bookmarks_request) ⇒ Models::QueryBookmarksResponse
Query bookmarks with filter query
434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 434 def query_bookmarks(query_bookmarks_request) path = '/api/v2/feeds/bookmarks/query' # Build request body body = query_bookmarks_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_comment_reactions(_id, query_comment_reactions_request) ⇒ Models::QueryCommentReactionsResponse
Query comment reactions
705 706 707 708 709 710 711 712 713 714 715 716 717 718 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 705 def query_comment_reactions(_id, query_comment_reactions_request) path = '/api/v2/feeds/comments/{id}/reactions/query' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = query_comment_reactions_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_comments(query_comments_request) ⇒ Models::QueryCommentsResponse
Query comments using MongoDB-style filters with pagination and sorting options
608 609 610 611 612 613 614 615 616 617 618 619 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 608 def query_comments(query_comments_request) path = '/api/v2/feeds/comments/query' # Build request body body = query_comments_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_feed_members(feed_group_id, feed_id, query_feed_members_request) ⇒ Models::QueryFeedMembersResponse
Query feed members based on filters with pagination and sorting options
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1001 def query_feed_members(feed_group_id, feed_id, query_feed_members_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/members/query' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build request body body = query_feed_members_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_feeds(query_feeds_request) ⇒ Models::QueryFeedsResponse
Query feeds with filter query
1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1350 def query_feeds(query_feeds_request) path = '/api/v2/feeds/feeds/query' # Build request body body = query_feeds_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_feeds_usage_stats(query_feeds_usage_stats_request) ⇒ Models::QueryFeedsUsageStatsResponse
Retrieve usage statistics for feeds including activity count, follow count, and API request count.Returns data aggregated by day with pagination support via from/to date parameters.This endpoint is server-side only.
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1605 def query_feeds_usage_stats(query_feeds_usage_stats_request) path = '/api/v2/feeds/stats/usage' # Build request body body = query_feeds_usage_stats_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_follows(query_follows_request) ⇒ Models::QueryFollowsResponse
Query follows based on filters with pagination and sorting options
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1478 def query_follows(query_follows_request) path = '/api/v2/feeds/follows/query' # Build request body body = query_follows_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_membership_levels(query_membership_levels_request) ⇒ Models::QueryMembershipLevelsResponse
Query membership levels with filter query
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1552 def query_membership_levels(query_membership_levels_request) path = '/api/v2/feeds/membership_levels/query' # Build request body body = query_membership_levels_request # Make the API request @client.make_request( :post, path, body: body ) end |
#read_collections(collection_refs, user_id = nil) ⇒ Models::ReadCollectionsResponse
Read collections with optional filtering by user ID and collection name. By default, users can only read their own collections.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 470 def read_collections(collection_refs, user_id = nil) path = '/api/v2/feeds/collections' # Build query parameters query_params = {} query_params['collection_refs'] = collection_refs unless collection_refs.nil? query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#reject_feed_member_invite(feed_group_id, feed_id, reject_feed_member_invite_request) ⇒ Models::RejectFeedMemberInviteResponse
Rejects a pending feed member request
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1023 def reject_feed_member_invite(feed_group_id, feed_id, reject_feed_member_invite_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/members/reject' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build request body body = reject_feed_member_invite_request # Make the API request @client.make_request( :post, path, body: body ) end |
#reject_follow(reject_follow_request) ⇒ Models::RejectFollowResponse
Rejects a pending follow request
1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1495 def reject_follow(reject_follow_request) path = '/api/v2/feeds/follows/reject' # Build request body body = reject_follow_request # Make the API request @client.make_request( :post, path, body: body ) end |
#restore_activity(_id, restore_activity_request) ⇒ Models::RestoreActivityResponse
Restores a soft-deleted activity by its ID. Only the activity owner can restore their own activities.
362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 362 def restore_activity(_id, restore_activity_request) path = '/api/v2/feeds/activities/{id}/restore' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = restore_activity_request # Make the API request @client.make_request( :post, path, body: body ) end |
#unfollow(source, target, delete_notification_activity = nil) ⇒ Models::UnfollowResponse
Removes a follow and broadcasts FollowRemovedEvent
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1514 def unfollow(source, target, delete_notification_activity = nil) path = '/api/v2/feeds/follows/{source}/{target}' # Replace path parameters path = path.gsub('{source}', source.to_s) path = path.gsub('{target}', target.to_s) # Build query parameters query_params = {} query_params['delete_notification_activity'] = delete_notification_activity unless delete_notification_activity.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#unfollow_batch(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
Removes multiple follows at once and broadcasts FollowRemovedEvent for each one
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1622 def unfollow_batch(unfollow_batch_request) path = '/api/v2/feeds/unfollow/batch' # Build request body body = unfollow_batch_request # Make the API request @client.make_request( :post, path, body: body ) end |
#unpin_activity(feed_group_id, feed_id, activity_id, user_id = nil) ⇒ Models::UnpinActivityResponse
Unpin an activity from a feed. This removes the pin, so the activity will no longer be displayed at the top of the feed.
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 909 def unpin_activity(feed_group_id, feed_id, activity_id, user_id = nil) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/{activity_id}/pin' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) path = path.gsub('{activity_id}', activity_id.to_s) # Build query parameters query_params = {} query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#update_activity(_id, update_activity_request) ⇒ Models::UpdateActivityResponse
Replaces an activity with the provided data. Use this to update text, attachments, reply restrictions (‘restrict_replies’), mentioned users, and other activity fields. Note: This is a full update - any fields not provided will be cleared.Sends events:- feeds.activity.updated
342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 342 def update_activity(_id, update_activity_request) path = '/api/v2/feeds/activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_activity_request # Make the API request @client.make_request( :put, path, body: body ) end |
#update_activity_partial(_id, update_activity_partial_request) ⇒ Models::UpdateActivityPartialResponse
Updates certain fields of the activity. Use ‘set’ to update specific fields and ‘unset’ to remove fields. This allows you to update only the fields you need without replacing the entire activity. Useful for updating reply restrictions (‘restrict_replies’), mentioned users, or custom data.Sends events:- feeds.activity.updated
322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 322 def update_activity_partial(_id, update_activity_partial_request) path = '/api/v2/feeds/activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_activity_partial_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_bookmark(activity_id, update_bookmark_request) ⇒ Models::UpdateBookmarkResponse
Updates a bookmark for an activity
111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 111 def update_bookmark(activity_id, update_bookmark_request) path = '/api/v2/feeds/activities/{activity_id}/bookmarks' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build request body body = update_bookmark_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_bookmark_folder(folder_id, update_bookmark_folder_request) ⇒ Models::UpdateBookmarkFolderResponse
Update a bookmark folder by its ID
415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 415 def update_bookmark_folder(folder_id, update_bookmark_folder_request) path = '/api/v2/feeds/bookmark_folders/{folder_id}' # Replace path parameters path = path.gsub('{folder_id}', folder_id.to_s) # Build request body body = update_bookmark_folder_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_collections(update_collections_request) ⇒ Models::UpdateCollectionsResponse
Update existing collections in a batch operation. Only the custom data field is updatable. Users can only update their own collections.
489 490 491 492 493 494 495 496 497 498 499 500 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 489 def update_collections(update_collections_request) path = '/api/v2/feeds/collections' # Build request body body = update_collections_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_comment(_id, update_comment_request) ⇒ Models::UpdateCommentResponse
Updates a comment on an object (e.g., activity) and broadcasts appropriate events
665 666 667 668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 665 def update_comment(_id, update_comment_request) path = '/api/v2/feeds/comments/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_comment_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_feed(feed_group_id, feed_id, update_feed_request) ⇒ Models::UpdateFeedResponse
Update an existing feed
864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 864 def update_feed(feed_group_id, feed_id, update_feed_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build request body body = update_feed_request # Make the API request @client.make_request( :put, path, body: body ) end |
#update_feed_group(_id, update_feed_group_request) ⇒ Models::UpdateFeedGroupResponse
Update a feed group by ID
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1129 def update_feed_group(_id, update_feed_group_request) path = '/api/v2/feeds/feed_groups/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_feed_group_request # Make the API request @client.make_request( :put, path, body: body ) end |
#update_feed_members(feed_group_id, feed_id, update_feed_members_request) ⇒ Models::UpdateFeedMembersResponse
Add, remove, or set members for a feed
957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 957 def update_feed_members(feed_group_id, feed_id, update_feed_members_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/members' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Build request body body = update_feed_members_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_feed_view(_id, update_feed_view_request) ⇒ Models::UpdateFeedViewResponse
Update an existing custom feed view with new selectors, ranking, or aggregation options
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1231 def update_feed_view(_id, update_feed_view_request) path = '/api/v2/feeds/feed_views/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_feed_view_request # Make the API request @client.make_request( :put, path, body: body ) end |
#update_feed_visibility(name, update_feed_visibility_request) ⇒ Models::UpdateFeedVisibilityResponse
Updates an existing predefined feed visibility configuration
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1280 def update_feed_visibility(name, update_feed_visibility_request) path = '/api/v2/feeds/feed_visibilities/{name}' # Replace path parameters path = path.gsub('{name}', name.to_s) # Build request body body = update_feed_visibility_request # Make the API request @client.make_request( :put, path, body: body ) end |
#update_follow(update_follow_request) ⇒ Models::UpdateFollowResponse
Updates a follow’s custom data, push preference, and follower role. Source owner can update custom data and push preference. Follower role can only be updated via server-side requests.
1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1393 def update_follow(update_follow_request) path = '/api/v2/feeds/follows' # Build request body body = update_follow_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_membership_level(_id, update_membership_level_request) ⇒ Models::UpdateMembershipLevelResponse
Update a membership level with partial updates. Only specified fields will be updated.
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1586 def update_membership_level(_id, update_membership_level_request) path = '/api/v2/feeds/membership_levels/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_membership_level_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#upsert_activities(upsert_activities_request) ⇒ Models::UpsertActivitiesResponse
Create new activities or update existing ones in a batch operation
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 36 def upsert_activities(upsert_activities_request) path = '/api/v2/feeds/activities/batch' # Build request body body = upsert_activities_request # Make the API request @client.make_request( :post, path, body: body ) end |
#upsert_collections(upsert_collections_request) ⇒ Models::UpsertCollectionsResponse
Insert new collections or update existing ones in a batch operation. Only the custom data field is updatable for existing collections.
523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 523 def upsert_collections(upsert_collections_request) path = '/api/v2/feeds/collections' # Build request body body = upsert_collections_request # Make the API request @client.make_request( :put, path, body: body ) end |