Notion
Connecting to Notion
For an overview of connectors, please refer to the following link:
Create a Connector
Select the “Connectors” tab on the homepage and click the “Create” button.
Enter Notion Credentials
Select Notion and click the sign-in button.
After entering the information, click the Create button to complete the creation. If there are any errors, please check the connection details again.
Retrieve access_token from the created connector
Once created successfully, you can retrieve the connector name from the list.
Use the dedicated function to input the connector name in the Python code and retrieve the access_token.
Create a Connector
Select the “Connectors” tab on the homepage and click the “Create” button.
Enter Notion Credentials
Select Notion and click the sign-in button.
After entering the information, click the Create button to complete the creation. If there are any errors, please check the connection details again.
Retrieve access_token from the created connector
Once created successfully, you can retrieve the connector name from the list.
Use the dedicated function to input the connector name in the Python code and retrieve the access_token.
~/.morph/connections.yml
. For other methods, please create them in the dashboard.Edit connections.yml
If the file ~/.morph/connections.yml
does not exist, create it beforehand and then edit it.
Use the connector in code to retrieve data
Use the dedicated function to input the connector name in the Python code and retrieve the access_token.
The access_token refresh is a dashboard feature, so the one specified in the local environment will always be used.
When actually specifying the connector and executing the file, the priority is as follows:
Also, note that only connectors created in the dashboard can be used in the environment where morph deploy
is performed.
- Connectors listed in
~/.morph/connections.yml
on the local machine - Connectors registered in the cloud