module Podio
  module OAuthClient
    include Podio::ResponseWrapper
    extend self

    def update(id, attributes)
      puts attributes
      
      response = Podio.connection.put do |req|
        req.url "/oauth/client/#{id}"
        req.body = attributes
      end

      response.status
    end

    def delete(id)
      response = Podio.connection.delete("/oauth/client/#{id}")
      
      response.status
    end
    
    def find_all_for_user(user_id)
      list Podio.connection.get("oauth/client/user/#{user_id}/").body
    end
    
    def find(client_id)
      member Podio.connection.get("oauth/client/#{client_id}").body
    end
  end
end
module Podio
  module OAuthClient
    include Podio::ResponseWrapper
    extend self

    def update(id, attributes)
      response = Podio.connection.put do |req|
        req.url "/oauth/client/#{id}"
        req.body = attributes
      end

      response.status
    end

    def delete(id)
      response = Podio.connection.delete("/oauth/client/#{id}")
      
      response.status
      end

      response.status
    end
    
    def find_all_for_user(user_id)
      list Podio.connection.get("oauth/client/user/#{user_id}/").body
    end
    
    def find(client_id)
      member Podio.connection.get("oauth/client/#{client_id}").body
    end
  end
end
--- 
+++ 
@@ -4,6 +4,8 @@
     extend self
 
     def update(id, attributes)
+      puts attributes
+      
       response = Podio.connection.put do |req|
         req.url "/oauth/client/#{id}"
         req.body = attributes
@@ -16,9 +18,6 @@
       response = Podio.connection.delete("/oauth/client/#{id}")
       
       response.status
-      end
-
-      response.status
     end
     
     def find_all_for_user(user_id)
Fix bad syntax for oauth client
