Download notes at a commit as a zip
curl --request GET \
--url https://nemonist.com/api/v1/folders/{id}/zipball/{commit} \
--header 'Authorization: Bearer <token>'import requests
url = "https://nemonist.com/api/v1/folders/{id}/zipball/{commit}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://nemonist.com/api/v1/folders/{id}/zipball/{commit}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Folders
Download notes at a commit as a zip
The notes as a commit left the folder, as files in a zip (GitHub's zipball/{ref}, git archive <commit>): the same notes GET /folders/{id}/tree?at= lists, each with the text GET /folders/{id}/memory/{path}?at= returns, under one top folder <name>-<first 7 characters of the commit>. Notes made later or deleted by then are left out. A version the kept history cannot rebuild, or a note whose existence then is not known, is never guessed: NOT_INCLUDED.txt names each with why. Entries carry the commit's time, so the same commit gives the same bytes.
GET
/
folders
/
{id}
/
zipball
/
{commit}
Download notes at a commit as a zip
curl --request GET \
--url https://nemonist.com/api/v1/folders/{id}/zipball/{commit} \
--header 'Authorization: Bearer <token>'import requests
url = "https://nemonist.com/api/v1/folders/{id}/zipball/{commit}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://nemonist.com/api/v1/folders/{id}/zipball/{commit}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Authorizations
Path Parameters
Response
The zip (Content-Disposition attachment).
The response is of type file.