lib/whatser/api/twitter.rb in whatser-0.3.1 vs lib/whatser/api/twitter.rb in whatser-0.3.2
- old
+ new
@@ -1,13 +1,15 @@
module Whatser
class Twitter < Whatser::Service
@key = 'twitter'
+
+ class << self
+ def get_friends(opts={})
+ api_request :get, "/oauth/services/twitter/friends", {:query => opts}, :model => Whatser::User
+ end
- def get_friends(opts={})
- api_request :get, "/oauth/services/twitter/friends", {:query => opts}, :model => Whatser::User
+ def status_update(status, params={})
+ api_request :post, "/oauth/services/twitter/publish", {:body => {'status' => status}.merge(params) }
+ end
end
-
- def status_update(status, params={})
- api_request :post, "/oauth/services/twitter/publish", {:body => {'status' => status}.merge(params) }
- end
end
end
\ No newline at end of file