Sha256: 91e8e74f41e22184de4d5fc09607c2243a1499617551cadc5bac98bc77c80161
Contents?: true
Size: 1 KB
Versions: 6
Compression:
Stored size: 1 KB
Contents
module Smartsheet # Search Endpoints # @see https://smartsheet-platform.github.io/api-docs/?ruby#search API Search Docs class Search attr_reader :client private :client def initialize(client) @client = client end def search_all(query:, params: {}, header_overrides: {}) endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['search']) request_spec = Smartsheet::API::RequestSpec.new( header_overrides: header_overrides, params: params.merge({query: query}) ) client.make_request(endpoint_spec, request_spec) end def search_sheet(sheet_id:, query:, params: {}, header_overrides: {}) endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['search', 'sheets', :sheet_id]) request_spec = Smartsheet::API::RequestSpec.new( header_overrides: header_overrides, params: params.merge({query: query}), sheet_id: sheet_id ) client.make_request(endpoint_spec, request_spec) end end end
Version data entries
6 entries across 6 versions & 1 rubygems