notion-ruby-client 0.1.0.pre.beta1 → 1.0.0.pre.beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.devcontainer/Dockerfile +5 -0
  3. data/.devcontainer/boot.sh +1 -0
  4. data/.devcontainer/devcontainer.json +30 -0
  5. data/CHANGELOG.md +18 -0
  6. data/CONTRIBUTING.md +51 -0
  7. data/Gemfile.lock +19 -14
  8. data/README.md +113 -57
  9. data/lib/notion/api/endpoints/blocks.rb +16 -0
  10. data/lib/notion/api/endpoints/databases.rb +0 -21
  11. data/lib/notion/api/endpoints/pages.rb +20 -3
  12. data/lib/notion/api/endpoints/users.rb +8 -0
  13. data/lib/notion/version.rb +2 -2
  14. data/notion-ruby-client.gemspec +2 -2
  15. data/spec/fixtures/notion/block.yml +2 -2
  16. data/spec/fixtures/notion/block_append_children.yml +4 -4
  17. data/spec/fixtures/notion/block_children.yml +5 -5
  18. data/spec/fixtures/notion/create_database.yml +1 -1
  19. data/spec/fixtures/notion/create_page.yml +2 -2
  20. data/spec/fixtures/notion/database.yml +1 -1
  21. data/spec/fixtures/notion/database_query.yml +2 -2
  22. data/spec/fixtures/notion/delete_block.yml +145 -0
  23. data/spec/fixtures/notion/page.yml +1 -1
  24. data/spec/fixtures/notion/page_property_item.yml +143 -0
  25. data/spec/fixtures/notion/paginated_block_children.yml +8 -8
  26. data/spec/fixtures/notion/paginated_database_query.yml +1 -1
  27. data/spec/fixtures/notion/paginated_databases_list.yml +1 -1
  28. data/spec/fixtures/notion/paginated_search.yml +1 -1
  29. data/spec/fixtures/notion/paginated_users_list.yml +1 -1
  30. data/spec/fixtures/notion/search.yml +1 -1
  31. data/spec/fixtures/notion/search_with_query.yml +1 -1
  32. data/spec/fixtures/notion/update_block.yml +3 -3
  33. data/spec/fixtures/notion/update_database.yml +1 -1
  34. data/spec/fixtures/notion/update_page.yml +1 -1
  35. data/spec/fixtures/notion/users.yml +1 -1
  36. data/spec/fixtures/notion/users_list.yml +1 -1
  37. data/spec/fixtures/notion/users_me.yml +144 -0
  38. data/spec/notion/api/endpoints/blocks_spec.rb +10 -4
  39. data/spec/notion/api/endpoints/databases_spec.rb +0 -13
  40. data/spec/notion/api/endpoints/pages_spec.rb +6 -0
  41. data/spec/notion/api/endpoints/users_spec.rb +5 -0
  42. metadata +21 -13
  43. data/spec/fixtures/notion/databases_list.yml +0 -150
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.notion.com/v1/blocks/32af3324-ba02-4516-ae88-5728a4d569f4/children
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"children":[{"object":"block","type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
8
+ string: '{"children":[{"object":"block","type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Another
9
9
  children"}}]}}]}'
10
10
  headers:
11
11
  Accept:
@@ -15,7 +15,7 @@ http_interactions:
15
15
  Authorization:
16
16
  - Bearer <NOTION_API_TOKEN>
17
17
  Notion-Version:
18
- - '2021-08-16'
18
+ - '2022-02-22'
19
19
  Content-Type:
20
20
  - application/json
21
21
  Accept-Encoding:
@@ -142,8 +142,8 @@ http_interactions:
142
142
  - 6867975778e940b7-CDG
143
143
  body:
144
144
  encoding: UTF-8
145
- string: '{"object":"list","results":[{"object":"block","id":"32ac99eb-3d4b-4dde-9ce2-e38a95bf004e","created_time":"2021-08-29T17:45:00.000Z","last_edited_time":"2021-08-29T17:45:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
145
+ string: '{"object":"list","results":[{"object":"block","id":"32ac99eb-3d4b-4dde-9ce2-e38a95bf004e","created_time":"2021-08-29T17:45:00.000Z","last_edited_time":"2021-08-29T17:45:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Another
146
146
  children","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
147
- children","href":null}]}}],"next_cursor":null,"has_more":false}'
147
+ children","href":null}]}}],"next_cursor":null,"has_more":false,"type":"block","block":{}}'
148
148
  recorded_at: Sun, 29 Aug 2021 17:45:06 GMT
149
149
  recorded_with: VCR 6.0.0
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response:
@@ -139,13 +139,13 @@ http_interactions:
139
139
  - 6867973e2eb6ee75-CDG
140
140
  body:
141
141
  encoding: UTF-8
142
- string: '{"object":"list","results":[{"object":"block","id":"c183b81c-2973-41c1-867b-7faa0180403d","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"The
142
+ string: '{"object":"list","results":[{"object":"block","id":"c183b81c-2973-41c1-867b-7faa0180403d","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"The
143
143
  first child","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"The
144
- first child","href":null}]}},{"object":"block","id":"51ab7653-230b-4332-89e5-4ca2b10e695b","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"The
144
+ first child","href":null}]}},{"object":"block","id":"51ab7653-230b-4332-89e5-4ca2b10e695b","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"The
145
145
  second child","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"The
146
- second child","href":null}]}},{"object":"block","id":"722ec5e1-f620-4860-a5fd-6de0430db4a8","created_time":"2021-08-29T17:17:00.000Z","last_edited_time":"2021-08-29T17:17:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
146
+ second child","href":null}]}},{"object":"block","id":"722ec5e1-f620-4860-a5fd-6de0430db4a8","created_time":"2021-08-29T17:17:00.000Z","last_edited_time":"2021-08-29T17:17:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Another
147
147
  children","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
148
- children","href":null}]}},{"object":"block","id":"a6cb4553-bdf1-4080-84fa-3e1bceba6912","created_time":"2021-08-29T17:18:00.000Z","last_edited_time":"2021-08-29T17:18:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
148
+ children","href":null}]}},{"object":"block","id":"a6cb4553-bdf1-4080-84fa-3e1bceba6912","created_time":"2021-08-29T17:18:00.000Z","last_edited_time":"2021-08-29T17:18:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Another
149
149
  children","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
150
150
  children","href":null}]}}],"next_cursor":null,"has_more":false}'
151
151
  recorded_at: Sun, 29 Aug 2021 17:45:02 GMT
@@ -15,7 +15,7 @@ http_interactions:
15
15
  Authorization:
16
16
  - Bearer <NOTION_API_TOKEN>
17
17
  Notion-Version:
18
- - '2021-08-16'
18
+ - '2022-02-22'
19
19
  Content-Type:
20
20
  - application/json
21
21
  Accept-Encoding:
@@ -6,7 +6,7 @@ http_interactions:
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"parent":{"database_id":"dd428e9d-d3fe-4171-870d-a7a1902c748b"},"properties":{"Name":{"title":[{"text":{"content":"Another
9
- Notion page"}}]}},"children":[{"object":"block","type":"heading_2","heading_2":{"text":[{"type":"text","text":{"content":"A
9
+ Notion page"}}]}},"children":[{"object":"block","type":"heading_2","heading_2":{"rich_text":[{"type":"text","text":{"content":"A
10
10
  heading"}}]}}]}'
11
11
  headers:
12
12
  Accept:
@@ -16,7 +16,7 @@ http_interactions:
16
16
  Authorization:
17
17
  - Bearer <NOTION_API_TOKEN>
18
18
  Notion-Version:
19
- - '2021-08-16'
19
+ - '2022-02-22'
20
20
  Content-Type:
21
21
  - application/json
22
22
  Accept-Encoding:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Content-Length:
@@ -149,6 +149,6 @@ http_interactions:
149
149
  Email":{"id":"%5BIFC","type":"email","email":"nicolas@orbit.love"},"Send to
150
150
  Orbit":{"id":"%5EoR%3F","type":"checkbox","checkbox":true},"Date":{"id":"g%60km","type":"date","date":null},"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Nicolas
151
151
  Goutay","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Nicolas
152
- Goutay","href":null}]}},"url":"https://www.notion.so/Nicolas-Goutay-c7fd1abe811444eabe779632ea33e581"}],"next_cursor":null,"has_more":false}'
152
+ Goutay","href":null}]}},"url":"https://www.notion.so/Nicolas-Goutay-c7fd1abe811444eabe779632ea33e581"}],"next_cursor":null,"has_more":false,"type":"page","page":{}}'
153
153
  recorded_at: Sun, 29 Aug 2021 17:47:59 GMT
154
154
  recorded_with: VCR 6.0.0
@@ -0,0 +1,145 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.notion.com/v1/blocks/77b5d405a5e840229c70b7766d1e8c4b
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - Notion Ruby Client/0.1.0-beta1
14
+ Authorization:
15
+ - Bearer <NOTION_API_TOKEN>
16
+ Notion-Version:
17
+ - '2021-08-16'
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Sun, 20 Mar 2022 16:43:19 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - notion_browser_id=95b580ce-d968-418c-9456-a1fa47a2a965; Domain=www.notion.so;
35
+ Path=/; Expires=Mon, 20 Mar 2023 16:43:19 GMT; Secure
36
+ - notion_check_cookie_consent=true; Domain=www.notion.so; Path=/; Expires=Mon,
37
+ 21 Mar 2022 16:43:19 GMT; Secure
38
+ X-Dns-Prefetch-Control:
39
+ - 'off'
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ Strict-Transport-Security:
43
+ - max-age=5184000; includeSubDomains
44
+ X-Download-Options:
45
+ - noopen
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Xss-Protection:
49
+ - 1; mode=block
50
+ Referrer-Policy:
51
+ - same-origin
52
+ Content-Security-Policy:
53
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
54
+ https://apis.google.com https://cdn.amplitude.com https://api.amplitude.com
55
+ https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com
56
+ https://logs-01.loggly.com https://cdn.segment.com https://analytics.pgncs.notion.so
57
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
58
+ https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com
59
+ js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com;
60
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
61
+ ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com
62
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
63
+ https: http: https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so
64
+ https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io
65
+ wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com https://cdn.segment.com
66
+ https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so
67
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
68
+ https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net
69
+ https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com
70
+ https://api.unsplash.com https://boards-api.greenhouse.io https://api.statuspage.io
71
+ https://pgncd.notion.so https://api.statsig.com; font-src ''self'' data: https://cdnjs.cloudflare.com
72
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
73
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com;
74
+ style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
75
+ https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com;
76
+ frame-src https: http:; media-src https: http:'
77
+ X-Content-Security-Policy:
78
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
79
+ https://apis.google.com https://cdn.amplitude.com https://api.amplitude.com
80
+ https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com
81
+ https://logs-01.loggly.com https://cdn.segment.com https://analytics.pgncs.notion.so
82
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
83
+ https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com
84
+ js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com;
85
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
86
+ ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com
87
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
88
+ https: http: https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so
89
+ https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io
90
+ wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com https://cdn.segment.com
91
+ https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so
92
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
93
+ https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net
94
+ https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com
95
+ https://api.unsplash.com https://boards-api.greenhouse.io https://api.statuspage.io
96
+ https://pgncd.notion.so https://api.statsig.com; font-src ''self'' data: https://cdnjs.cloudflare.com
97
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
98
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com;
99
+ style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
100
+ https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com;
101
+ frame-src https: http:; media-src https: http:'
102
+ X-Webkit-Csp:
103
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
104
+ https://apis.google.com https://cdn.amplitude.com https://api.amplitude.com
105
+ https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com
106
+ https://logs-01.loggly.com https://cdn.segment.com https://analytics.pgncs.notion.so
107
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
108
+ https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com
109
+ js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com;
110
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
111
+ ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com
112
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
113
+ https: http: https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so
114
+ https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io
115
+ wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com https://cdn.segment.com
116
+ https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so
117
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
118
+ https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net
119
+ https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com
120
+ https://api.unsplash.com https://boards-api.greenhouse.io https://api.statuspage.io
121
+ https://pgncd.notion.so https://api.statsig.com; font-src ''self'' data: https://cdnjs.cloudflare.com
122
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
123
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com;
124
+ style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
125
+ https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com;
126
+ frame-src https: http:; media-src https: http:'
127
+ Etag:
128
+ - W/"274-ZMuHa52hBHI+h+wwKiieL5Yeyaw"
129
+ Vary:
130
+ - Accept-Encoding
131
+ Cf-Cache-Status:
132
+ - DYNAMIC
133
+ Expect-Ct:
134
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
135
+ Server:
136
+ - cloudflare
137
+ Cf-Ray:
138
+ - 6eefe7f19dba104b-MRS
139
+ body:
140
+ encoding: UTF-8
141
+ string: '{"object":"block","id":"77b5d405-a5e8-4022-9c70-b7766d1e8c4b","created_time":"2022-03-20T16:38:00.000Z","last_edited_time":"2022-03-20T16:43:00.000Z","created_by":{"object":"user","id":"a8da8d30-c858-4c3d-87ad-3f2d477bd98d"},"last_edited_by":{"object":"user","id":"c1464b55-9bec-417d-9392-dc687623ab28"},"has_children":false,"archived":true,"type":"paragraph","paragraph":{"color":"default","text":[{"type":"text","text":{"content":"Should
142
+ be deleted","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Should
143
+ be deleted","href":null}]}}'
144
+ recorded_at: Sun, 20 Mar 2022 16:43:19 GMT
145
+ recorded_with: VCR 6.0.0
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response:
@@ -0,0 +1,143 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.notion.com/v1/pages/c7fd1abe-8114-44ea-be77-9632ea33e581/properties/%5BIFC
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - Notion Ruby Client/0.1.0-beta1
14
+ Authorization:
15
+ - Bearer <NOTION_API_TOKEN>
16
+ Notion-Version:
17
+ - '2021-08-16'
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Sun, 20 Mar 2022 17:10:22 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - notion_browser_id=7e4e2467-91d3-42e1-ac3e-596e38e11388; Domain=www.notion.so;
35
+ Path=/; Expires=Mon, 20 Mar 2023 17:10:22 GMT; Secure
36
+ - notion_check_cookie_consent=true; Domain=www.notion.so; Path=/; Expires=Mon,
37
+ 21 Mar 2022 17:10:22 GMT; Secure
38
+ X-Dns-Prefetch-Control:
39
+ - 'off'
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ Strict-Transport-Security:
43
+ - max-age=5184000; includeSubDomains
44
+ X-Download-Options:
45
+ - noopen
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Xss-Protection:
49
+ - 1; mode=block
50
+ Referrer-Policy:
51
+ - same-origin
52
+ Content-Security-Policy:
53
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
54
+ https://apis.google.com https://cdn.amplitude.com https://api.amplitude.com
55
+ https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com
56
+ https://logs-01.loggly.com https://cdn.segment.com https://analytics.pgncs.notion.so
57
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
58
+ https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com
59
+ js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com;
60
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
61
+ ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com
62
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
63
+ https: http: https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so
64
+ https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io
65
+ wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com https://cdn.segment.com
66
+ https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so
67
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
68
+ https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net
69
+ https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com
70
+ https://api.unsplash.com https://boards-api.greenhouse.io https://api.statuspage.io
71
+ https://pgncd.notion.so https://api.statsig.com; font-src ''self'' data: https://cdnjs.cloudflare.com
72
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
73
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com;
74
+ style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
75
+ https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com;
76
+ frame-src https: http:; media-src https: http:'
77
+ X-Content-Security-Policy:
78
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
79
+ https://apis.google.com https://cdn.amplitude.com https://api.amplitude.com
80
+ https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com
81
+ https://logs-01.loggly.com https://cdn.segment.com https://analytics.pgncs.notion.so
82
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
83
+ https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com
84
+ js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com;
85
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
86
+ ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com
87
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
88
+ https: http: https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so
89
+ https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io
90
+ wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com https://cdn.segment.com
91
+ https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so
92
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
93
+ https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net
94
+ https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com
95
+ https://api.unsplash.com https://boards-api.greenhouse.io https://api.statuspage.io
96
+ https://pgncd.notion.so https://api.statsig.com; font-src ''self'' data: https://cdnjs.cloudflare.com
97
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
98
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com;
99
+ style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
100
+ https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com;
101
+ frame-src https: http:; media-src https: http:'
102
+ X-Webkit-Csp:
103
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
104
+ https://apis.google.com https://cdn.amplitude.com https://api.amplitude.com
105
+ https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com
106
+ https://logs-01.loggly.com https://cdn.segment.com https://analytics.pgncs.notion.so
107
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
108
+ https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com
109
+ js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com;
110
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
111
+ ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com
112
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
113
+ https: http: https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so
114
+ https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io
115
+ wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com https://cdn.segment.com
116
+ https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so
117
+ https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com
118
+ https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net
119
+ https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com
120
+ https://api.unsplash.com https://boards-api.greenhouse.io https://api.statuspage.io
121
+ https://pgncd.notion.so https://api.statsig.com; font-src ''self'' data: https://cdnjs.cloudflare.com
122
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
123
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com;
124
+ style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
125
+ https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com;
126
+ frame-src https: http:; media-src https: http:'
127
+ Etag:
128
+ - W/"52-qP0vXYtccvf52YZtSGh7ylT7yAg"
129
+ Vary:
130
+ - Accept-Encoding
131
+ Cf-Cache-Status:
132
+ - DYNAMIC
133
+ Expect-Ct:
134
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
135
+ Server:
136
+ - cloudflare
137
+ Cf-Ray:
138
+ - 6ef00f921c8d73d3-MRS
139
+ body:
140
+ encoding: UTF-8
141
+ string: '{"object":"property_item","type":"email","id":"[IFC","email":"nicolas@orbit.love"}'
142
+ recorded_at: Sun, 20 Mar 2022 17:10:22 GMT
143
+ recorded_with: VCR 6.0.0
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response:
@@ -139,7 +139,7 @@ http_interactions:
139
139
  - 686797410c5f3b6d-CDG
140
140
  body:
141
141
  encoding: UTF-8
142
- string: '{"object":"list","results":[{"object":"block","id":"c183b81c-2973-41c1-867b-7faa0180403d","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"The
142
+ string: '{"object":"list","results":[{"object":"block","id":"c183b81c-2973-41c1-867b-7faa0180403d","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"The
143
143
  first child","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"The
144
144
  first child","href":null}]}}],"next_cursor":"51ab7653-230b-4332-89e5-4ca2b10e695b","has_more":true}'
145
145
  recorded_at: Sun, 29 Aug 2021 17:45:03 GMT
@@ -157,7 +157,7 @@ http_interactions:
157
157
  Authorization:
158
158
  - Bearer <NOTION_API_TOKEN>
159
159
  Notion-Version:
160
- - '2021-08-16'
160
+ - '2022-02-22'
161
161
  Accept-Encoding:
162
162
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
163
163
  response:
@@ -282,7 +282,7 @@ http_interactions:
282
282
  - 686797460d673b85-CDG
283
283
  body:
284
284
  encoding: UTF-8
285
- string: '{"object":"list","results":[{"object":"block","id":"51ab7653-230b-4332-89e5-4ca2b10e695b","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"The
285
+ string: '{"object":"list","results":[{"object":"block","id":"51ab7653-230b-4332-89e5-4ca2b10e695b","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-05-01T17:13:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"The
286
286
  second child","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"The
287
287
  second child","href":null}]}}],"next_cursor":"722ec5e1-f620-4860-a5fd-6de0430db4a8","has_more":true}'
288
288
  recorded_at: Sun, 29 Aug 2021 17:45:04 GMT
@@ -300,7 +300,7 @@ http_interactions:
300
300
  Authorization:
301
301
  - Bearer <NOTION_API_TOKEN>
302
302
  Notion-Version:
303
- - '2021-08-16'
303
+ - '2022-02-22'
304
304
  Accept-Encoding:
305
305
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
306
306
  response:
@@ -425,7 +425,7 @@ http_interactions:
425
425
  - 6867974bcacc4013-CDG
426
426
  body:
427
427
  encoding: UTF-8
428
- string: '{"object":"list","results":[{"object":"block","id":"722ec5e1-f620-4860-a5fd-6de0430db4a8","created_time":"2021-08-29T17:17:00.000Z","last_edited_time":"2021-08-29T17:17:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
428
+ string: '{"object":"list","results":[{"object":"block","id":"722ec5e1-f620-4860-a5fd-6de0430db4a8","created_time":"2021-08-29T17:17:00.000Z","last_edited_time":"2021-08-29T17:17:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Another
429
429
  children","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
430
430
  children","href":null}]}}],"next_cursor":"a6cb4553-bdf1-4080-84fa-3e1bceba6912","has_more":true}'
431
431
  recorded_at: Sun, 29 Aug 2021 17:45:05 GMT
@@ -443,7 +443,7 @@ http_interactions:
443
443
  Authorization:
444
444
  - Bearer <NOTION_API_TOKEN>
445
445
  Notion-Version:
446
- - '2021-08-16'
446
+ - '2022-02-22'
447
447
  Accept-Encoding:
448
448
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
449
449
  response:
@@ -568,7 +568,7 @@ http_interactions:
568
568
  - 686797519c6c0828-CDG
569
569
  body:
570
570
  encoding: UTF-8
571
- string: '{"object":"list","results":[{"object":"block","id":"a6cb4553-bdf1-4080-84fa-3e1bceba6912","created_time":"2021-08-29T17:18:00.000Z","last_edited_time":"2021-08-29T17:18:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
571
+ string: '{"object":"list","results":[{"object":"block","id":"a6cb4553-bdf1-4080-84fa-3e1bceba6912","created_time":"2021-08-29T17:18:00.000Z","last_edited_time":"2021-08-29T17:18:00.000Z","has_children":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Another
572
572
  children","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
573
573
  children","href":null}]}}],"next_cursor":null,"has_more":false}'
574
574
  recorded_at: Sun, 29 Aug 2021 17:45:06 GMT
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Accept-Encoding:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-05-13'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Accept-Encoding:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - "2021-08-16"
17
+ - "2022-02-22"
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-05-13'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Content-Length:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-05-13'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Accept-Encoding:
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.notion.com/v1/blocks/6e842658-eb3d-4ea9-9bbf-e86104151729
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"to_do":{"text":[{"text":{"content":"A todo"}}],"checked":true}}'
8
+ string: '{"to_do":{"rich_text":[{"text":{"content":"A todo"}}],"checked":true}}'
9
9
  headers:
10
10
  Accept:
11
11
  - application/json; charset=utf-8
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Accept-Encoding:
@@ -141,7 +141,7 @@ http_interactions:
141
141
  - 68679738b8ac40c9-CDG
142
142
  body:
143
143
  encoding: UTF-8
144
- string: '{"object":"block","id":"6e842658-eb3d-4ea9-9bbf-e86104151729","created_time":"2021-05-01T15:44:00.000Z","last_edited_time":"2021-08-29T17:45:00.000Z","has_children":false,"type":"to_do","to_do":{"text":[{"type":"text","text":{"content":"A
144
+ string: '{"object":"block","id":"6e842658-eb3d-4ea9-9bbf-e86104151729","created_time":"2021-05-01T15:44:00.000Z","last_edited_time":"2021-08-29T17:45:00.000Z","has_children":false,"type":"to_do","to_do":{"rich_text":[{"type":"text","text":{"content":"A
145
145
  todo","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
146
146
  todo","href":null}],"checked":true}}'
147
147
  recorded_at: Sun, 29 Aug 2021 17:45:02 GMT
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Accept-Encoding:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Content-Type:
19
19
  - application/json
20
20
  Accept-Encoding:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Authorization:
15
15
  - Bearer <NOTION_API_TOKEN>
16
16
  Notion-Version:
17
- - '2021-08-16'
17
+ - '2022-02-22'
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
20
  response: