lib/whatser/resources/user.rb in whatser-0.2.0 vs lib/whatser/resources/user.rb in whatser-0.3.0

- old
+ new

@@ -30,11 +30,11 @@ def create(params={}) api_request :post, "/api/users", {:body => {'user' => params} }, :auth => :key end def invite(emails) - api_request :post, "/api/invites", {:query => emails} + api_request :post, "/api/invites", {:query => {'emails' => emails} } end end def save if id.blank? @@ -43,11 +43,15 @@ api_request :put, "/api/users/me", {:body => {'user' => to_params} } end end def connection - Whatser::Follow.connection(id) + Whatser::Follow.set(self.class.client).connection(id) end + + def thanks(poi_id,params={}) + api_request :post, "/api/users/#{id}/poi/#{poi_id}/thanks", {:query => params} + end def oauth_token if access_tokens.blank? nil elsif access_tokens.is_a?(Array) \ No newline at end of file