Sha256: b178233f769f13de5bcc923c9ae63d19b30d14cc62bfd8f7f71a19c276262e9d

Contents?: true

Size: 441 Bytes

Versions: 14

Compression:

Stored size: 441 Bytes

Contents

require 'rest-core'
RestCore::Twitter.new.statuses('_cardinalblue') # get user tweets

twitter = RestCore::Twitter.new(:consumer_key    => '...',
                                :consumer_secret => '...')
twitter.authorize_url!   # copy and paste the URL in browser to authorize
twitter.authorize!('..') # paste your code from browser
p twitter.tweet('hi!')   # tweet for the current user

p twitter.tweet('hi with pic!', File.open('...'))

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rest-core-0.8.2 example/twitter.rb
rest-core-0.8.1 example/twitter.rb
rest-core-0.8.0 example/twitter.rb
rest-core-0.7.2 example/twitter.rb
rest-core-0.7.0 example/twitter.rb
rest-core-0.4.0 example/twitter.rb
rest-core-0.4.0.pre.2 example/twitter.rb
rest-core-0.4.0.pre.1 example/twitter.rb
rest-core-0.4.0.pre.0 example/twitter.rb
rest-core-0.3.0 example/twitter.rb
rest-core-0.3.0.pre.2 example/twitter.rb
rest-core-0.3.0.pre.1 example/twitter.rb
rest-core-0.3.0.pre.0 example/twitter.rb
rest-core-0.2.3 example/twitter.rb