Sample programs that interoperate between Notion and Google ToDo (Google Tasks).
- Notion page
- Google account
- Google Apps Script
- Import all files(notion.gs, googleTasks.gs, main.gs) into your Google apps script (GAS) project.
- Set parameters of
initUserProperties()
in main.gs - Set GAS(Google apps script) trigger of
GoogleTaskToNotion()
andNotionToGoogleTask()
Name | Type | Example | Explanation |
---|---|---|---|
notionToken | string | "secret_oxoxoxox" | Notion token |
notionDbId | string | "0305a36b11c04727b321171e152e85b5" | Notion database ID(Ex:Relation of DbId and notion page url https://www.notion.so/0305a36b11c04727b321171e152e85b5?v=3bbaab8907704661a3a32be257be74c4) |
taskListId | string | "KWssdfnntDt3JKJNgfdoxoxoxox" | Google task list ID |
calendarId | string | "oxoxoxox@gmail.com" | Google Calendar ID |
nameProp | string | "Title" | Notion database task 'title' column name |
dateProp | string | "Date" | Notion database 'task due' column name |
taskIdProp | string | "taskId" | Notion database 'Google task ID' column name |
doneStatusProp | string | "Done" | Notion database 'Completed status' column name |
notesProp | string | "Google tasks notes" | Notion database 'Google tasks notes' column name |
daysForSearch | int | 31 | How many days to look for deadlines from today. |
isLogging | Boolean | true | Whether to keep a log or not |
staySecond | int | 0 | Wait second when API request |
notionVersion | string | "2021-08-16" | Version of notion API |
notionLastUpdatePeriod | int | 15 | Extract only Notion tasks updated x minutes ago |
googleLastUpdatePeriod | int | 1000 | Extract only Google tasks updated x secondes ago |
- Template of notion database for this program.
Copyright (c) 2022 Namiki Sakakura This software is released under the MIT License, see LICENSE, see LICENSE.