module Twitter::AuthenticatedUserMixin::InstanceMethods
Public Instance Methods
befriend(user)
click to toggle source
Adds given user as a friend. Returns user object as given by
Twitter
REST server response.
For user
argument you may pass in the unique integer user ID,
screen name or Twitter::User object
representation.
# File lib/twitter/model.rb, line 143 def befriend(user) @client.friend(:add, user) end
defriend(user)
click to toggle source
Removes given user as a friend. Returns user object as given by
Twitter
REST server response.
For user
argument you may pass in the unique integer user ID,
screen name or Twitter::User object
representation.
# File lib/twitter/model.rb, line 152 def defriend(user) @client.friend(:remove, user) end
followers(options = {})
click to toggle source
Returns an Array of user objects that represents the authenticated user's friends on Twitter.
# File lib/twitter/model.rb, line 134 def followers(options = {}) @client.my(:followers, options) end