Module: Twitter::API::SuggestedUsers
Constant Summary
Constants included from Utils
Instance Method Summary collapse
-
#suggest_users(slug, options = {}) ⇒ Array<Twitter::User>
Access the users in a given category of the Twitter suggested user list and return their most recent Tweet if they are not a protected user.
- #suggestions(*args) ⇒ Array<Twitter::Suggestion>
Instance Method Details
#suggest_users(slug, options = {}) ⇒ Array<Twitter::User>
Access the users in a given category of the Twitter suggested user list and return their most recent Tweet if they are not a protected user
49 50 51 |
# File 'lib/twitter/api/suggested_users.rb', line 49 def suggest_users(slug, ={}) objects_from_response(Twitter::User, :get, "/1.1/users/suggestions/#{slug}/members.json", ) end |
#suggestions(options = {}) ⇒ Array<Twitter::Suggestion> #suggestions(slug, options = {}) ⇒ Array<Twitter::Suggestion>
30 31 32 33 34 35 36 37 |
# File 'lib/twitter/api/suggested_users.rb', line 30 def suggestions(*args) arguments = Twitter::API::Arguments.new(args) if slug = arguments.pop object_from_response(Twitter::Suggestion, :get, "/1.1/users/suggestions/#{slug}.json", arguments.) else objects_from_response(Twitter::Suggestion, :get, "/1.1/users/suggestions.json", arguments.) end end |