Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dynalist API test
curl \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST https://dynalist.io/api/v1/file/edit \
-d \
'
{
"token": "your_dynalist_api_secret_token",
"changes": [
{
"action": "edit",
"type": "folder",
"file_id": "4BF0-S47Kqhmek3bhXO0VUYJ",
"title": "New Title"
}
]
}
'
curl \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST https://dynalist.io/api/v1/file/list \
-d \
'
{
"token": "your_dynalist_api_secret_token"
}
'
@1l0

This comment has been minimized.

Owner

1l0 commented Jul 3, 2018

Results:

$ ./file_list.sh
{"_code":"Ok","root_file_id":........(goes on till the end)

$./file_edit.sh
{"_code":"InternalError","_msg":"A server error occured","_v":9,"_mv":7,"_b":"20180701214818"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment