lib/ayadn/endpoints.rb in ayadn-1.4.6 vs lib/ayadn/endpoints.rb in ayadn-1.5.0

- old
+ new

@@ -193,11 +193,15 @@ def search_channels words, options @options_list = API.build_query({count: Settings.options[:counts][:search]}) "#{@channels_url}search?q=#{words}&order=popularity&access_token=#{Settings.user_token}#{@options_list}" end - def user(username) + def user(username) # accepts a string "#{@users_url}#{username}?access_token=#{Settings.user_token}&include_user_annotations=1" + end + + def users(usernames) # accepts an array + "#{@users_url}?ids=#{usernames.join(',')}?access_token=#{Settings.user_token}&include_user_annotations=1" end def single_post(post_id, options) "#{@posts_url}#{post_id}?access_token=#{Settings.user_token}#{API.build_query(options)}" end