Module Twitter::REST::Media
In: lib/twitter/rest/media.rb

Methods

upload  

Public Instance methods

Uploads media to attach to a tweet

@see dev.twitter.com/rest/public/uploading-media-multiple-photos @rate_limited No @authentication Requires user context @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. @raise [Twitter::Error::UnacceptableIO] Error when the IO object for the media argument does not have a to_io method. @return [Integer] The uploaded media ID. @param media [File, Hash] A File object with your picture (PNG, JPEG or GIF) @param options [Hash] A customizable set of options.

[Validate]