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 = nil) ⇒ 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 = nil) ⇒ 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 = nil) ⇒ Models::AddBookmarkResponse
Adds a bookmark to an activity.
-
#add_comment(add_comment_request = nil) ⇒ Models::AddCommentResponse
Adds a comment to an object (e.g., activity) or a reply to an existing comment, and broadcasts appropriate events.
-
#add_comment_bookmark(comment_id, add_comment_bookmark_request = nil) ⇒ Models::AddCommentBookmarkResponse
Adds a bookmark to a comment.
-
#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.
-
#batch_query_activity_reactions(batch_query_activity_reactions_request) ⇒ Models::BatchQueryActivityReactionsResponse
Returns a single user's reactions across a set of activity IDs, without activity payloads.
-
#batch_query_comment_reactions(batch_query_comment_reactions_request) ⇒ Models::BatchQueryCommentReactionsResponse
Returns a single user's reactions across a set of comment IDs, without comment payloads.
-
#cancel_export_feeds(task_id) ⇒ Models::CancelExportFeedsResponse
Cancels a queued or processing feeds export.
-
#cast_poll_vote(activity_id, poll_id, cast_poll_vote_request = nil) ⇒ 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.
-
#change_feed_visibility(feed_group_id, feed_id, change_feed_visibility_request) ⇒ Models::ChangeFeedVisibilityResponse
Changes the visibility of an existing feed.
-
#comment_feedback(_id, comment_feedback_request = nil) ⇒ Models::CommentFeedbackResponse
Hide or unhide a comment for the current user.
-
#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, hard_delete = nil) ⇒ 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_bookmark(comment_id, folder_id = nil, user_id = nil) ⇒ Models::DeleteCommentBookmarkResponse
Deletes a bookmark from a comment.
-
#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, purge_user_activities = 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 = nil) ⇒ 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.
-
#delete_scheduled_activity(_id) ⇒ Models::DeleteScheduledActivityResponse
Cancel a scheduled activity so it is never published.
-
#delete_user_interests(user_id, tags) ⇒ Models::DeleteUserInterestsResponse
Removes the given interest tags from a user, whether they were set manually or computed from reactions.
-
#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.
-
#export_feeds_app(export_feeds_app_request = nil) ⇒ Models::ExportFeedsResponse
Starts an async task that exports all feeds data of the app in export format v1.
-
#export_feeds_by_type(_type, export_feeds_by_type_request = nil) ⇒ Models::ExportFeedsResponse
Starts an async task that exports activities, comments, reactions or follows in export format v1, optionally filtered by user and creation time.
-
#feeds_delete_retention_policy(delete_feeds_retention_policy_request) ⇒ Models::DeleteFeedsRetentionPolicyResponse
Removes the named feeds retention policy for the app (an app may hold several).
-
#feeds_get_retention_policy ⇒ Models::GetFeedsRetentionPolicyResponse
Returns the feeds retention policies configured for the app.
-
#feeds_get_retention_policy_runs(get_feeds_retention_policy_runs_request = nil) ⇒ Models::GetFeedsRetentionPolicyRunsResponse
Returns filtered and sorted feeds retention cleanup run history for the app.
-
#feeds_set_retention_policy(set_feeds_retention_policy_request) ⇒ Models::SetFeedsRetentionPolicyResponse
Creates or updates a feeds retention policy for the app (an app may have multiple, each scoped to feed groups and, except old-activities, optionally narrowed by filter_conditions).
-
#follow(follow_request) ⇒ Models::SingleFollowResponse
Creates a follow and broadcasts FollowAddedEvent.
-
#follow_batch(follow_batch_request) ⇒ Models::FollowBatchResponse
deprecated
Deprecated.
This endpoint is deprecated.
-
#get_activity(_id, comment_sort = nil, comment_limit = nil, skip_own_followings = nil, user_id = nil, language = nil, translate_text = nil, include_top_level_comment_count = nil, include_soft_deleted_activities = nil, include_moderated_activities = nil, skip_viewer_visibility = nil) ⇒ Models::GetActivityResponse
Returns activity by ID.
-
#get_comment(_id, user_id = nil, language = nil, translate_text = nil) ⇒ Models::GetCommentResponse
Get a comment by ID.
-
#get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, id_around = nil, language = nil, translate_text = 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, id_around = nil, language = nil, translate_text = nil, user_id = nil, limit = nil, prev = nil, _next = nil, include_top_level_comment_count = nil) ⇒ Models::GetCommentsResponse
Retrieve a threaded list of comments for a specific object (e.g., activity), with configurable depth, sorting, and pagination.
-
#get_feed_counts(feed_group_id, feed_id) ⇒ Models::GetFeedCountsResponse
Returns the number of activities in a feed, the total number of comments on those activities (including nested replies), and the sum of both.
-
#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, unity = nil, unity_desktop = nil, unity_console = 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_notification_status(feed_group_id, feed_id, view = nil, user_id = nil) ⇒ Models::GetNotificationStatusResponse
Returns the unread and unseen counts of a notification feed, along with the last seen and last read timestamps, without building a page.
-
#get_or_create_feed(feed_group_id, feed_id, get_or_create_feed_request = nil, language = nil, translate_text = nil) ⇒ Models::GetOrCreateFeedResponse
Create a single feed for a given feed group.
-
#get_or_create_feed_group(_id, get_or_create_feed_group_request = nil) ⇒ 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 = nil) ⇒ Models::GetOrCreateFeedViewResponse
Get an existing feed view or create a new one if it doesn't exist.
-
#get_or_create_follow(follow_request) ⇒ Models::GetOrCreateFollowResponse
Creates a follow if it does not exist, or returns the existing one.
-
#get_or_create_follows(follow_batch_request) ⇒ Models::FollowBatchResponse
Creates or updates multiple follows at once.
-
#get_or_create_unfollow(get_or_create_unfollow_request) ⇒ Models::GetOrCreateUnfollowResponse
Removes a follow and broadcasts feeds.follow.deleted (FollowDeletedEvent).
-
#get_or_create_unfollows(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
Removes multiple follows and broadcasts FollowRemovedEvent for each.
-
#get_scheduled_activity(_id) ⇒ Models::GetScheduledActivityResponse
Get a scheduled activity by its ID.
-
#get_trending_topics(user_id, limit = nil) ⇒ Models::GetTrendingTopicsResponse
Returns the topics trending in the app, ranked for the user: the trend of a tag scaled by the user's interest weight in it.
-
#get_user_interests(user_id, limit = nil) ⇒ Models::GetUserInterestsResponse
Returns the user's interest tags with their ranking weights: tags computed from the activities the user reacted to and tags set manually through the API.
-
#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 persisted feed views for the application.
-
#list_feed_visibilities ⇒ Models::ListFeedVisibilitiesResponse
Gets all available feed visibility configurations and their permissions.
-
#list_promoted_topics ⇒ Models::ListPromotedTopicsResponse
Lists the app's active promotions, also while for_you.trending is off.
-
#mark_activity(feed_group_id, feed_id, mark_activity_request = nil) ⇒ 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 = nil) ⇒ Models::PinActivityResponse
Pin an activity to a feed.
-
#promote_topics(promote_topics_request) ⇒ Models::PromoteTopicsResponse
Promotes topic tags for the trend signal of feed groups with for_you.trending until the TTL passes.
-
#publish_scheduled_activity_now(_id) ⇒ Models::PublishScheduledActivityNowResponse
Move the publish time of a scheduled activity to now.
-
#query_activities(query_activities_request = nil, language = nil, translate_text = nil) ⇒ Models::QueryActivitiesResponse
Query activities based on filters with pagination and sorting options.
-
#query_activity_reactions(activity_id, query_activity_reactions_request = nil) ⇒ Models::QueryActivityReactionsResponse
Query activity reactions.
-
#query_activity_shares(activity_id, limit = nil, prev = nil, _next = nil) ⇒ Models::QueryActivitySharesResponse
List the shares recorded for an activity, newest-first.
-
#query_bookmark_folders(query_bookmark_folders_request = nil) ⇒ Models::QueryBookmarkFoldersResponse
Query bookmark folders with filter query.
-
#query_bookmarks(query_bookmarks_request = nil, language = nil, translate_text = nil) ⇒ Models::QueryBookmarksResponse
Query bookmarks with filter query.
-
#query_collections(query_collections_request = nil) ⇒ Models::QueryCollectionsResponse
Query collections with filter query.
-
#query_comment_reactions(_id, query_comment_reactions_request = nil) ⇒ Models::QueryCommentReactionsResponse
Query comment reactions.
-
#query_comments(query_comments_request, language = nil, translate_text = nil) ⇒ 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 = nil) ⇒ Models::QueryFeedMembersResponse
Query feed members based on filters with pagination and sorting options.
-
#query_feeds(query_feeds_request = nil) ⇒ Models::QueryFeedsResponse
Query feeds with filter query.
-
#query_feeds_engagement_stats(query_feeds_engagement_stats_request) ⇒ Models::QueryFeedsEngagementStatsResponse
Retrieve For You engagement statistics (reads, users, impressions, clicks, dwell, hides) per view and experiment, aggregated by day.users.total counts user-days.Requires a paid Feeds plan (403 otherwise).limit is the maximum number of series (one per group, view and experiment), not rows; it never cuts a series.
-
#query_feeds_reactions(query_feeds_reactions_request) ⇒ Models::QueryFeedsReactionsResponse
Lists a single user's activity or comment reactions, newest first by default, without activity or comment payloads.
-
#query_feeds_usage_stats(query_feeds_usage_stats_request = nil) ⇒ 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 = nil) ⇒ Models::QueryFollowsResponse
Query follows based on filters with pagination and sorting options.
-
#query_membership_levels(query_membership_levels_request = nil) ⇒ Models::QueryMembershipLevelsResponse
Query membership levels with filter query.
-
#query_pinned_activities(feed_group_id, feed_id, query_pinned_activities_request = nil, language = nil, translate_text = nil) ⇒ Models::QueryPinnedActivitiesResponse
Query pinned activities for a feed with filter query.
-
#query_revision_history(query_revision_history_request) ⇒ Models::QueryRevisionHistoryResponse
Queries revision history for activities and comments.
-
#query_scheduled_activities(query_scheduled_activities_request = nil) ⇒ Models::QueryScheduledActivitiesResponse
Query scheduled activities ordered by scheduled time.
-
#read_collections(user_id = nil, collection_refs = nil) ⇒ Models::ReadCollectionsResponse
Read collections by their references.
-
#reject_feed_member_invite(feed_group_id, feed_id, reject_feed_member_invite_request = nil) ⇒ 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 = nil, enrich_own_fields = nil) ⇒ Models::RestoreActivityResponse
Restores a soft-deleted, moderation-removed, or shadow-blocked activity by its ID.
-
#restore_comment(_id, restore_comment_request = nil) ⇒ Models::RestoreCommentResponse
Restores a soft-deleted, moderation-removed, or shadow-blocked comment by its ID.
-
#restore_feed_group(feed_group_id) ⇒ Models::RestoreFeedGroupResponse
Restores a soft-deleted feed group by its ID.
-
#schedule_activity(schedule_activity_request) ⇒ Models::ScheduleActivityResponse
Schedule an activity to be published at a future time.
-
#track_activity_metrics(track_activity_metrics_request) ⇒ Models::TrackActivityMetricsResponse
Track metric events (views, clicks, impressions) for activities.
-
#translate_activity(_id, translate_activity_request) ⇒ Models::TranslateActivityResponse
Translates an activity's text to a given language using automated translationSends events:- feeds.activity.updated.
-
#translate_comment(_id, translate_comment_request) ⇒ Models::TranslateCommentResponse
Translates a comment's text to a given language using automated translationSends events:- feeds.comment.updated.
-
#unfollow(source, target, delete_notification_activity = nil, keep_history = nil, enrich_own_fields = nil) ⇒ Models::UnfollowResponse
Removes a follow and broadcasts FollowRemovedEvent.
-
#unfollow_batch(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
deprecated
Deprecated.
This endpoint is deprecated.
-
#unpin_activity(feed_group_id, feed_id, activity_id, enrich_own_fields = nil, user_id = nil) ⇒ Models::UnpinActivityResponse
Unpin an activity from a feed.
-
#unpromote_topics(_id) ⇒ Models::UnpromoteTopicsResponse
Ends a promotion before it expires, also while for_you.trending is off.
-
#update_activities_partial_batch(update_activities_partial_batch_request) ⇒ Models::UpdateActivitiesPartialBatchResponse
Updates certain fields of multiple activities in a batch.
-
#update_activity(_id, update_activity_request = nil) ⇒ Models::UpdateActivityResponse
Replaces an activity with the provided data.
-
#update_activity_partial(_id, update_activity_partial_request = nil) ⇒ Models::UpdateActivityPartialResponse
Updates certain fields of the activity.
-
#update_bookmark(activity_id, update_bookmark_request = nil) ⇒ Models::UpdateBookmarkResponse
Updates a bookmark for an activity.
-
#update_bookmark_folder(folder_id, update_bookmark_folder_request = nil) ⇒ 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 = nil) ⇒ Models::UpdateCommentResponse
Updates a comment on an object (e.g., activity) and broadcasts appropriate events.
-
#update_comment_bookmark(comment_id, update_comment_bookmark_request = nil) ⇒ Models::UpdateCommentBookmarkResponse
Updates a bookmark for a comment.
-
#update_comment_partial(_id, update_comment_partial_request = nil) ⇒ Models::UpdateCommentPartialResponse
Updates certain fields of the comment.
-
#update_feed(feed_group_id, feed_id, update_feed_request = nil) ⇒ Models::UpdateFeedResponse
Update an existing feed.
-
#update_feed_group(_id, update_feed_group_request = nil) ⇒ 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 = nil) ⇒ Models::UpdateFeedViewResponse
Update an existing custom feed view with new selectors, ranking, or aggregation options.
-
#update_feed_visibility(name, update_feed_visibility_request = nil) ⇒ 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 = nil) ⇒ Models::UpdateMembershipLevelResponse
Update a membership level with partial updates.
-
#update_scheduled_activity(_id, update_scheduled_activity_request = nil) ⇒ Models::UpdateScheduledActivityResponse
Change the activity or the publish time of a scheduled activity.
-
#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.
-
#upsert_user_interests(user_id, upsert_user_interests_request) ⇒ Models::UpsertUserInterestsResponse
Adds or updates interest tags on a user with explicit ranking weights.
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 = nil) ⇒ Models::AcceptFeedMemberInviteResponse
Accepts a pending feed member request
1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1430 def accept_feed_member_invite(feed_id, feed_group_id, accept_feed_member_invite_request = nil) 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. Follower role can only be set via server-side requests.
1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1954 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 = nil) ⇒ Models::ActivityFeedbackResponse
Submit feedback for an activity including options to show less, hide, report, or mute the user
209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 209 def activity_feedback(activity_id, activity_feedback_request = nil) 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
276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 276 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 = nil) ⇒ Models::AddBookmarkResponse
Adds a bookmark to an activity
189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 189 def add_bookmark(activity_id, add_bookmark_request = nil) 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 = nil) ⇒ Models::AddCommentResponse
Adds a comment to an object (e.g., activity) or a reply to an existing comment, and broadcasts appropriate events
739 740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 739 def add_comment(add_comment_request = nil) 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_bookmark(comment_id, add_comment_bookmark_request = nil) ⇒ Models::AddCommentBookmarkResponse
Adds a bookmark to a comment
858 859 860 861 862 863 864 865 866 867 868 869 870 871 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 858 def add_comment_bookmark(comment_id, add_comment_bookmark_request = nil) path = '/api/v2/feeds/comments/{comment_id}/bookmarks' # Replace path parameters path = path.gsub('{comment_id}', comment_id.to_s) # Build request body body = add_comment_bookmark_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
986 987 988 989 990 991 992 993 994 995 996 997 998 999 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 986 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.
756 757 758 759 760 761 762 763 764 765 766 767 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 756 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 |
#batch_query_activity_reactions(batch_query_activity_reactions_request) ⇒ Models::BatchQueryActivityReactionsResponse
Returns a single user's reactions across a set of activity IDs, without activity payloads
128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 128 def batch_query_activity_reactions(batch_query_activity_reactions_request) path = '/api/v2/feeds/activities/reactions/query' # Build request body body = batch_query_activity_reactions_request # Make the API request @client.make_request( :post, path, body: body ) end |
#batch_query_comment_reactions(batch_query_comment_reactions_request) ⇒ Models::BatchQueryCommentReactionsResponse
Returns a single user's reactions across a set of comment IDs, without comment payloads
797 798 799 800 801 802 803 804 805 806 807 808 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 797 def batch_query_comment_reactions(batch_query_comment_reactions_request) path = '/api/v2/feeds/comments/reactions/query' # Build request body body = batch_query_comment_reactions_request # Make the API request @client.make_request( :post, path, body: body ) end |
#cancel_export_feeds(task_id) ⇒ Models::CancelExportFeedsResponse
Cancels a queued or processing feeds export. A queued export is cancelled immediately; a processing one is stopped by the worker, which removes the files it wrote
1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1146 def cancel_export_feeds(task_id) path = '/api/v2/feeds/export/{task_id}/cancel' # Replace path parameters path = path.gsub('{task_id}', task_id.to_s) # Make the API request @client.make_request( :post, path ) end |
#cast_poll_vote(activity_id, poll_id, cast_poll_vote_request = nil) ⇒ 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
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 230 def cast_poll_vote(activity_id, poll_id, cast_poll_vote_request = nil) 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 |
#change_feed_visibility(feed_group_id, feed_id, change_feed_visibility_request) ⇒ Models::ChangeFeedVisibilityResponse
Changes the visibility of an existing feed. Follow reconciliation (rewriting pending follows on loosening, or removing disallowed follows/members on tightening) runs asynchronously in the background; the response returns optimistically with the intended visibility.
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1368 def change_feed_visibility(feed_group_id, feed_id, change_feed_visibility_request) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/change_visibility' # 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 = change_feed_visibility_request # Make the API request @client.make_request( :post, path, body: body ) end |
#comment_feedback(_id, comment_feedback_request = nil) ⇒ Models::CommentFeedbackResponse
Hide or unhide a comment for the current user
946 947 948 949 950 951 952 953 954 955 956 957 958 959 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 946 def comment_feedback(_id, comment_feedback_request = nil) path = '/api/v2/feeds/comments/{id}/feedback' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = comment_feedback_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.
646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 646 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
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1200 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
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1682 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. Client-side, feeds that already exist are returned unchanged. Server-side, an existing feed keeps its owner and any fields the request omits. Feeds that have been deleted are rejected.
1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1820 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
2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2084 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
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 70 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
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 367 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
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 318 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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 147 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
529 530 531 532 533 534 535 536 537 538 539 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 529 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, hard_delete = nil) ⇒ Models::DeleteCollectionsResponse
Delete collections in a batch operation. Users can only delete their own collections.
590 591 592 593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 590 def delete_collections(collection_refs, hard_delete = nil) path = '/api/v2/feeds/collections' # Build query parameters query_params = {} query_params['collection_refs'] = collection_refs unless collection_refs.nil? 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_comment(_id, hard_delete = nil, delete_notification_activity = nil) ⇒ Models::DeleteCommentResponse
Deletes a comment from an object (e.g., activity) and broadcasts appropriate events
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 879 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_bookmark(comment_id, folder_id = nil, user_id = nil) ⇒ Models::DeleteCommentBookmarkResponse
Deletes a bookmark from a comment
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 816 def delete_comment_bookmark(comment_id, folder_id = nil, user_id = nil) path = '/api/v2/feeds/comments/{comment_id}/bookmarks' # Replace path parameters path = path.gsub('{comment_id}', comment_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_comment_reaction(_id, _type, delete_notification_activity = nil, user_id = nil) ⇒ Models::DeleteCommentReactionResponse
Deletes a reaction from a comment
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1028 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, purge_user_activities = nil) ⇒ Models::DeleteFeedResponse
Delete a single feed by its ID
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1220 def delete_feed(feed_group_id, feed_id, hard_delete = nil, purge_user_activities = 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? query_params['purge_user_activities'] = purge_user_activities unless purge_user_activities.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.
1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1588 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 = nil) ⇒ 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
2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2487 def delete_feed_user_data(user_id, delete_feed_user_data_request = nil) 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
1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1699 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.
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1837 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.
2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2118 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
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 253 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 |
#delete_scheduled_activity(_id) ⇒ Models::DeleteScheduledActivityResponse
Cancel a scheduled activity so it is never published
2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2332 def delete_scheduled_activity(_id) path = '/api/v2/feeds/scheduled_activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :delete, path ) end |
#delete_user_interests(user_id, tags) ⇒ Models::DeleteUserInterestsResponse
Removes the given interest tags from a user, whether they were set manually or computed from reactions. A removed computed tag returns on the next recomputation if the user's reactions still support it; to keep a tag out of ranking for good, set it with a weight of 0 or below instead. Client-side callers may only manage their own interests; server-side callers may manage any user. Returns the user's remaining interests.
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2523 def delete_user_interests(user_id, ) path = '/api/v2/feeds/users/{user_id}/interests' # Replace path parameters path = path.gsub('{user_id}', user_id.to_s) # Build query parameters query_params = {} query_params['tags'] = unless .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
2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2506 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 |
#export_feeds_app(export_feeds_app_request = nil) ⇒ Models::ExportFeedsResponse
Starts an async task that exports all feeds data of the app in export format v1. Poll the task for the result
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1129 def export_feeds_app(export_feeds_app_request = nil) path = '/api/v2/feeds/export/app' # Build request body body = export_feeds_app_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#export_feeds_by_type(_type, export_feeds_by_type_request = nil) ⇒ Models::ExportFeedsResponse
Starts an async task that exports activities, comments, reactions or follows in export format v1, optionally filtered by user and creation time. Poll the task for the result
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1163 def export_feeds_by_type(_type, export_feeds_by_type_request = nil) path = '/api/v2/feeds/export/{type}' # Replace path parameters path = path.gsub('{type}', _type.to_s) # Build request body body = export_feeds_by_type_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#feeds_delete_retention_policy(delete_feeds_retention_policy_request) ⇒ Models::DeleteFeedsRetentionPolicyResponse
Removes the named feeds retention policy for the app (an app may hold several). Server-side only.
2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2247 def feeds_delete_retention_policy(delete_feeds_retention_policy_request) path = '/api/v2/feeds/retention_policy/delete' # Build request body body = delete_feeds_retention_policy_request # Make the API request @client.make_request( :post, path, body: body ) end |
#feeds_get_retention_policy ⇒ Models::GetFeedsRetentionPolicyResponse
Returns the feeds retention policies configured for the app. Server-side only.
2216 2217 2218 2219 2220 2221 2222 2223 2224 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2216 def feeds_get_retention_policy() path = '/api/v2/feeds/retention_policy' # Make the API request @client.make_request( :get, path ) end |
#feeds_get_retention_policy_runs(get_feeds_retention_policy_runs_request = nil) ⇒ Models::GetFeedsRetentionPolicyRunsResponse
Returns filtered and sorted feeds retention cleanup run history for the app. Supports filter_conditions on 'policy' and 'date' fields. Server-side only.
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2264 def feeds_get_retention_policy_runs(get_feeds_retention_policy_runs_request = nil) path = '/api/v2/feeds/retention_policy/runs' # Build request body body = get_feeds_retention_policy_runs_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#feeds_set_retention_policy(set_feeds_retention_policy_request) ⇒ Models::SetFeedsRetentionPolicyResponse
Creates or updates a feeds retention policy for the app (an app may have multiple, each scoped to feed groups and, except old-activities, optionally narrowed by filter_conditions). Server-side only.
2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2230 def feeds_set_retention_policy(set_feeds_retention_policy_request) path = '/api/v2/feeds/retention_policy' # Build request body body = set_feeds_retention_policy_request # Make the API request @client.make_request( :post, path, body: body ) end |
#follow(follow_request) ⇒ Models::SingleFollowResponse
Creates a follow and broadcasts FollowAddedEvent
1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1937 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
This endpoint is deprecated.
Creates multiple follows at once and broadcasts FollowAddedEvent for each follow. Deprecated: use GetOrCreateFollows (POST /api/v2/feeds/follows/batch/upsert), which returns existing follows instead of erroring.
1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1972 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, comment_sort = nil, comment_limit = nil, skip_own_followings = nil, user_id = nil, language = nil, translate_text = nil, include_top_level_comment_count = nil, include_soft_deleted_activities = nil, include_moderated_activities = nil, skip_viewer_visibility = nil) ⇒ Models::GetActivityResponse
Returns activity by ID
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 398 def get_activity(_id, comment_sort = nil, comment_limit = nil, skip_own_followings = nil, user_id = nil, language = nil, translate_text = nil, include_top_level_comment_count = nil, include_soft_deleted_activities = nil, include_moderated_activities = nil, skip_viewer_visibility = nil) path = '/api/v2/feeds/activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['comment_sort'] = comment_sort unless comment_sort.nil? query_params['comment_limit'] = comment_limit unless comment_limit.nil? query_params['skip_own_followings'] = skip_own_followings unless skip_own_followings.nil? query_params['user_id'] = user_id unless user_id.nil? query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? query_params['include_top_level_comment_count'] = include_top_level_comment_count unless include_top_level_comment_count.nil? query_params['include_soft_deleted_activities'] = include_soft_deleted_activities unless include_soft_deleted_activities.nil? query_params['include_moderated_activities'] = include_moderated_activities unless include_moderated_activities.nil? query_params['skip_viewer_visibility'] = skip_viewer_visibility unless skip_viewer_visibility.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_comment(_id, user_id = nil, language = nil, translate_text = nil) ⇒ Models::GetCommentResponse
Get a comment by ID
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 903 def get_comment(_id, user_id = nil, language = nil, translate_text = nil) path = '/api/v2/feeds/comments/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['user_id'] = user_id unless user_id.nil? query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, id_around = nil, language = nil, translate_text = 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
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1060 def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, id_around = nil, language = nil, translate_text = 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['id_around'] = id_around unless id_around.nil? query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.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, id_around = nil, language = nil, translate_text = nil, user_id = nil, limit = nil, prev = nil, _next = nil, include_top_level_comment_count = nil) ⇒ Models::GetCommentsResponse
Retrieve a threaded list of comments for a specific object (e.g., activity), with configurable depth, sorting, and pagination
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 709 def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, id_around = nil, language = nil, translate_text = nil, user_id = nil, limit = nil, prev = nil, _next = nil, include_top_level_comment_count = 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['id_around'] = id_around unless id_around.nil? query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.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? query_params['include_top_level_comment_count'] = include_top_level_comment_count unless include_top_level_comment_count.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_feed_counts(feed_group_id, feed_id) ⇒ Models::GetFeedCountsResponse
Returns the number of activities in a feed, the total number of comments on those activities (including nested replies), and the sum of both. The comment total is cached for a few seconds on large feeds.
1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1389 def get_feed_counts(feed_group_id, feed_id) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/counts' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) path = path.gsub('{feed_id}', feed_id.to_s) # Make the API request @client.make_request( :get, path ) end |
#get_feed_group(_id, include_soft_deleted = nil) ⇒ Models::GetFeedGroupResponse
Get a feed group by ID
1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1609 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
1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1715 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
1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1784 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, unity = nil, unity_desktop = nil, unity_console = 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.
1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1895 def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, unity = nil, unity_desktop = nil, unity_console = 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['unity'] = unity unless unity.nil? query_params['unity_desktop'] = unity_desktop unless unity_desktop.nil? query_params['unity_console'] = unity_console unless unity_console.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
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1550 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_notification_status(feed_group_id, feed_id, view = nil, user_id = nil) ⇒ Models::GetNotificationStatusResponse
Returns the unread and unseen counts of a notification feed, along with the last seen and last read timestamps, without building a page.
1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1497 def get_notification_status(feed_group_id, feed_id, view = nil, user_id = nil) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/notification_status' # 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['view'] = view unless view.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 = nil, language = nil, translate_text = nil) ⇒ Models::GetOrCreateFeedResponse
Create a single feed for a given feed group
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1246 def get_or_create_feed(feed_group_id, feed_id, get_or_create_feed_request = nil, language = nil, translate_text = 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['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? # Build request body body = get_or_create_feed_request || {} # Make the API request @client.make_request( :post, path, query_params: query_params, body: body ) end |
#get_or_create_feed_group(_id, get_or_create_feed_group_request = nil) ⇒ Models::GetOrCreateFeedGroupResponse
Get an existing feed group or create a new one if it doesn't exist
1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1630 def get_or_create_feed_group(_id, get_or_create_feed_group_request = nil) 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 = nil) ⇒ Models::GetOrCreateFeedViewResponse
Get an existing feed view or create a new one if it doesn't exist
1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1732 def get_or_create_feed_view(_id, get_or_create_feed_view_request = nil) 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_follow(follow_request) ⇒ Models::GetOrCreateFollowResponse
Creates a follow if it does not exist, or returns the existing one. Broadcasts feeds.follow.created (FollowCreatedEvent) only when the follow is newly created.
2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2040 def get_or_create_follow(follow_request) path = '/api/v2/feeds/follows/upsert' # Build request body body = follow_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.
1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1989 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_unfollow(get_or_create_unfollow_request) ⇒ Models::GetOrCreateUnfollowResponse
Removes a follow and broadcasts feeds.follow.deleted (FollowDeletedEvent). Does not return an error if the follow does not exist.
2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2469 def get_or_create_unfollow(get_or_create_unfollow_request) path = '/api/v2/feeds/unfollow/upsert' # Build request body body = get_or_create_unfollow_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.
2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2452 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 |
#get_scheduled_activity(_id) ⇒ Models::GetScheduledActivityResponse
Get a scheduled activity by its ID
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2348 def get_scheduled_activity(_id) path = '/api/v2/feeds/scheduled_activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :get, path ) end |
#get_trending_topics(user_id, limit = nil) ⇒ Models::GetTrendingTopicsResponse
Returns the topics trending in the app, ranked for the user: the trend of a tag scaled by the user's interest weight in it. Tags the user has a negative weight for are left out. Empty for apps without for_you.trending. Client-side callers may only read their own.
2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2585 def get_trending_topics(user_id, limit = nil) path = '/api/v2/feeds/users/{user_id}/trending_topics' # Replace path parameters path = path.gsub('{user_id}', user_id.to_s) # Build query parameters query_params = {} query_params['limit'] = limit unless limit.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#get_user_interests(user_id, limit = nil) ⇒ Models::GetUserInterestsResponse
Returns the user's interest tags with their ranking weights: tags computed from the activities the user reacted to and tags set manually through the API. Client-side callers may only read their own interests; server-side callers may fetch any user. Results are sorted by descending weight, then manually set tags before computed ones, then descending count, then alphabetically by tag.
2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2544 def get_user_interests(user_id, limit = nil) path = '/api/v2/feeds/users/{user_id}/interests' # Replace path parameters path = path.gsub('{user_id}', user_id.to_s) # Build query parameters query_params = {} query_params['limit'] = limit unless limit.nil? # Make the API request @client.make_request( :get, path, query_params: query_params ) end |
#list_feed_groups(include_soft_deleted = nil) ⇒ Models::ListFeedGroupsResponse
List all feed groups for the application
1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1182 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 persisted feed views for the application.
1668 1669 1670 1671 1672 1673 1674 1675 1676 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1668 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
1770 1771 1772 1773 1774 1775 1776 1777 1778 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1770 def list_feed_visibilities() path = '/api/v2/feeds/feed_visibilities' # Make the API request @client.make_request( :get, path ) end |
#list_promoted_topics ⇒ Models::ListPromotedTopicsResponse
Lists the app's active promotions, also while for_you.trending is off. Not paginated: an app holds at most 20. Server-side only.
2153 2154 2155 2156 2157 2158 2159 2160 2161 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2153 def list_promoted_topics() path = '/api/v2/feeds/promoted_topics' # Make the API request @client.make_request( :get, path ) end |
#mark_activity(feed_group_id, feed_id, mark_activity_request = nil) ⇒ Models::Response
Mark activities as read/seen/watched. Can mark by timestamp (seen), activity IDs (read), or all as read.
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1295 def mark_activity(feed_group_id, feed_id, mark_activity_request = nil) 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.
1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1854 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 = nil) ⇒ Models::PinActivityResponse
Pin an activity to a feed. Pinned activities are typically displayed at the top of a feed.
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1345 def pin_activity(feed_group_id, feed_id, activity_id, pin_activity_request = 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 request body body = pin_activity_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#promote_topics(promote_topics_request) ⇒ Models::PromoteTopicsResponse
Promotes topic tags for the trend signal of feed groups with for_you.trending until the TTL passes. Clients watching a For You feed receive a feeds.promoted_topics.updated event. An app holds at most 20 active promotions. Server-side only.
2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2167 def promote_topics(promote_topics_request) path = '/api/v2/feeds/promoted_topics' # Build request body body = promote_topics_request # Make the API request @client.make_request( :post, path, body: body ) end |
#publish_scheduled_activity_now(_id) ⇒ Models::PublishScheduledActivityNowResponse
Move the publish time of a scheduled activity to now
2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2384 def publish_scheduled_activity_now(_id) path = '/api/v2/feeds/scheduled_activities/{id}/publish_now' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :post, path ) end |
#query_activities(query_activities_request = nil, language = nil, translate_text = nil) ⇒ Models::QueryActivitiesResponse
Query activities based on filters with pagination and sorting options
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 106 def query_activities(query_activities_request = nil, language = nil, translate_text = nil) path = '/api/v2/feeds/activities/query' # Build query parameters query_params = {} query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? # Build request body body = query_activities_request || {} # Make the API request @client.make_request( :post, path, query_params: query_params, body: body ) end |
#query_activity_reactions(activity_id, query_activity_reactions_request = nil) ⇒ Models::QueryActivityReactionsResponse
Query activity reactions
296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 296 def query_activity_reactions(activity_id, query_activity_reactions_request = nil) 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_activity_shares(activity_id, limit = nil, prev = nil, _next = nil) ⇒ Models::QueryActivitySharesResponse
List the shares recorded for an activity, newest-first
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 343 def query_activity_shares(activity_id, limit = nil, prev = nil, _next = nil) path = '/api/v2/feeds/activities/{activity_id}/shares' # Replace path parameters path = path.gsub('{activity_id}', activity_id.to_s) # Build query parameters query_params = {} 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 |
#query_bookmark_folders(query_bookmark_folders_request = nil) ⇒ Models::QueryBookmarkFoldersResponse
Query bookmark folders with filter query
512 513 514 515 516 517 518 519 520 521 522 523 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 512 def query_bookmark_folders(query_bookmark_folders_request = nil) 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 = nil, language = nil, translate_text = nil) ⇒ Models::QueryBookmarksResponse
Query bookmarks with filter query
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 567 def query_bookmarks(query_bookmarks_request = nil, language = nil, translate_text = nil) path = '/api/v2/feeds/bookmarks/query' # Build query parameters query_params = {} query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? # Build request body body = query_bookmarks_request || {} # Make the API request @client.make_request( :post, path, query_params: query_params, body: body ) end |
#query_collections(query_collections_request = nil) ⇒ Models::QueryCollectionsResponse
Query collections with filter query
680 681 682 683 684 685 686 687 688 689 690 691 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 680 def query_collections(query_collections_request = nil) path = '/api/v2/feeds/collections/query' # Build request body body = query_collections_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#query_comment_reactions(_id, query_comment_reactions_request = nil) ⇒ Models::QueryCommentReactionsResponse
Query comment reactions
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1006 def query_comment_reactions(_id, query_comment_reactions_request = nil) 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, language = nil, translate_text = nil) ⇒ Models::QueryCommentsResponse
Query comments using MongoDB-style filters with pagination and sorting options
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 775 def query_comments(query_comments_request, language = nil, translate_text = nil) path = '/api/v2/feeds/comments/query' # Build query parameters query_params = {} query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? # Build request body body = query_comments_request # Make the API request @client.make_request( :post, path, query_params: query_params, body: body ) end |
#query_feed_members(feed_group_id, feed_id, query_feed_members_request = nil) ⇒ Models::QueryFeedMembersResponse
Query feed members based on filters with pagination and sorting options
1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1452 def query_feed_members(feed_group_id, feed_id, query_feed_members_request = nil) 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 = nil) ⇒ Models::QueryFeedsResponse
Query feeds with filter query
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1871 def query_feeds(query_feeds_request = nil) 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_engagement_stats(query_feeds_engagement_stats_request) ⇒ Models::QueryFeedsEngagementStatsResponse
Retrieve For You engagement statistics (reads, users, impressions, clicks, dwell, hides) per view and experiment, aggregated by day.users.total counts user-days.Requires a paid Feeds plan (403 otherwise).limit is the maximum number of series (one per group, view and experiment), not rows; it never cuts a series. A metric's days with no events are omitted from its daily values.This endpoint is not paginated: it is a bounded report over one group's views and experiments for at most 396 days, and limit x days must not exceed 10,000 (the default limit always fits).This endpoint is server-side only.
2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2400 def query_feeds_engagement_stats(query_feeds_engagement_stats_request) path = '/api/v2/feeds/stats/engagement' # Build request body body = query_feeds_engagement_stats_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_feeds_reactions(query_feeds_reactions_request) ⇒ Models::QueryFeedsReactionsResponse
Lists a single user's activity or comment reactions, newest first by default, without activity or comment payloads
2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2200 def query_feeds_reactions(query_feeds_reactions_request) path = '/api/v2/feeds/reactions/query' # Build request body body = query_feeds_reactions_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_feeds_usage_stats(query_feeds_usage_stats_request = nil) ⇒ 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.
2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2417 def query_feeds_usage_stats(query_feeds_usage_stats_request = nil) 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 = nil) ⇒ Models::QueryFollowsResponse
Query follows based on filters with pagination and sorting options. Server-side callers may set include_group_counts to also receive accepted following counts keyed by followed feed group. Requires exactly one source_feed / source_fid string equality. HTTP 400 if target_feed appears, if two source FIDs are given, or if $in / $or mentions those keys.
2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2006 def query_follows(query_follows_request = nil) 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 = nil) ⇒ Models::QueryMembershipLevelsResponse
Query membership levels with filter query
2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2101 def query_membership_levels(query_membership_levels_request = nil) 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 |
#query_pinned_activities(feed_group_id, feed_id, query_pinned_activities_request = nil, language = nil, translate_text = nil) ⇒ Models::QueryPinnedActivitiesResponse
Query pinned activities for a feed with filter query
1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1523 def query_pinned_activities(feed_group_id, feed_id, query_pinned_activities_request = nil, language = nil, translate_text = nil) path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/pinned_activities/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 query parameters query_params = {} query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? # Build request body body = query_pinned_activities_request || {} # Make the API request @client.make_request( :post, path, query_params: query_params, body: body ) end |
#query_revision_history(query_revision_history_request) ⇒ Models::QueryRevisionHistoryResponse
Queries revision history for activities and comments
2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2281 def query_revision_history(query_revision_history_request) path = '/api/v2/feeds/revisions/query' # Build request body body = query_revision_history_request # Make the API request @client.make_request( :post, path, body: body ) end |
#query_scheduled_activities(query_scheduled_activities_request = nil) ⇒ Models::QueryScheduledActivitiesResponse
Query scheduled activities ordered by scheduled time
2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2315 def query_scheduled_activities(query_scheduled_activities_request = nil) path = '/api/v2/feeds/scheduled_activities/query' # Build request body body = query_scheduled_activities_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#read_collections(user_id = nil, collection_refs = nil) ⇒ Models::ReadCollectionsResponse
Read collections by their references. By default, users can only read their own collections.
610 611 612 613 614 615 616 617 618 619 620 621 622 623 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 610 def read_collections(user_id = nil, collection_refs = nil) path = '/api/v2/feeds/collections' # Build query parameters query_params = {} query_params['user_id'] = user_id unless user_id.nil? query_params['collection_refs'] = collection_refs unless collection_refs.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 = nil) ⇒ Models::RejectFeedMemberInviteResponse
Rejects a pending feed member request
1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1474 def reject_feed_member_invite(feed_group_id, feed_id, reject_feed_member_invite_request = nil) 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
2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2023 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 = nil, enrich_own_fields = nil) ⇒ Models::RestoreActivityResponse
Restores a soft-deleted, moderation-removed, or shadow-blocked activity by its ID. Deleted activities can be restored by the owner (client-side). Moderation-blocked activities can only be restored server-side.
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 469 def restore_activity(_id, restore_activity_request = nil, enrich_own_fields = nil) path = '/api/v2/feeds/activities/{id}/restore' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['enrich_own_fields'] = enrich_own_fields unless enrich_own_fields.nil? # Build request body body = restore_activity_request || {} # Make the API request @client.make_request( :post, path, query_params: query_params, body: body ) end |
#restore_comment(_id, restore_comment_request = nil) ⇒ Models::RestoreCommentResponse
Restores a soft-deleted, moderation-removed, or shadow-blocked comment by its ID. The comment and all its descendants are restored. Deleted comments can be restored client-side. Moderation-blocked comments can only be restored server-side.
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1090 def restore_comment(_id, restore_comment_request = nil) path = '/api/v2/feeds/comments/{id}/restore' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = restore_comment_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#restore_feed_group(feed_group_id) ⇒ Models::RestoreFeedGroupResponse
Restores a soft-deleted feed group by its ID. Only clears DeletedAt in the database; no other fields are updated.
1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1571 def restore_feed_group(feed_group_id) path = '/api/v2/feeds/feed_groups/{feed_group_id}/restore' # Replace path parameters path = path.gsub('{feed_group_id}', feed_group_id.to_s) # Make the API request @client.make_request( :post, path ) end |
#schedule_activity(schedule_activity_request) ⇒ Models::ScheduleActivityResponse
Schedule an activity to be published at a future time
2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2298 def schedule_activity(schedule_activity_request) path = '/api/v2/feeds/scheduled_activities' # Build request body body = schedule_activity_request # Make the API request @client.make_request( :post, path, body: body ) end |
#track_activity_metrics(track_activity_metrics_request) ⇒ Models::TrackActivityMetricsResponse
Track metric events (views, clicks, impressions) for activities. Supports batching up to 100 events per request. Each event is independently rate-limited per user per activity per metric. Server-side calls must include user_id.
87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 87 def track_activity_metrics(track_activity_metrics_request) path = '/api/v2/feeds/activities/metrics/track' # Build request body body = track_activity_metrics_request # Make the API request @client.make_request( :post, path, body: body ) end |
#translate_activity(_id, translate_activity_request) ⇒ Models::TranslateActivityResponse
Translates an activity's text to a given language using automated translationSends events:- feeds.activity.updated
493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 493 def translate_activity(_id, translate_activity_request) path = '/api/v2/feeds/activities/{id}/translate' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = translate_activity_request # Make the API request @client.make_request( :post, path, body: body ) end |
#translate_comment(_id, translate_comment_request) ⇒ Models::TranslateCommentResponse
Translates a comment's text to a given language using automated translationSends events:- feeds.comment.updated
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1110 def translate_comment(_id, translate_comment_request) path = '/api/v2/feeds/comments/{id}/translate' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = translate_comment_request # Make the API request @client.make_request( :post, path, body: body ) end |
#unfollow(source, target, delete_notification_activity = nil, keep_history = nil, enrich_own_fields = nil) ⇒ Models::UnfollowResponse
Removes a follow and broadcasts FollowRemovedEvent
2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2061 def unfollow(source, target, delete_notification_activity = nil, keep_history = nil, enrich_own_fields = 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? query_params['keep_history'] = keep_history unless keep_history.nil? query_params['enrich_own_fields'] = enrich_own_fields unless enrich_own_fields.nil? # Make the API request @client.make_request( :delete, path, query_params: query_params ) end |
#unfollow_batch(unfollow_batch_request) ⇒ Models::UnfollowBatchResponse
This endpoint is deprecated.
Removes multiple follows at once and broadcasts FollowRemovedEvent for each one. Deprecated: use GetOrCreateUnfollows (POST /api/v2/feeds/unfollow/batch/upsert).
2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2435 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, enrich_own_fields = nil, 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.
1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1319 def unpin_activity(feed_group_id, feed_id, activity_id, enrich_own_fields = nil, 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['enrich_own_fields'] = enrich_own_fields unless enrich_own_fields.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 |
#unpromote_topics(_id) ⇒ Models::UnpromoteTopicsResponse
Ends a promotion before it expires, also while for_you.trending is off. Clients watching a For You feed receive a feeds.promoted_topics.updated event. Returns 404 when the promotion is not active. Server-side only.
2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2184 def unpromote_topics(_id) path = '/api/v2/feeds/promoted_topics/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( :delete, path ) end |
#update_activities_partial_batch(update_activities_partial_batch_request) ⇒ Models::UpdateActivitiesPartialBatchResponse
Updates certain fields of multiple activities in a batch. Use 'set' to update specific fields and 'unset' to remove fields. Activities that fail due to not found, permission denied, or no changes detected are silently skipped and not included in the response. However, validation errors (e.g., updating reserved fields, invalid field values, exceeding size limits) will fail the entire batch request.Sends events:- feeds.activity.updated
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 53 def update_activities_partial_batch(update_activities_partial_batch_request) path = '/api/v2/feeds/activities/batch/partial' # Build request body body = update_activities_partial_batch_request # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_activity(_id, update_activity_request = nil) ⇒ 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. Changing feeds is a placement change (add/delete on those feeds), not an activity content update.Sends events:- feeds.activity.updated
448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 448 def update_activity(_id, update_activity_request = nil) 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 = nil) ⇒ 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. Changing feeds is a placement change (add/delete on those feeds), not an activity content update.Sends events:- feeds.activity.updated
428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 428 def update_activity_partial(_id, update_activity_partial_request = nil) 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 = nil) ⇒ Models::UpdateBookmarkResponse
Updates a bookmark for an activity
169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 169 def update_bookmark(activity_id, update_bookmark_request = nil) 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 = nil) ⇒ Models::UpdateBookmarkFolderResponse
Update a bookmark folder by its ID
546 547 548 549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 546 def update_bookmark_folder(folder_id, update_bookmark_folder_request = nil) 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.
629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 629 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 = nil) ⇒ Models::UpdateCommentResponse
Updates a comment on an object (e.g., activity) and broadcasts appropriate events
926 927 928 929 930 931 932 933 934 935 936 937 938 939 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 926 def update_comment(_id, update_comment_request = nil) 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_comment_bookmark(comment_id, update_comment_bookmark_request = nil) ⇒ Models::UpdateCommentBookmarkResponse
Updates a bookmark for a comment
838 839 840 841 842 843 844 845 846 847 848 849 850 851 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 838 def update_comment_bookmark(comment_id, update_comment_bookmark_request = nil) path = '/api/v2/feeds/comments/{comment_id}/bookmarks' # Replace path parameters path = path.gsub('{comment_id}', comment_id.to_s) # Build request body body = update_comment_bookmark_request || {} # Make the API request @client.make_request( :patch, path, body: body ) end |
#update_comment_partial(_id, update_comment_partial_request = nil) ⇒ Models::UpdateCommentPartialResponse
Updates certain fields of the comment. Use 'set' to update specific fields and 'unset' to remove fields.Sends events:- feeds.activity.updated- feeds.comment.updated
966 967 968 969 970 971 972 973 974 975 976 977 978 979 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 966 def update_comment_partial(_id, update_comment_partial_request = nil) path = '/api/v2/feeds/comments/{id}/partial' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_comment_partial_request || {} # Make the API request @client.make_request( :post, path, body: body ) end |
#update_feed(feed_group_id, feed_id, update_feed_request = nil) ⇒ Models::UpdateFeedResponse
Update an existing feed
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1273 def update_feed(feed_group_id, feed_id, update_feed_request = 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 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 = nil) ⇒ Models::UpdateFeedGroupResponse
Update a feed group by ID
1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1650 def update_feed_group(_id, update_feed_group_request = nil) 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
1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1408 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 = nil) ⇒ Models::UpdateFeedViewResponse
Update an existing custom feed view with new selectors, ranking, or aggregation options
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1752 def update_feed_view(_id, update_feed_view_request = nil) 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 = nil) ⇒ Models::UpdateFeedVisibilityResponse
Updates an existing predefined feed visibility configuration
1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1801 def update_feed_visibility(name, update_feed_visibility_request = nil) 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.
1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 1920 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 = nil) ⇒ Models::UpdateMembershipLevelResponse
Update a membership level with partial updates. Only specified fields will be updated.
2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2135 def update_membership_level(_id, update_membership_level_request = nil) 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 |
#update_scheduled_activity(_id, update_scheduled_activity_request = nil) ⇒ Models::UpdateScheduledActivityResponse
Change the activity or the publish time of a scheduled activity
2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2365 def update_scheduled_activity(_id, update_scheduled_activity_request = nil) path = '/api/v2/feeds/scheduled_activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build request body body = update_scheduled_activity_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.
663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 663 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 |
#upsert_user_interests(user_id, upsert_user_interests_request) ⇒ Models::UpsertUserInterestsResponse
Adds or updates interest tags on a user with explicit ranking weights. Tags set this way rank above the tags computed from the user's reactions at equal weight and are never overwritten by them. Client-side callers may only manage their own interests; server-side callers may manage any user. Returns the user's full interest list after the write.
2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 |
# File 'lib/getstream_ruby/generated/feeds_client.rb', line 2565 def upsert_user_interests(user_id, upsert_user_interests_request) path = '/api/v2/feeds/users/{user_id}/interests' # Replace path parameters path = path.gsub('{user_id}', user_id.to_s) # Build request body body = upsert_user_interests_request # Make the API request @client.make_request( :put, path, body: body ) end |