This script allows to send markdown content from a link containint the raw text to a desire Outline Wiki document. I used this API request from Outline.
First, ensure you have all dependencies installed
$ pip install requests urllib3
Now you can run it with:
$ python3 outline_send.py -f FILE.json [-a/--append]
Note
The --append
toggle is set globally for all the sends targeted in the JSON file.
This might be changed in the future so it can be set for each individual send.
{
"outline_api" : "SECRET_API_KEY",
"data" : [
{
"source": "https://raw.file.com/file.md",
"destination": "https://your.outline.app/doc/name"
},
{
"source": "https://raw.file.com/file2.md",
"destination": "https://your.outline.app/doc/name2"
}
]
}