Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What exactly are the secrets #2

Closed
PBahner opened this issue Jun 7, 2021 · 1 comment
Closed

What exactly are the secrets #2

PBahner opened this issue Jun 7, 2021 · 1 comment

Comments

@PBahner
Copy link

PBahner commented Jun 7, 2021

If I understood right "NOTION_API_KEY" is the cookie "token_v2"? Or am I wrong and have to create a integration and use its secret?

Do I have to put the whole url for the notion database id or only the long string from the url?
And how do I get the NOTION_PAGE_ID?

I would be very grateful if you could help me. Thanks!

@Sajantoor
Copy link
Owner

Hi,

Sorry I've been meaning to update the documentation but haven't gotten a chance to.

NOTION_API_KEY: Is the "integration token" more information on it is here: https://developers.notion.com/docs#create-a-new-integration

NOTION_DATABASE_ID: Isn't the full string just the part that's detailed in the Notion API documentation.
image

NOTION_PAGE_ID: Is the in the URL that contains your database. For example it would be: https://www.notion.so/[page-name]-[page-id].

Sorry the documentation for this part isn't great, I'll update that as soon as possible. Let me know if you have any more questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants