Sha256: 53d652d3fb319f9be674f7a40890ecca9effbad984849176fb8c67142f159a35
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
require 'rest-core' RestCore::Twitter.new.statuses('godfat') # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-core-0.2.2 | example/twitter.rb |
rest-core-0.2.1 | example/twitter.rb |