Module: Notion::Api::SearchMethods

Includes:
RequestClient
Included in:
Client
Defined in:
lib/notion-sdk-ruby/api/search.rb

Instance Method Summary collapse

Instance Method Details

#search(body) ⇒ Notion::List<OpenStruct>

Searches all original pages, databases, and child pages/databases that are shared with the integration. developers.notion.com/reference/post-search

Parameters:

  • body (Hash)

Returns:



11
12
13
14
# File 'lib/notion-sdk-ruby/api/search.rb', line 11

def search(body)
  response = post("/v1/search", body.to_json)
  List.new(response.body)
end