notion-ruby-client 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +14 -0
- data/.rspec +2 -0
- data/.rspec_status +15 -0
- data/.rubocop.yml +46 -0
- data/.rubocop_todo.yml +86 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +91 -0
- data/README.md +163 -3
- data/Rakefile +18 -0
- data/lib/notion-ruby-client.rb +6 -7
- data/lib/notion/api/endpoints/databases.rb +19 -1
- data/lib/notion/api/endpoints/pages.rb +3 -0
- data/lib/notion/config.rb +3 -1
- data/lib/notion/pagination/cursor.rb +1 -1
- data/lib/notion/version.rb +1 -1
- data/spec/fixtures/notion/create_page.yml +137 -0
- data/spec/fixtures/notion/database.yml +133 -0
- data/spec/fixtures/notion/database_query.yml +137 -0
- data/spec/fixtures/notion/databases_list.yml +133 -0
- data/spec/fixtures/notion/page.yml +133 -0
- data/spec/fixtures/notion/paginated_database_query.yml +139 -0
- data/spec/fixtures/notion/paginated_databases_list.yml +133 -0
- data/spec/fixtures/notion/paginated_users_list.yml +133 -0
- data/spec/fixtures/notion/update_page.yml +136 -0
- data/spec/fixtures/notion/users.yml +132 -0
- data/spec/fixtures/notion/users_list.yml +133 -0
- data/spec/notion/api/endpoints/databases_spec.rb +40 -0
- data/spec/notion/api/endpoints/pages_spec.rb +64 -0
- data/spec/notion/api/endpoints/users_spec.rb +26 -0
- data/spec/notion/config_spec.rb +16 -0
- data/spec/notion/version_spec.rb +8 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/token.rb +10 -0
- data/spec/support/vcr.rb +16 -0
- metadata +48 -3
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.notion.com/v1/databases
|
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.3
|
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 20:07:48 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=d0257423f9797cda331ed4aa8ababb64b1619381267; expires=Tue, 25-May-21
|
33
|
+
20:07:47 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
+
- notion_browser_id=6e0f4867-729e-4a15-bee5-c3d7283a8f0d; Domain=www.notion.so;
|
35
|
+
Path=/; Expires=Wed, 01 Jan 2053 21:54:27 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/"251-eZGSpEiKAHHy9FTpruIlyN5tC1k"
|
115
|
+
Vary:
|
116
|
+
- Accept-Encoding
|
117
|
+
Cf-Cache-Status:
|
118
|
+
- DYNAMIC
|
119
|
+
Cf-Request-Id:
|
120
|
+
- '09ac3e437d00000814512d8000000001'
|
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
|
+
- 645a3318cbfa0814-CDG
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: '{"object":"list","results":[{"object":"database","id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T19:59:00.000Z","title":[{"type":"text","text":{"content":"A
|
130
|
+
Notion database","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
131
|
+
Notion database","href":null}],"properties":{"Tags":{"id":"yu]\\","type":"multi_select","multi_select":{"options":[]}},"Name":{"id":"title","type":"title","title":{}}}}],"next_cursor":null,"has_more":false}'
|
132
|
+
recorded_at: Sun, 25 Apr 2021 20:07:48 GMT
|
133
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.notion.com/v1/pages/723578f1-6e51-450c-8ee1-09158c19fd4c?archived=
|
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.3
|
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 20:03:00 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=d54dfd6df47b70a1156c7ab184fa353651619380980; expires=Tue, 25-May-21
|
33
|
+
20:03:00 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
+
- notion_browser_id=804ad632-a8be-4663-bb53-57b36799f284; Domain=www.notion.so;
|
35
|
+
Path=/; Expires=Wed, 01 Jan 2053 21:49:40 GMT; Secure
|
36
|
+
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/"214-URhrgJuHtHiTWa1f/FCGQbMEg74"
|
115
|
+
Vary:
|
116
|
+
- Accept-Encoding
|
117
|
+
Cf-Cache-Status:
|
118
|
+
- DYNAMIC
|
119
|
+
Cf-Request-Id:
|
120
|
+
- '09ac39e1fc0000edb7dead3000000001'
|
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
|
+
- 645a2c165d2aedb7-CDG
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: '{"object":"page","id":"723578f1-6e51-450c-8ee1-09158c19fd4c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T19:56:46.292Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"A
|
130
|
+
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
131
|
+
Notion page","href":null}]}}}'
|
132
|
+
recorded_at: Sun, 25 Apr 2021 20:03:00 GMT
|
133
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,139 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.notion.com/v1/databases/89b30a70-ce51-4646-ab4f-5fdcb1d5e76c/query
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c","limit":1}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json; charset=utf-8
|
12
|
+
User-Agent:
|
13
|
+
- Notion Ruby Client/0.0.3
|
14
|
+
Authorization:
|
15
|
+
- Bearer <NOTION_API_TOKEN>
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
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, 25 Apr 2021 20:04:36 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Set-Cookie:
|
34
|
+
- __cfduid=d4fa9d13076aae0f37b444c2ec003ded11619381075; expires=Tue, 25-May-21
|
35
|
+
20:04:35 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
36
|
+
- notion_browser_id=2478d197-9f17-4b18-a0d8-5dcd1a19e9c1; Domain=www.notion.so;
|
37
|
+
Path=/; Expires=Wed, 01 Jan 2053 21:51:16 GMT; Secure
|
38
|
+
X-Dns-Prefetch-Control:
|
39
|
+
- 'off'
|
40
|
+
X-Frame-Options:
|
41
|
+
- SAMEORIGIN
|
42
|
+
Strict-Transport-Security:
|
43
|
+
- max-age=5184000; includeSubDomains
|
44
|
+
X-Download-Options:
|
45
|
+
- noopen
|
46
|
+
X-Content-Type-Options:
|
47
|
+
- nosniff
|
48
|
+
X-Xss-Protection:
|
49
|
+
- 1; mode=block
|
50
|
+
Referrer-Policy:
|
51
|
+
- same-origin
|
52
|
+
Content-Security-Policy:
|
53
|
+
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
54
|
+
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
55
|
+
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
56
|
+
https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
|
57
|
+
https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
|
58
|
+
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
59
|
+
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
60
|
+
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
61
|
+
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
62
|
+
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
63
|
+
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
64
|
+
https://api.segment.io https://api.pgncs.notion.so https://checkout.stripe.com
|
65
|
+
https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
|
66
|
+
https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
|
67
|
+
font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
|
68
|
+
img-src ''self'' 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:'
|
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://checkout.stripe.com https://js.stripe.com/v3
|
78
|
+
https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
|
79
|
+
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
80
|
+
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
81
|
+
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
82
|
+
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
83
|
+
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
84
|
+
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
85
|
+
https://api.segment.io https://api.pgncs.notion.so https://checkout.stripe.com
|
86
|
+
https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
|
87
|
+
https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
|
88
|
+
font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
|
89
|
+
img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
90
|
+
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
91
|
+
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
92
|
+
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
93
|
+
media-src https: http:'
|
94
|
+
X-Webkit-Csp:
|
95
|
+
- 'script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' https://gist.github.com
|
96
|
+
https://apis.google.com https://api.amplitude.com https://widget.intercom.io
|
97
|
+
https://js.intercomcdn.com https://logs-01.loggly.com https://cdn.segment.com
|
98
|
+
https://analytics.pgncs.notion.so https://checkout.stripe.com https://js.stripe.com/v3
|
99
|
+
https://embed.typeform.com https://admin.typeform.com https://platform.twitter.com
|
100
|
+
https://cdn.syndication.twimg.com https://www.googletagmanager.com https://x.clearbitjs.com;
|
101
|
+
connect-src ''self'' https://msgstore.www.notion.so wss://msgstore.www.notion.so
|
102
|
+
ws://localhost:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com
|
103
|
+
https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com
|
104
|
+
https: http: https://api.amplitude.com https://api.embed.ly https://js.intercomcdn.com
|
105
|
+
https://api-iam.intercom.io wss://nexus-websocket-a.intercom.io https://logs-01.loggly.com
|
106
|
+
https://api.segment.io https://api.pgncs.notion.so https://checkout.stripe.com
|
107
|
+
https://js.stripe.com/v3 https://cdn.contentful.com https://preview.contentful.com
|
108
|
+
https://images.ctfassets.net https://api.unsplash.com https://boards-api.greenhouse.io;
|
109
|
+
font-src ''self'' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;
|
110
|
+
img-src ''self'' data: blob: https: https://platform.twitter.com https://syndication.twitter.com
|
111
|
+
https://pbs.twimg.com https://ton.twimg.com www.googletagmanager.com; style-src
|
112
|
+
''self'' ''unsafe-inline'' https://cdnjs.cloudflare.com https://github.githubassets.com
|
113
|
+
https://platform.twitter.com https://ton.twimg.com; frame-src https: http:;
|
114
|
+
media-src https: http:'
|
115
|
+
Etag:
|
116
|
+
- W/"89d-C7cNeii1bERUyCX6H2tZiMoMFls"
|
117
|
+
Vary:
|
118
|
+
- Accept-Encoding
|
119
|
+
Cf-Cache-Status:
|
120
|
+
- DYNAMIC
|
121
|
+
Cf-Request-Id:
|
122
|
+
- '09ac3b56650000cd9b22041000000001'
|
123
|
+
Expect-Ct:
|
124
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
125
|
+
Server:
|
126
|
+
- cloudflare
|
127
|
+
Cf-Ray:
|
128
|
+
- 645a2e6a389dcd9b-CDG
|
129
|
+
body:
|
130
|
+
encoding: UTF-8
|
131
|
+
string: '{"object":"list","results":[{"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
|
132
|
+
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
|
133
|
+
Notion page","href":null}]}}},{"object":"page","id":"d064b09a-6505-4e7f-b90a-16d4e8ebfc4e","created_time":"2021-04-25T19:53:05.460Z","last_edited_time":"2021-04-25T19:53:05.461Z","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
|
+
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Another
|
135
|
+
Notion page","href":null}]}}},{"object":"page","id":"e9f5f54e-9df6-4ac6-b716-ecf671e3f8b6","created_time":"2021-01-30T11:03:23.390Z","last_edited_time":"2021-01-30T11:03:23.390Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Hola!","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Hola!","href":null}]}}},{"object":"page","id":"723578f1-6e51-450c-8ee1-09158c19fd4c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T20:03:02.558Z","parent":{"type":"database_id","database_id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c"},"archived":false,"properties":{"Name":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"A
|
136
|
+
Notion page","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
137
|
+
Notion page","href":null}]}}}],"next_cursor":null,"has_more":false}'
|
138
|
+
recorded_at: Sun, 25 Apr 2021 20:04:36 GMT
|
139
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.notion.com/v1/databases?limit=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.3
|
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 20:09:21 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=d0fdedee432debdb198a0e05698997ec21619381360; expires=Tue, 25-May-21
|
33
|
+
20:09:20 GMT; path=/; domain=.notion.com; HttpOnly; SameSite=Lax
|
34
|
+
- notion_browser_id=664add80-78f9-4e18-8ad6-831f5b390608; Domain=www.notion.so;
|
35
|
+
Path=/; Expires=Wed, 01 Jan 2053 21:56:00 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/"251-eZGSpEiKAHHy9FTpruIlyN5tC1k"
|
115
|
+
Vary:
|
116
|
+
- Accept-Encoding
|
117
|
+
Cf-Cache-Status:
|
118
|
+
- DYNAMIC
|
119
|
+
Cf-Request-Id:
|
120
|
+
- '09ac3faf2d0000ede7e3900000000001'
|
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
|
+
- 645a355eac3dede7-CDG
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: '{"object":"list","results":[{"object":"database","id":"89b30a70-ce51-4646-ab4f-5fdcb1d5e76c","created_time":"2021-01-29T20:50:51.917Z","last_edited_time":"2021-04-25T19:59:00.000Z","title":[{"type":"text","text":{"content":"A
|
130
|
+
Notion database","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"A
|
131
|
+
Notion database","href":null}],"properties":{"Tags":{"id":"yu]\\","type":"multi_select","multi_select":{"options":[]}},"Name":{"id":"title","type":"title","title":{}}}}],"next_cursor":null,"has_more":false}'
|
132
|
+
recorded_at: Sun, 25 Apr 2021 20:09:21 GMT
|
133
|
+
recorded_with: VCR 6.0.0
|