Module: Twitter::REST::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>
Methods included from Utils
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
43 44 45 |
# File 'lib/twitter/rest/suggested_users.rb', line 43 def suggest_users(slug, = {}) perform_get_with_objects("/1.1/users/suggestions/#{slug}/members.json", , Twitter::User) end |
#suggestions(options = {}) ⇒ Array<Twitter::Suggestion> #suggestions(slug, options = {}) ⇒ Array<Twitter::Suggestion>
26 27 28 29 30 31 32 33 |
# File 'lib/twitter/rest/suggested_users.rb', line 26 def suggestions(*args) arguments = Twitter::Arguments.new(args) if arguments.last perform_get_with_object("/1.1/users/suggestions/#{arguments.pop}.json", arguments., Twitter::Suggestion) else perform_get_with_objects("/1.1/users/suggestions.json", arguments., Twitter::Suggestion) end end |