Why? 🤔
Mainly for fun. Also, to add a blade to the Swiss army knife that is notion. To quickly and easily get the content of an HTTP request or manipulate it
How? 🤷♂️
Just use notion as usual and launch notionion
.
roughly inspired by the great idea of OffensiveNotion!
Quickstart
Set-up (details)
- Create the “Proxy page” in Notion
- Give the permissions to
notionion
to access the Proxy page
Run (details)
- Perform HTTP request
- Modify it trough the “Proxy page” in Notion
- See result of request
🏗️ Set-up
Create the “Proxy page” in Notion
You can import the template ./proxy.html
using the “Import” function of Notion
Give the permissions to notionion
to access the Proxy page
- Go to the Notion API developer page and log in. Create an Integration user (
New integration
). Copy that user’s API key - Copy the “Proxy page” Url
- In browser: only copy the URL
- On desktop app:
CTRL+L
- Add your Notion Developer API account to this page (In the upper-right corner of your Notion page, click “Share” and “Invite”)
- Install
notionion
see
Declare environment variables to specify the notion proxy page:
source env.sh
# Alternatively, you can just export NOTION_TOKEN (which is the api key) & NOTION_PAGE_URL
👟 Run
notionion
Install
- From release:
curl -lO -L https://github.com/ariary/notionion/releases/latest/download/notionion && chmod +x notionion
- Build it:
git clone https://github.com/ariary/notionion && make before.build && make build.notion
(needgo
) - with
go
:go install github.com/ariary/[email protected]