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
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
Fix bad syntax for oauth client
Fix bad syntax for oauth client
