lib/twitter/rest/tweets.rb
# Retweets the specified Tweets as the authenticating user and raises an error if one has already been retweeted
#
# @see https://dev.twitter.com/rest/reference/post/statuses/retweet/:id
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::AlreadyRetweeted] Error raised when tweet has already been retweeted.
# @raise [Twitter::Error::NotFound] Error raised when tweet does not exist or has been deleted.
# @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 retweet!(*tweets)
#   @param tweets [Enumerable<Integer, String, URI, Twitter::Tweet>] A collection of Tweet IDs, URIs, or objects.
# @overload retweet!(*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.
Retweets the specified Tweets as the authenticating user and raises an error if one has already been retweeted
Retweets the specified Tweets as the authenticating user and raises an error if one has already been retweeted
def retweet!(*args)
        arguments = Twitter::Arguments.new(args)
        pmap(arguments) do |tweet|
          post_retweet(extract_id(tweet), arguments.options)
        end.compact
      end
def retweet! ( * args ) arguments = Twitter :: Arguments . new ( args ) pmap ( arguments ) do | tweet | post_retweet ( extract_id ( tweet ) , arguments . options ) end . compact end
Retweets the specified Tweets as the authenticating user and raises an error if one has already been retweeted
Retweets the specified Tweets as the authenticating user and raises an error if one has already been retweeted
The original tweets with retweet details embedded.
The original tweets with retweet details embedded .
Array<Twitter::Tweet>
[Twitter::Error::AlreadyRetweeted] Error raised when tweet has already been retweeted.
[ Twitter :: Error :: AlreadyRetweeted ] Error raised when tweet has already been retweeted .
[Twitter::Error::NotFound] Error raised when tweet does not exist or has been deleted.
[ Twitter :: Error :: NotFound ] Error raised when tweet does not exist or has been deleted .
[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
retweet!(*tweets) @param tweets [Enumerable] A collection of Tweet IDs, URIs, or objects.
retweet! ( * tweets ) @param tweets [ Enumerable ] A collection of Tweet IDs URIs or objects .
overload
retweet!(*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.
retweet! ( * 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 .