lib/twitter/rest/saved_searches.rb
# Destroys saved searches for the authenticated user
#
# @see https://dev.twitter.com/rest/reference/post/saved_searches/destroy/:id
# @note The search specified by ID must be owned by the authenticating user.
# @rate_limited No
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Array<Twitter::SavedSearch>] The deleted saved searches.
# @overload destroy_saved_search(*ids)
#   @param ids [Enumerable<Integer>] A collection of saved search IDs.
# @overload destroy_saved_search(*ids, options)
#   @param ids [Enumerable<Integer>] A collection of saved search IDs.
#   @param options [Hash] A customizable set of options.
Destroys saved searches for the authenticated user
Destroys saved searches for the authenticated user
def destroy_saved_search(*args)
        arguments = Twitter::Arguments.new(args)
        pmap(arguments) do |id|
          perform_post_with_object("/1.1/saved_searches/destroy/#{id}.json", arguments.options, Twitter::SavedSearch)
        end
      end
def destroy_saved_search ( * args ) arguments = Twitter :: Arguments . new ( args ) pmap ( arguments ) do | id | perform_post_with_object ( "/1.1/saved_searches/destroy/#{id}.json" , arguments . options , Twitter :: SavedSearch ) end end
Destroys saved searches for the authenticated user
Destroys saved searches for the authenticated user
The deleted saved searches.
The deleted saved searches .
Array<Twitter::SavedSearch>
[Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
[ Twitter :: Error :: Unauthorized ] Error raised when supplied user credentials are not valid .
args
<not_specific>
see
None
note
The search specified by ID must be owned by the authenticating user.
The search specified by ID must be owned by the authenticating user .
rate_limited
None
authentication
Requires user context
Requires user context
overload
destroy_saved_search(*ids) @param ids [Enumerable] A collection of saved search IDs.
destroy_saved_search ( * ids ) @param ids [ Enumerable ] A collection of saved search IDs .
overload
destroy_saved_search(*ids, options) @param ids [Enumerable] A collection of saved search IDs. @param options [Hash] A customizable set of options.
destroy_saved_search ( * ids options ) @param ids [ Enumerable ] A collection of saved search IDs . @param options [ Hash ] A customizable set of options .