module Paperdrive::Client::SearchResults
Instance methods related to SearchResults
to embed into Paperdrive::Client
arguments are compatible with the Pipedribe API.
Public Instance Methods
search(**args)
click to toggle source
- GET
-
Perform a search
@see developers.pipedrive.com/docs/api/v1/#!/SearchResults/get_searchResults @return [Paperdrive::Response]
# File lib/paperdrive/client/search_results.rb, line 18 def search(**args) params = parameters(args) do required_params :term optional_params :term, :item_type, :start, :limit, :exact_match end request(:get, 'searchResults', params) end
specific_search(**args)
click to toggle source
- GET
-
Perform a search using a specific field value
@see developers.pipedrive.com/docs/api/v1/#!/SearchResults/get_searchResults_field @return [Paperdrive::Response]
# File lib/paperdrive/client/search_results.rb, line 30 def specific_search(**args) params = parameters(args) do required_params :term, :field_type, :field_key optional_params :term, :exact_match, :field_type, :field_key, :return_field_key, :return_item_ids, :start, :limit end request(:get, 'searchResults/field', params) end