Francke's picture
name
93d70ff
raw
history blame contribute delete
536 Bytes
import os
from notion_client import Client
import streamlit as st
notion = Client(auth=os.getenv("NOTION_API_KEY"))
page_id = '67dd09be5b3b44d694996a75c07ecc26'
page_id = 'teste-pagina-testada-17417e43c50080b9a0a6f71fa2cf1d20' #s
st.text(notion.users.list()['results'][0]['name']) #[0]['workspace_name'])
response = notion.pages.retrieve(page_id=page_id)
st.text(response)
st.title(response['properties']['title']['title'][0]['plain_text'])
#st.write(response_body['results'][1]['paragraph']['rich_text'][0]['plain_text'])