lib/twitter/rest/users.rb
# Returns extended information for up to 100 users
#
# @see https://dev.twitter.com/rest/reference/get/users/lookup
# @rate_limited Yes
# @authentication Required
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Array<Twitter::User>] The requested users.
# @overload users(*users)
#   @param users [Enumerable<Integer, String, Twitter::User>] A collection of Twitter user IDs, screen names, or objects.
# @overload users(*users, options)
#   @param users [Enumerable<Integer, String, Twitter::User>] A collection of Twitter user IDs, screen names, or objects.
#   @param options [Hash] A customizable set of options.
Returns extended information for up to 100 users
Returns extended information for up to 100 users
def users(*args)
        arguments = Twitter::Arguments.new(args)
        flat_pmap(arguments.each_slice(MAX_USERS_PER_REQUEST)) do |users|
          perform_get_with_objects('/1.1/users/lookup.json', merge_users(arguments.options, users), Twitter::User)
        end
      end
def users ( * args ) arguments = Twitter :: Arguments . new ( args ) flat_pmap ( arguments . each_slice ( MAX_USERS_PER_REQUEST ) ) do | users | perform_get_with_objects ( '/1.1/users/lookup.json' , merge_users ( arguments . options , users ) , Twitter :: User ) end end
Returns extended information for up to 100 users
Returns extended information for up to 100 users
The requested users.
The requested users .
Array<Twitter::User>
[Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
[ Twitter :: Error :: Unauthorized ] Error raised when supplied user credentials are not valid .
args
<not_specific>
see
None
rate_limited
None
authentication
None
overload
users(*users) @param users [Enumerable] A collection of Twitter user IDs, screen names, or objects.
users ( * users ) @param users [ Enumerable ] A collection of Twitter user IDs screen names or objects .
overload
users(*users, options) @param users [Enumerable] A collection of Twitter user IDs, screen names, or objects. @param options [Hash] A customizable set of options.
users ( * users options ) @param users [ Enumerable ] A collection of Twitter user IDs screen names or objects . @param options [ Hash ] A customizable set of options .