Module: TwitterFriendly::REST::Tweets

Included in:
API
Defined in:
lib/twitter_friendly/rest/tweets.rb

Constant Summary collapse

MAX_IDS_PER_REQUEST =
100

Instance Method Summary collapse

Instance Method Details

#retweeters_ids(tweet, options = {}) ⇒ Hash

Parameters:

  • user (Integer, String)

    A Twitter user ID or screen name.

  • options (Hash)

    a customizable set of options

Returns:

  • (Hash)


14
15
16
17
18
19
# File 'lib/twitter_friendly/rest/tweets.rb', line 14

def retweeters_ids(*args)
  # このメソッドではページングができない
  options = {count: MAX_IDS_PER_REQUEST}.merge(args.extract_options!)
  args << options
  @twitter.retweeters_ids(*args)
end