notion-ruby-client 0.0.4 → 0.0.8
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.
- checksums.yaml +4 -4
- data/.rspec_status +17 -13
- data/CHANGELOG.md +19 -2
- data/CODE_OF_CONDUCT.md +128 -0
- data/Gemfile.lock +10 -6
- data/README.md +94 -13
- data/lib/notion/api/endpoints.rb +2 -0
- data/lib/notion/api/endpoints/blocks.rb +53 -0
- data/lib/notion/api/endpoints/databases.rb +22 -0
- data/lib/notion/api/endpoints/pages.rb +2 -2
- data/lib/notion/faraday/request.rb +1 -0
- data/lib/notion/pagination/cursor.rb +1 -1
- data/lib/notion/version.rb +3 -2
- data/notion-ruby-client-0.0.4.gem +0 -0
- data/spec/fixtures/notion/block_append_children.yml +135 -0
- data/spec/fixtures/notion/block_children.yml +137 -0
- data/spec/fixtures/notion/create_database.yml +140 -0
- data/spec/fixtures/notion/create_page.yml +43 -37
- data/spec/fixtures/notion/database.yml +9 -9
- data/spec/fixtures/notion/database_query.yml +11 -13
- data/spec/fixtures/notion/databases_list.yml +9 -9
- data/spec/fixtures/notion/page.yml +40 -36
- data/spec/fixtures/notion/paginated_block_children.yml +521 -0
- data/spec/fixtures/notion/paginated_database_query.yml +11 -15
- data/spec/fixtures/notion/paginated_databases_list.yml +9 -9
- data/spec/fixtures/notion/paginated_users_list.yml +9 -9
- data/spec/fixtures/notion/update_page.yml +41 -37
- data/spec/fixtures/notion/users.yml +9 -9
- data/spec/fixtures/notion/users_list.yml +9 -9
- data/spec/notion/api/endpoints/blocks_spec.rb +40 -0
- data/spec/notion/api/endpoints/databases_spec.rb +26 -0
- data/spec/notion/api/endpoints/pages_spec.rb +19 -8
- metadata +15 -2
@@ -5,16 +5,18 @@ http_interactions:
|
|
5
5
|
uri: https://api.notion.com/v1/pages
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"parent":{"database_id":"
|
9
|
-
Notion page"}}]},"children":[{"object":"block","type":"heading_2","heading_2":{"text":[{"type":"text","text":{"content":"A
|
8
|
+
string: '{"parent":{"database_id":"ab7e7b22-7793-492a-ba6b-3295f8b19341"},"properties":{"Name":{"title":[{"text":{"content":"Another
|
9
|
+
Notion page"}}]},"Description":{"rich_text":[{"text":{"content":"Page description"}}]}},"children":[{"object":"block","type":"heading_2","heading_2":{"text":[{"type":"text","text":{"content":"A
|
10
10
|
heading"}}]}}]}'
|
11
11
|
headers:
|
12
12
|
Accept:
|
13
13
|
- application/json; charset=utf-8
|
14
14
|
User-Agent:
|
15
|
-
- Notion Ruby Client/0.0.
|
15
|
+
- Notion Ruby Client/0.0.7
|
16
16
|
Authorization:
|
17
17
|
- Bearer <NOTION_API_TOKEN>
|
18
|
+
Notion-Version:
|
19
|
+
- '2021-05-13'
|
18
20
|
Content-Type:
|
19
21
|
- application/json
|
20
22
|
Accept-Encoding:
|
@@ -25,18 +27,13 @@ http_interactions:
|
|
25
27
|
message: OK
|
26
28
|
headers:
|
27
29
|
Date:
|
28
|
-
-
|
30
|
+
- Tue, 27 Jul 2021 10:39:49 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json; charset=utf-8
|
31
33
|
Transfer-Encoding:
|
32
34
|
- chunked
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
35
|
-
Set-Cookie:
|
36
|
-
- __cfduid=d4e6307e48da6660499cd5d8025c86d0c1619380981; expires=Tue, 25-May-21
|
37
|
-
20:03:01 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
38
|
-
- notion_browser_id=f15080d4-81d0-44ac-bed3-81acdfaa782e; Domain=www.notion.so;
|
39
|
-
Path=/; Expires=Wed, 01 Jan 2053 21:49:41 GMT; Secure
|
40
37
|
X-Dns-Prefetch-Control:
|
41
38
|
- 'off'
|
42
39
|
X-Frame-Options:
|
@@ -55,19 +52,21 @@ http_interactions:
|
|
55
52
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
56
53
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
57
54
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
58
|
-
https://analytics.pgncs.notion.so https://
|
59
|
-
https://
|
55
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
56
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
57
|
+
https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
|
60
58
|
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
61
59
|
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
62
60
|
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
63
61
|
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
64
62
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
65
63
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
66
|
-
https://api.segment.io https://api.pgncs.notion.so https://
|
67
|
-
https://
|
68
|
-
https://
|
69
|
-
|
70
|
-
|
64
|
+
https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
|
65
|
+
https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
|
66
|
+
https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
|
67
|
+
https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
|
68
|
+
data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
|
69
|
+
data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
71
70
|
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
72
71
|
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
73
72
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
@@ -76,19 +75,21 @@ http_interactions:
|
|
76
75
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
77
76
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
78
77
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
79
|
-
https://analytics.pgncs.notion.so https://
|
80
|
-
https://
|
78
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
79
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
80
|
+
https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
|
81
81
|
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
82
82
|
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
83
83
|
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
84
84
|
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
85
85
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
86
86
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
87
|
-
https://api.segment.io https://api.pgncs.notion.so https://
|
88
|
-
https://
|
89
|
-
https://
|
90
|
-
|
91
|
-
|
87
|
+
https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
|
88
|
+
https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
|
89
|
+
https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
|
90
|
+
https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
|
91
|
+
data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
|
92
|
+
data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
92
93
|
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
93
94
|
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
94
95
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
@@ -97,41 +98,46 @@ http_interactions:
|
|
97
98
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
98
99
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
99
100
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
100
|
-
https://analytics.pgncs.notion.so https://
|
101
|
-
https://
|
101
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
102
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
103
|
+
https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
|
102
104
|
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
103
105
|
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
104
106
|
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
105
107
|
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
106
108
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
107
109
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
108
|
-
https://api.segment.io https://api.pgncs.notion.so https://
|
109
|
-
https://
|
110
|
-
https://
|
111
|
-
|
112
|
-
|
110
|
+
https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
|
111
|
+
https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
|
112
|
+
https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
|
113
|
+
https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
|
114
|
+
data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
|
115
|
+
data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
113
116
|
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
114
117
|
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
115
118
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
116
119
|
media-src https: http:'
|
120
|
+
Set-Cookie:
|
121
|
+
- notion_browser_id=fc5cd959-578d-4b01-a5cf-180c1a6b9cdb; Domain=www.notion.so;
|
122
|
+
Path=/; Expires=Fri, 04 Apr 2053 12:26:29 GMT; Secure
|
117
123
|
Etag:
|
118
|
-
- W/"
|
124
|
+
- W/"391-afZwyKyZUA0Pe61oRFOZ3yzUE50"
|
119
125
|
Vary:
|
120
126
|
- Accept-Encoding
|
121
127
|
Cf-Cache-Status:
|
122
128
|
- DYNAMIC
|
123
|
-
Cf-Request-Id:
|
124
|
-
- '09ac39e5330000049f2c8b6000000001'
|
125
129
|
Expect-Ct:
|
126
130
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
127
131
|
Server:
|
128
132
|
- cloudflare
|
129
133
|
Cf-Ray:
|
130
|
-
-
|
134
|
+
- 67553efbed45ae55-KIX
|
131
135
|
body:
|
132
136
|
encoding: UTF-8
|
133
|
-
string: '{"object":"page","id":"
|
137
|
+
string: '{"object":"page","id":"567dca6c-3c0c-4888-bc78-10b596bced02","created_time":"2021-07-27T10:39:00.000Z","last_edited_time":"2021-07-27T10:39:00.000Z","parent":{"type":"database_id","database_id":"ab7e7b22-7793-492a-ba6b-3295f8b19341"},"archived":false,"properties":{"Description":{"id":"ddNO","type":"rich_text","rich_text":[{"type":"text","text":{"content":"Page
|
138
|
+
description","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Page
|
139
|
+
description","href":null}]},"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Another
|
134
140
|
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
|
135
|
-
Notion page","href":null}]}}}'
|
136
|
-
recorded_at:
|
141
|
+
Notion page","href":null}]}},"url":"https://www.notion.so/Another-Notion-page-567dca6c3c0c4888bc7810b596bced02"}'
|
142
|
+
recorded_at: Tue, 27 Jul 2021 10:39:49 GMT
|
137
143
|
recorded_with: VCR 6.0.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/json; charset=utf-8
|
12
12
|
User-Agent:
|
13
|
-
- Notion Ruby Client/0.0.
|
13
|
+
- Notion Ruby Client/0.0.4
|
14
14
|
Authorization:
|
15
15
|
- Bearer <NOTION_API_TOKEN>
|
16
16
|
Accept-Encoding:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
- Sun, 25 Apr 2021 20:
|
24
|
+
- Sun, 25 Apr 2021 20:59:57 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Transfer-Encoding:
|
@@ -29,10 +29,10 @@ http_interactions:
|
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- __cfduid=
|
33
|
-
20:
|
34
|
-
- notion_browser_id=
|
35
|
-
Path=/; Expires=Wed, 01 Jan 2053
|
32
|
+
- __cfduid=d5a4f07dd38f580697bebcaaca2da3f9a1619384396; expires=Tue, 25-May-21
|
33
|
+
20:59:56 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
+
- notion_browser_id=45f818ef-a9e0-48c3-8a6d-27b348c0dd7f; Domain=www.notion.so;
|
35
|
+
Path=/; Expires=Wed, 01 Jan 2053 22:46:37 GMT; Secure
|
36
36
|
X-Dns-Prefetch-Control:
|
37
37
|
- 'off'
|
38
38
|
X-Frame-Options:
|
@@ -117,17 +117,17 @@ http_interactions:
|
|
117
117
|
Cf-Cache-Status:
|
118
118
|
- DYNAMIC
|
119
119
|
Cf-Request-Id:
|
120
|
-
- '
|
120
|
+
- '09ac6e02b50000a855f6ba9000000001'
|
121
121
|
Expect-Ct:
|
122
122
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
123
123
|
Server:
|
124
124
|
- cloudflare
|
125
125
|
Cf-Ray:
|
126
|
-
-
|
126
|
+
- 645a7f7dea82a855-CDG
|
127
127
|
body:
|
128
128
|
encoding: UTF-8
|
129
129
|
string: '{"object":"database","id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T19:59:00.000Z","title":[{"type":"text","text":{"content":"A
|
130
130
|
Notion database","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
131
131
|
Notion database","href":null}],"properties":{"Tags":{"id":"yu]\\","type":"multi_select","multi_select":{"options":[]}},"Name":{"id":"title","type":"title","title":{}}}}'
|
132
|
-
recorded_at: Sun, 25 Apr 2021 20:
|
132
|
+
recorded_at: Sun, 25 Apr 2021 20:59:57 GMT
|
133
133
|
recorded_with: VCR 6.0.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/json; charset=utf-8
|
12
12
|
User-Agent:
|
13
|
-
- Notion Ruby Client/0.0.
|
13
|
+
- Notion Ruby Client/0.0.4
|
14
14
|
Authorization:
|
15
15
|
- Bearer <NOTION_API_TOKEN>
|
16
16
|
Content-Type:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
- Sun, 25 Apr 2021 20:
|
26
|
+
- Sun, 25 Apr 2021 20:59:57 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -31,10 +31,10 @@ http_interactions:
|
|
31
31
|
Connection:
|
32
32
|
- keep-alive
|
33
33
|
Set-Cookie:
|
34
|
-
- __cfduid=
|
35
|
-
20:
|
36
|
-
- notion_browser_id=
|
37
|
-
Path=/; Expires=Wed, 01 Jan 2053
|
34
|
+
- __cfduid=d5f60ec7cbc7e2ad6b51fc056395679c31619384397; expires=Tue, 25-May-21
|
35
|
+
20:59:57 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
36
|
+
- notion_browser_id=09cb1a5d-7e1a-4f44-b1fc-17f841b7c822; Domain=www.notion.so;
|
37
|
+
Path=/; Expires=Wed, 01 Jan 2053 22:46:37 GMT; Secure
|
38
38
|
X-Dns-Prefetch-Control:
|
39
39
|
- 'off'
|
40
40
|
X-Frame-Options:
|
@@ -113,25 +113,23 @@ http_interactions:
|
|
113
113
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
114
114
|
media-src https: http:'
|
115
115
|
Etag:
|
116
|
-
- W/"
|
116
|
+
- W/"256-GLaRmcrB0MMJquGjfaHJ2Jl5ecg"
|
117
117
|
Vary:
|
118
118
|
- Accept-Encoding
|
119
119
|
Cf-Cache-Status:
|
120
120
|
- DYNAMIC
|
121
121
|
Cf-Request-Id:
|
122
|
-
- '
|
122
|
+
- '09ac6e05d10000ee33f3057000000001'
|
123
123
|
Expect-Ct:
|
124
124
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
125
125
|
Server:
|
126
126
|
- cloudflare
|
127
127
|
Cf-Ray:
|
128
|
-
-
|
128
|
+
- 645a7f82e8dbee33-CDG
|
129
129
|
body:
|
130
130
|
encoding: UTF-8
|
131
|
-
string: '{"object":"list","results":[{"object":"page","id":"
|
132
|
-
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
|
133
|
-
Notion page","href":null}]}}},{"object":"page","id":"e9f5f54e-9df6-4ac6-b716-ecf671e3f8b6","created_time":"2021-01-30T11:03:23.390Z","last_edited_time":"2021-01-30T11:03:23.390Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Hola!","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Hola!","href":null}]}}},{"object":"page","id":"723578f1-6e51-450c-8ee1-09158c19fd4c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T19:56:46.292Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"A
|
131
|
+
string: '{"object":"list","results":[{"object":"page","id":"723578f1-6e51-450c-8ee1-09158c19fd4c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T20:41:00.000Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"A
|
134
132
|
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
135
133
|
Notion page","href":null}]}}}],"next_cursor":null,"has_more":false}'
|
136
|
-
recorded_at: Sun, 25 Apr 2021 20:
|
134
|
+
recorded_at: Sun, 25 Apr 2021 20:59:59 GMT
|
137
135
|
recorded_with: VCR 6.0.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/json; charset=utf-8
|
12
12
|
User-Agent:
|
13
|
-
- Notion Ruby Client/0.0.
|
13
|
+
- Notion Ruby Client/0.0.4
|
14
14
|
Authorization:
|
15
15
|
- Bearer <NOTION_API_TOKEN>
|
16
16
|
Accept-Encoding:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
- Sun, 25 Apr 2021
|
24
|
+
- Sun, 25 Apr 2021 21:00:00 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Transfer-Encoding:
|
@@ -29,10 +29,10 @@ http_interactions:
|
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- __cfduid=
|
33
|
-
|
34
|
-
- notion_browser_id=
|
35
|
-
Path=/; Expires=Wed, 01 Jan 2053
|
32
|
+
- __cfduid=ddf6666b47e733887d5b2a492ee98807c1619384400; expires=Tue, 25-May-21
|
33
|
+
21:00:00 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
+
- notion_browser_id=0f5a0e33-1181-41ca-96bf-22c530d86317; Domain=www.notion.so;
|
35
|
+
Path=/; Expires=Wed, 01 Jan 2053 22:46:40 GMT; Secure
|
36
36
|
X-Dns-Prefetch-Control:
|
37
37
|
- 'off'
|
38
38
|
X-Frame-Options:
|
@@ -117,17 +117,17 @@ http_interactions:
|
|
117
117
|
Cf-Cache-Status:
|
118
118
|
- DYNAMIC
|
119
119
|
Cf-Request-Id:
|
120
|
-
- '
|
120
|
+
- '09ac6e116e00000853a2a59000000001'
|
121
121
|
Expect-Ct:
|
122
122
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
123
123
|
Server:
|
124
124
|
- cloudflare
|
125
125
|
Cf-Ray:
|
126
|
-
-
|
126
|
+
- 645a7f957fc50853-CDG
|
127
127
|
body:
|
128
128
|
encoding: UTF-8
|
129
129
|
string: '{"object":"list","results":[{"object":"database","id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T19:59:00.000Z","title":[{"type":"text","text":{"content":"A
|
130
130
|
Notion database","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
131
131
|
Notion database","href":null}],"properties":{"Tags":{"id":"yu]\\","type":"multi_select","multi_select":{"options":[]}},"Name":{"id":"title","type":"title","title":{}}}}],"next_cursor":null,"has_more":false}'
|
132
|
-
recorded_at: Sun, 25 Apr 2021
|
132
|
+
recorded_at: Sun, 25 Apr 2021 21:00:00 GMT
|
133
133
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.notion.com/v1/pages/
|
5
|
+
uri: https://api.notion.com/v1/pages/2de466f0-9861-466b-9bc2-c987965da010
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,9 +10,11 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/json; charset=utf-8
|
12
12
|
User-Agent:
|
13
|
-
- Notion Ruby Client/0.0.
|
13
|
+
- Notion Ruby Client/0.0.7
|
14
14
|
Authorization:
|
15
15
|
- Bearer <NOTION_API_TOKEN>
|
16
|
+
Notion-Version:
|
17
|
+
- '2021-05-13'
|
16
18
|
Accept-Encoding:
|
17
19
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
20
|
response:
|
@@ -21,18 +23,13 @@ http_interactions:
|
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
25
|
Date:
|
24
|
-
-
|
26
|
+
- Tue, 27 Jul 2021 10:34:58 GMT
|
25
27
|
Content-Type:
|
26
28
|
- application/json; charset=utf-8
|
27
29
|
Transfer-Encoding:
|
28
30
|
- chunked
|
29
31
|
Connection:
|
30
32
|
- keep-alive
|
31
|
-
Set-Cookie:
|
32
|
-
- __cfduid=d54dfd6df47b70a1156c7ab184fa353651619380980; expires=Tue, 25-May-21
|
33
|
-
20:03:00 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
-
- notion_browser_id=804ad632-a8be-4663-bb53-57b36799f284; Domain=www.notion.so;
|
35
|
-
Path=/; Expires=Wed, 01 Jan 2053 21:49:40 GMT; Secure
|
36
33
|
X-Dns-Prefetch-Control:
|
37
34
|
- 'off'
|
38
35
|
X-Frame-Options:
|
@@ -51,19 +48,21 @@ http_interactions:
|
|
51
48
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
52
49
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
53
50
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
54
|
-
https://analytics.pgncs.notion.so https://
|
55
|
-
https://
|
51
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
52
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
53
|
+
https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
|
56
54
|
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
57
55
|
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
58
56
|
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
59
57
|
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
60
58
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
61
59
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
62
|
-
https://api.segment.io https://api.pgncs.notion.so https://
|
63
|
-
https://
|
64
|
-
https://
|
65
|
-
|
66
|
-
|
60
|
+
https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
|
61
|
+
https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
|
62
|
+
https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
|
63
|
+
https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
|
64
|
+
data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
|
65
|
+
data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
67
66
|
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
68
67
|
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
69
68
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
@@ -72,19 +71,21 @@ http_interactions:
|
|
72
71
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
73
72
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
74
73
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
75
|
-
https://analytics.pgncs.notion.so https://
|
76
|
-
https://
|
74
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
75
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
76
|
+
https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
|
77
77
|
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
78
78
|
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
79
79
|
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
80
80
|
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
81
81
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
82
82
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
83
|
-
https://api.segment.io https://api.pgncs.notion.so https://
|
84
|
-
https://
|
85
|
-
https://
|
86
|
-
|
87
|
-
|
83
|
+
https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
|
84
|
+
https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
|
85
|
+
https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
|
86
|
+
https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
|
87
|
+
data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
|
88
|
+
data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
88
89
|
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
89
90
|
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
90
91
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
@@ -93,41 +94,44 @@ http_interactions:
|
|
93
94
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
94
95
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
95
96
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
96
|
-
https://analytics.pgncs.notion.so https://
|
97
|
-
https://
|
97
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
98
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
99
|
+
https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
|
98
100
|
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
99
101
|
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
100
102
|
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
101
103
|
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
102
104
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
103
105
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
104
|
-
https://api.segment.io https://api.pgncs.notion.so https://
|
105
|
-
https://
|
106
|
-
https://
|
107
|
-
|
108
|
-
|
106
|
+
https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
|
107
|
+
https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
|
108
|
+
https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
|
109
|
+
https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
|
110
|
+
data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
|
111
|
+
data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
109
112
|
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
110
113
|
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
111
114
|
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
112
115
|
media-src https: http:'
|
116
|
+
Set-Cookie:
|
117
|
+
- notion_browser_id=e5adbb48-9098-48c5-b8de-295028576fbc; Domain=www.notion.so;
|
118
|
+
Path=/; Expires=Fri, 04 Apr 2053 12:21:38 GMT; Secure
|
113
119
|
Etag:
|
114
|
-
- W/"
|
120
|
+
- W/"29f-eBfuus2RMZHcW3K9L51aj0I7uqk"
|
115
121
|
Vary:
|
116
122
|
- Accept-Encoding
|
117
123
|
Cf-Cache-Status:
|
118
124
|
- DYNAMIC
|
119
|
-
Cf-Request-Id:
|
120
|
-
- '09ac39e1fc0000edb7dead3000000001'
|
121
125
|
Expect-Ct:
|
122
126
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
123
127
|
Server:
|
124
128
|
- cloudflare
|
125
129
|
Cf-Ray:
|
126
|
-
-
|
130
|
+
- 675537e53f0d0ad6-KIX
|
127
131
|
body:
|
128
132
|
encoding: UTF-8
|
129
|
-
string: '{"object":"page","id":"
|
133
|
+
string: '{"object":"page","id":"2de466f0-9861-466b-9bc2-c987965da010","created_time":"2021-07-26T15:05:00.000Z","last_edited_time":"2021-07-26T15:51:00.000Z","parent":{"type":"database_id","database_id":"ab7e7b22-7793-492a-ba6b-3295f8b19341"},"archived":false,"properties":{"Description":{"id":"ddNO","type":"rich_text","rich_text":[]},"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"A
|
130
134
|
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
131
|
-
Notion page","href":null}]}}}'
|
132
|
-
recorded_at:
|
135
|
+
Notion page","href":null}]}},"url":"https://www.notion.so/A-Notion-page-2de466f09861466b9bc2c987965da010"}'
|
136
|
+
recorded_at: Tue, 27 Jul 2021 10:34:58 GMT
|
133
137
|
recorded_with: VCR 6.0.0
|