You can create your own integration in Notion and get the secret.
To create new integration or see your integration secret, go to the My Integrations page in your Notion account.
Create a new Internal Integration and get the secret if you don't have one.
Once you get the secret, you can set it as an environment variable NOTION_API_TOKEN
to use md-to-notion
add the following line to your ~/.profile or ~/.bashrc or ~/.zshrc file
export NOTION_API_TOKEN=<your-token>
Create a Notion page and connect your Integration to that page.
To connect your integration to a page,
you need to go to the page and click three dots on the top right corner
and hover over Connect to
and select your integration.
Find the page ID from the URL of the page. If page url is https://www.notion.so/Page-Title-1234567890abcdef1234567890abcdef
then the page ID is 1234567890abcdef1234567890abcdef
.
Now you can use this page ID to upload your markdown files.