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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -0
  3. data/.gitignore +7 -0
  4. data/.rubocop.yml +9 -0
  5. data/CHANGELOG.md +19 -0
  6. data/Gemfile.lock +29 -7
  7. data/README.md +245 -55
  8. data/bin/console +31 -0
  9. data/lib/notion/api/endpoints/blocks.rb +35 -7
  10. data/lib/notion/api/endpoints/databases.rb +65 -37
  11. data/lib/notion/api/endpoints/pages.rb +6 -6
  12. data/lib/notion/api/endpoints/search.rb +41 -0
  13. data/lib/notion/api/endpoints/users.rb +6 -3
  14. data/lib/notion/api/endpoints.rb +3 -1
  15. data/lib/notion/api/errors/too_many_requests.rb +15 -0
  16. data/lib/notion/api/errors.rb +0 -2
  17. data/lib/notion/config.rb +2 -0
  18. data/lib/notion/pagination/cursor.rb +5 -2
  19. data/lib/notion/version.rb +2 -2
  20. data/lib/notion-ruby-client.rb +2 -0
  21. data/notion-ruby-client.gemspec +3 -1
  22. data/spec/fixtures/notion/block.yml +146 -0
  23. data/spec/fixtures/notion/block_append_children.yml +76 -62
  24. data/spec/fixtures/notion/block_children.yml +80 -65
  25. data/spec/fixtures/notion/create_database.yml +67 -58
  26. data/spec/fixtures/notion/create_page.yml +68 -59
  27. data/spec/fixtures/notion/database.yml +78 -61
  28. data/spec/fixtures/notion/database_query.yml +81 -62
  29. data/spec/fixtures/notion/databases_list.yml +77 -60
  30. data/spec/fixtures/notion/page.yml +70 -57
  31. data/spec/fixtures/notion/paginated_block_children.yml +296 -242
  32. data/spec/fixtures/notion/paginated_database_query.yml +79 -62
  33. data/spec/fixtures/notion/paginated_databases_list.yml +78 -61
  34. data/spec/fixtures/notion/paginated_search.yml +301 -0
  35. data/spec/fixtures/notion/paginated_users_list.yml +143 -130
  36. data/spec/fixtures/notion/search.yml +160 -0
  37. data/spec/fixtures/notion/search_with_query.yml +152 -0
  38. data/spec/fixtures/notion/update_block.yml +148 -0
  39. data/spec/fixtures/notion/update_database.yml +152 -0
  40. data/spec/fixtures/notion/update_page.yml +71 -59
  41. data/spec/fixtures/notion/users.yml +69 -56
  42. data/spec/fixtures/notion/users_list.yml +143 -130
  43. data/spec/notion/api/endpoints/blocks_spec.rb +37 -11
  44. data/spec/notion/api/endpoints/databases_spec.rb +25 -17
  45. data/spec/notion/api/endpoints/pages_spec.rb +7 -16
  46. data/spec/notion/api/endpoints/search_spec.rb +26 -0
  47. data/spec/notion/api/endpoints/users_spec.rb +4 -4
  48. data/spec/notion/pagination/cursor_spec.rb +126 -0
  49. metadata +52 -8
  50. data/.rspec_status +0 -19
  51. data/notion-ruby-client-0.0.4.gem +0 -0
  52. data/scratchpad.rb +0 -22
  53. data/screenshots/create_notion_bot.png +0 -0
@@ -1,133 +1,146 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.notion.com/v1/users?limit=2
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:00:07 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=d39171e959e84215aa970aaf180c46f671619384406; expires=Tue, 25-May-21
33
- 21:00:06 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
34
- - notion_browser_id=6b34088b-dac3-4b26-a646-c4ce67357205; Domain=www.notion.so;
35
- Path=/; Expires=Wed, 01 Jan 2053 22:46:47 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/"2c7-9fGZ6Loa3izncqaW0AxZr7NvCPY"
115
- Vary:
116
- - Accept-Encoding
117
- Cf-Cache-Status:
118
- - DYNAMIC
119
- Cf-Request-Id:
120
- - '09ac6e2b0400000847271f3000000001'
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
- - 645a7fbe691e0847-CDG
127
- body:
128
- encoding: UTF-8
129
- string: '{"object":"list","results":[{"object":"user","id":"7ee614aa-0542-421d-b8aa-b14adf120642","name":"Arthur
130
- Levoyer","avatar_url":"https://lh6.googleusercontent.com/-Y62UK1QjtV8/AAAAAAAAAAI/AAAAAAAAACk/3PgWyczXM8o/photo.jpg?sz=50","type":"person","person":{"email":"arthurl@bam.tech"}},{"object":"user","id":"a8da8d30-c858-4c3d-87ad-3f2d477bd98d","name":"Nicolas
131
- Goutay","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/5f9b5c65-a7ed-4fc5-983a-6c999b7c2208/Copy_of_P1222454.jpg","type":"person","person":{"email":"nicolas@orbit.love"}},{"object":"user","id":"f2e67536-c037-4dd5-97f5-8ed9d23a4dbd","name":"LeBot","avatar_url":null,"type":"bot","bot":{}}],"next_cursor":null,"has_more":false}'
132
- recorded_at: Sun, 25 Apr 2021 21:00:07 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.notion.com/v1/users?page_size=1
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:57:40 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=0964e505-3b82-4b5c-9f63-fa75814d889f; Domain=www.notion.so;
127
+ Path=/; Expires=Wed, 07 May 2053 19:44:20 GMT; Secure
128
+ Etag:
129
+ - W/"175-7F8HTEwjtkJi1MvD1wOC7NAu7qQ"
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
+ - 6867a9b9edb2eda7-CDG
140
+ body:
141
+ encoding: UTF-8
142
+ string:
143
+ '{"object":"list","results":[{"object":"user","id":"a8da8d30-c858-4c3d-87ad-3f2d477bd98d","name":"Nicolas
144
+ Goutay","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/5f9b5c65-a7ed-4fc5-983a-6c999b7c2208/Copy_of_P1222454.jpg","type":"person","person":{"email":"nicolas@orbit.love"}}],"next_cursor":null,"has_more":false}'
145
+ recorded_at: Sun, 29 Aug 2021 17:57:40 GMT
133
146
  recorded_with: VCR 6.0.0
@@ -0,0 +1,160 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.notion.com/v1/search
6
+ body:
7
+ encoding: UTF-8
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-05-13'
18
+ Content-Type:
19
+ - application/json
20
+ Content-Length:
21
+ - '0'
22
+ Accept-Encoding:
23
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Sun, 29 Aug 2021 15:50:38 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Dns-Prefetch-Control:
38
+ - 'off'
39
+ X-Frame-Options:
40
+ - SAMEORIGIN
41
+ Strict-Transport-Security:
42
+ - max-age=5184000; includeSubDomains
43
+ X-Download-Options:
44
+ - noopen
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ Referrer-Policy:
50
+ - same-origin
51
+ Content-Security-Policy:
52
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
53
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
54
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
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://js.chilipiper.com
58
+ https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
59
+ https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
60
+ https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
61
+ wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
62
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
63
+ https: http: https://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://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
66
+ https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
67
+ https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
68
+ https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
69
+ https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
70
+ https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
71
+ https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
72
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
73
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
74
+ www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
75
+ https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
76
+ https://ton.twimg.com; frame-src https: http:; media-src https: http:'
77
+ X-Content-Security-Policy:
78
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
79
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
80
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
81
+ https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
82
+ https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
83
+ https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
84
+ https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
85
+ https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
86
+ https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
87
+ wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
88
+ 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
89
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
90
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
91
+ https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
92
+ https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
93
+ https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
94
+ https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
95
+ https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
96
+ https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
97
+ https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
98
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
99
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
100
+ www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
101
+ https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
102
+ https://ton.twimg.com; frame-src https: http:; media-src https: http:'
103
+ X-Webkit-Csp:
104
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
105
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
106
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
107
+ https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
108
+ https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
109
+ https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
110
+ https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
111
+ https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
112
+ https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
113
+ wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
114
+ 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
115
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
116
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
117
+ https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
118
+ https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
119
+ https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
120
+ https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
121
+ https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
122
+ https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
123
+ https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
124
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
125
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
126
+ www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
127
+ https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
128
+ https://ton.twimg.com; frame-src https: http:; media-src https: http:'
129
+ Set-Cookie:
130
+ - notion_browser_id=ea6f8555-490e-4602-8363-d947e401a184; Domain=www.notion.so;
131
+ Path=/; Expires=Wed, 07 May 2053 17:37:16 GMT; Secure
132
+ Etag:
133
+ - W/"852-0xBbAUIwxErdvwkZrM0ZmV85kUo"
134
+ Vary:
135
+ - Accept-Encoding
136
+ Cf-Cache-Status:
137
+ - DYNAMIC
138
+ Expect-Ct:
139
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
140
+ Server:
141
+ - cloudflare
142
+ Cf-Ray:
143
+ - 6866ef99ed5939db-CDG
144
+ body:
145
+ encoding: UTF-8
146
+ string: "{\"object\":\"list\",\"results\":[{\"object\":\"page\",\"id\":\"c7fd1abe-8114-44ea-be77-9632ea33e581\",\"created_time\":\"2021-04-30T07:49:00.000Z\",\"last_edited_time\":\"2021-05-25T20:17:00.000Z\",\"cover\":null,\"icon\":null,\"parent\":{\"type\":\"database_id\",\"database_id\":\"dd428e9d-d3fe-4171-870d-a7a1902c748b\"},\"archived\":false,\"properties\":{\"Orbit
147
+ Status\":{\"id\":\"=adK\",\"type\":\"rich_text\",\"rich_text\":[{\"type\":\"text\",\"text\":{\"content\":\"OK\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"OK\",\"href\":null}]},\"Orbit
148
+ Note URL\":{\"id\":\"L:sP\",\"type\":\"url\",\"url\":\"https://app.orbit.love/orbit/members/phacks3?type=notes\"},\"Member
149
+ Email\":{\"id\":\"[IFC\",\"type\":\"email\",\"email\":\"nicolas@orbit.love\"},\"Send
150
+ to Orbit\":{\"id\":\"^oR?\",\"type\":\"checkbox\",\"checkbox\":true},\"Name\":{\"id\":\"title\",\"type\":\"title\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Nicolas
151
+ Goutay\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Nicolas
152
+ Goutay\",\"href\":null}]}},\"url\":\"https://www.notion.so/Nicolas-Goutay-c7fd1abe811444eabe779632ea33e581\"},{\"object\":\"database\",\"id\":\"dd428e9d-d3fe-4171-870d-a7a1902c748b\",\"cover\":null,\"icon\":null,\"created_time\":\"2021-04-30T07:49:00.000Z\",\"last_edited_time\":\"2021-05-25T20:16:00.000Z\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Orbit
153
+ \U0001F49C Notion\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Orbit
154
+ \U0001F49C Notion\",\"href\":null}],\"properties\":{\"Orbit Status\":{\"id\":\"=adK\",\"name\":\"Orbit
155
+ Status\",\"type\":\"rich_text\",\"rich_text\":{}},\"Orbit Note URL\":{\"id\":\"L:sP\",\"name\":\"Orbit
156
+ Note URL\",\"type\":\"url\",\"url\":{}},\"Member Email\":{\"id\":\"[IFC\",\"name\":\"Member
157
+ Email\",\"type\":\"email\",\"email\":{}},\"Send to Orbit\":{\"id\":\"^oR?\",\"name\":\"Send
158
+ to Orbit\",\"type\":\"checkbox\",\"checkbox\":{}},\"Date\":{\"id\":\"g`km\",\"name\":\"Date\",\"type\":\"date\",\"date\":{}},\"Name\":{\"id\":\"title\",\"name\":\"Name\",\"type\":\"title\",\"title\":{}}},\"parent\":{\"type\":\"workspace\",\"workspace\":true}}],\"next_cursor\":null,\"has_more\":false}"
159
+ recorded_at: Sun, 29 Aug 2021 15:50:38 GMT
160
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.notion.com/v1/search
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"query":"Nicolas"}'
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-05-13'
18
+ Content-Type:
19
+ - application/json
20
+ Accept-Encoding:
21
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Sun, 29 Aug 2021 15:44:11 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ X-Dns-Prefetch-Control:
36
+ - 'off'
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ Strict-Transport-Security:
40
+ - max-age=5184000; includeSubDomains
41
+ X-Download-Options:
42
+ - noopen
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ Referrer-Policy:
48
+ - same-origin
49
+ Content-Security-Policy:
50
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
51
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
52
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
53
+ https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
54
+ https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
55
+ https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
56
+ https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
57
+ https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
58
+ https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
59
+ wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
60
+ 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
61
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
62
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
63
+ https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
64
+ https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
65
+ https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
66
+ https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
67
+ https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
68
+ https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
69
+ https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
70
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
71
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
72
+ www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
73
+ https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
74
+ https://ton.twimg.com; frame-src https: http:; media-src https: http:'
75
+ X-Content-Security-Policy:
76
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
77
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
78
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
79
+ https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
80
+ https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
81
+ https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
82
+ https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
83
+ https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
84
+ https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
85
+ wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
86
+ 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
87
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
88
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
89
+ https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
90
+ https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
91
+ https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
92
+ https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
93
+ https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
94
+ https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
95
+ https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
96
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
97
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
98
+ www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
99
+ https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
100
+ https://ton.twimg.com; frame-src https: http:; media-src https: http:'
101
+ X-Webkit-Csp:
102
+ - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
103
+ https://apis.google.com https://api.amplitude.com https://widget.intercom.io
104
+ https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
105
+ https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
106
+ https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
107
+ https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com
108
+ https://platform.twitter.com https://cdn.syndication.twimg.com https://www.googletagmanager.com
109
+ https://x.clearbitjs.com https://client-registry.mutinycdn.com https://client.mutinycdn.com/
110
+ https://user-data.mutinycdn.com; connect-src ''self'' https://msgstore.www.notion.so
111
+ wss://msgstore.www.notion.so ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com
112
+ https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
113
+ https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
114
+ https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
115
+ https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so
116
+ https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
117
+ https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com
118
+ https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com
119
+ https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io
120
+ https://user-data.mutinycdn.com https://api-v2.mutinyhq.io https://api.statuspage.io
121
+ https://pgncd.notion.so; font-src ''self'' data: https://cdnjs.cloudflare.com
122
+ https://js.intercomcdn.com; img-src ''self'' data: blob: https: https://platform.twitter.com
123
+ https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com
124
+ www.googletagmanager.com; style-src ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com
125
+ https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com
126
+ https://ton.twimg.com; frame-src https: http:; media-src https: http:'
127
+ Set-Cookie:
128
+ - notion_browser_id=4032f95f-329b-49ef-8ea5-c9551b4b8bf9; Domain=www.notion.so;
129
+ Path=/; Expires=Wed, 07 May 2053 17:30:49 GMT; Secure
130
+ Etag:
131
+ - W/"4b7-SteU+PB3xEdim4HbpwAbjPaSWz4"
132
+ Vary:
133
+ - Accept-Encoding
134
+ Cf-Cache-Status:
135
+ - DYNAMIC
136
+ Expect-Ct:
137
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
138
+ Server:
139
+ - cloudflare
140
+ Cf-Ray:
141
+ - 6866e6271f32cdcf-CDG
142
+ body:
143
+ encoding: UTF-8
144
+ string: '{"object":"list","results":[{"object":"page","id":"c7fd1abe-8114-44ea-be77-9632ea33e581","created_time":"2021-04-30T07:49:00.000Z","last_edited_time":"2021-05-25T20:17:00.000Z","cover":null,"icon":null,"parent":{"type":"database_id","database_id":"dd428e9d-d3fe-4171-870d-a7a1902c748b"},"archived":false,"properties":{"Orbit
145
+ Status":{"id":"=adK","type":"rich_text","rich_text":[{"type":"text","text":{"content":"OK","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"OK","href":null}]},"Orbit
146
+ Note URL":{"id":"L:sP","type":"url","url":"https://app.orbit.love/orbit/members/phacks3?type=notes"},"Member
147
+ Email":{"id":"[IFC","type":"email","email":"nicolas@orbit.love"},"Send to
148
+ Orbit":{"id":"^oR?","type":"checkbox","checkbox":true},"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Nicolas
149
+ Goutay","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Nicolas
150
+ Goutay","href":null}]}},"url":"https://www.notion.so/Nicolas-Goutay-c7fd1abe811444eabe779632ea33e581"}],"next_cursor":null,"has_more":false}'
151
+ recorded_at: Sun, 29 Aug 2021 15:44:11 GMT
152
+ recorded_with: VCR 6.0.0