This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from airflow.hooks.http_hook import HttpHook | |
from airflow.hooks.base import BaseHook | |
from airflow.exceptions import AirflowException | |
ENDPOINT_UPLOAD_DATA = "api.notion.com/v1/pages" | |
ENDPOINT_CREATE_DB = "api.notion.com/v1/databases/" | |
ENDPOINT_RETRIEVE_DB = "api.notion.com/v1/databases/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parent": { | |
"database_id": "YOUR_DATABASE_ID" | |
}, | |
"properties": { | |
"Name": { | |
"title": [ | |
{ | |
"text": { | |
"content": "your name" |