Sha256: d09e9af8ac14d24d128a5ef514cc597236214ea95a955edbad9c46abbbb756da

Contents?: true

Size: 459 Bytes

Versions: 5

Compression:

Stored size: 459 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'lib', 'weary')

class Status
  extend Weary
  
  domain "http://twitter.com/statuses/"
  
  get "user_timeline" do |resource|
    resource.requires = [:id]
    resource.with = [:user_id, :screen_name, :since_id, :max_id, :count, :page]
  end
  
end

toots = Status.new
recent_toot = toots.user_timeline(:id => "markwunsch")[0]
puts "@" + recent_toot["user"]["screen_name"] + ": " + "\"#{recent_toot['text']}\""

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mwunsch-weary-0.4.3 examples/status.rb
mwunsch-weary-0.5.0 examples/status.rb
weary-0.5.1 examples/status.rb
weary-0.4.3 examples/status.rb
weary-0.5.0 examples/status.rb