Sha256: 9b4587b6d9e13a51dfe6b2739c18ea9995fb08b9bb5e6635e8d679dccf2a8d7b

Contents?: true

Size: 628 Bytes

Versions: 17

Compression:

Stored size: 628 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'rubytter'
require 'time'

if ARGV.size < 3
  puts "Usage: ruby #{File.basename(__FILE__)} user_id password id"
  exit
end

client = Rubytter.new(ARGV[0], ARGV[1])
user = client.user(ARGV[2])

puts <<EOS
            id: #{user.id}
          name: #{user.name}
   screen_name: #{user.screen_name}
           url: #{user.url}
   description: #{user.description}
     followers: #{user.followers_count}
    followings: #{user.friends_count}
     time_zone: #{user.time_zone}
      location: #{user.location}
    created_at: #{Time.parse(user.created_at).strftime('%Y/%m/%d %X')}
EOS

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
jugyo-rubytter-0.4.0 examples/user.rb
jugyo-rubytter-0.4.1 examples/user.rb
jugyo-rubytter-0.4.2 examples/user.rb
jugyo-rubytter-0.4.3 examples/user.rb
jugyo-rubytter-0.4.4 examples/user.rb
jugyo-rubytter-0.4.5 examples/user.rb
jugyo-rubytter-0.4.6 examples/user.rb
jugyo-rubytter-0.4.7 examples/user.rb
rubytter-0.4.2 examples/user.rb
rubytter-0.4.1 examples/user.rb
rubytter-0.4.3 examples/user.rb
rubytter-0.4.0 examples/user.rb
rubytter-0.4.4 examples/user.rb
rubytter-0.4.8 examples/user.rb
rubytter-0.4.5 examples/user.rb
rubytter-0.4.6 examples/user.rb
rubytter-0.4.7 examples/user.rb