lib/twitter/rest/friends_and_followers.rb
# Allows the authenticating user to follow the specified users
#
# @see https://dev.twitter.com/rest/reference/post/friendships/create
# @rate_limited No
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Array<Twitter::User>] The followed users.
# @overload follow!(*users)
#   @param users [Enumerable<Integer, String, Twitter::User>] A collection of Twitter user IDs, screen names, or objects.
# @overload follow!(*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.
#   @option options [Boolean] :follow (false) Enable notifications for the target user.
Allows the authenticating user to follow the specified users
Allows the authenticating user to follow the specified users
def follow!(*args)
        arguments = Twitter::Arguments.new(args)
        pmap(arguments) do |user|
          perform_post_with_object('/1.1/friendships/create.json', merge_user(arguments.options, user), Twitter::User)
        end.compact
      end
def follow! ( * args ) arguments = Twitter :: Arguments . new ( args ) pmap ( arguments ) do | user | perform_post_with_object ( '/1.1/friendships/create.json' , merge_user ( arguments . options , user ) , Twitter :: User ) end . compact end
Allows the authenticating user to follow the specified users
Allows the authenticating user to follow the specified users
The followed users.
The followed 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
Requires user context
Requires user context
overload
follow!(*users) @param users [Enumerable] A collection of Twitter user IDs, screen names, or objects.
follow! ( * users ) @param users [ Enumerable ] A collection of Twitter user IDs screen names or objects .
overload
follow!(*users, options) @param users [Enumerable] A collection of Twitter user IDs, screen names, or objects. @param options [Hash] A customizable set of options. @option options [Boolean] :follow (false) Enable notifications for the target user.
follow! ( * users options ) @param users [ Enumerable ] A collection of Twitter user IDs screen names or objects . @param options [ Hash ] A customizable set of options . @option options [ Boolean ] : follow ( false ) Enable notifications for the target user .