Skip to content

Commit aa71fec

Browse files
rafeyranaramnes
andauthored
Token format update: secret_ → ntn_ (#246)
* Token format update: secret_ → ntn_ * Regenerate cassettes --------- Co-authored-by: ramnes <[email protected]>
1 parent d07ce47 commit aa71fec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+598
-598
lines changed

docs/user_guides/quick_start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ to create an integration. Copy the token given by Notion.
4141
- Make it available in your environment:
4242

4343
```shell
44-
export NOTION_TOKEN=secret_abcd12345
44+
export NOTION_TOKEN=ntn_abcd12345
4545
```
4646

4747
!!! tip

tests/cassettes/test_api_async_request_bad_request_error.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
accept-encoding:
88
- gzip, deflate
99
authorization:
10-
- secret_...
10+
- ntn_...
1111
connection:
1212
- keep-alive
1313
host:

tests/cassettes/test_api_response_error.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
accept-encoding:
88
- gzip, deflate
99
authorization:
10-
- secret_...
10+
- ntn_...
1111
connection:
1212
- keep-alive
1313
host:
@@ -30,7 +30,7 @@ interactions:
3030
accept-encoding:
3131
- gzip, deflate
3232
authorization:
33-
- secret_...
33+
- ntn_...
3434
connection:
3535
- keep-alive
3636
host:
@@ -41,7 +41,7 @@ interactions:
4141
uri: https://api.notion.com/v1/users
4242
response:
4343
content: '{"object":"error","status":401,"code":"unauthorized","message":"API
44-
token is invalid.","request_id":"3db4e917-1be1-49a5-bfcd-f5339a6a8d4f"}'
44+
token is invalid.","request_id":"15ca8906-fcb1-4d90-b25a-ad03ba508350"}'
4545
headers: {}
4646
http_version: HTTP/1.1
4747
status_code: 401

tests/cassettes/test_async_api_response_error.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
accept-encoding:
88
- gzip, deflate
99
authorization:
10-
- secret_...
10+
- ntn_...
1111
connection:
1212
- keep-alive
1313
host:
@@ -30,7 +30,7 @@ interactions:
3030
accept-encoding:
3131
- gzip, deflate
3232
authorization:
33-
- secret_...
33+
- ntn_...
3434
connection:
3535
- keep-alive
3636
host:
@@ -41,7 +41,7 @@ interactions:
4141
uri: https://api.notion.com/v1/users
4242
response:
4343
content: '{"object":"error","status":401,"code":"unauthorized","message":"API
44-
token is invalid.","request_id":"f12c8893-f690-44c3-88d3-6ab25b1804c8"}'
44+
token is invalid.","request_id":"d11a2027-fae9-4cad-a6ea-ab6e34136dc5"}'
4545
headers: {}
4646
http_version: HTTP/1.1
4747
status_code: 401

tests/cassettes/test_async_client_request.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
accept-encoding:
88
- gzip, deflate
99
authorization:
10-
- secret_...
10+
- ntn_...
1111
connection:
1212
- keep-alive
1313
host:
@@ -30,7 +30,7 @@ interactions:
3030
accept-encoding:
3131
- gzip, deflate
3232
authorization:
33-
- secret_...
33+
- ntn_...
3434
connection:
3535
- keep-alive
3636
host:
@@ -41,7 +41,7 @@ interactions:
4141
uri: https://api.notion.com/v1/users
4242
response:
4343
content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume
44-
Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"[email protected]"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"2a76c63f-ab19-45ef-88af-e043f3baa4ca"}'
44+
Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"[email protected]"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"9f260c07-a0cf-4dda-afa0-2c6e005301c5"}'
4545
headers: {}
4646
http_version: HTTP/1.1
4747
status_code: 200

tests/cassettes/test_async_client_request_auth.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
accept-encoding:
88
- gzip, deflate
99
authorization:
10-
- secret_...
10+
- ntn_...
1111
connection:
1212
- keep-alive
1313
host:
@@ -18,7 +18,7 @@ interactions:
1818
uri: https://api.notion.com/v1/users
1919
response:
2020
content: '{"object":"error","status":401,"code":"unauthorized","message":"API
21-
token is invalid.","request_id":"9edc0732-7262-4130-bb9d-1d95030beb0f"}'
21+
token is invalid.","request_id":"649c77c8-264f-4e74-a2c9-4a1c6adf08ec"}'
2222
headers: {}
2323
http_version: HTTP/1.1
2424
status_code: 401
@@ -30,7 +30,7 @@ interactions:
3030
accept-encoding:
3131
- gzip, deflate
3232
authorization:
33-
- secret_...
33+
- ntn_...
3434
connection:
3535
- keep-alive
3636
host:
@@ -41,7 +41,7 @@ interactions:
4141
uri: https://api.notion.com/v1/users
4242
response:
4343
content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume
44-
Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"[email protected]"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"20f2acad-35c1-443d-89e4-6b7929b523ab"}'
44+
Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/01d7053d-e135-4f27-bba0-5de532d39296/ramnes3.jpeg","type":"person","person":{"email":"[email protected]"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{},"request_id":"a1e1dc6c-d7e2-4e5f-856b-cd1414e7c987"}'
4545
headers: {}
4646
http_version: HTTP/1.1
4747
status_code: 200

tests/cassettes/test_async_collect_paginated_api.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
accept-encoding:
88
- gzip, deflate
99
authorization:
10-
- secret_...
10+
- ntn_...
1111
connection:
1212
- keep-alive
1313
content-length:
@@ -21,7 +21,7 @@ interactions:
2121
method: POST
2222
uri: https://api.notion.com/v1/search
2323
response:
24-
content: '{"object":"list","results":[{"object":"page","id":"95ba0116-6776-4c19-9e45-54e77415f03b","created_time":"2023-06-29T12:47:00.000Z","last_edited_time":"2024-12-30T17:10:00.000Z","created_by":{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[]}},"url":"https://www.notion.so/95ba011667764c199e4554e77415f03b","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"a1c6c917-2851-4ab0-afdb-38b6ca7c12f0"}'
24+
content: '{"object":"list","results":[{"object":"page","id":"95ba0116-6776-4c19-9e45-54e77415f03b","created_time":"2023-06-29T12:47:00.000Z","last_edited_time":"2024-12-30T17:22:00.000Z","created_by":{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"archived":false,"in_trash":false,"properties":{"title":{"id":"title","type":"title","title":[]}},"url":"https://www.notion.so/95ba011667764c199e4554e77415f03b","public_url":null}],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"42e3d551-2338-49d2-9d1b-705340893950"}'
2525
headers: {}
2626
http_version: HTTP/1.1
2727
status_code: 200
@@ -33,7 +33,7 @@ interactions:
3333
accept-encoding:
3434
- gzip, deflate
3535
authorization:
36-
- secret_...
36+
- ntn_...
3737
connection:
3838
- keep-alive
3939
content-length:
@@ -47,7 +47,7 @@ interactions:
4747
method: POST
4848
uri: https://api.notion.com/v1/search
4949
response:
50-
content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"e3461425-bfff-46d3-ad59-0aa997592b35"}'
50+
content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"d71d978b-b503-4577-9709-68365c8ddcfd"}'
5151
headers: {}
5252
http_version: HTTP/1.1
5353
status_code: 200

0 commit comments

Comments
 (0)