Sha256: dd1a1983bac6c920d50697bcf2c0acfa3c2fa73573d8e7715d03569589f0b2da

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

module TwitterFriendly
  module REST
    module Tweets

      MAX_IDS_PER_REQUEST = 100

      # @return [Hash]
      #
      # @overload retweeters_ids(tweet, options = {})
      #
      # @param user [Integer, String] A Twitter user ID or screen name.
      #
      # @option options [Integer] :count The number of tweets to return per page, up to a maximum of 5000.
      def retweeters_ids(*args)
        # このメソッドではページングができない
        options = {count: MAX_IDS_PER_REQUEST}.merge(args.extract_options!)
        push_operations(options, __method__)
        fetch_resources_with_cursor(__method__, args[0], options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_friendly-0.3.0 lib/twitter_friendly/rest/tweets.rb