Skip to content
Browse files

add user_lookup method

  • Loading branch information...
1 parent 19c375b commit 572e7974e6e652a4d3f00af5f8bab212308defce @maxjustus committed Oct 28, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/twitter_oauth/user.rb
View
5 lib/twitter_oauth/user.rb
@@ -41,6 +41,11 @@ def all_friend_ids(username = false)
end
ids
end
+
+ def user_lookup(users, type = 'id')
+ arg_name = type == 'id' ? 'user_id' : 'screen_name'
+ return get("/users/lookup.json?#{arg_name}=#{users.join(',')}")
+ end
# Returns the 100 last followers
def followers(page=1)

0 comments on commit 572e797

Please sign in to comment.
Something went wrong with that request. Please try again.