Answers for "notion api python"

0

notion api python

#to install the Notion api use:
pip install notion-py
Posted by: Guest on May-28-2021
0

notion api python

#to install the api use:
#pip install notion-py

from notion.client import NotionClient

# Obtain the `token_v2` value by inspecting your browser 
# cookies on a logged-in (non-guest) session on Notion.so
client = NotionClient(token_v2="123123...")

# Replace this URL with the URL of the page you want to edit
page = client.get_block("https://www.notion.so/myorg/Test-c0d20a71c0944985ae96e661ccc99821")

print("The old title is:", page.title)

# You can use Markdown! We convert on-the-fly 
# to Notion's internal formatted text data structure.
page.title = "The title has now changed, and has *live-updated* in the browser!"
Posted by: Guest on May-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language