Sha256: c8b2c8aafc5c179d368ebb94f15cf85758b0c73d81051b7837c81d438317af94
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
module Stream module Batch # # Follows many feeds in one single request # # @param [Array<Hash<:source, :target>>] follows the list of follows # # @return [nil] # # @example # # # follows = [ # {:source => 'flat:1', :target => 'user:1'}, # {:source => 'flat:1', :target => 'user:3'} # ] # @client.follow_many(follows) # def follow_many(follows, activity_copy_limit=nil) query_params = {} unless activity_copy_limit.nil? query_params['activity_copy_limit'] = activity_copy_limit end make_signed_request(:post, "/follow_many/", query_params, follows) end # # Adds an activity to many feeds in one single request # # @param [Hash] activity_data the activity do add # @param [Array<string>] feeds list of feeds (eg. 'user:1', 'flat:2') # # @return [nil] # def add_to_many(activity_data, feeds) data = { :feeds => feeds, :activity => activity_data } make_signed_request(:post, "/feed/add_to_many/", {}, data) end end end
Version data entries
6 entries across 6 versions & 1 rubygems