notion-ruby-client 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da15ba6b2f024300114602bd828c15ca06e04366336e3414b6c8a557011672ff
4
- data.tar.gz: b729ffdea1ce51e5381a2dc1a296180bf4ae396ae1be526433fd8059f3a974a8
3
+ metadata.gz: 526916d20ba8e6c2ec952e750ace9e3e1fb4293ffa0cd317ee8948315cd9b17f
4
+ data.tar.gz: 14fb8b29995bad4ace873cc85c3ef10fa693322aecee0fbeae24cc1f1dc95092
5
5
  SHA512:
6
- metadata.gz: 2d6c904bc63780d5ce10688ac6033e7c62dacb72baaf5d451d7a2332ad4bf39719cb5f02b52e82f8b358543081c9008010f0cf1394e67f04aa047bbc9727cfc3
7
- data.tar.gz: b29c7cbb03715c3d4390e0d0a94d36fecf175e8d38fb4713e82785ee8a240cf3a834b2fc157504040a546922ed039a0fe9d92b50896a61d034b9b0d44d9fda0d
6
+ metadata.gz: 2493d2fa1c779c4d6940814bb5669f30932d71022821e97a9f3116f3a69d594a68e892867edad9cdded2e9fa448f1ca04b1b96740c814a723b263374c3119ff0
7
+ data.tar.gz: 26b90af6ad023ca0a52d950b16e1997b2e3b5e8d1728350b7dbbe43b4651d4cdafa825420eecbd7aa9815a13ddd996a2bc20effb5ff7435ae12af639089e1af5
data/.rspec_status CHANGED
@@ -1,15 +1,18 @@
1
1
  example_id | status | run_time |
2
2
  ---------------------------------------------------- | ------ | --------------- |
3
- ./spec/notion/api/endpoints/databases_spec.rb[1:1:1] | passed | 0.01164 seconds |
4
- ./spec/notion/api/endpoints/databases_spec.rb[1:1:2] | passed | 0.007 seconds |
5
- ./spec/notion/api/endpoints/databases_spec.rb[1:1:3] | passed | 0.00692 seconds |
6
- ./spec/notion/api/endpoints/databases_spec.rb[1:1:4] | passed | 0.00666 seconds |
7
- ./spec/notion/api/endpoints/databases_spec.rb[1:1:5] | passed | 0.85972 seconds |
8
- ./spec/notion/api/endpoints/pages_spec.rb[1:1:1] | passed | 0.00676 seconds |
9
- ./spec/notion/api/endpoints/pages_spec.rb[1:1:2] | passed | 0.0063 seconds |
10
- ./spec/notion/api/endpoints/pages_spec.rb[1:1:3] | passed | 0.00628 seconds |
11
- ./spec/notion/api/endpoints/users_spec.rb[1:1:1] | passed | 0.00722 seconds |
12
- ./spec/notion/api/endpoints/users_spec.rb[1:1:2] | passed | 0.00731 seconds |
13
- ./spec/notion/api/endpoints/users_spec.rb[1:1:3] | passed | 0.00678 seconds |
14
- ./spec/notion/config_spec.rb[1:1:1] | passed | 0.00009 seconds |
15
- ./spec/notion/version_spec.rb[1:1] | passed | 0.00006 seconds |
3
+ ./spec/notion/api/endpoints/blocks_spec.rb[1:1:1] | passed | 0.01164 seconds |
4
+ ./spec/notion/api/endpoints/blocks_spec.rb[1:1:2] | passed | 0.01245 seconds |
5
+ ./spec/notion/api/endpoints/blocks_spec.rb[1:1:3] | passed | 0.00697 seconds |
6
+ ./spec/notion/api/endpoints/databases_spec.rb[1:1:1] | passed | 0.00697 seconds |
7
+ ./spec/notion/api/endpoints/databases_spec.rb[1:1:2] | passed | 0.00682 seconds |
8
+ ./spec/notion/api/endpoints/databases_spec.rb[1:1:3] | passed | 0.00741 seconds |
9
+ ./spec/notion/api/endpoints/databases_spec.rb[1:1:4] | passed | 0.00701 seconds |
10
+ ./spec/notion/api/endpoints/databases_spec.rb[1:1:5] | passed | 0.00795 seconds |
11
+ ./spec/notion/api/endpoints/pages_spec.rb[1:1:1] | passed | 0.00713 seconds |
12
+ ./spec/notion/api/endpoints/pages_spec.rb[1:1:2] | passed | 0.00774 seconds |
13
+ ./spec/notion/api/endpoints/pages_spec.rb[1:1:3] | passed | 0.00818 seconds |
14
+ ./spec/notion/api/endpoints/users_spec.rb[1:1:1] | passed | 0.00703 seconds |
15
+ ./spec/notion/api/endpoints/users_spec.rb[1:1:2] | passed | 0.00683 seconds |
16
+ ./spec/notion/api/endpoints/users_spec.rb[1:1:3] | passed | 0.00647 seconds |
17
+ ./spec/notion/config_spec.rb[1:1:1] | passed | 0.00006 seconds |
18
+ ./spec/notion/version_spec.rb[1:1] | passed | 0.00005 seconds |
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
+ ### 0.0.5 (2020-04-25)
2
+
3
+ - Added support for Blocks endpoints
4
+
1
5
  ### 0.0.4 (2020-04-25)
2
6
 
3
7
  - Added specs and a CI process with GitHub Actions
4
- - Add support for GET /databases, POST /databases/<:id>/query endpoints
5
- - Add support for `content` when creating a page
8
+ - Added support for GET /databases, POST /databases/<:id>/query endpoints
9
+ - Added support for `content` when creating a page
6
10
 
7
11
  ### 0.0.3 (2020-01-30)
8
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- notion-ruby-client (0.0.3)
4
+ notion-ruby-client (0.0.5)
5
5
  faraday (>= 1.0)
6
6
  faraday_middleware
7
7
  hashie
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'endpoints/blocks'
3
4
  require_relative 'endpoints/databases'
4
5
  require_relative 'endpoints/pages'
5
6
  require_relative 'endpoints/users'
@@ -7,6 +8,7 @@ require_relative 'endpoints/users'
7
8
  module Notion
8
9
  module Api
9
10
  module Endpoints
11
+ include Blocks
10
12
  include Databases
11
13
  include Pages
12
14
  include Users
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Notion
4
+ module Api
5
+ module Endpoints
6
+ module Blocks
7
+ #
8
+ # Returns a paginated array of Block objects contained in the
9
+ # block of the requested path using the ID specified.
10
+ #
11
+ # Returns a 404 HTTP response if any of the following are true:
12
+ # - the ID does not exist
13
+ # - the bot doesn't have access to the block with the given ID
14
+ #
15
+ # Returns a 400 or 429 HTTP response if the request exceeds Notion's Request limits.
16
+ #
17
+ # @option options [id] :id
18
+ # Block to get children info on.
19
+ def block_children(options = {})
20
+ throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
21
+ if block_given?
22
+ Pagination::Cursor.new(self, :block_children, options).each do |page|
23
+ yield page
24
+ end
25
+ else
26
+ get("blocks/#{options[:id]}/children", options)
27
+ end
28
+ end
29
+
30
+ #
31
+ # Creates and appends new children blocks to the parent block
32
+ # in the requested path using the ID specified. Returns the Block
33
+ # object being appended to.
34
+ #
35
+ # Returns a 404 HTTP response if any of the following are true:
36
+ # - the ID does not exist
37
+ # - the bot doesn't have access to the block with the given ID
38
+ #
39
+ # Returns a 400 or 429 HTTP response if the request exceeds Notion's Request limits.
40
+ #
41
+ # @option options [id] :id
42
+ # Block to get children info on.
43
+ #
44
+ # @option options [[Object]] :children
45
+ # Children blocks to append
46
+ def block_append_children(options = {})
47
+ throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
48
+ patch("blocks/#{options[:id]}/children", options)
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -26,7 +26,7 @@ module Notion
26
26
  query = next_cursor.nil? ? params : params.merge(start_cursor: next_cursor)
27
27
  begin
28
28
  response = client.send(verb, query)
29
- rescue Notion::Api::Errors::TooManyRequestsError => e
29
+ rescue Notion::Api::Errors::TooManyRequests => e
30
30
  raise e if retry_count >= max_retries
31
31
 
32
32
  client.logger.debug("#{self.class}##{__method__}") { e.to_s }
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Notion
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
Binary file
@@ -0,0 +1,135 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://api.notion.com/v1/blocks/723578f1-6e51-450c-8ee1-09158c19fd4c/children
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"723578f1-6e51-450c-8ee1-09158c19fd4c","children":[{"object":"block","type":"heading_2","heading_2":{"text":[{"type":"text","text":{"content":"Another
9
+ Heading"}}]}}]}'
10
+ headers:
11
+ Accept:
12
+ - application/json; charset=utf-8
13
+ User-Agent:
14
+ - Notion Ruby Client/0.0.4
15
+ Authorization:
16
+ - Bearer <NOTION_API_TOKEN>
17
+ Content-Type:
18
+ - application/json
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Date:
27
+ - Sun, 25 Apr 2021 21:05:49 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - 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
+ X-Dns-Prefetch-Control:
40
+ - 'off'
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ Strict-Transport-Security:
44
+ - max-age=5184000; includeSubDomains
45
+ X-Download-Options:
46
+ - noopen
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ Referrer-Policy:
52
+ - same-origin
53
+ Content-Security-Policy:
54
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
55
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
56
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
57
+ https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
58
+ https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
59
+ https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
60
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
61
+ ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
62
+ https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
63
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
64
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
65
+ https://api.segment.io https://api.pgncs.notion.so https://checkout.stripe.com
66
+ https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
67
+ https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
68
+ font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
69
+ img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
70
+ https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
71
+ ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
72
+ https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
73
+ media-src https: http:'
74
+ X-Content-Security-Policy:
75
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
76
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
77
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
78
+ https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
79
+ https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
80
+ https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
81
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
82
+ ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
83
+ https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
84
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
85
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
86
+ https://api.segment.io https://api.pgncs.notion.so https://checkout.stripe.com
87
+ https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
88
+ https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
89
+ font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
90
+ img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
91
+ https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
92
+ ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
93
+ https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
94
+ media-src https: http:'
95
+ X-Webkit-Csp:
96
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
97
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
98
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
99
+ https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
100
+ https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
101
+ https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
102
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
103
+ ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
104
+ https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
105
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
106
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
107
+ https://api.segment.io https://api.pgncs.notion.so https://checkout.stripe.com
108
+ https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
109
+ https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
110
+ font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
111
+ img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
112
+ https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
113
+ ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
114
+ https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
115
+ media-src https: http:'
116
+ Etag:
117
+ - W/"e5-DFeqv/gYemlg3XfmjAU4nnWmtn8"
118
+ Vary:
119
+ - Accept-Encoding
120
+ Cf-Cache-Status:
121
+ - DYNAMIC
122
+ Cf-Request-Id:
123
+ - '09ac73642e00000818408a7000000001'
124
+ Expect-Ct:
125
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
126
+ Server:
127
+ - cloudflare
128
+ Cf-Ray:
129
+ - 645a8819e9030818-CDG
130
+ body:
131
+ encoding: UTF-8
132
+ string: '{"object":"block","id":"723578f1-6e51-450c-8ee1-09158c19fd4c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T21:05:49.706Z","has_children":true,"type":"child_page","child_page":{"title":"A
133
+ Notion page"}}'
134
+ recorded_at: Sun, 25 Apr 2021 21:05:49 GMT
135
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,137 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.notion.com/v1/blocks/723578f1-6e51-450c-8ee1-09158c19fd4c/children?id=723578f1-6e51-450c-8ee1-09158c19fd4c
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.4
14
+ Authorization:
15
+ - Bearer <NOTION_API_TOKEN>
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sun, 25 Apr 2021 21:05:45 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - 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
+ X-Dns-Prefetch-Control:
37
+ - 'off'
38
+ X-Frame-Options:
39
+ - SAMEORIGIN
40
+ Strict-Transport-Security:
41
+ - max-age=5184000; includeSubDomains
42
+ X-Download-Options:
43
+ - noopen
44
+ X-Content-Type-Options:
45
+ - nosniff
46
+ X-Xss-Protection:
47
+ - 1; mode=block
48
+ Referrer-Policy:
49
+ - same-origin
50
+ Content-Security-Policy:
51
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
52
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
53
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
54
+ https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
55
+ https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
56
+ https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
57
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
58
+ ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
59
+ https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
60
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
61
+ 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://checkout.stripe.com
63
+ https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
64
+ https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
65
+ font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
66
+ img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
67
+ https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
68
+ ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
69
+ https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
70
+ media-src https: http:'
71
+ X-Content-Security-Policy:
72
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
73
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
74
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
75
+ https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
76
+ https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
77
+ https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
78
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
79
+ ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
80
+ https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
81
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
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://checkout.stripe.com
84
+ https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
85
+ https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
86
+ font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
87
+ img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
88
+ https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
89
+ ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
90
+ https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
91
+ media-src https: http:'
92
+ X-Webkit-Csp:
93
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
94
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
95
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
96
+ https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
97
+ https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
98
+ https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
99
+ connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
100
+ ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
101
+ https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
102
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
103
+ 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://checkout.stripe.com
105
+ https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
106
+ https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
107
+ font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
108
+ img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
109
+ https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
110
+ ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
111
+ https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
112
+ media-src https: http:'
113
+ Etag:
114
+ - W/"621-oTt6TNWfBPJwQLysHa2sgVrXxyc"
115
+ Vary:
116
+ - Accept-Encoding
117
+ Cf-Cache-Status:
118
+ - DYNAMIC
119
+ Cf-Request-Id:
120
+ - '09ac7352730000edf3513be000000001'
121
+ Expect-Ct:
122
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
123
+ Server:
124
+ - cloudflare
125
+ Cf-Ray:
126
+ - 645a87fd8f1aedf3-CDG
127
+ body:
128
+ encoding: UTF-8
129
+ string: '{"object":"list","results":[{"object":"block","id":"786f3663-78aa-4852-afe7-0ef7da78dedc","created_time":"2021-04-25T20:40:00.000Z","last_edited_time":"2021-04-25T20:40:00.000Z","has_children":false,"type":"heading_1","heading_1":{"text":[{"type":"text","text":{"content":"A
130
+ Header","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
131
+ Header","href":null}]}},{"object":"block","id":"e450fda8-0159-405f-ab67-f9de28bb4e49","created_time":"2021-04-25T20:41:00.000Z","last_edited_time":"2021-04-25T20:41:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"A
132
+ paragraph","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
133
+ paragraph","href":null}]}},{"object":"block","id":"9051af10-83cb-4688-9210-3dae39432680","created_time":"2021-04-25T20:41:00.000Z","last_edited_time":"2021-04-25T20:41:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[]}},{"object":"block","id":"f512bf64-55b0-432e-a850-82e73637d895","created_time":"2021-04-25T21:04:29.565Z","last_edited_time":"2021-04-25T21:04:29.565Z","has_children":false,"type":"heading_2","heading_2":{"text":[{"type":"text","text":{"content":"Another
134
+ Heading","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
135
+ Heading","href":null}]}}],"next_cursor":null,"has_more":false}'
136
+ recorded_at: Sun, 25 Apr 2021 21:05:45 GMT
137
+ recorded_with: VCR 6.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json; charset=utf-8
14
14
  User-Agent:
15
- - Notion Ruby Client/0.0.3
15
+ - Notion Ruby Client/0.0.4
16
16
  Authorization:
17
17
  - Bearer <NOTION_API_TOKEN>
18
18
  Content-Type:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Date:
28
- - Sun, 25 Apr 2021 20:03:01 GMT
28
+ - Sun, 25 Apr 2021 21:00:05 GMT
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Transfer-Encoding:
@@ -33,10 +33,10 @@ http_interactions:
33
33
  Connection:
34
34
  - keep-alive
35
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
36
+ - __cfduid=d7d668416316cb8c5e07208d366ff04e41619384404; expires=Tue, 25-May-21
37
+ 21:00:04 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
38
+ - notion_browser_id=9fd03492-d88e-4997-9345-b510ed98532b; Domain=www.notion.so;
39
+ Path=/; Expires=Wed, 01 Jan 2053 22:46:44 GMT; Secure
40
40
  X-Dns-Prefetch-Control:
41
41
  - 'off'
42
42
  X-Frame-Options:
@@ -115,23 +115,23 @@ http_interactions:
115
115
  https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
116
116
  media-src https: http:'
117
117
  Etag:
118
- - W/"220-YIxCogQjRWLJ/OAH02Jog3s3tck"
118
+ - W/"220-tcSO/BCA8Fy0EqVauv7sahl9s/c"
119
119
  Vary:
120
120
  - Accept-Encoding
121
121
  Cf-Cache-Status:
122
122
  - DYNAMIC
123
123
  Cf-Request-Id:
124
- - '09ac39e5330000049f2c8b6000000001'
124
+ - '09ac6e2119000032b946349000000001'
125
125
  Expect-Ct:
126
126
  - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
127
127
  Server:
128
128
  - cloudflare
129
129
  Cf-Ray:
130
- - 645a2c1b79c3049f-CDG
130
+ - 645a7fae8c7032b9-CDG
131
131
  body:
132
132
  encoding: UTF-8
133
- string: '{"object":"page","id":"638fc449-b670-4c32-80da-da05fb833814","created_time":"2021-04-25T20:03:01.638Z","last_edited_time":"2021-04-25T20:03:01.639Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Another
133
+ string: '{"object":"page","id":"a92a670d-72e1-4db6-b07e-0859d2058759","created_time":"2021-04-25T21:00:04.819Z","last_edited_time":"2021-04-25T21:00:04.820Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Another
134
134
  Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
135
135
  Notion page","href":null}]}}}'
136
- recorded_at: Sun, 25 Apr 2021 20:03:01 GMT
136
+ recorded_at: Sun, 25 Apr 2021 21:00:04 GMT
137
137
  recorded_with: VCR 6.0.0