def search_folder_for_envelopes(options={})
      content_type = { 'Content-Type' => 'application/json' }
      content_type.merge(options[:headers]) if options[:headers]

      q ||= []
      options[:query_params].each do |key, val|
        q << "#{key}=#{val}"
      end

      uri = build_uri("/accounts/#{@acct_id}/folders/#{options[:folder_id]}/?#{q.join('&')}")

      http = initialize_net_http_ssl(uri)
      request = Net::HTTP::Get.new(uri.request_uri, headers(content_type))
      response = http.request(request)
      generate_log(request, response, uri)
      JSON.parse(response.body)
    end
def search_folder_for_envelopes(options={})
      content_type = { 'Content-Type' => 'application/json' }
      content_type.merge(options[:headers]) if options[:headers]

      q ||= []
      options[:query_params].each do |key, val|
        q << "#{key}=#{val}"
      end

      uri = build_uri("/accounts/#{@acct_id}/folders/#{options[:folder_id]}/?#{q.join('&')}")

      http = initialize_net_http_ssl(uri)
      request = Net::HTTP::Get.new(uri.request_uri, headers(content_type))
      response = http.request(request)
      generate_log(request, response, uri)
      JSON.parse(response.body)
    end
Public retrieves the envelope(s) from a specific folder based on search params.

 Option Query Terms(none are required):
 query_params:
   start_position: Integer The position of the folder items to return. This is used for repeated calls, when the number of envelopes returned is too much for one return (calls return 100 envelopes at a time). The default value is 0.
   from_date:      date/Time Only return items on or after this date. If no value is provided, the default search is the previous 30 days.
   to_date:        date/Time Only return items up to this date. If no value is provided, the default search is to the current date.
   search_text:    String   The search text used to search the items of the envelope. The search looks at recipient names and emails, envelope custom fields, sender name, and subject.
   status:         Status  The current status of the envelope. If no value is provided, the default search is all/any status.
   owner_name:     username  The name of the folder owner.
   owner_email:    email The email of the folder owner.

 Example

   client.search_folder_for_envelopes(
     folder_id: xxxxx-2222xxxxx,
     query_params: {
       search_text: "John Appleseed",
       from_date: '7-1-2011+11:00:00+AM',
       to_date: '7-1-2011+11:00:00+AM',
       status: "completed"
     }
   )