Skip to content

Commit

Permalink
Token format update: secret_ → ntn_ (#246)
Browse files Browse the repository at this point in the history
* Token format update: secret_ → ntn_

* Regenerate cassettes

---------

Co-authored-by: ramnes <[email protected]>
  • Loading branch information
rafeyrana and ramnes authored Dec 30, 2024
1 parent d07ce47 commit aa71fec
Show file tree
Hide file tree
Showing 42 changed files with 598 additions and 598 deletions.
2 changes: 1 addition & 1 deletion docs/user_guides/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ to create an integration. Copy the token given by Notion.
- Make it available in your environment:

```shell
export NOTION_TOKEN=secret_abcd12345
export NOTION_TOKEN=ntn_abcd12345
```

!!! tip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand Down
6 changes: 3 additions & 3 deletions tests/cassettes/test_api_response_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -30,7 +30,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -41,7 +41,7 @@ interactions:
uri: https://api.notion.com/v1/users
response:
content: '{"object":"error","status":401,"code":"unauthorized","message":"API
token is invalid.","request_id":"3db4e917-1be1-49a5-bfcd-f5339a6a8d4f"}'
token is invalid.","request_id":"15ca8906-fcb1-4d90-b25a-ad03ba508350"}'
headers: {}
http_version: HTTP/1.1
status_code: 401
Expand Down
6 changes: 3 additions & 3 deletions tests/cassettes/test_async_api_response_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -30,7 +30,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -41,7 +41,7 @@ interactions:
uri: https://api.notion.com/v1/users
response:
content: '{"object":"error","status":401,"code":"unauthorized","message":"API
token is invalid.","request_id":"f12c8893-f690-44c3-88d3-6ab25b1804c8"}'
token is invalid.","request_id":"d11a2027-fae9-4cad-a6ea-ab6e34136dc5"}'
headers: {}
http_version: HTTP/1.1
status_code: 401
Expand Down
6 changes: 3 additions & 3 deletions tests/cassettes/test_async_client_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -30,7 +30,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -41,7 +41,7 @@ interactions:
uri: https://api.notion.com/v1/users
response:
content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume
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"}'
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"}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
8 changes: 4 additions & 4 deletions tests/cassettes/test_async_client_request_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -18,7 +18,7 @@ interactions:
uri: https://api.notion.com/v1/users
response:
content: '{"object":"error","status":401,"code":"unauthorized","message":"API
token is invalid.","request_id":"9edc0732-7262-4130-bb9d-1d95030beb0f"}'
token is invalid.","request_id":"649c77c8-264f-4e74-a2c9-4a1c6adf08ec"}'
headers: {}
http_version: HTTP/1.1
status_code: 401
Expand All @@ -30,7 +30,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
host:
Expand All @@ -41,7 +41,7 @@ interactions:
uri: https://api.notion.com/v1/users
response:
content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume
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"}'
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"}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
8 changes: 4 additions & 4 deletions tests/cassettes/test_async_collect_paginated_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
content-length:
Expand All @@ -21,7 +21,7 @@ interactions:
method: POST
uri: https://api.notion.com/v1/search
response:
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"}'
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"}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand All @@ -33,7 +33,7 @@ interactions:
accept-encoding:
- gzip, deflate
authorization:
- secret_...
- ntn_...
connection:
- keep-alive
content-length:
Expand All @@ -47,7 +47,7 @@ interactions:
method: POST
uri: https://api.notion.com/v1/search
response:
content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"e3461425-bfff-46d3-ad59-0aa997592b35"}'
content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"page_or_database","page_or_database":{},"request_id":"d71d978b-b503-4577-9709-68365c8ddcfd"}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
Loading

0 comments on commit aa71fec

Please sign in to comment.