Add Notes to Notion by Alfred
This is a Alfred wolkflow by notion-api.
It's only beta version for some idea to you.
- Download this file Add-Notes-To-Notion.alfredworkflowand import to your Alfred
- Replace the your_app_token and your_page_block
It's a simple shell script, you can modify use notion-api make more exciting things.
curl -X PATCH https://api.notion.com/v1/blocks/${your_page_block}/children \
-H 'Authorization: Bearer '${your_app_token}'' \
-H "Content-Type: application/json" \
-H "Notion-Version: 2021-05-13" \
--data '{
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"text": [
{
"type": "text",
"text": { "content": "{query}" } }]
}
}
]
}'