lib/notion/api/endpoints/blocks.rb
#
# Returns a paginated array of Block objects contained in the
# block of the requested path using the ID specified.
#
# Returns a 404 HTTP response if any of the following are true:
# - the ID does not exist
# - the bot doesn't have access to the block with the given ID
#
# Returns a 400 or 429 HTTP response if the request exceeds Notion's Request limits.
#
# @option options [id] :id
#   Block to get children info on.
Returns a paginated array of Block objects contained in the
block of the requested path using the ID specified.

Returns a 404 HTTP response if any of the following are true:
the ID does not exist
the bot doesn't have access to the block with the given ID

Returns a 400 or 429 HTTP response if the request exceeds Notion's Request limits.
Returns a paginated array of Block objects contained in the block of the requested path using the ID specified . Returns a 404 HTTP response if any of the following are true : the ID does not exist the bot doesn ' t have access to the block with the given ID Returns a 400 or 429 HTTP response if the request exceeds Notion ' s Request limits .
def block_children(options = {})
          throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
          if block_given?
            Pagination::Cursor.new(self, :block_children, options).each do |page|
              yield page
            end
          else
            get("blocks/#{options[:id]}/children", options)
          end
        end
def block_children ( options = { } ) throw ArgumentError . new ( 'Required arguments :id missing' ) if options [ :id ] . nil? if block_given? Pagination :: Cursor . new ( self , :block_children , options ) . each do | page | yield page end else get ( "blocks/#{options[:id]}/children" , options ) end end
Returns a paginated array of Block objects contained in the
block of the requested path using the ID specified.
Returns a paginated array of Block objects contained in the block of the requested path using the ID specified .
options
:id Block to get children info on.
: id Block to get children info on .