all needed properties:
- Name
- Type
- Status
- Score
- Comment
- Link
- Completed
- Tags
touch .env
the .env
should include:
NOTION_API_KEY = secret_xxxxxx
NOTION_API_DATABASE = xxxxxxxxxxxxxxxxxxx
NEODB_TOKEN = xxxxxxxxxxxxxxxxxx
-
NOTION_API_KEY
: notion api -
NOTION_API_DATABASE
:
https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
|--------- Database ID --------|
NEODB_TOKEN
: https://neodb.social/developer/
first change index.js to set what you want to sync, then:
npm install
npm start
fetchCompletedXXXAndSync(false)
orfetchCompletedXXXAndSync()
:
Incremental Sync (use ./data/xxx.csv
to keep track of the last sync time)
fetchCompletedXXXAndSync(true)
Full Sync (will create or update all data in notion database)