module CrowdFlower
  class Order
    include Defaults
    attr_reader :job
    
    def initialize(job)
      @job = job
      Order.base_uri CrowdFlower.with_domain("/jobs/#{@job.id}/orders")
      Order.default_params CrowdFlower.key
    end
    
    def debit(percentage = 100, channels = ["amt"])
      Order.post("", {:query => {:percentage => percentage, :channels => channels}})
    end
  end
end
module CrowdFlower
  class Order
    include Defaults
    attr_reader :job
    
    def initialize(job)
      @job = job
      Order.base_uri CrowdFlower.with_domain("/jobs/#{@job.id}/orders")
      Order.default_params CrowdFlower.key
    end
    
    def debit(percentage = 100, channels = ["amt"])
      Order.post("", {:body => {:percentage => percentage, :channels => channels}})
    end
  end
end
Order uses body instead of query
Order uses body instead of query
