lib/twitter/rest/users.rb
# Returns true if the specified user exists
#
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Boolean] true if the user exists, otherwise false.
# @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, URI, or object.
Returns true if the specified user exists
Returns true if the specified user exists
def user?(user, options = {})
        options = options.dup
        merge_user!(options, user)
        perform_get('/1.1/users/show.json', options)
        true
      rescue Twitter::Error::NotFound
        false
      end
def user? ( user , options = { } ) options = options . dup merge_user! ( options , user ) perform_get ( '/1.1/users/show.json' , options ) true rescue Twitter :: Error :: NotFound false end
Returns true if the specified user exists
Returns true if the specified user exists
true if the user exists, otherwise false.
true if the user exists otherwise false .
Boolean
[Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
[ Twitter :: Error :: Unauthorized ] Error raised when supplied user credentials are not valid .
user
A Twitter user ID, screen name, URI, or object.
A Twitter user ID screen name URI or object .
options
<not_specific>
rate_limited
None
authentication
Requires user context
Requires user context