debian7/elk/logstash/vendor/bundle/jruby/1.9/gems/twitter-5.12.0/lib/twitter/rest/tweets.rb
# Retweets the specified Tweets as the authenticating user
#
# @see https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/: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 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
Retweets the specified Tweets as the authenticating user
def retweet(*args)
        arguments = Twitter::Arguments.new(args)
        pmap(arguments) do |tweet|
          begin
            post_retweet(extract_id(tweet), arguments.options)
          rescue Twitter::Error::AlreadyRetweeted, Twitter::Error::NotFound
            next
          end
        end.compact
      end
def retweet ( * args ) arguments = Twitter :: Arguments . new ( args ) pmap ( arguments ) do | tweet | begin post_retweet ( extract_id ( tweet ) , arguments . options ) rescue Twitter :: Error :: AlreadyRetweeted , Twitter :: Error :: NotFound next end end . compact end
Retweets the specified Tweets as the authenticating user
Retweets the specified Tweets 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
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 .