feat: add page blocks endpoint

This commit is contained in:
Shivam Mishra
2025-06-18 19:25:57 +05:30
parent a5a4b15e5b
commit 7d66691844
+7
View File
@@ -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)