:rtype: :class:`Friendship` object
+.. method:: API.lookup_friendships([user_ids], [screen_names])
+
+ Returns the relationships of the authenticated user to the list of up to
+ 100 screen_names or user_ids provided.
+
+ :param user_ids: A list of user IDs, up to 100 are allowed in a single
+ request.
+ :param screen_names: A list of screen names, up to 100 are allowed in a
+ single request.
+ :rtype: :class:`Relationship` object
+
+
.. method:: API.friends_ids(id/screen_name/user_id, [cursor])
Returns an array containing the IDs of users being followed by the specified
if k == 'connections':
setattr(result, 'is_following', 'following' in v)
setattr(result, 'is_followed_by', 'followed_by' in v)
+ setattr(result, 'is_muted', 'muting' in v)
+ setattr(result, 'is_blocked', 'blocking' in v)
+ setattr(result, 'is_following_requested', 'following_requested' in v)
+ setattr(result, 'no_relationship', 'none' in v)
else:
setattr(result, k, v)
return result