lib/twitter/rest/friends_and_followers.rb
# Returns detailed information about the relationship between two users
#
# @see https://dev.twitter.com/rest/reference/get/friendships/show
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Twitter::Relationship]
# @param source [Integer, String, Twitter::User] The Twitter user ID, screen name, or object of the source user.
# @param target [Integer, String, Twitter::User] The Twitter user ID, screen name, or object of the target user.
# @param options [Hash] A customizable set of options.
Returns detailed information about the relationship between two users
Returns detailed information about the relationship between two users
def friendship(source, target, options = {})
        options = options.dup
        merge_user!(options, source, 'source')
        options[:source_id] = options.delete(:source_user_id) unless options[:source_user_id].nil?
        merge_user!(options, target, 'target')
        options[:target_id] = options.delete(:target_user_id) unless options[:target_user_id].nil?
        perform_get_with_object('/1.1/friendships/show.json', options, Twitter::Relationship)
      end
def friendship ( source , target , options = { } ) options = options . dup merge_user! ( options , source , 'source' ) options [ :source_id ] = options . delete ( :source_user_id ) unless options [ :source_user_id ] . nil? merge_user! ( options , target , 'target' ) options [ :target_id ] = options . delete ( :target_user_id ) unless options [ :target_user_id ] . nil? perform_get_with_object ( '/1.1/friendships/show.json' , options , Twitter :: Relationship ) end
Returns detailed information about the relationship between two users
Returns detailed information about the relationship between two users
None
Twitter::Relationship
[Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
[ Twitter :: Error :: Unauthorized ] Error raised when supplied user credentials are not valid .
source
The Twitter user ID, screen name, or object of the source user.
The Twitter user ID screen name or object of the source user .
target
The Twitter user ID, screen name, or object of the target user.
The Twitter user ID screen name or object of the target user .
options
A customizable set of options.
A customizable set of options .
see
None
rate_limited
None
authentication
Requires user context
Requires user context