echo724/notion2md

pass in token as a parameter to MarkdownExporter

Closed this issue · 1 comments

Currently, there is no way to pass the Notion_Token as a parameter to the MarkdownExporter. This means that the only way for it to work in a python script is to set the environment variable to the correct notion_token.

Can we add notion_token as parameter to markdownexporter and check if it's passed use whatever was passed otherwise fetch from os.environ ?

This makes it hard to work with multiple notion keys in the same code.

Sounds Good. At that time I had no idea how to pass the token, but now I think this can be implemented by adding the token argument from cleo Command(block_command). Thank you for bring useful idea