lib/twitter/rest/tweets.rb
# Untweets a retweeted status as the authenticating user
#
# @see https://dev.twitter.com/rest/reference/post/statuses/unretweet/:id
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Array<Twitter::Tweet>] The original tweets with retweet details embedded.
# @overload unretweet(*tweets)
#   @param tweets [Enumerable<Integer, String, URI, Twitter::Tweet>] A collection of Tweet IDs, URIs, or objects.
# @overload unretweet(*tweets, options)
#   @param tweets [Enumerable<Integer, String, URI, Twitter::Tweet>] A collection of Tweet IDs, URIs, or objects.
#   @param options [Hash] A customizable set of options.
#   @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1.
Untweets a retweeted status as the authenticating user
Untweets a retweeted status as the authenticating user
def unretweet(*args)
        arguments = Twitter::Arguments.new(args)
        pmap(arguments) do |tweet|
          begin
            post_unretweet(extract_id(tweet), arguments.options)
          rescue Twitter::Error::NotFound
            next
          end
        end.compact
      end
def unretweet ( * args ) arguments = Twitter :: Arguments . new ( args ) pmap ( arguments ) do | tweet | begin post_unretweet ( extract_id ( tweet ) , arguments . options ) rescue Twitter :: Error :: NotFound next end end . compact end
Untweets a retweeted status as the authenticating user
Untweets a retweeted status as the authenticating user
The original tweets with retweet details embedded.
The original tweets with retweet details embedded .
Array<Twitter::Tweet>
[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
rate_limited
None
authentication
Requires user context
Requires user context
overload
unretweet(*tweets) @param tweets [Enumerable] A collection of Tweet IDs, URIs, or objects.
unretweet ( * tweets ) @param tweets [ Enumerable ] A collection of Tweet IDs URIs or objects .
overload
unretweet(*tweets, options) @param tweets [Enumerable] A collection of Tweet IDs, URIs, or objects. @param options [Hash] A customizable set of options. @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1.
unretweet ( * tweets options ) @param tweets [ Enumerable ] A collection of Tweet IDs URIs or objects . @param options [ Hash ] A customizable set of options . @option options [ Boolean String Integer ] : trim_user Each tweet returned in a timeline will include a user object with only the author ' s numerical ID when set to true ' t ' or 1 .