def do_request method, action, query={}
  	  url = @neto_url
  	  options = { }
  	  header_action = {
  	  	"NETOAPI_ACTION"=> action
  	  }
  	  #set headers
  	  options[:headers] = @header_args.merge(header_action)
  	  #set body
      case action
      when 'GetItem'
    	  if query.empty?
    	  	options.merge!(body: {"Filter"=> @body_defaults}.to_json)
    	  else 
        	body_args = @body_defaults.merge(query) 
        	options.merge!(body: {"Filter"=> body_args}.to_json)
    	  end
      when 'AddItem' 
        options.merge!(body: {"Item"=> [query]}.to_json)     
      when 'UpdateItem'
        options.merge!(body: {"Item"=> [query]}.to_json) 
      end
      HTTParty.send(method, url, options)
    end
def do_request method, action, query={}
  	  url = @neto_url
  	  options = { }
  	  header_action = {
  	  	"NETOAPI_ACTION"=> action
  	  }
  	  #set headers
  	  options[:headers] = @header_args.merge(header_action)
  	  #set body
      case action
      when 'GetItem'
    	  if query.empty?
    	  	options.merge!(body: {"Filter"=> @body_defaults}.to_json)
    	  else 
        	body_args = @body_defaults.merge(query) 
        	options.merge!(body: {"Filter"=> body_args}.to_json)
    	  end
      when 'AddItem' 
        options.merge!(body: {"Item"=> [query]}.to_json)     
      when 'UpdateItem'
        options.merge!(body: {"Item"=> [query]}.to_json) 
      end
      HTTParty.send(method, url, options)
    end
Internal methods: Append data as query params to an endpoint