lib/notion/api/endpoints/pages.rb in notion-ruby-client-0.0.6 vs lib/notion/api/endpoints/pages.rb in notion-ruby-client-0.0.7
- old
+ new
@@ -14,10 +14,10 @@
# @option options [bool] :archived
# Set to true to retrieve an archived page; must be false or omitted to
# retrieve a page that has not been archived. Defaults to false.
def page(options = {})
throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
- get("pages/#{options[:id]}?archived=#{options[:archived]}")
+ get("pages/#{options[:id]}")
end
#
# Creates a new page in the specified database.
# Later iterations of the API will support creating pages outside databases.