Sha256: f8f0d9e319c3c24700991396c78f5b88dbfb12858e2a600e60900ad23f17e4b4

Contents?: true

Size: 354 Bytes

Versions: 32

Compression:

Stored size: 354 Bytes

Contents

require 'rubygems'
require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
config = YAML::load(open(ENV['HOME'] + '/.twitter'))

twitter = Twitter::Base.new(config['email'], config['password'])
puts twitter.post("This is a test from the example file").inspect

# sending a direct message
# puts twitter.d('jnunemaker', 'this is a test').inspect

Version data entries

32 entries across 32 versions & 15 rubygems

Version Path
jnunemaker-twitter-0.3.8 examples/posting.rb
jnunemaker-twitter-0.4.0 examples/posting.rb
jnunemaker-twitter-0.4.1 examples/posting.rb
jnunemaker-twitter-0.4.2 examples/posting.rb
jnunemaker-twitter-0.4.4 examples/posting.rb
lazyatom-twitter-0.4.2.1 examples/posting.rb
netshade-twitter-0.4.2.1 examples/posting.rb
neufelry-twitter-0.4.2 examples/posting.rb
pjdavis-twitter-0.3.8 examples/posting.rb
pjdavis-twitter-0.3.9 examples/posting.rb
pjdavis-twitter-0.4.2 examples/posting.rb
ubermajestix-twitter-0.4.2 examples/posting.rb