module Twitter::REST::SavedSearches

Public Instance Methods

saved_searches(*args) click to toggle source

@rate_limited Yes @authentication Requires user context @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. @return [Array<Twitter::SavedSearch>] The saved searches. @overload saved_search(options = {})

Returns the authenticated user's saved search queries

@see https://dev.twitter.com/rest/reference/get/saved_searches/list
@param options [Hash] A customizable set of options.

@overload saved_search(*ids)

Retrieve the data for saved searches owned by the authenticating user

@see https://dev.twitter.com/rest/reference/get/saved_searches/show/:id
@param ids [Enumerable<Integer>] A collection of saved search IDs.

@overload saved_search(*ids, options)

Retrieve the data for saved searches owned by the authenticating user

@see https://dev.twitter.com/rest/reference/get/saved_searches/show/:id
@param ids [Enumerable<Integer>] A collection of saved search IDs.
@param options [Hash] A customizable set of options.
# File lib/twitter/rest/saved_searches.rb, line 32
def saved_searches(*args)
  arguments = Twitter::Arguments.new(args)
  if arguments.empty?
    perform_get_with_objects('/1.1/saved_searches/list.json', arguments.options, Twitter::SavedSearch)
  else
    pmap(arguments) do |id|
      saved_search(id, arguments.options)
    end
  end
end