Sha256: bca975d73a3af0cc51adf7cec75a337d22aced91b0a8df34053655950f53b9b7

Contents?: true

Size: 516 Bytes

Versions: 17

Compression:

Stored size: 516 Bytes

Contents

#!/usr/bin/env ruby

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

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

client = Rubytter.new(ARGV[0], ARGV[1])
limit_status = client.limit_status
puts <<EOS
 reset_time_in_seconds: #{limit_status.reset_time_in_seconds}
        remaining_hits: #{limit_status.remaining_hits}
          hourly_limit: #{limit_status.hourly_limit}
            reset_time: #{Time.parse(limit_status.reset_time).strftime('%Y/%m/%d %X')}
EOS

Version data entries

17 entries across 17 versions & 2 rubygems

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