lib/twitter/rest/users.rb
# Returns the available size variations of the specified user's profile banner.
#
# @see https://dev.twitter.com/rest/reference/get/users/profile_banner
# @note If the user has not uploaded a profile banner, a HTTP 404 will be served instead.
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Twitter::ProfileBanner]
# @overload profile_banner(options = {})
# @overload profile_banner(user, options = {})
#   @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, URI, or object.
Returns the available size variations of the specified user's profile banner.
Returns the available size variations of the specified user ' s profile banner .
def profile_banner(*args)
        arguments = Twitter::Arguments.new(args)
        merge_user!(arguments.options, arguments.pop || user_id) unless arguments.options[:user_id] || arguments.options[:screen_name]
        perform_get_with_object('/1.1/users/profile_banner.json', arguments.options, Twitter::ProfileBanner)
      end
def profile_banner ( * args ) arguments = Twitter :: Arguments . new ( args ) merge_user! ( arguments . options , arguments . pop || user_id ) unless arguments . options [ :user_id ] || arguments . options [ :screen_name ] perform_get_with_object ( '/1.1/users/profile_banner.json' , arguments . options , Twitter :: ProfileBanner ) end
Returns the available size variations of the specified user's profile banner.
Returns the available size variations of the specified user ' s profile banner .
None
Twitter::ProfileBanner
[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
note
If the user has not uploaded a profile banner, a HTTP 404 will be served instead.
If the user has not uploaded a profile banner a HTTP 404 will be served instead .
rate_limited
None
authentication
Requires user context
Requires user context
overload
profile_banner(options = {})
profile_banner ( options = {} )
overload
profile_banner(user, options = {}) @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, URI, or object.
profile_banner ( user options = {} ) @param user [ Integer String Twitter :: User ] A Twitter user ID screen name URI or object .