notion-ruby-client 0.0.8 → 0.1.0.pre.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -0
- data/.gitignore +7 -0
- data/.rubocop.yml +9 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +29 -7
- data/README.md +245 -55
- data/bin/console +31 -0
- data/lib/notion/api/endpoints/blocks.rb +35 -7
- data/lib/notion/api/endpoints/databases.rb +65 -37
- data/lib/notion/api/endpoints/pages.rb +6 -6
- data/lib/notion/api/endpoints/search.rb +41 -0
- data/lib/notion/api/endpoints/users.rb +6 -3
- data/lib/notion/api/endpoints.rb +3 -1
- data/lib/notion/api/errors/too_many_requests.rb +15 -0
- data/lib/notion/api/errors.rb +0 -2
- data/lib/notion/config.rb +2 -0
- data/lib/notion/pagination/cursor.rb +5 -2
- data/lib/notion/version.rb +2 -2
- data/lib/notion-ruby-client.rb +2 -0
- data/notion-ruby-client.gemspec +3 -1
- data/spec/fixtures/notion/block.yml +146 -0
- data/spec/fixtures/notion/block_append_children.yml +76 -62
- data/spec/fixtures/notion/block_children.yml +80 -65
- data/spec/fixtures/notion/create_database.yml +67 -58
- data/spec/fixtures/notion/create_page.yml +68 -59
- data/spec/fixtures/notion/database.yml +78 -61
- data/spec/fixtures/notion/database_query.yml +81 -62
- data/spec/fixtures/notion/databases_list.yml +77 -60
- data/spec/fixtures/notion/page.yml +70 -57
- data/spec/fixtures/notion/paginated_block_children.yml +296 -242
- data/spec/fixtures/notion/paginated_database_query.yml +79 -62
- data/spec/fixtures/notion/paginated_databases_list.yml +78 -61
- data/spec/fixtures/notion/paginated_search.yml +301 -0
- data/spec/fixtures/notion/paginated_users_list.yml +143 -130
- data/spec/fixtures/notion/search.yml +160 -0
- data/spec/fixtures/notion/search_with_query.yml +152 -0
- data/spec/fixtures/notion/update_block.yml +148 -0
- data/spec/fixtures/notion/update_database.yml +152 -0
- data/spec/fixtures/notion/update_page.yml +71 -59
- data/spec/fixtures/notion/users.yml +69 -56
- data/spec/fixtures/notion/users_list.yml +143 -130
- data/spec/notion/api/endpoints/blocks_spec.rb +37 -11
- data/spec/notion/api/endpoints/databases_spec.rb +25 -17
- data/spec/notion/api/endpoints/pages_spec.rb +7 -16
- data/spec/notion/api/endpoints/search_spec.rb +26 -0
- data/spec/notion/api/endpoints/users_spec.rb +4 -4
- data/spec/notion/pagination/cursor_spec.rb +126 -0
- metadata +52 -8
- data/.rspec_status +0 -19
- data/notion-ruby-client-0.0.4.gem +0 -0
- data/scratchpad.rb +0 -22
- data/screenshots/create_notion_bot.png +0 -0
data/lib/notion-ruby-client.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require 'active_support/core_ext/hash/except'
|
2
3
|
require 'faraday'
|
3
4
|
require 'faraday_middleware'
|
4
5
|
require 'json'
|
@@ -17,6 +18,7 @@ require_relative 'notion/api/errors/notion_error'
|
|
17
18
|
require_relative 'notion/api/error'
|
18
19
|
require_relative 'notion/api/errors'
|
19
20
|
require_relative 'notion/api/errors/internal_error'
|
21
|
+
require_relative 'notion/api/errors/too_many_requests'
|
20
22
|
require_relative 'notion/faraday/response/raise_error'
|
21
23
|
require_relative 'notion/faraday/response/wrap_error'
|
22
24
|
require_relative 'notion/faraday/connection'
|
data/notion-ruby-client.gemspec
CHANGED
@@ -15,10 +15,12 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.homepage = 'http://github.com/orbit-love/notion-ruby-client'
|
16
16
|
s.licenses = ['MIT']
|
17
17
|
s.summary = 'Notion API client for Ruby.'
|
18
|
+
s.add_dependency 'activesupport'
|
19
|
+
s.add_dependency 'dotenv'
|
18
20
|
s.add_dependency 'faraday', '>= 1.0'
|
19
21
|
s.add_dependency 'faraday_middleware'
|
20
22
|
s.add_dependency 'hashie'
|
21
|
-
s.add_development_dependency 'rake', '~>
|
23
|
+
s.add_development_dependency 'rake', '~> 13'
|
22
24
|
s.add_development_dependency 'rspec'
|
23
25
|
s.add_development_dependency 'rubocop', '~> 0.82.0'
|
24
26
|
s.add_development_dependency 'rubocop-performance', '~> 1.5.2'
|
@@ -0,0 +1,146 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.notion.com/v1/blocks/32af3324-ba02-4516-ae88-5728a4d569f4
|
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.0.8
|
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, 29 Aug 2021 17:45:01 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Dns-Prefetch-Control:
|
34
|
+
- 'off'
|
35
|
+
X-Frame-Options:
|
36
|
+
- SAMEORIGIN
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=5184000; includeSubDomains
|
39
|
+
X-Download-Options:
|
40
|
+
- noopen
|
41
|
+
X-Content-Type-Options:
|
42
|
+
- nosniff
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
Referrer-Policy:
|
46
|
+
- same-origin
|
47
|
+
Content-Security-Policy:
|
48
|
+
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
49
|
+
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
50
|
+
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
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://js.chilipiper.com
|
54
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
55
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
56
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
57
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
58
|
+
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
|
59
|
+
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
60
|
+
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
61
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
62
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
63
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
64
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
65
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
66
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
67
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
68
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
69
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
70
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
71
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
72
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
73
|
+
X-Content-Security-Policy:
|
74
|
+
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
75
|
+
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
76
|
+
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
77
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
78
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
79
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
80
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
81
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
82
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
83
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
84
|
+
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
|
85
|
+
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
86
|
+
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
87
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
88
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
89
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
90
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
91
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
92
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
93
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
94
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
95
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
96
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
97
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
98
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
99
|
+
X-Webkit-Csp:
|
100
|
+
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
101
|
+
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
102
|
+
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
103
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
104
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
105
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
106
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
107
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
108
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
109
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
110
|
+
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
|
111
|
+
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
112
|
+
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
113
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
114
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
115
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
116
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
117
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
118
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
119
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
120
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
121
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
122
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
123
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
124
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
125
|
+
Set-Cookie:
|
126
|
+
- notion_browser_id=5e3ae42a-9c10-4632-bbd6-f8635f637d51; Domain=www.notion.so;
|
127
|
+
Path=/; Expires=Wed, 07 May 2053 19:31:41 GMT; Secure
|
128
|
+
Etag:
|
129
|
+
- W/"1c9-RV2WR8+djapd2GV8p8VntQ5R7zI"
|
130
|
+
Vary:
|
131
|
+
- Accept-Encoding
|
132
|
+
Cf-Cache-Status:
|
133
|
+
- DYNAMIC
|
134
|
+
Expect-Ct:
|
135
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
136
|
+
Server:
|
137
|
+
- cloudflare
|
138
|
+
Cf-Ray:
|
139
|
+
- 68679732dfea3acb-CDG
|
140
|
+
body:
|
141
|
+
encoding: UTF-8
|
142
|
+
string: '{"object":"block","id":"32af3324-ba02-4516-ae88-5728a4d569f4","created_time":"2021-05-01T17:13:00.000Z","last_edited_time":"2021-08-29T17:18:00.000Z","has_children":true,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"A
|
143
|
+
paragraph with childrens","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
144
|
+
paragraph with childrens","href":null}]}}'
|
145
|
+
recorded_at: Sun, 29 Aug 2021 17:45:01 GMT
|
146
|
+
recorded_with: VCR 6.0.0
|
@@ -2,18 +2,20 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: patch
|
5
|
-
uri: https://api.notion.com/v1/blocks/
|
5
|
+
uri: https://api.notion.com/v1/blocks/32af3324-ba02-4516-ae88-5728a4d569f4/children
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
9
|
-
|
8
|
+
string: '{"children":[{"object":"block","type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"Another
|
9
|
+
children"}}]}}]}'
|
10
10
|
headers:
|
11
11
|
Accept:
|
12
12
|
- application/json; charset=utf-8
|
13
13
|
User-Agent:
|
14
|
-
- Notion Ruby Client/0.0.
|
14
|
+
- Notion Ruby Client/0.0.8
|
15
15
|
Authorization:
|
16
16
|
- Bearer <NOTION_API_TOKEN>
|
17
|
+
Notion-Version:
|
18
|
+
- '2021-08-16'
|
17
19
|
Content-Type:
|
18
20
|
- application/json
|
19
21
|
Accept-Encoding:
|
@@ -24,18 +26,13 @@ http_interactions:
|
|
24
26
|
message: OK
|
25
27
|
headers:
|
26
28
|
Date:
|
27
|
-
- Sun,
|
29
|
+
- Sun, 29 Aug 2021 17:45:06 GMT
|
28
30
|
Content-Type:
|
29
31
|
- application/json; charset=utf-8
|
30
32
|
Transfer-Encoding:
|
31
33
|
- chunked
|
32
34
|
Connection:
|
33
35
|
- keep-alive
|
34
|
-
Set-Cookie:
|
35
|
-
- __cfduid=d34e3fa5c4766df6ac5561da522624b761619384749; expires=Tue, 25-May-21
|
36
|
-
21:05:49 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
37
|
-
- notion_browser_id=e006545d-4f97-4497-8d9c-491386cb6d2a; Domain=www.notion.so;
|
38
|
-
Path=/; Expires=Wed, 01 Jan 2053 22:52:29 GMT; Secure
|
39
36
|
X-Dns-Prefetch-Control:
|
40
37
|
- 'off'
|
41
38
|
X-Frame-Options:
|
@@ -54,82 +51,99 @@ http_interactions:
|
|
54
51
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
55
52
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
56
53
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
57
|
-
https://analytics.pgncs.notion.so https://
|
58
|
-
https://
|
59
|
-
https://
|
60
|
-
|
61
|
-
|
62
|
-
https://
|
54
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
55
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
56
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
57
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
58
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
59
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
60
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
61
|
+
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
62
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
64
63
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
65
|
-
https://api.segment.io https://
|
66
|
-
https://
|
67
|
-
https://
|
68
|
-
|
69
|
-
|
70
|
-
https://
|
71
|
-
''self''
|
72
|
-
https://
|
73
|
-
|
64
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
65
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
66
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
67
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
68
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
69
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
70
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
71
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
72
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
73
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
74
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
75
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
74
76
|
X-Content-Security-Policy:
|
75
77
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
76
78
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
77
79
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
78
|
-
https://analytics.pgncs.notion.so https://
|
79
|
-
https://
|
80
|
-
https://
|
81
|
-
|
82
|
-
|
83
|
-
https://
|
80
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
81
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
82
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
83
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
84
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
85
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
86
|
+
wss://msgstore.www.notion.so ws://localhost:* 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
|
84
88
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
85
89
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
86
|
-
https://api.segment.io https://
|
87
|
-
https://
|
88
|
-
https://
|
89
|
-
|
90
|
-
|
91
|
-
https://
|
92
|
-
''self''
|
93
|
-
https://
|
94
|
-
|
90
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
91
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
92
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
93
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
94
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
95
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
96
|
+
https://pgncd.notion.so; 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
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
100
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
101
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
95
102
|
X-Webkit-Csp:
|
96
103
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
97
104
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
98
105
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
99
|
-
https://analytics.pgncs.notion.so https://
|
100
|
-
https://
|
101
|
-
https://
|
102
|
-
|
103
|
-
|
104
|
-
https://
|
106
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
107
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
108
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
109
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
110
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
111
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
112
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
113
|
+
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
|
105
114
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
106
115
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
107
|
-
https://api.segment.io https://
|
108
|
-
https://
|
109
|
-
https://
|
110
|
-
|
111
|
-
|
112
|
-
https://
|
113
|
-
''self''
|
114
|
-
https://
|
115
|
-
|
116
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
117
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
118
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
119
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
120
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
121
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
122
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
123
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
124
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
125
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
126
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
127
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
128
|
+
Set-Cookie:
|
129
|
+
- notion_browser_id=90e47682-16cc-4ae0-aec6-c0bc152d2ef5; Domain=www.notion.so;
|
130
|
+
Path=/; Expires=Wed, 07 May 2053 19:31:46 GMT; Secure
|
116
131
|
Etag:
|
117
|
-
- W/"
|
132
|
+
- W/"1f8-q0E++mHLkdidPRLHaNfXLa3OZEo"
|
118
133
|
Vary:
|
119
134
|
- Accept-Encoding
|
120
135
|
Cf-Cache-Status:
|
121
136
|
- DYNAMIC
|
122
|
-
Cf-Request-Id:
|
123
|
-
- '09ac73642e00000818408a7000000001'
|
124
137
|
Expect-Ct:
|
125
138
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
126
139
|
Server:
|
127
140
|
- cloudflare
|
128
141
|
Cf-Ray:
|
129
|
-
-
|
142
|
+
- 6867975778e940b7-CDG
|
130
143
|
body:
|
131
144
|
encoding: UTF-8
|
132
|
-
string: '{"object":"block","id":"
|
133
|
-
|
134
|
-
|
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
|
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}'
|
148
|
+
recorded_at: Sun, 29 Aug 2021 17:45:06 GMT
|
135
149
|
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/blocks/
|
5
|
+
uri: https://api.notion.com/v1/blocks/32af3324-ba02-4516-ae88-5728a4d569f4/children
|
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.8
|
14
14
|
Authorization:
|
15
15
|
- Bearer <NOTION_API_TOKEN>
|
16
|
+
Notion-Version:
|
17
|
+
- '2021-08-16'
|
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
|
-
- Sun,
|
26
|
+
- Sun, 29 Aug 2021 17:45:02 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=d96e3d721ac572f706ca68070606fa2391619384744; expires=Tue, 25-May-21
|
33
|
-
21:05:44 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
-
- notion_browser_id=612a2641-5d00-4c18-85b2-269d399f4e4b; Domain=www.notion.so;
|
35
|
-
Path=/; Expires=Wed, 01 Jan 2053 22:52:25 GMT; Secure
|
36
33
|
X-Dns-Prefetch-Control:
|
37
34
|
- 'off'
|
38
35
|
X-Frame-Options:
|
@@ -51,87 +48,105 @@ 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://
|
56
|
-
https://
|
57
|
-
|
58
|
-
|
59
|
-
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://js.chilipiper.com
|
54
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
55
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
56
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
57
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
58
|
+
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
|
60
59
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
61
60
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
62
|
-
https://api.segment.io https://
|
63
|
-
https://
|
64
|
-
https://
|
65
|
-
|
66
|
-
|
67
|
-
https://
|
68
|
-
''self''
|
69
|
-
https://
|
70
|
-
|
61
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
62
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
63
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
64
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
65
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
66
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
67
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
68
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
69
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
70
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
71
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
72
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
71
73
|
X-Content-Security-Policy:
|
72
74
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
73
75
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
74
76
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
75
|
-
https://analytics.pgncs.notion.so https://
|
76
|
-
https://
|
77
|
-
https://
|
78
|
-
|
79
|
-
|
80
|
-
https://
|
77
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
78
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
79
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
80
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
81
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
82
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
83
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
84
|
+
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
|
81
85
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
82
86
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
83
|
-
https://api.segment.io https://
|
84
|
-
https://
|
85
|
-
https://
|
86
|
-
|
87
|
-
|
88
|
-
https://
|
89
|
-
''self''
|
90
|
-
https://
|
91
|
-
|
87
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
88
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
89
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
90
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
91
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
92
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
93
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
94
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
95
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
96
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
97
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
98
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
92
99
|
X-Webkit-Csp:
|
93
100
|
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
94
101
|
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
95
102
|
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
96
|
-
https://analytics.pgncs.notion.so https://
|
97
|
-
https://
|
98
|
-
https://
|
99
|
-
|
100
|
-
|
101
|
-
https://
|
103
|
+
https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
104
|
+
https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
|
105
|
+
https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
|
106
|
+
https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
|
107
|
+
https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
|
108
|
+
https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
|
109
|
+
wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
|
110
|
+
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
|
102
111
|
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
103
112
|
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
104
|
-
https://api.segment.io https://
|
105
|
-
https://
|
106
|
-
https://
|
107
|
-
|
108
|
-
|
109
|
-
https://
|
110
|
-
''self''
|
111
|
-
https://
|
112
|
-
|
113
|
+
https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
|
114
|
+
https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
|
115
|
+
https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
|
116
|
+
https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
|
117
|
+
https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
|
118
|
+
https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
|
119
|
+
https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
|
120
|
+
https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
|
121
|
+
https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
|
122
|
+
www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
|
123
|
+
https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
|
124
|
+
https://ton.twimg.com; frame-src https: http:; media-src https: http:'
|
125
|
+
Set-Cookie:
|
126
|
+
- notion_browser_id=33cfb86b-fefe-4454-96b5-f51730549269; Domain=www.notion.so;
|
127
|
+
Path=/; Expires=Wed, 07 May 2053 19:31:42 GMT; Secure
|
113
128
|
Etag:
|
114
|
-
- W/"
|
129
|
+
- W/"71b-BU6l1eTv4o3zbg3FtFJJVNYrjBY"
|
115
130
|
Vary:
|
116
131
|
- Accept-Encoding
|
117
132
|
Cf-Cache-Status:
|
118
133
|
- DYNAMIC
|
119
|
-
Cf-Request-Id:
|
120
|
-
- '09ac7352730000edf3513be000000001'
|
121
134
|
Expect-Ct:
|
122
135
|
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
123
136
|
Server:
|
124
137
|
- cloudflare
|
125
138
|
Cf-Ray:
|
126
|
-
-
|
139
|
+
- 6867973e2eb6ee75-CDG
|
127
140
|
body:
|
128
141
|
encoding: UTF-8
|
129
|
-
string: '{"object":"list","results":[{"object":"block","id":"
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
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
|
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
|
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
|
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
|
149
|
+
children","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
|
150
|
+
children","href":null}]}}],"next_cursor":null,"has_more":false}'
|
151
|
+
recorded_at: Sun, 29 Aug 2021 17:45:02 GMT
|
137
152
|
recorded_with: VCR 6.0.0
|