def post_response(api_method, data, format=nil, additional_headers=nil)
      if format == :json
        headers = {'Accept'=>'application/json'}
      end
      if additional_headers
        headers.merge!(additional_headers)
      end
      api_call = "/0.1/#{api_method}"
      puts "---------POST--------------"  if $DEBUG
      puts api_call  if $DEBUG
      puts data.inspect if $DEBUG
      puts "___________________________" if $DEBUG
      response = @oauth.get_access_token.post(api_call, data, headers).body
      puts response.inspect if $DEBUG
      puts "---------------------------" if $DEBUG
      begin
        response = JSON.parse(response) if format == :json
      rescue
        puts $! if $DEBUG
        raise "Unexpected response from the api: (#{api_method}) :: #{response}"
      end
      return response
    end
def post_response(api_method, data, format=nil, additional_headers=nil)
      if format == :json
        headers = {'Accept'=>'application/json'}
      end
      if additional_headers
        headers.merge!(additional_headers)
      end
      api_call = "/0.1/#{api_method}"
      puts "---------POST--------------"  if $DEBUG
      puts api_call  if $DEBUG
      puts data.inspect if $DEBUG
      puts "___________________________" if $DEBUG
      response = @oauth.get_access_token.post(api_call, data, headers).body
      puts response.inspect if $DEBUG
      puts "---------------------------" if $DEBUG
      begin
        response = JSON.parse(response) if format == :json
      rescue
        puts $! if $DEBUG
        raise "Unexpected response from the api: (#{api_method}) :: #{response}"
      end
      return response
    end
Probably a better way to do this.  Make it a little more DRY