Sha256: be3d6feed5357ed714858ae63babbfd60fdc939ea62ba24fa8a1d68e53339698
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
module Whatser class Twitter < Whatser::Service @key = 'twitter' def get_friends(opts={}) api_request :get, "/oauth/services/twitter/friends", {:query => opts}, :model => Whatser::User end def status_update(status, params={}) api_request :post, "/oauth/services/twitter/publish", {:body => {'status' => status}.merge(params) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whatser-0.3.1 | lib/whatser/api/twitter.rb |
whatser-0.3.0 | lib/whatser/api/twitter.rb |
whatser-0.2.0 | lib/whatser/api/twitter.rb |