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