Class: Whatser::Twitter

Inherits:
Service show all
Defined in:
lib/whatser/api/twitter.rb

Instance Attribute Summary

Attributes inherited from Resource

#json

Class Method Summary collapse

Methods inherited from Service

auth_params, connection_querystring, connection_url, #connection_url, disconnection_url, #disconnection_url, key, #key

Methods inherited from Resource

#api_request, api_request, client, convert_data_to_model, from_hash_to_model, #initialize, set

Constructor Details

This class inherits a constructor from Whatser::Resource

Class Method Details

.get_friends(opts = {}) ⇒ Object



6
7
8
# File 'lib/whatser/api/twitter.rb', line 6

def get_friends(opts={})
  api_request :get, "/oauth/services/twitter/friends", {:query => opts}, :model => Whatser::User
end

.status_update(status, params = {}) ⇒ Object



10
11
12
# File 'lib/whatser/api/twitter.rb', line 10

def status_update(status, params={})
  api_request :post, "/oauth/services/twitter/publish", {:body => {'status' => status}.merge(params) }
end