Sha256: 1876cf5621f59a874671d1d6dbdd1987a72fd97625746f00ede38b6c91f55b4f

Contents?: true

Size: 484 Bytes

Versions: 6

Compression:

Stored size: 484 Bytes

Contents

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

class Status
  extend Weary
  
  on_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", :count => 1).parse
puts "@" + recent_toot[0]["user"]["screen_name"] + ": " + "\"#{recent_toot[0]['text']}\""

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mwunsch-weary-0.2.0 examples/status.rb
mwunsch-weary-0.2.1 examples/status.rb
mwunsch-weary-0.2.3 examples/status.rb
weary-0.2.0 examples/status.rb
weary-0.2.3 examples/status.rb
weary-0.2.1 examples/status.rb