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
@@ -0,0 +1,148 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://api.notion.com/v1/blocks/6e842658-eb3d-4ea9-9bbf-e86104151729
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"to_do":{"text":[{"text":{"content":"A todo"}}],"checked":true}}'
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
+ 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 17:45:02 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=9b609b0b-5d6b-446e-9cff-3cac85a1f76d; Domain=www.notion.so;
129
+ Path=/; Expires=Wed, 07 May 2053 19:31:42 GMT; Secure
130
+ Etag:
131
+ - W/"1a9-KpgP0oaUKRBY/DiZAiRKYKqR5xg"
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
+ - 68679738b8ac40c9-CDG
142
+ body:
143
+ encoding: UTF-8
144
+ string: '{"object":"block","id":"6e842658-eb3d-4ea9-9bbf-e86104151729","created_time":"2021-05-01T15:44:00.000Z","last_edited_time":"2021-08-29T17:45:00.000Z","has_children":false,"type":"to_do","to_do":{"text":[{"type":"text","text":{"content":"A
145
+ todo","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
146
+ todo","href":null}],"checked":true}}'
147
+ recorded_at: Sun, 29 Aug 2021 17:45:02 GMT
148
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://api.notion.com/v1/databases/dd428e9dd3fe4171870da7a1902c748b
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{\"title\":[{\"text\":{\"content\":\"Orbit \U0001F49C Notion\"}}]}"
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
+ 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 17:48:02 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=6a643b78-3b33-4efa-b419-afbd30da2f6e; Domain=www.notion.so;
129
+ Path=/; Expires=Wed, 07 May 2053 19:34:42 GMT; Secure
130
+ Etag:
131
+ - W/"3a6-+7yCJm5S35XfYPO/FbqE3H7jEno"
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
+ - 68679b9e8fe63ae3-CDG
142
+ body:
143
+ encoding: UTF-8
144
+ string: "{\"object\":\"database\",\"id\":\"dd428e9d-d3fe-4171-870d-a7a1902c748b\",\"cover\":null,\"icon\":null,\"created_time\":\"2021-04-30T07:49:00.000Z\",\"last_edited_time\":\"2021-08-29T17:48:00.000Z\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Orbit
145
+ \U0001F49C Notion\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Orbit
146
+ \U0001F49C Notion\",\"href\":null}],\"properties\":{\"Orbit Status\":{\"id\":\"%3DadK\",\"name\":\"Orbit
147
+ Status\",\"type\":\"rich_text\",\"rich_text\":{}},\"Orbit Note URL\":{\"id\":\"L%3AsP\",\"name\":\"Orbit
148
+ Note URL\",\"type\":\"url\",\"url\":{}},\"Member Email\":{\"id\":\"%5BIFC\",\"name\":\"Member
149
+ Email\",\"type\":\"email\",\"email\":{}},\"Send to Orbit\":{\"id\":\"%5EoR%3F\",\"name\":\"Send
150
+ to Orbit\",\"type\":\"checkbox\",\"checkbox\":{}},\"Date\":{\"id\":\"g%60km\",\"name\":\"Date\",\"type\":\"date\",\"date\":{}},\"Name\":{\"id\":\"title\",\"name\":\"Name\",\"type\":\"title\",\"title\":{}}},\"parent\":{\"type\":\"workspace\",\"workspace\":true}}"
151
+ recorded_at: Sun, 29 Aug 2021 17:48:02 GMT
152
+ recorded_with: VCR 6.0.0
@@ -2,20 +2,19 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: patch
5
- uri: https://api.notion.com/v1/pages/2de466f0-9861-466b-9bc2-c987965da010
5
+ uri: https://api.notion.com/v1/pages/c7fd1abe-8114-44ea-be77-9632ea33e581
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"id":"2de466f0-9861-466b-9bc2-c987965da010","properties":{"Name":[{"text":{"content":"A
9
- Notion page"}}]}}'
8
+ string: '{"properties":{"Name":[{"text":{"content":"Nicolas Goutay"}}]}}'
10
9
  headers:
11
10
  Accept:
12
11
  - application/json; charset=utf-8
13
12
  User-Agent:
14
- - Notion Ruby Client/0.0.7
13
+ - Notion Ruby Client/0.0.8
15
14
  Authorization:
16
15
  - Bearer <NOTION_API_TOKEN>
17
16
  Notion-Version:
18
- - '2021-05-13'
17
+ - '2021-08-16'
19
18
  Content-Type:
20
19
  - application/json
21
20
  Accept-Encoding:
@@ -26,7 +25,7 @@ http_interactions:
26
25
  message: OK
27
26
  headers:
28
27
  Date:
29
- - Tue, 27 Jul 2021 10:35:00 GMT
28
+ - Sun, 29 Aug 2021 17:50:21 GMT
30
29
  Content-Type:
31
30
  - application/json; charset=utf-8
32
31
  Transfer-Encoding:
@@ -53,74 +52,83 @@ http_interactions:
53
52
  https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
54
53
  https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
55
54
  https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
56
- https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
57
- https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
58
- connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
59
- ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
60
- https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.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
61
  https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
62
62
  https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
63
- https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
64
- https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
65
- https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
66
- https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
67
- data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
68
- data: blob: https: https://platform.twitter.com https://syndication.twitter.com
69
- https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
70
- ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
71
- https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
72
- media-src https: http:'
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:'
73
75
  X-Content-Security-Policy:
74
76
  - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
75
77
  https://apis.google.com https://api.amplitude.com https://widget.intercom.io
76
78
  https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
77
79
  https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
78
80
  https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
79
- https://public.profitwell.com js.sentry-cdn.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
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
84
87
  https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
85
88
  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://o324374.ingest.sentry.io
87
- https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
88
- https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
89
- https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
90
- data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
91
- data: blob: https: https://platform.twitter.com https://syndication.twitter.com
92
- https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
93
- ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
94
- https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
95
- media-src https: http:'
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:'
96
101
  X-Webkit-Csp:
97
102
  - 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
98
103
  https://apis.google.com https://api.amplitude.com https://widget.intercom.io
99
104
  https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
100
105
  https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com
101
106
  https://js.stripe.com https://embed.typeform.com https://admin.typeform.com
102
- https://public.profitwell.com js.sentry-cdn.com https://platform.twitter.com
103
- https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
104
- connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
105
- ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
106
- https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.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
107
113
  https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
108
114
  https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
109
- https://api.segment.io https://api.pgncs.notion.so https://o324374.ingest.sentry.io
110
- https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com
111
- https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com
112
- https://api.unsplash.com https://boards-api.greenhouse.io; font-src ''self''
113
- data: https://cdnjs.cloudflare.com https://js.intercomcdn.com; img-src ''self''
114
- data: blob: https: https://platform.twitter.com https://syndication.twitter.com
115
- https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
116
- ''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
117
- https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
118
- media-src https: http:'
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:'
119
127
  Set-Cookie:
120
- - notion_browser_id=f99aa1f5-ccb0-470c-bd6c-88df72efa0ff; Domain=www.notion.so;
121
- Path=/; Expires=Fri, 04 Apr 2053 12:21:40 GMT; Secure
128
+ - notion_browser_id=2c532044-d331-4ed3-96af-9149d054185c; Domain=www.notion.so;
129
+ Path=/; Expires=Wed, 07 May 2053 19:37:01 GMT; Secure
122
130
  Etag:
123
- - W/"29f-c/my+Rhp7UJlgvokEWEpPC81fSM"
131
+ - W/"4b0-rkZ89rDxahb2+CfzhhuDlK0lPN0"
124
132
  Vary:
125
133
  - Accept-Encoding
126
134
  Cf-Cache-Status:
@@ -130,11 +138,15 @@ http_interactions:
130
138
  Server:
131
139
  - cloudflare
132
140
  Cf-Ray:
133
- - 675537ebed7dfbe8-KIX
141
+ - 68679f039b480820-CDG
134
142
  body:
135
143
  encoding: UTF-8
136
- string: '{"object":"page","id":"2de466f0-9861-466b-9bc2-c987965da010","created_time":"2021-07-26T15:05:00.000Z","last_edited_time":"2021-07-27T10:35:00.000Z","parent":{"type":"database_id","database_id":"ab7e7b22-7793-492a-ba6b-3295f8b19341"},"archived":false,"properties":{"Description":{"id":"ddNO","type":"rich_text","rich_text":[]},"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"A
137
- Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
138
- Notion page","href":null}]}},"url":"https://www.notion.so/A-Notion-page-2de466f09861466b9bc2c987965da010"}'
139
- recorded_at: Tue, 27 Jul 2021 10:35:00 GMT
144
+ string: '{"object":"page","id":"c7fd1abe-8114-44ea-be77-9632ea33e581","created_time":"2021-04-30T07:49:00.000Z","last_edited_time":"2021-08-29T17:50:00.000Z","cover":null,"icon":null,"parent":{"type":"database_id","database_id":"dd428e9d-d3fe-4171-870d-a7a1902c748b"},"archived":false,"properties":{"Orbit
145
+ Status":{"id":"%3DadK","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%3AsP","type":"url","url":"https://app.orbit.love/orbit/members/phacks3?type=notes"},"Member
147
+ Email":{"id":"%5BIFC","type":"email","email":"nicolas@orbit.love"},"Send to
148
+ Orbit":{"id":"%5EoR%3F","type":"checkbox","checkbox":true},"Date":{"id":"g%60km","type":"date","date":null},"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Nicolas
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"}'
151
+ recorded_at: Sun, 29 Aug 2021 17:50:21 GMT
140
152
  recorded_with: VCR 6.0.0