From aa71fec654025f2ccac5f28fb41b7a76515d2937 Mon Sep 17 00:00:00 2001 From: raf <108032229+rafeyrana@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:28:00 -0500 Subject: [PATCH] =?UTF-8?q?Token=20format=20update:=20secret=5F=20?= =?UTF-8?q?=E2=86=92=20ntn=5F=20(#246)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Token format update: secret_ → ntn_ * Regenerate cassettes --------- Co-authored-by: ramnes --- docs/user_guides/quick_start.md | 2 +- ...t_api_async_request_bad_request_error.yaml | 2 +- tests/cassettes/test_api_response_error.yaml | 6 +- .../test_async_api_response_error.yaml | 6 +- .../cassettes/test_async_client_request.yaml | 6 +- .../test_async_client_request_auth.yaml | 8 +- .../test_async_collect_paginated_api.yaml | 8 +- .../test_async_iterate_paginated_api.yaml | 100 +++++++++--------- .../test_blocks_children_create.yaml | 26 ++--- .../cassettes/test_blocks_children_list.yaml | 24 ++--- tests/cassettes/test_blocks_delete.yaml | 58 +++++----- tests/cassettes/test_blocks_retrieve.yaml | 42 ++++---- tests/cassettes/test_blocks_update.yaml | 42 ++++---- tests/cassettes/test_client_request.yaml | 6 +- tests/cassettes/test_client_request_auth.yaml | 8 +- .../cassettes/test_collect_paginated_api.yaml | 8 +- tests/cassettes/test_comments_create.yaml | 26 ++--- tests/cassettes/test_comments_list.yaml | 34 +++--- tests/cassettes/test_databases_create.yaml | 26 ++--- tests/cassettes/test_databases_query.yaml | 44 ++++---- tests/cassettes/test_databases_retrieve.yaml | 48 ++++----- tests/cassettes/test_databases_update.yaml | 48 ++++----- ...t_is_equation_rich_text_item_response.yaml | 42 ++++---- tests/cassettes/test_is_full_block.yaml | 42 ++++---- tests/cassettes/test_is_full_comment.yaml | 34 +++--- tests/cassettes/test_is_full_database.yaml | 48 ++++----- tests/cassettes/test_is_full_page.yaml | 28 ++--- .../test_is_full_page_or_database.yaml | 58 +++++----- tests/cassettes/test_is_full_user.yaml | 4 +- ...st_is_mention_rich_text_item_response.yaml | 36 +++---- .../test_is_text_rich_text_item_response.yaml | 42 ++++---- .../cassettes/test_iterate_paginated_api.yaml | 100 +++++++++--------- tests/cassettes/test_pages_create.yaml | 14 +-- tests/cassettes/test_pages_delete.yaml | 36 +++---- .../test_pages_properties_retrieve.yaml | 26 ++--- tests/cassettes/test_pages_retrieve.yaml | 28 ++--- tests/cassettes/test_pages_update.yaml | 38 +++---- tests/cassettes/test_search.yaml | 24 ++--- tests/cassettes/test_users_list.yaml | 4 +- tests/cassettes/test_users_me.yaml | 4 +- tests/cassettes/test_users_retrieve.yaml | 8 +- tests/conftest.py | 2 +- 42 files changed, 598 insertions(+), 598 deletions(-) diff --git a/docs/user_guides/quick_start.md b/docs/user_guides/quick_start.md index 4b8fa10..a021ee3 100644 --- a/docs/user_guides/quick_start.md +++ b/docs/user_guides/quick_start.md @@ -41,7 +41,7 @@ to create an integration. Copy the token given by Notion. - Make it available in your environment: ```shell - export NOTION_TOKEN=secret_abcd12345 + export NOTION_TOKEN=ntn_abcd12345 ``` !!! tip diff --git a/tests/cassettes/test_api_async_request_bad_request_error.yaml b/tests/cassettes/test_api_async_request_bad_request_error.yaml index 4c563b9..f57f1da 100644 --- a/tests/cassettes/test_api_async_request_bad_request_error.yaml +++ b/tests/cassettes/test_api_async_request_bad_request_error.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: diff --git a/tests/cassettes/test_api_response_error.yaml b/tests/cassettes/test_api_response_error.yaml index 47064a2..6f53f39 100644 --- a/tests/cassettes/test_api_response_error.yaml +++ b/tests/cassettes/test_api_response_error.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -30,7 +30,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -41,7 +41,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"error","status":401,"code":"unauthorized","message":"API - token is invalid.","request_id":"3db4e917-1be1-49a5-bfcd-f5339a6a8d4f"}' + token is invalid.","request_id":"15ca8906-fcb1-4d90-b25a-ad03ba508350"}' headers: {} http_version: HTTP/1.1 status_code: 401 diff --git a/tests/cassettes/test_async_api_response_error.yaml b/tests/cassettes/test_async_api_response_error.yaml index 76976c9..6f5eb4d 100644 --- a/tests/cassettes/test_async_api_response_error.yaml +++ b/tests/cassettes/test_async_api_response_error.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -30,7 +30,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -41,7 +41,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"error","status":401,"code":"unauthorized","message":"API - token is invalid.","request_id":"f12c8893-f690-44c3-88d3-6ab25b1804c8"}' + token is invalid.","request_id":"d11a2027-fae9-4cad-a6ea-ab6e34136dc5"}' headers: {} http_version: HTTP/1.1 status_code: 401 diff --git a/tests/cassettes/test_async_client_request.yaml b/tests/cassettes/test_async_client_request.yaml index fa37790..5e3bd0c 100644 --- a/tests/cassettes/test_async_client_request.yaml +++ b/tests/cassettes/test_async_client_request.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -30,7 +30,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -41,7 +41,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume - Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"2a76c63f-ab19-45ef-88af-e043f3baa4ca"}' + Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"9f260c07-a0cf-4dda-afa0-2c6e005301c5"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_async_client_request_auth.yaml b/tests/cassettes/test_async_client_request_auth.yaml index 2e33fd7..4f821bf 100644 --- a/tests/cassettes/test_async_client_request_auth.yaml +++ b/tests/cassettes/test_async_client_request_auth.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -18,7 +18,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"error","status":401,"code":"unauthorized","message":"API - token is invalid.","request_id":"9edc0732-7262-4130-bb9d-1d95030beb0f"}' + token is invalid.","request_id":"649c77c8-264f-4e74-a2c9-4a1c6adf08ec"}' headers: {} http_version: HTTP/1.1 status_code: 401 @@ -30,7 +30,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -41,7 +41,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume - Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"20f2acad-35c1-443d-89e4-6b7929b523ab"}' + Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"a1e1dc6c-d7e2-4e5f-856b-cd1414e7c987"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_async_collect_paginated_api.yaml b/tests/cassettes/test_async_collect_paginated_api.yaml index a611070..c08d614 100644 --- a/tests/cassettes/test_async_collect_paginated_api.yaml +++ b/tests/cassettes/test_async_collect_paginated_api.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -21,7 +21,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"95ba0116-6776-4c19-9e45-54e77415f03b","created_time":"2023-06-29T12:47:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[]}},"url":"https://www.notion.so/95ba011667764c199e4554e77415f03b","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"a1c6c917-2851-4ab0-afdb-38b6ca7c12f0"}' + content: '{"object":"list","results":[{"object":"page","id":"95ba0116-6776-4c19-9e45-54e77415f03b","created_time":"2023-06-29T12:47:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[]}},"url":"https://www.notion.so/95ba011667764c199e4554e77415f03b","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"42e3d551-2338-49d2-9d1b-705340893950"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -33,7 +33,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -47,7 +47,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"e3461425-bfff-46d3-ad59-0aa997592b35"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"d71d978b-b503-4577-9709-68365c8ddcfd"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_async_iterate_paginated_api.yaml b/tests/cassettes/test_async_iterate_paginated_api.yaml index 6c09029..882c183 100644 --- a/tests/cassettes/test_async_iterate_paginated_api.yaml +++ b/tests/cassettes/test_async_iterate_paginated_api.yaml @@ -8,7 +8,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81c6-a407-e463950a7752","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-81d2-a8a0-e3a3bd8aeb97","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 0)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-0-16cabc1eedcd81c6a407e463950a7752","public_url":null,"request_id":"f157024d-a32a-4510-9e49-fbec7f1a06f0"}' + Page (test_async_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-0-16cabc1eedcd81d2a8a0e3a3bd8aeb97","public_url":null,"request_id":"99df76e0-c876-40de-be70-51a4f591f379"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8184-9028-da0dd98dce14","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-813f-a1fa-ce7f55ccd024","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 1)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-1-16cabc1eedcd81849028da0dd98dce14","public_url":null,"request_id":"75c82179-e009-43f4-a604-3ceb4cb3ca88"}' + Page (test_async_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-1-16cabc1eedcd813fa1face7f55ccd024","public_url":null,"request_id":"7a49a5fa-c635-4127-b781-98b84b3dd425"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -66,7 +66,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -80,9 +80,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8197-8b72-cf40d092fe70","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-8177-8265-cfe695da8d9f","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 2)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-2-16cabc1eedcd81978b72cf40d092fe70","public_url":null,"request_id":"7d34381e-8811-49f3-9511-fd328c04f420"}' + Page (test_async_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-2-16cabc1eedcd81778265cfe695da8d9f","public_url":null,"request_id":"388cd518-b8b0-448a-84e9-bb282c6ce545"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -95,7 +95,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -109,9 +109,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-813d-a25b-f18dc27073f0","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-8173-b96b-c4e0e205df13","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 3)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-3-16cabc1eedcd813da25bf18dc27073f0","public_url":null,"request_id":"d711afcb-55db-4a79-9f1f-ac198a5e4c2e"}' + Page (test_async_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-3-16cabc1eedcd8173b96bc4e0e205df13","public_url":null,"request_id":"adeaaaa6-d7c4-4278-8e46-7292a92bb1d1"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -124,7 +124,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -138,9 +138,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8179-99ab-e736fb042793","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-8134-998b-cdfc1d00c76b","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 4)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-4-16cabc1eedcd817999abe736fb042793","public_url":null,"request_id":"c64ea85f-d0e3-4099-9e30-11f525e53ec2"}' + Page (test_async_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-4-16cabc1eedcd8134998bcdfc1d00c76b","public_url":null,"request_id":"f089fc16-03de-459c-86f6-255b99b316d4"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -152,7 +152,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -166,23 +166,23 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-8179-99ab-e736fb042793","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-8134-998b-cdfc1d00c76b","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 4)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-4-16cabc1eedcd817999abe736fb042793","public_url":null},{"object":"page","id":"16cabc1e-edcd-813d-a25b-f18dc27073f0","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + Page (test_async_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-4-16cabc1eedcd8134998bcdfc1d00c76b","public_url":null},{"object":"page","id":"16cabc1e-edcd-8173-b96b-c4e0e205df13","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 3)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-3-16cabc1eedcd813da25bf18dc27073f0","public_url":null}],"next_cursor":"16cabc1e-edcd-8197-8b72-cf40d092fe70","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"e8c75401-d2fc-44b6-8e0d-6763b88a384e"}' + Page (test_async_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-3-16cabc1eedcd8173b96bc4e0e205df13","public_url":null}],"next_cursor":"16cabc1e-edcd-8177-8265-cfe695da8d9f","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"f40a863b-acea-4f05-af5b-9c7a05ebfc31"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"query":"test_async_iterate_paginated_api","start_cursor":"16cabc1e-edcd-8197-8b72-cf40d092fe70","page_size":2}' + body: '{"query":"test_async_iterate_paginated_api","start_cursor":"16cabc1e-edcd-8177-8265-cfe695da8d9f","page_size":2}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -196,23 +196,23 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-8197-8b72-cf40d092fe70","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-8177-8265-cfe695da8d9f","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 2)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-2-16cabc1eedcd81978b72cf40d092fe70","public_url":null},{"object":"page","id":"16cabc1e-edcd-8184-9028-da0dd98dce14","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + Page (test_async_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-2-16cabc1eedcd81778265cfe695da8d9f","public_url":null},{"object":"page","id":"16cabc1e-edcd-813f-a1fa-ce7f55ccd024","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 1)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-1-16cabc1eedcd81849028da0dd98dce14","public_url":null}],"next_cursor":"16cabc1e-edcd-81c6-a407-e463950a7752","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"2daa4907-3c33-4bf0-aa57-6d91d41a974e"}' + Page (test_async_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-1-16cabc1eedcd813fa1face7f55ccd024","public_url":null}],"next_cursor":"16cabc1e-edcd-81d2-a8a0-e3a3bd8aeb97","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"3c2d1b9b-7303-49c7-83c4-bb53464dda0c"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"query":"test_async_iterate_paginated_api","start_cursor":"16cabc1e-edcd-81c6-a407-e463950a7752","page_size":2}' + body: '{"query":"test_async_iterate_paginated_api","start_cursor":"16cabc1e-edcd-81d2-a8a0-e3a3bd8aeb97","page_size":2}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -226,9 +226,9 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-81c6-a407-e463950a7752","created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-81d2-a8a0-e3a3bd8aeb97","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_async_iterate_paginated_api iteration 0)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_async_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-0-16cabc1eedcd81c6a407e463950a7752","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"0a12dd79-d605-47e7-81bd-aa07f6c02fa1"}' + Page (test_async_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_async_iterate_paginated_api-iteration-0-16cabc1eedcd81d2a8a0e3a3bd8aeb97","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"f59745a7-3096-41b6-92c8-814df9de7bf3"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -240,7 +240,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -248,10 +248,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c6-a407-e463950a7752 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81d2-a8a0-e3a3bd8aeb97 response: - content: '{"object":"block","id":"16cabc1e-edcd-81c6-a407-e463950a7752","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_async_iterate_paginated_api iteration 0)"},"request_id":"4e265ea0-69f6-49b5-923f-adda05d91ed0"}' + content: '{"object":"block","id":"16cabc1e-edcd-81d2-a8a0-e3a3bd8aeb97","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_async_iterate_paginated_api iteration 0)"},"request_id":"25397735-7dd2-4f3a-a52e-c14d7bd883b4"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -263,7 +263,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -271,10 +271,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8184-9028-da0dd98dce14 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-813f-a1fa-ce7f55ccd024 response: - content: '{"object":"block","id":"16cabc1e-edcd-8184-9028-da0dd98dce14","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_async_iterate_paginated_api iteration 1)"},"request_id":"17d75ff7-eba9-4bd9-9d5c-faba617902b7"}' + content: '{"object":"block","id":"16cabc1e-edcd-813f-a1fa-ce7f55ccd024","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_async_iterate_paginated_api iteration 1)"},"request_id":"f502c2b3-6308-4ba7-bcc3-f430e186d8dd"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -286,7 +286,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -294,10 +294,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8197-8b72-cf40d092fe70 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8177-8265-cfe695da8d9f response: - content: '{"object":"block","id":"16cabc1e-edcd-8197-8b72-cf40d092fe70","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_async_iterate_paginated_api iteration 2)"},"request_id":"1e43e49e-c614-4142-8ce0-e6e7fa53081e"}' + content: '{"object":"block","id":"16cabc1e-edcd-8177-8265-cfe695da8d9f","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_async_iterate_paginated_api iteration 2)"},"request_id":"958cc23b-72ec-4c69-95aa-0ac1d3bb213b"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -309,7 +309,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -317,10 +317,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-813d-a25b-f18dc27073f0 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8173-b96b-c4e0e205df13 response: - content: '{"object":"block","id":"16cabc1e-edcd-813d-a25b-f18dc27073f0","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_async_iterate_paginated_api iteration 3)"},"request_id":"16a95908-74f0-43b9-be6c-cc20e1f9de08"}' + content: '{"object":"block","id":"16cabc1e-edcd-8173-b96b-c4e0e205df13","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_async_iterate_paginated_api iteration 3)"},"request_id":"0a0f7a72-2d57-4332-9e7e-e55c580438f4"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -332,7 +332,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -340,10 +340,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8179-99ab-e736fb042793 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8134-998b-cdfc1d00c76b response: - content: '{"object":"block","id":"16cabc1e-edcd-8179-99ab-e736fb042793","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:10:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_async_iterate_paginated_api iteration 4)"},"request_id":"53464f28-628c-46ec-a9eb-9946b0bfaef7"}' + content: '{"object":"block","id":"16cabc1e-edcd-8134-998b-cdfc1d00c76b","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_async_iterate_paginated_api iteration 4)"},"request_id":"4b342358-7a21-45ad-8992-8bd8e4459c0a"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -355,7 +355,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -369,7 +369,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"931959b1-7448-44c6-bcbf-00dfd564ac4a"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"fd232cb0-91c8-4f3b-a58d-ab55a5a81c06"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_blocks_children_create.yaml b/tests/cassettes/test_blocks_children_create.yaml index d13c524..3b7bfc3 100644 --- a/tests/cassettes/test_blocks_children_create.yaml +++ b/tests/cassettes/test_blocks_children_create.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:47.200577"}}]},"children":[]}' + 2024-12-30 18:21:00.309404"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8117-90ed-e715d6b93349","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:47.200577","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:47.200577","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-47-200577-16cabc1eedcd811790ede715d6b93349","public_url":null,"request_id":"17544eea-db93-4838-a2e1-5c3358fee303"}' + content: '{"object":"page","id":"16cabc1e-edcd-8126-a13b-e29717b63c94","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:00.309404","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:00.309404","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-00-309404-16cabc1eedcd8126a13be29717b63c94","public_url":null,"request_id":"d187fb9d-8030-4941-a06e-78053f811785"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8117-90ed-e715d6b93349/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8126-a13b-e29717b63c94/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-8122-8c66-c2e9040311f6","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8117-90ed-e715d6b93349"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-8112-bae0-d5e6d8a0d77f","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8126-a13b-e29717b63c94"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"f0e50d6e-b5b9-4d17-9199-c7d278442ddd"}' + a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"a433c39d-0913-4386-ac4d-fe79c8b41e11"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -72,10 +72,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8117-90ed-e715d6b93349 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8126-a13b-e29717b63c94 response: - content: '{"object":"block","id":"16cabc1e-edcd-8117-90ed-e715d6b93349","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":true,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:47.200577"},"request_id":"3b44296e-1e20-418d-a3da-c0b5cc862ac3"}' + content: '{"object":"block","id":"16cabc1e-edcd-8126-a13b-e29717b63c94","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":true,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:00.309404"},"request_id":"d01ce2d1-4feb-4b5f-bf80-0edacc3dfb1f"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_blocks_children_list.yaml b/tests/cassettes/test_blocks_children_list.yaml index 3517e62..2685497 100644 --- a/tests/cassettes/test_blocks_children_list.yaml +++ b/tests/cassettes/test_blocks_children_list.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:50.022842"}}]},"children":[]}' + 2024-12-30 18:21:02.726723"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81ac-a69f-df60b137e576","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:50.022842","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:50.022842","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-50-022842-16cabc1eedcd81aca69fdf60b137e576","public_url":null,"request_id":"c50707fa-527f-4fe2-bee5-80a76bed8cf8"}' + content: '{"object":"page","id":"16cabc1e-edcd-81a1-9982-e644ed7fa6a2","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:02.726723","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:02.726723","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-02-726723-16cabc1eedcd81a19982e644ed7fa6a2","public_url":null,"request_id":"29ed4c8e-44c8-4eb3-ae6d-18e97670562d"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -44,9 +44,9 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ac-a69f-df60b137e576/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81a1-9982-e644ed7fa6a2/children response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"30651084-c712-46e3-a86b-ef7858b693c9"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"65de73d0-aa29-49ca-8cc9-edf6140d4a47"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -58,7 +58,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -66,10 +66,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ac-a69f-df60b137e576 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81a1-9982-e644ed7fa6a2 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ac-a69f-df60b137e576","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:50.022842"},"request_id":"87f84bbb-9ef3-43c3-8ee3-56181ed6caba"}' + content: '{"object":"block","id":"16cabc1e-edcd-81a1-9982-e644ed7fa6a2","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:02.726723"},"request_id":"e5caf3a7-b66c-45e7-b3d4-f34bb79dc072"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_blocks_delete.yaml b/tests/cassettes/test_blocks_delete.yaml index 02c9bd1..ea075d5 100644 --- a/tests/cassettes/test_blocks_delete.yaml +++ b/tests/cassettes/test_blocks_delete.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:04.491542"}}]},"children":[]}' + 2024-12-30 18:21:14.036025"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:04.491542","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:04.491542","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-04-491542-16cabc1eedcd8182a4a8eda17e8f1bdf","public_url":null,"request_id":"b5e4c3ad-a3d7-4c1a-8d3a-bb587889f7c2"}' + content: '{"object":"page","id":"16cabc1e-edcd-8173-929a-cce37dab9063","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:14.036025","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:14.036025","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-14-036025-16cabc1eedcd8173929acce37dab9063","public_url":null,"request_id":"baa05e6c-b43a-4c4b-9c04-3c092e8b6a76"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8182-a4a8-eda17e8f1bdf/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8173-929a-cce37dab9063/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-81ee-96c7-e5a0e84c1aac","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-81df-9967-eb59658d16e8","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8173-929a-cce37dab9063"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"41e5f961-5927-4b75-bea9-13595d6c26a4"}' + a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"94d37d98-b74f-4331-9ace-87e7add5630c"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -72,11 +72,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ee-96c7-e5a0e84c1aac + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81df-9967-eb59658d16e8 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ee-96c7-e5a0e84c1aac","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-81df-9967-eb59658d16e8","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8173-929a-cce37dab9063"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"fad1f37b-88a8-45e4-8d7d-f8b198b04541"}' + a paragraph.","href":null}],"color":"default"},"request_id":"75e48abb-9842-4e70-87ee-3c20cda8a29a"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -88,7 +88,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -96,11 +96,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ee-96c7-e5a0e84c1aac + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81df-9967-eb59658d16e8 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ee-96c7-e5a0e84c1aac","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-81df-9967-eb59658d16e8","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8173-929a-cce37dab9063"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"6cb74551-46ed-480a-a05e-1a7e4fc4d1a8"}' + a paragraph.","href":null}],"color":"default"},"request_id":"6ec36ced-e53b-4e86-8d29-eb14c9a4a2be"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -112,7 +112,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -124,11 +124,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ee-96c7-e5a0e84c1aac + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81df-9967-eb59658d16e8 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ee-96c7-e5a0e84c1aac","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-81df-9967-eb59658d16e8","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8173-929a-cce37dab9063"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"f4efa1d4-4c72-48a3-91fb-61d9eb38d322"}' + a paragraph.","href":null}],"color":"default"},"request_id":"58e8c96c-df6c-4c8e-a00e-07e0d29eb899"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -140,7 +140,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -148,11 +148,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ee-96c7-e5a0e84c1aac + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81df-9967-eb59658d16e8 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ee-96c7-e5a0e84c1aac","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-81df-9967-eb59658d16e8","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8173-929a-cce37dab9063"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"e5e71bf2-605c-40aa-9440-7e2d2e6d7bc6"}' + a paragraph.","href":null}],"color":"default"},"request_id":"7b72e2ff-7d9e-4404-941d-9db4df3a1cd8"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -164,7 +164,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -172,10 +172,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8182-a4a8-eda17e8f1bdf + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8173-929a-cce37dab9063 response: - content: '{"object":"block","id":"16cabc1e-edcd-8182-a4a8-eda17e8f1bdf","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:04.491542"},"request_id":"22b0c195-a58d-4a44-89ef-3995c6fb2f29"}' + content: '{"object":"block","id":"16cabc1e-edcd-8173-929a-cce37dab9063","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:14.036025"},"request_id":"49a7ab7e-0da6-4423-bb6c-c96b8541bce2"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_blocks_retrieve.yaml b/tests/cassettes/test_blocks_retrieve.yaml index 2088946..8b1cc33 100644 --- a/tests/cassettes/test_blocks_retrieve.yaml +++ b/tests/cassettes/test_blocks_retrieve.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:51.719594"}}]},"children":[]}' + 2024-12-30 18:21:05.602133"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8129-9923-fbf5e1c191ca","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:51.719594","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:51.719594","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-51-719594-16cabc1eedcd81299923fbf5e1c191ca","public_url":null,"request_id":"ea874ec7-aaef-4e54-98bc-afb4e6d1b593"}' + content: '{"object":"page","id":"16cabc1e-edcd-81f1-ae27-de4d47c5c0c2","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:05.602133","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:05.602133","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-05-602133-16cabc1eedcd81f1ae27de4d47c5c0c2","public_url":null,"request_id":"0eb35cb9-cda3-461c-aa1a-c47feb14c496"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8129-9923-fbf5e1c191ca/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81f1-ae27-de4d47c5c0c2/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-8144-b963-caf93aa720ee","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8129-9923-fbf5e1c191ca"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-8165-9e47-ddcd77401df9","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81f1-ae27-de4d47c5c0c2"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"118b5ac7-632c-4fb1-8c5e-d042cd3a0ad9"}' + a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"01c5f203-98bc-4bd2-adc7-3b64555ab7c2"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -72,11 +72,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8144-b963-caf93aa720ee + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8165-9e47-ddcd77401df9 response: - content: '{"object":"block","id":"16cabc1e-edcd-8144-b963-caf93aa720ee","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8129-9923-fbf5e1c191ca"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-8165-9e47-ddcd77401df9","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81f1-ae27-de4d47c5c0c2"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"00825e4f-d461-4810-8d4b-474fc2582a31"}' + a paragraph.","href":null}],"color":"default"},"request_id":"d32f01da-9eb3-4506-a34d-5a56d1373ac0"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -88,7 +88,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -96,11 +96,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8144-b963-caf93aa720ee + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8165-9e47-ddcd77401df9 response: - content: '{"object":"block","id":"16cabc1e-edcd-8144-b963-caf93aa720ee","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8129-9923-fbf5e1c191ca"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-8165-9e47-ddcd77401df9","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81f1-ae27-de4d47c5c0c2"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"52781819-86b6-4fbe-96fd-330a5d14c018"}' + a paragraph.","href":null}],"color":"default"},"request_id":"2fe662d9-d825-45c2-8d61-f656025c3d2d"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -112,7 +112,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -120,10 +120,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8129-9923-fbf5e1c191ca + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81f1-ae27-de4d47c5c0c2 response: - content: '{"object":"block","id":"16cabc1e-edcd-8129-9923-fbf5e1c191ca","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:51.719594"},"request_id":"1684815b-4853-4c16-943e-3de41eab6fb1"}' + content: '{"object":"block","id":"16cabc1e-edcd-81f1-ae27-de4d47c5c0c2","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:05.602133"},"request_id":"9a99a507-03fd-4ae0-8ff7-03fd83a3308c"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_blocks_update.yaml b/tests/cassettes/test_blocks_update.yaml index 23610e0..a735696 100644 --- a/tests/cassettes/test_blocks_update.yaml +++ b/tests/cassettes/test_blocks_update.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:57.084110"}}]},"children":[]}' + 2024-12-30 18:21:09.273712"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8131-8437-c8d23b209b09","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:57.084110","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:57.084110","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-57-084110-16cabc1eedcd81318437c8d23b209b09","public_url":null,"request_id":"517c1390-5c1a-430e-8394-77d883831738"}' + content: '{"object":"page","id":"16cabc1e-edcd-81eb-856e-ffa0fc3f59b8","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:09.273712","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:09.273712","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-09-273712-16cabc1eedcd81eb856effa0fc3f59b8","public_url":null,"request_id":"5d0dadc6-0222-4d66-8205-ffcde835ac3d"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8131-8437-c8d23b209b09/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81eb-856e-ffa0fc3f59b8/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-8103-b1b2-c39b04e0487c","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8131-8437-c8d23b209b09"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-819c-bf82-c8fa3a922688","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81eb-856e-ffa0fc3f59b8"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"b5bbbbc7-2b1c-4624-9caa-f08a00ff457c"}' + a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"73d146ac-1a9e-4f14-a2b7-aaa6118c0068"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -76,11 +76,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8103-b1b2-c39b04e0487c + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-819c-bf82-c8fa3a922688 response: - content: '{"object":"block","id":"16cabc1e-edcd-8103-b1b2-c39b04e0487c","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8131-8437-c8d23b209b09"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-819c-bf82-c8fa3a922688","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81eb-856e-ffa0fc3f59b8"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m an updated paragraph.","link":null},"annotations":{"bold":true,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"red_background"},"plain_text":"I''m - an updated paragraph.","href":null}],"color":"default"},"request_id":"69579e52-c789-4a99-a7a4-388bf79a275c"}' + an updated paragraph.","href":null}],"color":"default"},"request_id":"ecd74570-c63e-484b-ae45-1936a2e71fe8"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -92,7 +92,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -100,11 +100,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8103-b1b2-c39b04e0487c + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-819c-bf82-c8fa3a922688 response: - content: '{"object":"block","id":"16cabc1e-edcd-8103-b1b2-c39b04e0487c","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8131-8437-c8d23b209b09"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-819c-bf82-c8fa3a922688","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81eb-856e-ffa0fc3f59b8"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m an updated paragraph.","link":null},"annotations":{"bold":true,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"red_background"},"plain_text":"I''m - an updated paragraph.","href":null}],"color":"default"},"request_id":"4308b9b1-48c6-4f99-b0d6-8b84224412ec"}' + an updated paragraph.","href":null}],"color":"default"},"request_id":"d732c189-c056-4793-8df8-7f91f4078e30"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -116,7 +116,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -124,10 +124,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8131-8437-c8d23b209b09 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81eb-856e-ffa0fc3f59b8 response: - content: '{"object":"block","id":"16cabc1e-edcd-8131-8437-c8d23b209b09","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:57.084110"},"request_id":"8e4b1f40-d1a6-4547-a5b1-88dd2c107524"}' + content: '{"object":"block","id":"16cabc1e-edcd-81eb-856e-ffa0fc3f59b8","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:09.273712"},"request_id":"a724ed7e-c23b-4eae-8db7-e4fae8f86382"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_client_request.yaml b/tests/cassettes/test_client_request.yaml index 37f0eb3..5d15f4c 100644 --- a/tests/cassettes/test_client_request.yaml +++ b/tests/cassettes/test_client_request.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -30,7 +30,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -41,7 +41,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume - Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"cbd5da81-10c4-43c7-9b26-e81103435cda"}' + Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"e72aaaf8-9502-4f4a-9292-10101b94ace1"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_client_request_auth.yaml b/tests/cassettes/test_client_request_auth.yaml index ecd647d..3c22998 100644 --- a/tests/cassettes/test_client_request_auth.yaml +++ b/tests/cassettes/test_client_request_auth.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -18,7 +18,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"error","status":401,"code":"unauthorized","message":"API - token is invalid.","request_id":"0f68482b-68b9-44ef-874a-b195b51b61d8"}' + token is invalid.","request_id":"9c9434f5-86eb-4167-8cf5-c408de6733d0"}' headers: {} http_version: HTTP/1.1 status_code: 401 @@ -30,7 +30,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -41,7 +41,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume - Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"8a458820-55bd-4905-9390-ad6a637ca9b4"}' + Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"5e567f48-0a8d-4db2-9855-a187eec5d575"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_collect_paginated_api.yaml b/tests/cassettes/test_collect_paginated_api.yaml index abe330e..ad20b1a 100644 --- a/tests/cassettes/test_collect_paginated_api.yaml +++ b/tests/cassettes/test_collect_paginated_api.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -21,7 +21,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"95ba0116-6776-4c19-9e45-54e77415f03b","created_time":"2023-06-29T12:47:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[]}},"url":"https://www.notion.so/95ba011667764c199e4554e77415f03b","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"9ec081e7-26de-41d4-ba79-37e32e2076e4"}' + content: '{"object":"list","results":[{"object":"page","id":"95ba0116-6776-4c19-9e45-54e77415f03b","created_time":"2023-06-29T12:47:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[]}},"url":"https://www.notion.so/95ba011667764c199e4554e77415f03b","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"a0917d70-3b27-402d-97b7-5eb9303f2eb8"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -33,7 +33,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -47,7 +47,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"e51b7972-a33d-4b62-99da-9e94ec0fa50b"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"d4e7ed22-fd2a-47f9-a916-91216b7390fd"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_comments_create.yaml b/tests/cassettes/test_comments_create.yaml index ce49719..92ff1f6 100644 --- a/tests/cassettes/test_comments_create.yaml +++ b/tests/cassettes/test_comments_create.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:34.635516"}}]},"children":[]}' + 2024-12-30 18:21:43.147215"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,14 +22,14 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81c7-85ff-cb0a597e67b5","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:34.635516","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:34.635516","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-34-635516-16cabc1eedcd81c785ffcb0a597e67b5","public_url":null,"request_id":"1a57dc20-feb4-4acc-a679-6339a60d55fb"}' + content: '{"object":"page","id":"16cabc1e-edcd-8123-b0a1-c5f643612dc2","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:43.147215","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:43.147215","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-43-147215-16cabc1eedcd8123b0a1c5f643612dc2","public_url":null,"request_id":"8953c1af-e35d-4a34-af22-6cc1ff9a5b8f"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"page_id":"16cabc1e-edcd-81c7-85ff-cb0a597e67b5"},"rich_text":[{"text":{"content":"This + body: '{"parent":{"page_id":"16cabc1e-edcd-8123-b0a1-c5f643612dc2"},"rich_text":[{"text":{"content":"This is a test comment."}}]}' headers: accept: @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/comments response: - content: '{"object":"comment","id":"16cabc1e-edcd-81cd-8c8f-001dacea038a","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81c7-85ff-cb0a597e67b5"},"discussion_id":"16cabc1e-edcd-818b-a08c-001c94fdb473","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This + content: '{"object":"comment","id":"16cabc1e-edcd-812a-806c-001d15aa7aca","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8123-b0a1-c5f643612dc2"},"discussion_id":"16cabc1e-edcd-81f3-8b5f-001cd05eb826","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This is a test comment.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"This - is a test comment.","href":null}],"request_id":"85c24f48-b21f-4eee-9208-9ac2cf15d764"}' + is a test comment.","href":null}],"request_id":"5c0b6281-9391-4c15-b74d-dde643394811"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,10 +73,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c7-85ff-cb0a597e67b5 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8123-b0a1-c5f643612dc2 response: - content: '{"object":"block","id":"16cabc1e-edcd-81c7-85ff-cb0a597e67b5","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:34.635516"},"request_id":"ef2c0c51-974a-4e93-bd7d-b4247b89768b"}' + content: '{"object":"block","id":"16cabc1e-edcd-8123-b0a1-c5f643612dc2","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:43.147215"},"request_id":"e02cf3da-49fb-48cb-b8dd-5801a0f9814c"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_comments_list.yaml b/tests/cassettes/test_comments_list.yaml index 222bbe4..b1197e3 100644 --- a/tests/cassettes/test_comments_list.yaml +++ b/tests/cassettes/test_comments_list.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:36.900477"}}]},"children":[]}' + 2024-12-30 18:21:45.397148"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,14 +22,14 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8168-b453-e22d2a32f573","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:36.900477","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:36.900477","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-36-900477-16cabc1eedcd8168b453e22d2a32f573","public_url":null,"request_id":"047ae9da-11ac-41d8-bb2a-2c21b5e95e92"}' + content: '{"object":"page","id":"16cabc1e-edcd-8109-b3ab-e943a964defd","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:45.397148","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:45.397148","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-45-397148-16cabc1eedcd8109b3abe943a964defd","public_url":null,"request_id":"68adbea4-d217-48af-a57d-498284ea1bee"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"page_id":"16cabc1e-edcd-8168-b453-e22d2a32f573"},"rich_text":[{"text":{"content":"This + body: '{"parent":{"page_id":"16cabc1e-edcd-8109-b3ab-e943a964defd"},"rich_text":[{"text":{"content":"This is a test comment."}}]}' headers: accept: @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/comments response: - content: '{"object":"comment","id":"16cabc1e-edcd-81d6-8c9d-001d9811a890","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8168-b453-e22d2a32f573"},"discussion_id":"16cabc1e-edcd-812c-bb2e-001c0323a356","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This + content: '{"object":"comment","id":"16cabc1e-edcd-8112-9e53-001df5bcc68a","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8109-b3ab-e943a964defd"},"discussion_id":"16cabc1e-edcd-81a2-b080-001ca9f17ab9","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This is a test comment.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"This - is a test comment.","href":null}],"request_id":"72bd0e0e-3ee8-414a-9bf5-3b38dddb2d0e"}' + is a test comment.","href":null}],"request_id":"0ac9e00e-9937-4625-8432-c08a86147590"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,11 +73,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/comments?block_id=16cabc1e-edcd-8168-b453-e22d2a32f573 + uri: https://api.notion.com/v1/comments?block_id=16cabc1e-edcd-8109-b3ab-e943a964defd response: - content: '{"object":"list","results":[{"object":"comment","id":"16cabc1e-edcd-81d6-8c9d-001d9811a890","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8168-b453-e22d2a32f573"},"discussion_id":"16cabc1e-edcd-812c-bb2e-001c0323a356","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This + content: '{"object":"list","results":[{"object":"comment","id":"16cabc1e-edcd-8112-9e53-001df5bcc68a","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8109-b3ab-e943a964defd"},"discussion_id":"16cabc1e-edcd-81a2-b080-001ca9f17ab9","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This is a test comment.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"This - is a test comment.","href":null}]}],"next_cursor":null,"has_more":false,"type":"comment","comment":{},"request_id":"4317462b-b270-490a-bec5-1d0a11c18268"}' + is a test comment.","href":null}]}],"next_cursor":null,"has_more":false,"type":"comment","comment":{},"request_id":"5997a632-5012-4e96-b1e0-48997172379b"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -89,7 +89,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -97,10 +97,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8168-b453-e22d2a32f573 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8109-b3ab-e943a964defd response: - content: '{"object":"block","id":"16cabc1e-edcd-8168-b453-e22d2a32f573","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:36.900477"},"request_id":"e5723dba-a7f2-4824-b2b9-0ded8ff9ed10"}' + content: '{"object":"block","id":"16cabc1e-edcd-8109-b3ab-e943a964defd","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:45.397148"},"request_id":"83095cb6-8e35-4dc5-bde5-bb8b6df65594"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_databases_create.yaml b/tests/cassettes/test_databases_create.yaml index 262ab5c..8c642de 100644 --- a/tests/cassettes/test_databases_create.yaml +++ b/tests/cassettes/test_databases_create.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:14.212294"}}]},"children":[]}' + 2024-12-30 18:21:23.128345"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,14 +22,14 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8174-bdef-d9ad2b4182d3","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:14.212294","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:14.212294","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-14-212294-16cabc1eedcd8174bdefd9ad2b4182d3","public_url":null,"request_id":"d1f14718-bce9-41d0-bb0c-1da4b09aae4c"}' + content: '{"object":"page","id":"16cabc1e-edcd-8109-ac7a-fd0eeb5bf4c2","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:23.128345","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:23.128345","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-23-128345-16cabc1eedcd8109ac7afd0eeb5bf4c2","public_url":null,"request_id":"9416d61e-ef18-4117-9cca-482556492696"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8174-bdef-d9ad2b4182d3"},"title":[{"type":"text","text":{"content":"Test + body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8109-ac7a-fd0eeb5bf4c2"},"title":[{"type":"text","text":{"content":"Test Database"}}],"properties":{"Name":{"title":{}}}}' headers: accept: @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/databases response: - content: '{"object":"database","id":"16cabc1e-edcd-8133-9437-ca311e3d2a58","cover":null,"icon":null,"created_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:09:00.000Z","title":[{"type":"text","text":{"content":"Test + content: '{"object":"database","id":"16cabc1e-edcd-819b-afa1-eac238462cdc","cover":null,"icon":null,"created_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:21:00.000Z","title":[{"type":"text","text":{"content":"Test Database","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8174-bdef-d9ad2b4182d3"},"url":"https://www.notion.so/16cabc1eedcd81339437ca311e3d2a58","public_url":null,"archived":false,"in_trash":false,"request_id":"d5438fd5-cf55-49ae-a383-bb17eaeab987"}' + Database","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8109-ac7a-fd0eeb5bf4c2"},"url":"https://www.notion.so/16cabc1eedcd819bafa1eac238462cdc","public_url":null,"archived":false,"in_trash":false,"request_id":"3099beb9-0751-445d-a37c-9fdfd57f026e"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,10 +73,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8174-bdef-d9ad2b4182d3 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8109-ac7a-fd0eeb5bf4c2 response: - content: '{"object":"block","id":"16cabc1e-edcd-8174-bdef-d9ad2b4182d3","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":true,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:14.212294"},"request_id":"64cad1f0-e2ef-4b8c-92cf-de233d3a7746"}' + content: '{"object":"block","id":"16cabc1e-edcd-8109-ac7a-fd0eeb5bf4c2","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":true,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:23.128345"},"request_id":"cfe91fed-3f82-4314-91da-377371fbf018"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_databases_query.yaml b/tests/cassettes/test_databases_query.yaml index 2f4ffc0..0a88007 100644 --- a/tests/cassettes/test_databases_query.yaml +++ b/tests/cassettes/test_databases_query.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:20.640717"}}]},"children":[]}' + 2024-12-30 18:21:26.692175"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,22 +22,22 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-813f-b7f6-f166e3a927bf","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:20.640717","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:20.640717","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-20-640717-16cabc1eedcd813fb7f6f166e3a927bf","public_url":null,"request_id":"143fb3f4-e40d-4cc2-a272-811bddb6f016"}' + content: '{"object":"page","id":"16cabc1e-edcd-811a-a03b-c3f770e7caa8","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:26.692175","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:26.692175","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-26-692175-16cabc1eedcd811aa03bc3f770e7caa8","public_url":null,"request_id":"abcce442-633d-422b-b026-0cb880c26320"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-813f-b7f6-f166e3a927bf"},"title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:22.089821"}}],"properties":{"Name":{"title":{}}}}' + body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-811a-a03b-c3f770e7caa8"},"title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:27.425666"}}],"properties":{"Name":{"title":{}}}}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/databases response: - content: '{"object":"database","id":"16cabc1e-edcd-810d-b7c7-c418e248dbe0","cover":null,"icon":null,"created_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:09:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:22.089821","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:09:22.089821","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-813f-b7f6-f166e3a927bf"},"url":"https://www.notion.so/16cabc1eedcd810db7c7c418e248dbe0","public_url":null,"archived":false,"in_trash":false,"request_id":"f07bc529-6a44-452a-b117-1d369539fc1b"}' + content: '{"object":"database","id":"16cabc1e-edcd-8162-9ab8-c71fc1e7ee93","cover":null,"icon":null,"created_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:21:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:27.425666","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:21:27.425666","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-811a-a03b-c3f770e7caa8"},"url":"https://www.notion.so/16cabc1eedcd81629ab8c71fc1e7ee93","public_url":null,"archived":false,"in_trash":false,"request_id":"bccbcfd2-9d05-4ba8-ba8a-262399550bdc"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -77,9 +77,9 @@ interactions: notion-version: - '2022-06-28' method: POST - uri: https://api.notion.com/v1/databases/16cabc1e-edcd-810d-b7c7-c418e248dbe0/query + uri: https://api.notion.com/v1/databases/16cabc1e-edcd-8162-9ab8-c71fc1e7ee93/query response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"233baee7-f826-4a34-9833-b7cd1264171e"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"dcba77ed-76bf-4a9c-bbf0-9550f62551ce"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -91,7 +91,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -99,10 +99,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-810d-b7c7-c418e248dbe0 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8162-9ab8-c71fc1e7ee93 response: - content: '{"object":"block","id":"16cabc1e-edcd-810d-b7c7-c418e248dbe0","parent":{"type":"page_id","page_id":"16cabc1e-edcd-813f-b7f6-f166e3a927bf"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test - Database - 2024-12-30 18:09:22.089821"},"request_id":"c7790dda-5232-4ba7-8ab8-ebe88a8602bc"}' + content: '{"object":"block","id":"16cabc1e-edcd-8162-9ab8-c71fc1e7ee93","parent":{"type":"page_id","page_id":"16cabc1e-edcd-811a-a03b-c3f770e7caa8"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test + Database - 2024-12-30 18:21:27.425666"},"request_id":"64f4c580-28ef-405b-b55d-bcfdd4221c3e"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -114,7 +114,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -122,10 +122,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-813f-b7f6-f166e3a927bf + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-811a-a03b-c3f770e7caa8 response: - content: '{"object":"block","id":"16cabc1e-edcd-813f-b7f6-f166e3a927bf","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:20.640717"},"request_id":"f59b251a-5895-4558-9e20-8b72fb11bf00"}' + content: '{"object":"block","id":"16cabc1e-edcd-811a-a03b-c3f770e7caa8","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:26.692175"},"request_id":"7799db9c-32ba-438e-9a45-fe3626dd7a30"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_databases_retrieve.yaml b/tests/cassettes/test_databases_retrieve.yaml index ea433ee..32820c5 100644 --- a/tests/cassettes/test_databases_retrieve.yaml +++ b/tests/cassettes/test_databases_retrieve.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:24.729402"}}]},"children":[]}' + 2024-12-30 18:21:29.524316"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,22 +22,22 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81cd-97db-d26ac764014f","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:24.729402","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:24.729402","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-24-729402-16cabc1eedcd81cd97dbd26ac764014f","public_url":null,"request_id":"d1b974db-49fe-4055-ae7f-052038fa237f"}' + content: '{"object":"page","id":"16cabc1e-edcd-8130-87d8-d12cecc2579e","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:29.524316","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:29.524316","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-29-524316-16cabc1eedcd813087d8d12cecc2579e","public_url":null,"request_id":"771b2d68-988a-40cd-8c16-8fd3a96adac1"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-81cd-97db-d26ac764014f"},"title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:25.166914"}}],"properties":{"Name":{"title":{}}}}' + body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8130-87d8-d12cecc2579e"},"title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:30.072949"}}],"properties":{"Name":{"title":{}}}}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/databases response: - content: '{"object":"database","id":"16cabc1e-edcd-81ff-be71-fab6d899fd54","cover":null,"icon":null,"created_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:09:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:25.166914","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:09:25.166914","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-81cd-97db-d26ac764014f"},"url":"https://www.notion.so/16cabc1eedcd81ffbe71fab6d899fd54","public_url":null,"archived":false,"in_trash":false,"request_id":"b4134019-8afc-439d-903c-ed65a8b3107e"}' + content: '{"object":"database","id":"16cabc1e-edcd-8157-b05e-e76668756101","cover":null,"icon":null,"created_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:21:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:30.072949","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:21:30.072949","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8130-87d8-d12cecc2579e"},"url":"https://www.notion.so/16cabc1eedcd8157b05ee76668756101","public_url":null,"archived":false,"in_trash":false,"request_id":"03b2c822-5251-4c25-b715-1981969fbe53"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,11 +73,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/databases/16cabc1e-edcd-81ff-be71-fab6d899fd54 + uri: https://api.notion.com/v1/databases/16cabc1e-edcd-8157-b05e-e76668756101 response: - content: '{"object":"database","id":"16cabc1e-edcd-81ff-be71-fab6d899fd54","cover":null,"icon":null,"created_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:09:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:25.166914","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:09:25.166914","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-81cd-97db-d26ac764014f"},"url":"https://www.notion.so/16cabc1eedcd81ffbe71fab6d899fd54","public_url":null,"archived":false,"in_trash":false,"request_id":"a20b67f5-113c-4a45-8edf-e9a9ece25a66"}' + content: '{"object":"database","id":"16cabc1e-edcd-8157-b05e-e76668756101","cover":null,"icon":null,"created_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:21:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:30.072949","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:21:30.072949","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8130-87d8-d12cecc2579e"},"url":"https://www.notion.so/16cabc1eedcd8157b05ee76668756101","public_url":null,"archived":false,"in_trash":false,"request_id":"8f83aab3-a0af-436b-9261-26273e6160bf"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -89,7 +89,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -97,10 +97,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ff-be71-fab6d899fd54 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8157-b05e-e76668756101 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ff-be71-fab6d899fd54","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81cd-97db-d26ac764014f"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test - Database - 2024-12-30 18:09:25.166914"},"request_id":"f078214b-36b7-4eb9-8e48-e1ae6953305e"}' + content: '{"object":"block","id":"16cabc1e-edcd-8157-b05e-e76668756101","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8130-87d8-d12cecc2579e"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test + Database - 2024-12-30 18:21:30.072949"},"request_id":"1d45191a-b46f-4b02-bb3e-2313b47d2508"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -112,7 +112,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -120,10 +120,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81cd-97db-d26ac764014f + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8130-87d8-d12cecc2579e response: - content: '{"object":"block","id":"16cabc1e-edcd-81cd-97db-d26ac764014f","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:24.729402"},"request_id":"219dcd84-2bcc-4163-ad2f-cd2915ab1241"}' + content: '{"object":"block","id":"16cabc1e-edcd-8130-87d8-d12cecc2579e","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:29.524316"},"request_id":"b3123a16-856b-408b-9c27-3ba9674ae711"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_databases_update.yaml b/tests/cassettes/test_databases_update.yaml index a716a1f..41f1332 100644 --- a/tests/cassettes/test_databases_update.yaml +++ b/tests/cassettes/test_databases_update.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:28.987947"}}]},"children":[]}' + 2024-12-30 18:21:36.964085"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,22 +22,22 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8187-a921-c34b3b16256d","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:28.987947","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:28.987947","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-28-987947-16cabc1eedcd8187a921c34b3b16256d","public_url":null,"request_id":"94caacd0-4354-4791-9ba2-e59383634629"}' + content: '{"object":"page","id":"16cabc1e-edcd-815e-91d2-dab5bc6ec4b1","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:36.964085","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:36.964085","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-36-964085-16cabc1eedcd815e91d2dab5bc6ec4b1","public_url":null,"request_id":"9d1c732d-a9b5-4f62-ba07-9b1e846bb657"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8187-a921-c34b3b16256d"},"title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:29.414894"}}],"properties":{"Name":{"title":{}}}}' + body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-815e-91d2-dab5bc6ec4b1"},"title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:37.493268"}}],"properties":{"Name":{"title":{}}}}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/databases response: - content: '{"object":"database","id":"16cabc1e-edcd-815d-b91d-c76f4b61e16d","cover":null,"icon":null,"created_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:09:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:09:29.414894","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:09:29.414894","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8187-a921-c34b3b16256d"},"url":"https://www.notion.so/16cabc1eedcd815db91dc76f4b61e16d","public_url":null,"archived":false,"in_trash":false,"request_id":"f35c39a0-daa3-40ed-a477-1fbafb65012e"}' + content: '{"object":"database","id":"16cabc1e-edcd-8129-ad77-daf033646084","cover":null,"icon":null,"created_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:21:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:21:37.493268","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:21:37.493268","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-815e-91d2-dab5bc6ec4b1"},"url":"https://www.notion.so/16cabc1eedcd8129ad77daf033646084","public_url":null,"archived":false,"in_trash":false,"request_id":"09cabc28-2d6e-4b1d-93c6-99e6e7fc883c"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -77,11 +77,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/databases/16cabc1e-edcd-815d-b91d-c76f4b61e16d + uri: https://api.notion.com/v1/databases/16cabc1e-edcd-8129-ad77-daf033646084 response: - content: "{\"object\":\"database\",\"id\":\"16cabc1e-edcd-815d-b91d-c76f4b61e16d\",\"cover\":null,\"icon\":{\"type\":\"emoji\",\"emoji\":\"\U0001F525\"},\"created_time\":\"2024-12-30T17:09:00.000Z\",\"created_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"last_edited_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"last_edited_time\":\"2024-12-30T17:09:00.000Z\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Test - Database - 2024-12-30 18:09:29.414894\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Test - Database - 2024-12-30 18:09:29.414894\",\"href\":null}],\"description\":[],\"is_inline\":false,\"properties\":{\"Name\":{\"id\":\"title\",\"name\":\"Name\",\"type\":\"title\",\"title\":{}}},\"parent\":{\"type\":\"page_id\",\"page_id\":\"16cabc1e-edcd-8187-a921-c34b3b16256d\"},\"url\":\"https://www.notion.so/16cabc1eedcd815db91dc76f4b61e16d\",\"public_url\":null,\"archived\":false,\"in_trash\":false,\"request_id\":\"7cd3386c-b4e9-413b-b5bd-5c2527c79e6d\"}" + content: "{\"object\":\"database\",\"id\":\"16cabc1e-edcd-8129-ad77-daf033646084\",\"cover\":null,\"icon\":{\"type\":\"emoji\",\"emoji\":\"\U0001F525\"},\"created_time\":\"2024-12-30T17:21:00.000Z\",\"created_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"last_edited_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"last_edited_time\":\"2024-12-30T17:21:00.000Z\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Test + Database - 2024-12-30 18:21:37.493268\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Test + Database - 2024-12-30 18:21:37.493268\",\"href\":null}],\"description\":[],\"is_inline\":false,\"properties\":{\"Name\":{\"id\":\"title\",\"name\":\"Name\",\"type\":\"title\",\"title\":{}}},\"parent\":{\"type\":\"page_id\",\"page_id\":\"16cabc1e-edcd-815e-91d2-dab5bc6ec4b1\"},\"url\":\"https://www.notion.so/16cabc1eedcd8129ad77daf033646084\",\"public_url\":null,\"archived\":false,\"in_trash\":false,\"request_id\":\"cbba3e13-4066-4b36-8dd2-638388fd442b\"}" headers: {} http_version: HTTP/1.1 status_code: 200 @@ -93,7 +93,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -101,10 +101,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-815d-b91d-c76f4b61e16d + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8129-ad77-daf033646084 response: - content: '{"object":"block","id":"16cabc1e-edcd-815d-b91d-c76f4b61e16d","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8187-a921-c34b3b16256d"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test - Database - 2024-12-30 18:09:29.414894"},"request_id":"029fbc1b-2129-493d-96a1-1eb8e3491b5a"}' + content: '{"object":"block","id":"16cabc1e-edcd-8129-ad77-daf033646084","parent":{"type":"page_id","page_id":"16cabc1e-edcd-815e-91d2-dab5bc6ec4b1"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test + Database - 2024-12-30 18:21:37.493268"},"request_id":"ed70e3f3-dd4c-413b-b5e1-710a1040870f"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -116,7 +116,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -124,10 +124,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8187-a921-c34b3b16256d + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-815e-91d2-dab5bc6ec4b1 response: - content: '{"object":"block","id":"16cabc1e-edcd-8187-a921-c34b3b16256d","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:28.987947"},"request_id":"35fbe287-e5a9-45f4-8943-29d14d5f8783"}' + content: '{"object":"block","id":"16cabc1e-edcd-815e-91d2-dab5bc6ec4b1","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:36.964085"},"request_id":"a3702f78-b773-48e1-a046-331f0022e186"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_equation_rich_text_item_response.yaml b/tests/cassettes/test_is_equation_rich_text_item_response.yaml index f40fd9e..f9df18a 100644 --- a/tests/cassettes/test_is_equation_rich_text_item_response.yaml +++ b/tests/cassettes/test_is_equation_rich_text_item_response.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:53.980573"}}]},"children":[]}' + 2024-12-30 18:24:03.374679"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81ff-aee7-e31f80bc9f37","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:53.980573","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:53.980573","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-53-980573-16cabc1eedcd81ffaee7e31f80bc9f37","public_url":null,"request_id":"f8eb39de-a71a-43de-8971-f503c86aa727"}' + content: '{"object":"page","id":"16cabc1e-edcd-8192-a856-eb5cd59e9f21","created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:24:03.374679","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:24:03.374679","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-24-03-374679-16cabc1eedcd8192a856eb5cd59e9f21","public_url":null,"request_id":"d479d4df-33b7-4bb2-ac92-77d52fd71004"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -49,11 +49,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ff-aee7-e31f80bc9f37/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8192-a856-eb5cd59e9f21/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-81af-bc82-fd162c524a09","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81ff-aee7-e31f80bc9f37"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"equation","equation":{"expression":"E + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-8116-adb6-d3d167fb3399","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8192-a856-eb5cd59e9f21"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"equation","equation":{"expression":"E = mc^2"},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"E - = mc^2","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"2ea0bac9-1b0a-4e9e-a0b8-7717837c6563"}' + = mc^2","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"f36d4d70-bd33-4afc-b3f8-0878adba86b0"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,11 +73,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81af-bc82-fd162c524a09 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8116-adb6-d3d167fb3399 response: - content: '{"object":"block","id":"16cabc1e-edcd-81af-bc82-fd162c524a09","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81ff-aee7-e31f80bc9f37"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"equation","equation":{"expression":"E + content: '{"object":"block","id":"16cabc1e-edcd-8116-adb6-d3d167fb3399","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8192-a856-eb5cd59e9f21"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"equation","equation":{"expression":"E = mc^2"},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"E - = mc^2","href":null}],"color":"default"},"request_id":"cba586a2-aeab-408c-b948-fd51c65e41e3"}' + = mc^2","href":null}],"color":"default"},"request_id":"1be570d0-2ae7-4234-8052-24215d0bfcc2"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -89,7 +89,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -97,11 +97,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81af-bc82-fd162c524a09 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8116-adb6-d3d167fb3399 response: - content: '{"object":"block","id":"16cabc1e-edcd-81af-bc82-fd162c524a09","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81ff-aee7-e31f80bc9f37"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"equation","equation":{"expression":"E + content: '{"object":"block","id":"16cabc1e-edcd-8116-adb6-d3d167fb3399","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8192-a856-eb5cd59e9f21"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"equation","equation":{"expression":"E = mc^2"},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"E - = mc^2","href":null}],"color":"default"},"request_id":"937266e8-c7c1-4404-b774-0a6650a6c036"}' + = mc^2","href":null}],"color":"default"},"request_id":"67110801-12bf-4a95-a6ae-0737e7582dea"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -113,7 +113,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -121,10 +121,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ff-aee7-e31f80bc9f37 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8192-a856-eb5cd59e9f21 response: - content: '{"object":"block","id":"16cabc1e-edcd-81ff-aee7-e31f80bc9f37","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:53.980573"},"request_id":"405d2495-34a9-479c-8473-fde0f405471a"}' + content: '{"object":"block","id":"16cabc1e-edcd-8192-a856-eb5cd59e9f21","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:24:03.374679"},"request_id":"b4a1df01-b919-44bc-9b16-790aaf1e99a3"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_full_block.yaml b/tests/cassettes/test_is_full_block.yaml index 58808e0..1c65f47 100644 --- a/tests/cassettes/test_is_full_block.yaml +++ b/tests/cassettes/test_is_full_block.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:30.961813"}}]},"children":[]}' + 2024-12-30 18:23:38.665176"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8171-827c-de0318f36902","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:30.961813","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:30.961813","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-30-961813-16cabc1eedcd8171827cde0318f36902","public_url":null,"request_id":"92e5e771-e3ff-4ee9-b0bd-e4a36ecea56f"}' + content: '{"object":"page","id":"16cabc1e-edcd-8165-9f0b-ed678bda0d68","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:38.665176","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:38.665176","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-38-665176-16cabc1eedcd81659f0bed678bda0d68","public_url":null,"request_id":"ed76baad-a274-442d-93c7-ae86049c97d4"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8171-827c-de0318f36902/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8165-9f0b-ed678bda0d68/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-81e3-b281-df679a6c6d5a","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8171-827c-de0318f36902"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-81c8-8309-f5b7b460eed1","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8165-9f0b-ed678bda0d68"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"2a413fd4-6da9-4a87-aa54-cf6b73091f9b"}' + a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"81b462a0-ae3d-48d4-bc20-29587967cf4a"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -72,11 +72,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81e3-b281-df679a6c6d5a + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c8-8309-f5b7b460eed1 response: - content: '{"object":"block","id":"16cabc1e-edcd-81e3-b281-df679a6c6d5a","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8171-827c-de0318f36902"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-81c8-8309-f5b7b460eed1","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8165-9f0b-ed678bda0d68"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"9510be2a-2a49-4789-9d06-8fd71919156e"}' + a paragraph.","href":null}],"color":"default"},"request_id":"7f21ca93-a9dd-4978-a558-4a46dd4d118f"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -88,7 +88,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -96,11 +96,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81e3-b281-df679a6c6d5a + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c8-8309-f5b7b460eed1 response: - content: '{"object":"block","id":"16cabc1e-edcd-81e3-b281-df679a6c6d5a","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8171-827c-de0318f36902"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-81c8-8309-f5b7b460eed1","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8165-9f0b-ed678bda0d68"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"4c3f3da9-da94-431b-a557-d209c11bb4d8"}' + a paragraph.","href":null}],"color":"default"},"request_id":"72c3e9a8-d231-418a-8b92-bde2335a3198"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -112,7 +112,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -120,10 +120,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8171-827c-de0318f36902 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8165-9f0b-ed678bda0d68 response: - content: '{"object":"block","id":"16cabc1e-edcd-8171-827c-de0318f36902","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:30.961813"},"request_id":"3fea0972-a3c4-4867-991c-3d117328fddb"}' + content: '{"object":"block","id":"16cabc1e-edcd-8165-9f0b-ed678bda0d68","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:23:38.665176"},"request_id":"5032be34-3e3e-43ff-8123-c88e9b14d9b0"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_full_comment.yaml b/tests/cassettes/test_is_full_comment.yaml index 7ee128c..d392715 100644 --- a/tests/cassettes/test_is_full_comment.yaml +++ b/tests/cassettes/test_is_full_comment.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:48.112094"}}]},"children":[]}' + 2024-12-30 18:23:54.022858"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,14 +22,14 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-810b-a3bd-e09bfaf28226","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:48.112094","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:48.112094","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-48-112094-16cabc1eedcd810ba3bde09bfaf28226","public_url":null,"request_id":"f9821024-6255-4e26-bb41-5873943b182d"}' + content: '{"object":"page","id":"16cabc1e-edcd-815b-bb7e-e1a3010bdf89","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:54.022858","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:54.022858","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-54-022858-16cabc1eedcd815bbb7ee1a3010bdf89","public_url":null,"request_id":"58260764-e29e-4b04-8ce5-064aa7baabbd"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"page_id":"16cabc1e-edcd-810b-a3bd-e09bfaf28226"},"rich_text":[{"text":{"content":"This + body: '{"parent":{"page_id":"16cabc1e-edcd-815b-bb7e-e1a3010bdf89"},"rich_text":[{"text":{"content":"This is a test comment."}}]}' headers: accept: @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/comments response: - content: '{"object":"comment","id":"16cabc1e-edcd-8154-aec3-001d4b78d4ee","parent":{"type":"page_id","page_id":"16cabc1e-edcd-810b-a3bd-e09bfaf28226"},"discussion_id":"16cabc1e-edcd-8122-92f8-001c26b358e4","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This + content: '{"object":"comment","id":"16cabc1e-edcd-81c7-a099-001d7bf827a5","parent":{"type":"page_id","page_id":"16cabc1e-edcd-815b-bb7e-e1a3010bdf89"},"discussion_id":"16cabc1e-edcd-81a7-81cc-001c43928b26","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This is a test comment.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"This - is a test comment.","href":null}],"request_id":"125e8c20-e18b-46c3-a8f7-87faa613870f"}' + is a test comment.","href":null}],"request_id":"3e242e40-755a-44df-b830-eb7f5f6b27a0"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,11 +73,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/comments?block_id=16cabc1e-edcd-810b-a3bd-e09bfaf28226 + uri: https://api.notion.com/v1/comments?block_id=16cabc1e-edcd-815b-bb7e-e1a3010bdf89 response: - content: '{"object":"list","results":[{"object":"comment","id":"16cabc1e-edcd-8154-aec3-001d4b78d4ee","parent":{"type":"page_id","page_id":"16cabc1e-edcd-810b-a3bd-e09bfaf28226"},"discussion_id":"16cabc1e-edcd-8122-92f8-001c26b358e4","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This + content: '{"object":"list","results":[{"object":"comment","id":"16cabc1e-edcd-81c7-a099-001d7bf827a5","parent":{"type":"page_id","page_id":"16cabc1e-edcd-815b-bb7e-e1a3010bdf89"},"discussion_id":"16cabc1e-edcd-81a7-81cc-001c43928b26","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"rich_text":[{"type":"text","text":{"content":"This is a test comment.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"This - is a test comment.","href":null}]}],"next_cursor":null,"has_more":false,"type":"comment","comment":{},"request_id":"025b1e34-1572-416e-9fb1-70ff9c878430"}' + is a test comment.","href":null}]}],"next_cursor":null,"has_more":false,"type":"comment","comment":{},"request_id":"d94008dc-c7b3-454a-89f4-a4cc6fbcefbd"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -89,7 +89,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -97,10 +97,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-810b-a3bd-e09bfaf28226 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-815b-bb7e-e1a3010bdf89 response: - content: '{"object":"block","id":"16cabc1e-edcd-810b-a3bd-e09bfaf28226","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:48.112094"},"request_id":"b1a538c1-e722-408c-8124-a73b83814848"}' + content: '{"object":"block","id":"16cabc1e-edcd-815b-bb7e-e1a3010bdf89","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:23:54.022858"},"request_id":"7aa1c17f-e1ec-42d1-9aee-be28a765e9d1"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_full_database.yaml b/tests/cassettes/test_is_full_database.yaml index 31854fc..a9875d8 100644 --- a/tests/cassettes/test_is_full_database.yaml +++ b/tests/cassettes/test_is_full_database.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:37.697658"}}]},"children":[]}' + 2024-12-30 18:23:43.701008"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,22 +22,22 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8150-881c-f6b22840f4d4","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:37.697658","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:37.697658","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-37-697658-16cabc1eedcd8150881cf6b22840f4d4","public_url":null,"request_id":"5fad460e-573c-4f61-8bed-c437977558e2"}' + content: '{"object":"page","id":"16cabc1e-edcd-810e-9417-cef234a6173a","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:43.701008","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:43.701008","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-43-701008-16cabc1eedcd810e9417cef234a6173a","public_url":null,"request_id":"f21904f9-fce3-4950-b65a-b729be72de99"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8150-881c-f6b22840f4d4"},"title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:11:38.185029"}}],"properties":{"Name":{"title":{}}}}' + body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-810e-9417-cef234a6173a"},"title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:23:46.766904"}}],"properties":{"Name":{"title":{}}}}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/databases response: - content: '{"object":"database","id":"16cabc1e-edcd-81db-a0ed-f8501f80ad14","cover":null,"icon":null,"created_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:11:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:11:38.185029","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:11:38.185029","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8150-881c-f6b22840f4d4"},"url":"https://www.notion.so/16cabc1eedcd81dba0edf8501f80ad14","public_url":null,"archived":false,"in_trash":false,"request_id":"c8c067e4-102b-4c6b-bda3-a8e0954b2dde"}' + content: '{"object":"database","id":"16cabc1e-edcd-8192-8dd5-ce6b898d8711","cover":null,"icon":null,"created_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:23:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:23:46.766904","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:23:46.766904","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-810e-9417-cef234a6173a"},"url":"https://www.notion.so/16cabc1eedcd81928dd5ce6b898d8711","public_url":null,"archived":false,"in_trash":false,"request_id":"b3bee047-ba28-47b3-94e9-457ce9bc1f7a"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,11 +73,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/databases/16cabc1e-edcd-81db-a0ed-f8501f80ad14 + uri: https://api.notion.com/v1/databases/16cabc1e-edcd-8192-8dd5-ce6b898d8711 response: - content: '{"object":"database","id":"16cabc1e-edcd-81db-a0ed-f8501f80ad14","cover":null,"icon":null,"created_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:11:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:11:38.185029","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:11:38.185029","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8150-881c-f6b22840f4d4"},"url":"https://www.notion.so/16cabc1eedcd81dba0edf8501f80ad14","public_url":null,"archived":false,"in_trash":false,"request_id":"dec0270b-fec4-4ca4-857c-c0abbfb9ccb1"}' + content: '{"object":"database","id":"16cabc1e-edcd-8192-8dd5-ce6b898d8711","cover":null,"icon":null,"created_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:23:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:23:46.766904","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:23:46.766904","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-810e-9417-cef234a6173a"},"url":"https://www.notion.so/16cabc1eedcd81928dd5ce6b898d8711","public_url":null,"archived":false,"in_trash":false,"request_id":"384d6a42-c75a-4b9c-b307-249e6a78e3ea"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -89,7 +89,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -97,10 +97,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81db-a0ed-f8501f80ad14 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8192-8dd5-ce6b898d8711 response: - content: '{"object":"block","id":"16cabc1e-edcd-81db-a0ed-f8501f80ad14","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8150-881c-f6b22840f4d4"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test - Database - 2024-12-30 18:11:38.185029"},"request_id":"d3345fed-33e2-4f87-87c4-a268abdf41fd"}' + content: '{"object":"block","id":"16cabc1e-edcd-8192-8dd5-ce6b898d8711","parent":{"type":"page_id","page_id":"16cabc1e-edcd-810e-9417-cef234a6173a"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test + Database - 2024-12-30 18:23:46.766904"},"request_id":"d5bd5b3c-1100-4c3f-9007-03b55199e1da"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -112,7 +112,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -120,10 +120,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8150-881c-f6b22840f4d4 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-810e-9417-cef234a6173a response: - content: '{"object":"block","id":"16cabc1e-edcd-8150-881c-f6b22840f4d4","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:37.697658"},"request_id":"39c0d147-543d-4949-9c66-67f8a952f3e0"}' + content: '{"object":"block","id":"16cabc1e-edcd-810e-9417-cef234a6173a","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:23:43.701008"},"request_id":"df8591db-983a-4650-a072-76b2328c4d65"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_full_page.yaml b/tests/cassettes/test_is_full_page.yaml index 60e18fd..6281269 100644 --- a/tests/cassettes/test_is_full_page.yaml +++ b/tests/cassettes/test_is_full_page.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:35.335413"}}]},"children":[]}' + 2024-12-30 18:23:41.737250"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8141-824f-f7a0abf84c15","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:35.335413","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:35.335413","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-35-335413-16cabc1eedcd8141824ff7a0abf84c15","public_url":null,"request_id":"60918985-f64d-41fa-8c3e-9970a7b08807"}' + content: '{"object":"page","id":"16cabc1e-edcd-8174-a5ee-dad54c04d466","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:41.737250","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:41.737250","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-41-737250-16cabc1eedcd8174a5eedad54c04d466","public_url":null,"request_id":"efe685ca-8350-4eb9-9af1-99970d4ae4f0"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -44,11 +44,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-8141-824f-f7a0abf84c15 + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-8174-a5ee-dad54c04d466 response: - content: '{"object":"page","id":"16cabc1e-edcd-8141-824f-f7a0abf84c15","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:35.335413","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:35.335413","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-35-335413-16cabc1eedcd8141824ff7a0abf84c15","public_url":null,"request_id":"1b7b8ef1-5f9d-48c2-b332-02e503506438"}' + content: '{"object":"page","id":"16cabc1e-edcd-8174-a5ee-dad54c04d466","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:41.737250","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:41.737250","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-41-737250-16cabc1eedcd8174a5eedad54c04d466","public_url":null,"request_id":"7e261df7-d0f3-4f1d-aba7-5fe14c0c7f66"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -60,7 +60,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -68,10 +68,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8141-824f-f7a0abf84c15 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8174-a5ee-dad54c04d466 response: - content: '{"object":"block","id":"16cabc1e-edcd-8141-824f-f7a0abf84c15","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:35.335413"},"request_id":"96a53305-00dd-48d2-8638-feafb69168b9"}' + content: '{"object":"block","id":"16cabc1e-edcd-8174-a5ee-dad54c04d466","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:23:41.737250"},"request_id":"e49011bc-a0cf-4676-a002-aa4f49dac6ee"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_full_page_or_database.yaml b/tests/cassettes/test_is_full_page_or_database.yaml index 028ce08..af84f1e 100644 --- a/tests/cassettes/test_is_full_page_or_database.yaml +++ b/tests/cassettes/test_is_full_page_or_database.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:43.193427"}}]},"children":[]}' + 2024-12-30 18:23:49.883292"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,22 +22,22 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8158-98bf-e35e573522ba","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:43.193427","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:43.193427","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-43-193427-16cabc1eedcd815898bfe35e573522ba","public_url":null,"request_id":"a0a79b25-7f5f-4ac4-8225-500ad96e2a1a"}' + content: '{"object":"page","id":"16cabc1e-edcd-8117-a024-fa5446b89751","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:49.883292","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:49.883292","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-49-883292-16cabc1eedcd8117a024fa5446b89751","public_url":null,"request_id":"870ab205-2a3c-4ae0-aa60-02e7eed99a4b"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8158-98bf-e35e573522ba"},"title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:11:43.659703"}}],"properties":{"Name":{"title":{}}}}' + body: '{"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8117-a024-fa5446b89751"},"title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:23:50.371934"}}],"properties":{"Name":{"title":{}}}}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/databases response: - content: '{"object":"database","id":"16cabc1e-edcd-81ef-ad7e-ff26e0414536","cover":null,"icon":null,"created_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:11:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:11:43.659703","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:11:43.659703","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8158-98bf-e35e573522ba"},"url":"https://www.notion.so/16cabc1eedcd81efad7eff26e0414536","public_url":null,"archived":false,"in_trash":false,"request_id":"52fe9237-1d7c-41ff-a464-c0543ce7eaf4"}' + content: '{"object":"database","id":"16cabc1e-edcd-8127-9930-e737723566db","cover":null,"icon":null,"created_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:23:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:23:50.371934","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:23:50.371934","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8117-a024-fa5446b89751"},"url":"https://www.notion.so/16cabc1eedcd81279930e737723566db","public_url":null,"archived":false,"in_trash":false,"request_id":"7c721477-0f51-4dec-a824-c05bc94aff34"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -65,7 +65,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -73,11 +73,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-8158-98bf-e35e573522ba + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-8117-a024-fa5446b89751 response: - content: '{"object":"page","id":"16cabc1e-edcd-8158-98bf-e35e573522ba","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:43.193427","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:43.193427","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-43-193427-16cabc1eedcd815898bfe35e573522ba","public_url":null,"request_id":"46f1312b-1296-477e-ab7f-a82a353aa86b"}' + content: '{"object":"page","id":"16cabc1e-edcd-8117-a024-fa5446b89751","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:49.883292","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:49.883292","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-49-883292-16cabc1eedcd8117a024fa5446b89751","public_url":null,"request_id":"83a30f44-88a5-4f36-9423-419a19911af9"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -89,7 +89,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -97,11 +97,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/databases/16cabc1e-edcd-81ef-ad7e-ff26e0414536 + uri: https://api.notion.com/v1/databases/16cabc1e-edcd-8127-9930-e737723566db response: - content: '{"object":"database","id":"16cabc1e-edcd-81ef-ad7e-ff26e0414536","cover":null,"icon":null,"created_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:11:00.000Z","title":[{"type":"text","text":{"content":"Test - Database - 2024-12-30 18:11:43.659703","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Database - 2024-12-30 18:11:43.659703","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8158-98bf-e35e573522ba"},"url":"https://www.notion.so/16cabc1eedcd81efad7eff26e0414536","public_url":null,"archived":false,"in_trash":false,"request_id":"47e5821b-760e-4809-a53b-869985262ccd"}' + content: '{"object":"database","id":"16cabc1e-edcd-8127-9930-e737723566db","cover":null,"icon":null,"created_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_time":"2024-12-30T17:23:00.000Z","title":[{"type":"text","text":{"content":"Test + Database - 2024-12-30 18:23:50.371934","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + Database - 2024-12-30 18:23:50.371934","href":null}],"description":[],"is_inline":false,"properties":{"Name":{"id":"title","name":"Name","type":"title","title":{}}},"parent":{"type":"page_id","page_id":"16cabc1e-edcd-8117-a024-fa5446b89751"},"url":"https://www.notion.so/16cabc1eedcd81279930e737723566db","public_url":null,"archived":false,"in_trash":false,"request_id":"696811f7-6ca6-4847-93ef-14154b0d7049"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -113,7 +113,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -121,10 +121,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81ef-ad7e-ff26e0414536 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8127-9930-e737723566db response: - content: '{"object":"block","id":"16cabc1e-edcd-81ef-ad7e-ff26e0414536","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8158-98bf-e35e573522ba"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test - Database - 2024-12-30 18:11:43.659703"},"request_id":"cb3799e6-f24f-4ec3-9d5e-3e1b2cde2004"}' + content: '{"object":"block","id":"16cabc1e-edcd-8127-9930-e737723566db","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8117-a024-fa5446b89751"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_database","child_database":{"title":"Test + Database - 2024-12-30 18:23:50.371934"},"request_id":"a9b8d169-1b57-4271-903f-f316ca1f0d63"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -136,7 +136,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -144,10 +144,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8158-98bf-e35e573522ba + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8117-a024-fa5446b89751 response: - content: '{"object":"block","id":"16cabc1e-edcd-8158-98bf-e35e573522ba","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:43.193427"},"request_id":"92d0352c-1b8c-45a6-8e9c-97792602d097"}' + content: '{"object":"block","id":"16cabc1e-edcd-8117-a024-fa5446b89751","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:23:49.883292"},"request_id":"fa0e7a80-3b47-4dcd-999a-de6154a74770"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_full_user.yaml b/tests/cassettes/test_is_full_user.yaml index a1213b2..1fba04b 100644 --- a/tests/cassettes/test_is_full_user.yaml +++ b/tests/cassettes/test_is_full_user.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -17,7 +17,7 @@ interactions: method: GET uri: https://api.notion.com/v1/users/me response: - content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"a57d3971-24eb-4621-85f8-20d671f0c2ad"}' + content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"d94e8bae-6467-48ba-b3b1-06fb16f641d4"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_mention_rich_text_item_response.yaml b/tests/cassettes/test_is_mention_rich_text_item_response.yaml index 192ffcc..4b82b40 100644 --- a/tests/cassettes/test_is_mention_rich_text_item_response.yaml +++ b/tests/cassettes/test_is_mention_rich_text_item_response.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:58.085566"}}]},"children":[]}' + 2024-12-30 18:24:08.033615"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81dd-a19f-e543bcc0a5aa","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:58.085566","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:58.085566","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-58-085566-16cabc1eedcd81dda19fe543bcc0a5aa","public_url":null,"request_id":"bdce81c6-5f4b-4637-ba71-dc29299fdb5f"}' + content: '{"object":"page","id":"16cabc1e-edcd-8120-b0a5-e7b7268892ac","created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:24:08.033615","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:24:08.033615","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-24-08-033615-16cabc1eedcd8120b0a5e7b7268892ac","public_url":null,"request_id":"83910e90-ddf4-4819-b669-d09a4c252e56"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,9 +48,9 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81dd-a19f-e543bcc0a5aa/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8120-b0a5-e7b7268892ac/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-81c5-8b3d-c4746432df2e","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81dd-a19f-e543bcc0a5aa"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"mention","mention":{"type":"date","date":{"start":"2022-12-16","end":null,"time_zone":null}},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"2022-12-16","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"43e5843a-dd1c-46e0-8758-e349e17c556d"}' + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-815e-b1d2-c2e09c9eb547","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8120-b0a5-e7b7268892ac"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"mention","mention":{"type":"date","date":{"start":"2022-12-16","end":null,"time_zone":null}},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"2022-12-16","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"5f991c2c-9212-4d06-96f6-0b02f67e3b1c"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -62,7 +62,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -70,9 +70,9 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c5-8b3d-c4746432df2e + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-815e-b1d2-c2e09c9eb547 response: - content: '{"object":"block","id":"16cabc1e-edcd-81c5-8b3d-c4746432df2e","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81dd-a19f-e543bcc0a5aa"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"mention","mention":{"type":"date","date":{"start":"2022-12-16","end":null,"time_zone":null}},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"2022-12-16","href":null}],"color":"default"},"request_id":"b7dfa205-efd4-41e4-be55-6624ab0762ba"}' + content: '{"object":"block","id":"16cabc1e-edcd-815e-b1d2-c2e09c9eb547","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8120-b0a5-e7b7268892ac"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"mention","mention":{"type":"date","date":{"start":"2022-12-16","end":null,"time_zone":null}},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"2022-12-16","href":null}],"color":"default"},"request_id":"b2647b87-d84b-4350-91f6-b8ead8637ac8"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -84,7 +84,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -92,9 +92,9 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c5-8b3d-c4746432df2e + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-815e-b1d2-c2e09c9eb547 response: - content: '{"object":"block","id":"16cabc1e-edcd-81c5-8b3d-c4746432df2e","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81dd-a19f-e543bcc0a5aa"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:12:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"mention","mention":{"type":"date","date":{"start":"2022-12-16","end":null,"time_zone":null}},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"2022-12-16","href":null}],"color":"default"},"request_id":"0b6ea855-f5d7-42d7-8ed5-1050b4996625"}' + content: '{"object":"block","id":"16cabc1e-edcd-815e-b1d2-c2e09c9eb547","parent":{"type":"page_id","page_id":"16cabc1e-edcd-8120-b0a5-e7b7268892ac"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"mention","mention":{"type":"date","date":{"start":"2022-12-16","end":null,"time_zone":null}},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"2022-12-16","href":null}],"color":"default"},"request_id":"26e388db-a45f-41bf-8143-df2e76fac1d9"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -106,7 +106,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -114,10 +114,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81dd-a19f-e543bcc0a5aa + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8120-b0a5-e7b7268892ac response: - content: '{"object":"block","id":"16cabc1e-edcd-81dd-a19f-e543bcc0a5aa","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:12:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:58.085566"},"request_id":"1218f7a0-d732-4887-9fbc-de9588d62257"}' + content: '{"object":"block","id":"16cabc1e-edcd-8120-b0a5-e7b7268892ac","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:24:08.033615"},"request_id":"ba9810a2-d3d3-402c-ba74-8641e57112c7"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_is_text_rich_text_item_response.yaml b/tests/cassettes/test_is_text_rich_text_item_response.yaml index 4d7c31d..80751e7 100644 --- a/tests/cassettes/test_is_text_rich_text_item_response.yaml +++ b/tests/cassettes/test_is_text_rich_text_item_response.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:11:50.530758"}}]},"children":[]}' + 2024-12-30 18:23:59.187890"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-811f-be9d-deeb3415f391","created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:11:50.530758","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:11:50.530758","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-11-50-530758-16cabc1eedcd811fbe9ddeeb3415f391","public_url":null,"request_id":"2b0a468a-5e7b-41d8-a111-02ed0bf67e98"}' + content: '{"object":"page","id":"16cabc1e-edcd-81c7-8e8d-eef8e47e03c9","created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:23:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:23:59.187890","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:23:59.187890","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-23-59-187890-16cabc1eedcd81c78e8deef8e47e03c9","public_url":null,"request_id":"fee61046-716a-4220-b77e-996135a3dd9b"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-811f-be9d-deeb3415f391/children + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c7-8e8d-eef8e47e03c9/children response: - content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-819d-bc98-ea7cd039dbf7","parent":{"type":"page_id","page_id":"16cabc1e-edcd-811f-be9d-deeb3415f391"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"list","results":[{"object":"block","id":"16cabc1e-edcd-818d-9e25-dc930735797f","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81c7-8e8d-eef8e47e03c9"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"37a0ffe5-3741-41a1-be84-5957a8e961fb"}' + a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{},"request_id":"d1710408-91b4-4643-86d2-8a60a4267aee"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -72,11 +72,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-819d-bc98-ea7cd039dbf7 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-818d-9e25-dc930735797f response: - content: '{"object":"block","id":"16cabc1e-edcd-819d-bc98-ea7cd039dbf7","parent":{"type":"page_id","page_id":"16cabc1e-edcd-811f-be9d-deeb3415f391"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-818d-9e25-dc930735797f","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81c7-8e8d-eef8e47e03c9"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"in_trash":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"c76fdcb8-5492-45ae-b83b-7f759da5c5ab"}' + a paragraph.","href":null}],"color":"default"},"request_id":"3772fc51-0bc2-4844-8e88-c8e5920077fd"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -88,7 +88,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -96,11 +96,11 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-819d-bc98-ea7cd039dbf7 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-818d-9e25-dc930735797f response: - content: '{"object":"block","id":"16cabc1e-edcd-819d-bc98-ea7cd039dbf7","parent":{"type":"page_id","page_id":"16cabc1e-edcd-811f-be9d-deeb3415f391"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m + content: '{"object":"block","id":"16cabc1e-edcd-818d-9e25-dc930735797f","parent":{"type":"page_id","page_id":"16cabc1e-edcd-81c7-8e8d-eef8e47e03c9"},"created_time":"2024-12-30T17:24:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m - a paragraph.","href":null}],"color":"default"},"request_id":"f0e1b67c-e233-4bd3-8040-240d024e74b1"}' + a paragraph.","href":null}],"color":"default"},"request_id":"a57d2c98-171b-48e6-819d-e736685c5796"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -112,7 +112,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -120,10 +120,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-811f-be9d-deeb3415f391 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c7-8e8d-eef8e47e03c9 response: - content: '{"object":"block","id":"16cabc1e-edcd-811f-be9d-deeb3415f391","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:11:00.000Z","last_edited_time":"2024-12-30T17:11:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:11:50.530758"},"request_id":"cf906da4-d661-4970-b51d-f7b7ab384878"}' + content: '{"object":"block","id":"16cabc1e-edcd-81c7-8e8d-eef8e47e03c9","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:23:00.000Z","last_edited_time":"2024-12-30T17:24:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:23:59.187890"},"request_id":"fcaac361-5550-462c-a6c9-72f60c8c0188"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_iterate_paginated_api.yaml b/tests/cassettes/test_iterate_paginated_api.yaml index a40fb9d..a968bc8 100644 --- a/tests/cassettes/test_iterate_paginated_api.yaml +++ b/tests/cassettes/test_iterate_paginated_api.yaml @@ -8,7 +8,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-810d-a5c6-f95dadbfe998","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-8109-a81c-f6130ad50062","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 0)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-0-16cabc1eedcd810da5c6f95dadbfe998","public_url":null,"request_id":"a5f9e160-9c0c-446b-9c38-2c26f04cc762"}' + Page (test_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-0-16cabc1eedcd8109a81cf6130ad50062","public_url":null,"request_id":"8322e9fb-8675-4c3c-894e-920286d4ef7d"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -37,7 +37,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -51,9 +51,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81f8-aaf3-d69eec57e4af","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-8111-a758-cc50bff60655","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 1)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-1-16cabc1eedcd81f8aaf3d69eec57e4af","public_url":null,"request_id":"e34374c4-b70a-4290-8b53-8379b9971f03"}' + Page (test_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-1-16cabc1eedcd8111a758cc50bff60655","public_url":null,"request_id":"4d319a00-7dd8-450e-b4a5-ac00ab074ab6"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -66,7 +66,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -80,9 +80,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81bd-8718-f3170b93b9de","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-81d0-9183-dd216812b8b6","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 2)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-2-16cabc1eedcd81bd8718f3170b93b9de","public_url":null,"request_id":"c34fb5ff-7bb2-43a3-84b5-62e594b44b15"}' + Page (test_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-2-16cabc1eedcd81d09183dd216812b8b6","public_url":null,"request_id":"00142497-5374-4b46-a2d0-0fff304c7d8f"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -95,7 +95,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -109,9 +109,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8180-b15b-faeb40581c16","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-8132-90ec-d6b0dcb60179","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 3)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-3-16cabc1eedcd8180b15bfaeb40581c16","public_url":null,"request_id":"ec92daf9-231f-443f-965b-aa6217fa3769"}' + Page (test_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-3-16cabc1eedcd813290ecd6b0dcb60179","public_url":null,"request_id":"ff1030f9-7ce3-4704-a687-09438293ce83"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -124,7 +124,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -138,9 +138,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8148-8ba2-c5ca90693e7c","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-81c5-9350-c6249a62f085","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 4)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-4-16cabc1eedcd81488ba2c5ca90693e7c","public_url":null,"request_id":"6b12e75e-ae10-498d-960f-75f5e6fdadef"}' + Page (test_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-4-16cabc1eedcd81c59350c6249a62f085","public_url":null,"request_id":"b1590bda-834e-4457-a101-37bef9bfd054"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -152,7 +152,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -166,23 +166,23 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-8148-8ba2-c5ca90693e7c","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-81c5-9350-c6249a62f085","created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 4)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-4-16cabc1eedcd81488ba2c5ca90693e7c","public_url":null},{"object":"page","id":"16cabc1e-edcd-8180-b15b-faeb40581c16","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + Page (test_iterate_paginated_api iteration 4)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-4-16cabc1eedcd81c59350c6249a62f085","public_url":null},{"object":"page","id":"16cabc1e-edcd-8132-90ec-d6b0dcb60179","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 3)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-3-16cabc1eedcd8180b15bfaeb40581c16","public_url":null}],"next_cursor":"16cabc1e-edcd-81bd-8718-f3170b93b9de","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"752ae320-e551-4417-adce-b3ca63ad1dfb"}' + Page (test_iterate_paginated_api iteration 3)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-3-16cabc1eedcd813290ecd6b0dcb60179","public_url":null}],"next_cursor":"16cabc1e-edcd-81d0-9183-dd216812b8b6","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"052e04f7-7097-4a68-a5b2-4ef93398b581"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"query":"test_iterate_paginated_api","start_cursor":"16cabc1e-edcd-81bd-8718-f3170b93b9de","page_size":2}' + body: '{"query":"test_iterate_paginated_api","start_cursor":"16cabc1e-edcd-81d0-9183-dd216812b8b6","page_size":2}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -196,23 +196,23 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-81bd-8718-f3170b93b9de","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-81d0-9183-dd216812b8b6","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 2)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-2-16cabc1eedcd81bd8718f3170b93b9de","public_url":null},{"object":"page","id":"16cabc1e-edcd-81f8-aaf3-d69eec57e4af","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + Page (test_iterate_paginated_api iteration 2)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-2-16cabc1eedcd81d09183dd216812b8b6","public_url":null},{"object":"page","id":"16cabc1e-edcd-8111-a758-cc50bff60655","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 1)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-1-16cabc1eedcd81f8aaf3d69eec57e4af","public_url":null}],"next_cursor":"16cabc1e-edcd-810d-a5c6-f95dadbfe998","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"88facc81-b47f-4e48-b4bc-cad8e66ef655"}' + Page (test_iterate_paginated_api iteration 1)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-1-16cabc1eedcd8111a758cc50bff60655","public_url":null}],"next_cursor":"16cabc1e-edcd-8109-a81c-f6130ad50062","has_more":true,"type":"page_or_database","page_or_database":{},"request_id":"b8c01639-251a-446e-bf5f-8d0ec8a3e23e"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"query":"test_iterate_paginated_api","start_cursor":"16cabc1e-edcd-810d-a5c6-f95dadbfe998","page_size":2}' + body: '{"query":"test_iterate_paginated_api","start_cursor":"16cabc1e-edcd-8109-a81c-f6130ad50062","page_size":2}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -226,9 +226,9 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-810d-a5c6-f95dadbfe998","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"list","results":[{"object":"page","id":"16cabc1e-edcd-8109-a81c-f6130ad50062","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page (test_iterate_paginated_api iteration 0)","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page (test_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-0-16cabc1eedcd810da5c6f95dadbfe998","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"d6006a4e-4f08-4901-a6a1-fac866e2ee81"}' + Page (test_iterate_paginated_api iteration 0)","href":null}]}},"url":"https://www.notion.so/Test-Page-test_iterate_paginated_api-iteration-0-16cabc1eedcd8109a81cf6130ad50062","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"e216b406-7a15-4bac-85b9-f3b88598169a"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -240,7 +240,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -248,10 +248,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-810d-a5c6-f95dadbfe998 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8109-a81c-f6130ad50062 response: - content: '{"object":"block","id":"16cabc1e-edcd-810d-a5c6-f95dadbfe998","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_iterate_paginated_api iteration 0)"},"request_id":"4e64ecf0-7c00-47ed-916a-53d5329d4401"}' + content: '{"object":"block","id":"16cabc1e-edcd-8109-a81c-f6130ad50062","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_iterate_paginated_api iteration 0)"},"request_id":"7c2fc7d0-41c7-4002-b467-6d8fe28ac2b1"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -263,7 +263,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -271,10 +271,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81f8-aaf3-d69eec57e4af + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8111-a758-cc50bff60655 response: - content: '{"object":"block","id":"16cabc1e-edcd-81f8-aaf3-d69eec57e4af","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_iterate_paginated_api iteration 1)"},"request_id":"52137648-a703-4bbd-8ba3-1d61560b06d1"}' + content: '{"object":"block","id":"16cabc1e-edcd-8111-a758-cc50bff60655","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_iterate_paginated_api iteration 1)"},"request_id":"e0c0a60d-366f-454a-9c7c-7eadc5a3d9c9"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -286,7 +286,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -294,10 +294,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81bd-8718-f3170b93b9de + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81d0-9183-dd216812b8b6 response: - content: '{"object":"block","id":"16cabc1e-edcd-81bd-8718-f3170b93b9de","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_iterate_paginated_api iteration 2)"},"request_id":"6fcd1b12-3907-4bbd-a5b2-894dcb9a42ac"}' + content: '{"object":"block","id":"16cabc1e-edcd-81d0-9183-dd216812b8b6","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_iterate_paginated_api iteration 2)"},"request_id":"ad7ffabb-45f3-4c19-aad3-38317c459005"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -309,7 +309,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -317,10 +317,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8180-b15b-faeb40581c16 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8132-90ec-d6b0dcb60179 response: - content: '{"object":"block","id":"16cabc1e-edcd-8180-b15b-faeb40581c16","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_iterate_paginated_api iteration 3)"},"request_id":"6805276e-7d39-4cbe-8455-12ceb5c56dc2"}' + content: '{"object":"block","id":"16cabc1e-edcd-8132-90ec-d6b0dcb60179","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_iterate_paginated_api iteration 3)"},"request_id":"0e674000-751a-4376-b70e-d0faa478bc07"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -332,7 +332,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -340,10 +340,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8148-8ba2-c5ca90693e7c + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c5-9350-c6249a62f085 response: - content: '{"object":"block","id":"16cabc1e-edcd-8148-8ba2-c5ca90693e7c","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page (test_iterate_paginated_api iteration 4)"},"request_id":"9f7ab00d-e93c-4e64-b721-723547008209"}' + content: '{"object":"block","id":"16cabc1e-edcd-81c5-9350-c6249a62f085","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:22:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page (test_iterate_paginated_api iteration 4)"},"request_id":"b9fafbe5-f2dc-40d8-a6c9-90bf15dae6eb"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -355,7 +355,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -369,7 +369,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"059df4bd-1447-4a7e-ae24-7b42ab46edf9"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"f08a7116-e95e-46a1-8bf6-29d59506b1b2"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_pages_create.yaml b/tests/cassettes/test_pages_create.yaml index efbaf89..0988721 100644 --- a/tests/cassettes/test_pages_create.yaml +++ b/tests/cassettes/test_pages_create.yaml @@ -8,7 +8,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-8115-ad74-c994b25f6ddb","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + content: '{"object":"page","id":"16cabc1e-edcd-81bc-8793-d436d9d768e6","created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test Page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - Page","href":null}]}},"url":"https://www.notion.so/Test-Page-16cabc1eedcd8115ad74c994b25f6ddb","public_url":null,"request_id":"c5a48a21-805d-4ceb-b77e-483c894513cb"}' + Page","href":null}]}},"url":"https://www.notion.so/Test-Page-16cabc1eedcd81bc8793d436d9d768e6","public_url":null,"request_id":"9814c634-9f0c-49d9-881d-fab29b76d615"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -44,10 +44,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8115-ad74-c994b25f6ddb + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81bc-8793-d436d9d768e6 response: - content: '{"object":"block","id":"16cabc1e-edcd-8115-ad74-c994b25f6ddb","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - Page"},"request_id":"069df971-f36c-4574-99ab-4b0a41c0e569"}' + content: '{"object":"block","id":"16cabc1e-edcd-81bc-8793-d436d9d768e6","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + Page"},"request_id":"854f71ec-cc14-46f7-bae5-a2461f78fe84"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_pages_delete.yaml b/tests/cassettes/test_pages_delete.yaml index 3add86c..8ea5319 100644 --- a/tests/cassettes/test_pages_delete.yaml +++ b/tests/cassettes/test_pages_delete.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:39.184543"}}]},"children":[]}' + 2024-12-30 18:21:48.938313"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-814b-be1b-d7e866cd1a39","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:39.184543","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:39.184543","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-39-184543-16cabc1eedcd814bbe1bd7e866cd1a39","public_url":null,"request_id":"d4e1e770-3347-4a20-8c1f-5c3801f8dae6"}' + content: '{"object":"page","id":"16cabc1e-edcd-818e-a44e-d725243e4167","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:48.938313","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:48.938313","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-48-938313-16cabc1eedcd818ea44ed725243e4167","public_url":null,"request_id":"3ffa00e7-65dd-4e38-b55e-7cbaedda702d"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -44,10 +44,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-814b-be1b-d7e866cd1a39 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-818e-a44e-d725243e4167 response: - content: '{"object":"block","id":"16cabc1e-edcd-814b-be1b-d7e866cd1a39","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:39.184543"},"request_id":"2a7c81fc-a3b4-4f6e-8981-726482a47734"}' + content: '{"object":"block","id":"16cabc1e-edcd-818e-a44e-d725243e4167","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:48.938313"},"request_id":"d8b429ed-b9f8-4044-a152-a5d8c24c9401"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -59,7 +59,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -71,11 +71,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-814b-be1b-d7e866cd1a39 + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-818e-a44e-d725243e4167 response: - content: '{"object":"page","id":"16cabc1e-edcd-814b-be1b-d7e866cd1a39","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:39.184543","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:39.184543","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-39-184543-16cabc1eedcd814bbe1bd7e866cd1a39","public_url":null,"request_id":"62a1c82f-6aed-4d56-8ef1-15952b674523"}' + content: '{"object":"page","id":"16cabc1e-edcd-818e-a44e-d725243e4167","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:48.938313","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:48.938313","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-48-938313-16cabc1eedcd818ea44ed725243e4167","public_url":null,"request_id":"1ed13687-4b22-478b-af4b-deb44a8e766b"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -87,7 +87,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -95,10 +95,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-814b-be1b-d7e866cd1a39 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-818e-a44e-d725243e4167 response: - content: '{"object":"block","id":"16cabc1e-edcd-814b-be1b-d7e866cd1a39","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:39.184543"},"request_id":"88379a14-8bf7-47cd-aa71-4782af332d53"}' + content: '{"object":"block","id":"16cabc1e-edcd-818e-a44e-d725243e4167","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:48.938313"},"request_id":"79068090-4b95-49df-9def-8981874bc191"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_pages_properties_retrieve.yaml b/tests/cassettes/test_pages_properties_retrieve.yaml index 68f154c..78e7a16 100644 --- a/tests/cassettes/test_pages_properties_retrieve.yaml +++ b/tests/cassettes/test_pages_properties_retrieve.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:44.988999"}}]},"children":[]}' + 2024-12-30 18:20:58.800421"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81a2-b461-e2e5e873b96c","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:44.988999","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:44.988999","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-44-988999-16cabc1eedcd81a2b461e2e5e873b96c","public_url":null,"request_id":"3f9ae770-5ece-4ce5-af7a-82a916582fd2"}' + content: '{"object":"page","id":"16cabc1e-edcd-8142-a6cb-f67ce3b940a7","created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:20:58.800421","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:20:58.800421","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-20-58-800421-16cabc1eedcd8142a6cbf67ce3b940a7","public_url":null,"request_id":"4e6d8279-80e2-4473-b579-435837c7b118"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -44,11 +44,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-81a2-b461-e2e5e873b96c/properties/title + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-8142-a6cb-f67ce3b940a7/properties/title response: content: '{"object":"list","results":[{"object":"property_item","type":"title","id":"title","title":{"type":"text","text":{"content":"Test - 2024-12-30 18:08:44.988999","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:44.988999","href":null}}],"next_cursor":null,"has_more":false,"type":"property_item","property_item":{"id":"title","next_url":null,"type":"title","title":{}},"request_id":"4218aad1-31e6-4896-a8d6-34857353503a"}' + 2024-12-30 18:20:58.800421","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:20:58.800421","href":null}}],"next_cursor":null,"has_more":false,"type":"property_item","property_item":{"id":"title","next_url":null,"type":"title","title":{}},"request_id":"42d073df-e1ec-4ab9-aa3c-3c9253a7c27d"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -60,7 +60,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -68,10 +68,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81a2-b461-e2e5e873b96c + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8142-a6cb-f67ce3b940a7 response: - content: '{"object":"block","id":"16cabc1e-edcd-81a2-b461-e2e5e873b96c","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:44.988999"},"request_id":"6f79a179-22d4-4674-aa8e-20188b2e311f"}' + content: '{"object":"block","id":"16cabc1e-edcd-8142-a6cb-f67ce3b940a7","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:20:58.800421"},"request_id":"08967072-141f-4b81-bf34-9d2e255521b3"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_pages_retrieve.yaml b/tests/cassettes/test_pages_retrieve.yaml index 4c1a456..2d2d8fa 100644 --- a/tests/cassettes/test_pages_retrieve.yaml +++ b/tests/cassettes/test_pages_retrieve.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:38.726245"}}]},"children":[]}' + 2024-12-30 18:20:54.151558"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81c3-8d87-c02d403087ed","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:38.726245","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:38.726245","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-38-726245-16cabc1eedcd81c38d87c02d403087ed","public_url":null,"request_id":"ad3d09d3-604e-4a2a-9eec-9b71f4f9c54f"}' + content: '{"object":"page","id":"16cabc1e-edcd-8130-8c6b-f9c944d8fc97","created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:20:54.151558","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:20:54.151558","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-20-54-151558-16cabc1eedcd81308c6bf9c944d8fc97","public_url":null,"request_id":"1783eb4b-e62f-456f-8a16-fd0582037bda"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -44,11 +44,11 @@ interactions: notion-version: - '2022-06-28' method: GET - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-81c3-8d87-c02d403087ed + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-8130-8c6b-f9c944d8fc97 response: - content: '{"object":"page","id":"16cabc1e-edcd-81c3-8d87-c02d403087ed","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:38.726245","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:38.726245","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-38-726245-16cabc1eedcd81c38d87c02d403087ed","public_url":null,"request_id":"b8472a6b-eff2-4f5e-8dc3-2f1a9fba751d"}' + content: '{"object":"page","id":"16cabc1e-edcd-8130-8c6b-f9c944d8fc97","created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:20:54.151558","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:20:54.151558","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-20-54-151558-16cabc1eedcd81308c6bf9c944d8fc97","public_url":null,"request_id":"cf38c403-b04f-4e4f-8414-6c6ede386776"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -60,7 +60,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -68,10 +68,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81c3-8d87-c02d403087ed + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-8130-8c6b-f9c944d8fc97 response: - content: '{"object":"block","id":"16cabc1e-edcd-81c3-8d87-c02d403087ed","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:38.726245"},"request_id":"c11c389a-08ba-4a68-9eb2-33064171f6df"}' + content: '{"object":"block","id":"16cabc1e-edcd-8130-8c6b-f9c944d8fc97","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:20:54.151558"},"request_id":"b20890cb-0eda-447e-9b2b-6f9bf02f35c9"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_pages_update.yaml b/tests/cassettes/test_pages_update.yaml index 0764c31..807ea5f 100644 --- a/tests/cassettes/test_pages_update.yaml +++ b/tests/cassettes/test_pages_update.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:08:40.253693"}}]},"children":[]}' + 2024-12-30 18:20:55.725477"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,9 +22,9 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-810e-8fb6-c262787957de","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:40.253693","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:40.253693","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-40-253693-16cabc1eedcd810e8fb6c262787957de","public_url":null,"request_id":"9bd9b42e-34f0-4375-b385-9259a1c6db17"}' + content: '{"object":"page","id":"16cabc1e-edcd-812c-945e-d720ee9b73a6","created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:20:55.725477","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:20:55.725477","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-20-55-725477-16cabc1eedcd812c945ed720ee9b73a6","public_url":null,"request_id":"ff441be1-780a-4d1a-87e0-2dfa9513d23a"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -36,7 +36,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -48,11 +48,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-810e-8fb6-c262787957de + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-812c-945e-d720ee9b73a6 response: - content: "{\"object\":\"page\",\"id\":\"16cabc1e-edcd-810e-8fb6-c262787957de\",\"created_time\":\"2024-12-30T17:08:00.000Z\",\"last_edited_time\":\"2024-12-30T17:08:00.000Z\",\"created_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"last_edited_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"cover\":null,\"icon\":{\"type\":\"emoji\",\"emoji\":\"\U0001F6F4\"},\"parent\":{\"type\":\"page_id\",\"page_id\":\"95ba0116-6776-4c19-9e45-54e77415f03b\"},\"archived\":false,\"in_trash\":false,\"properties\":{\"title\":{\"id\":\"title\",\"type\":\"title\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Test - 2024-12-30 18:08:40.253693\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Test - 2024-12-30 18:08:40.253693\",\"href\":null}]}},\"url\":\"https://www.notion.so/Test-2024-12-30-18-08-40-253693-16cabc1eedcd810e8fb6c262787957de\",\"public_url\":null,\"request_id\":\"72367204-b035-43a1-9b89-7c2f450bda96\"}" + content: "{\"object\":\"page\",\"id\":\"16cabc1e-edcd-812c-945e-d720ee9b73a6\",\"created_time\":\"2024-12-30T17:20:00.000Z\",\"last_edited_time\":\"2024-12-30T17:20:00.000Z\",\"created_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"last_edited_by\":{\"object\":\"user\",\"id\":\"7775f3a3-893f-43fa-b625-460c61094c78\"},\"cover\":null,\"icon\":{\"type\":\"emoji\",\"emoji\":\"\U0001F6F4\"},\"parent\":{\"type\":\"page_id\",\"page_id\":\"95ba0116-6776-4c19-9e45-54e77415f03b\"},\"archived\":false,\"in_trash\":false,\"properties\":{\"title\":{\"id\":\"title\",\"type\":\"title\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Test + 2024-12-30 18:20:55.725477\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Test + 2024-12-30 18:20:55.725477\",\"href\":null}]}},\"url\":\"https://www.notion.so/Test-2024-12-30-18-20-55-725477-16cabc1eedcd812c945ed720ee9b73a6\",\"public_url\":null,\"request_id\":\"b92baa45-9b2a-4ee8-8cf3-d604dbd41aff\"}" headers: {} http_version: HTTP/1.1 status_code: 200 @@ -64,7 +64,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -76,11 +76,11 @@ interactions: notion-version: - '2022-06-28' method: PATCH - uri: https://api.notion.com/v1/pages/16cabc1e-edcd-810e-8fb6-c262787957de + uri: https://api.notion.com/v1/pages/16cabc1e-edcd-812c-945e-d720ee9b73a6 response: - content: '{"object":"page","id":"16cabc1e-edcd-810e-8fb6-c262787957de","created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:08:40.253693","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:08:40.253693","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-08-40-253693-16cabc1eedcd810e8fb6c262787957de","public_url":null,"request_id":"86802491-fed9-4307-8b86-bbe7d0037223"}' + content: '{"object":"page","id":"16cabc1e-edcd-812c-945e-d720ee9b73a6","created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:20:55.725477","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:20:55.725477","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-20-55-725477-16cabc1eedcd812c945ed720ee9b73a6","public_url":null,"request_id":"7a6acc22-63cb-4baa-a1ef-baebda1af3db"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -92,7 +92,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -100,10 +100,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-810e-8fb6-c262787957de + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-812c-945e-d720ee9b73a6 response: - content: '{"object":"block","id":"16cabc1e-edcd-810e-8fb6-c262787957de","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:08:00.000Z","last_edited_time":"2024-12-30T17:08:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:08:40.253693"},"request_id":"fcf97088-a9ac-4093-bbb5-d864a21ac81c"}' + content: '{"object":"block","id":"16cabc1e-edcd-812c-945e-d720ee9b73a6","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:20:00.000Z","last_edited_time":"2024-12-30T17:20:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:20:55.725477"},"request_id":"b9071eae-1e4c-43f9-b5ba-e71e9d1ed54d"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_search.yaml b/tests/cassettes/test_search.yaml index 8939c03..6708059 100644 --- a/tests/cassettes/test_search.yaml +++ b/tests/cassettes/test_search.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"parent":{"page_id":"95ba011667764c199e4554e77415f03b"},"properties":{"title":[{"text":{"content":"Test - 2024-12-30 18:09:11.904059"}}]},"children":[]}' + 2024-12-30 18:21:21.304151"}}]},"children":[]}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -22,21 +22,21 @@ interactions: method: POST uri: https://api.notion.com/v1/pages response: - content: '{"object":"page","id":"16cabc1e-edcd-81e2-ac91-c65f9ed0b484","created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test - 2024-12-30 18:09:11.904059","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test - 2024-12-30 18:09:11.904059","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-09-11-904059-16cabc1eedcd81e2ac91c65f9ed0b484","public_url":null,"request_id":"d965d65b-4364-48d1-b72f-7d823a62f3b6"}' + content: '{"object":"page","id":"16cabc1e-edcd-81fd-a9a5-f171d995ab0e","created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test + 2024-12-30 18:21:21.304151","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test + 2024-12-30 18:21:21.304151","href":null}]}},"url":"https://www.notion.so/Test-2024-12-30-18-21-21-304151-16cabc1eedcd81fda9a5f171d995ab0e","public_url":null,"request_id":"4efebdf4-d848-4546-9e22-5a0377a560d7"}' headers: {} http_version: HTTP/1.1 status_code: 200 - request: - body: '{"query":"16cabc1e-edcd-81e2-ac91-c65f9ed0b484","sort":{"direction":"descending","timestamp":"last_edited_time"}}' + body: '{"query":"16cabc1e-edcd-81fd-a9a5-f171d995ab0e","sort":{"direction":"descending","timestamp":"last_edited_time"}}' headers: accept: - '*/*' accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive content-length: @@ -50,7 +50,7 @@ interactions: method: POST uri: https://api.notion.com/v1/search response: - content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"245b23d8-664b-44a9-a248-ab3e72cf159d"}' + content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"44e5b7fe-3df5-47b6-bbaa-18b7e16431ea"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -62,7 +62,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -70,10 +70,10 @@ interactions: notion-version: - '2022-06-28' method: DELETE - uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81e2-ac91-c65f9ed0b484 + uri: https://api.notion.com/v1/blocks/16cabc1e-edcd-81fd-a9a5-f171d995ab0e response: - content: '{"object":"block","id":"16cabc1e-edcd-81e2-ac91-c65f9ed0b484","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:09:00.000Z","last_edited_time":"2024-12-30T17:09:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test - 2024-12-30 18:09:11.904059"},"request_id":"74c4c61f-ea4f-41da-8747-13907e9942ce"}' + content: '{"object":"block","id":"16cabc1e-edcd-81fd-a9a5-f171d995ab0e","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2024-12-30T17:21:00.000Z","last_edited_time":"2024-12-30T17:21:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"in_trash":true,"type":"child_page","child_page":{"title":"Test + 2024-12-30 18:21:21.304151"},"request_id":"2df65321-91dc-4c70-a457-0ff15d1ac253"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_users_list.yaml b/tests/cassettes/test_users_list.yaml index cb0c548..003e10b 100644 --- a/tests/cassettes/test_users_list.yaml +++ b/tests/cassettes/test_users_list.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -18,7 +18,7 @@ interactions: uri: https://api.notion.com/v1/users response: content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume - Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"7ba17d8b-2111-418d-bb9f-ade057840702"}' + Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"notion@ramnes.eu"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"d1999e67-7eb2-44d6-b1c6-6d6fc0e8b725"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_users_me.yaml b/tests/cassettes/test_users_me.yaml index 2802a1b..ddfe159 100644 --- a/tests/cassettes/test_users_me.yaml +++ b/tests/cassettes/test_users_me.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -17,7 +17,7 @@ interactions: method: GET uri: https://api.notion.com/v1/users/me response: - content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"a1cd03b6-0d32-4211-ad4a-67afda9d9505"}' + content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"dd2d0023-75bb-4503-b71c-0850ddcc1579"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/cassettes/test_users_retrieve.yaml b/tests/cassettes/test_users_retrieve.yaml index 4a28998..8f7093a 100644 --- a/tests/cassettes/test_users_retrieve.yaml +++ b/tests/cassettes/test_users_retrieve.yaml @@ -7,7 +7,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -17,7 +17,7 @@ interactions: method: GET uri: https://api.notion.com/v1/users/me response: - content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"4ad237a7-7169-4aa1-ac4b-e70f40ba79a0"}' + content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"9f4d5a8f-4782-4738-87b2-db2fcc109ec9"}' headers: {} http_version: HTTP/1.1 status_code: 200 @@ -29,7 +29,7 @@ interactions: accept-encoding: - gzip, deflate authorization: - - secret_... + - ntn_... connection: - keep-alive host: @@ -39,7 +39,7 @@ interactions: method: GET uri: https://api.notion.com/v1/users/7775f3a3-893f-43fa-b625-460c61094c78 response: - content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"25980c05-8c76-40b2-91d6-5049fd3645e0"}' + content: '{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"},"request_id":"b88ac143-7766-42fa-982e-eef6fe527ce8"}' headers: {} http_version: HTTP/1.1 status_code: 200 diff --git a/tests/conftest.py b/tests/conftest.py index 41f785f..a709047 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,7 +16,7 @@ def remove_headers(response: dict): return { "filter_headers": [ - ("authorization", "secret_..."), + ("authorization", "ntn_..."), ("user-agent", None), ("cookie", None), ],