Module: Twitter::API::SuggestedUsers
Constant Summary
Constant Summary
Constants included from Utils
Instance Method Summary (collapse)
-
- (Array<Twitter::User>) suggest_users(slug, options = {})
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.
- - (Array<Twitter::Suggestion>) suggestions(*args)
Instance Method Details
- (Array<Twitter::User>) suggest_users(slug, options = {})
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 |
- (Array<Twitter::Suggestion>) suggestions(options = {}) - (Array<Twitter::Suggestion>) suggestions(slug, options = {})
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 |