feat: add page blocks endpoint
This commit is contained in:
@@ -21,6 +21,13 @@ class Notion
|
||||
process_response(response)
|
||||
end
|
||||
|
||||
def page_blocks(page_id)
|
||||
raise ArgumentError, 'Missing page id' if page_id.blank?
|
||||
|
||||
response = get("blocks/#{page_id}/children")
|
||||
process_response(response)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def get(path)
|
||||
|
||||
Reference in New Issue
Block a user