Sha256: 6a93c78f55d711986b551ec2a95e937d2fb2dbbded5f2601f3d381224a1b593d

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

module Notion
  module Api
    module SearchMethods
      include RequestClient

      # Searches all original pages, databases, and child pages/databases
      # that are shared with the integration.
      # https://developers.notion.com/reference/post-search
      # @param [Hash] body
      # @return [Array]
      def search(body)
        response = post("/v1/search", body.to_json)
        List.new(response.body)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.6.1 lib/notion-sdk-ruby/api/search.rb
notion-sdk-ruby-0.6.0 lib/notion-sdk-ruby/api/search.rb