complété test de requête joplin notebooks

This commit is contained in:
2022-07-31 20:03:45 -04:00
parent 382b315e96
commit c3f97dc832
6 changed files with 40 additions and 81 deletions
+7
View File
@@ -0,0 +1,7 @@
import std/[asyncdispatch, httpclient]
proc get_joplin_notebooks*(): Future[string] {.async.} =
var client = newAsyncHttpClient()
return await client.getContent("http://localhost:41184/folders?token=e5f6644fbf6a97ddc55648dae72b11caecda6c6642d8ce0d3b20129b89b196385737eb908923542c3343649ebbf865b55bda031ab4c3a16edc7723ef2ad77d8f")
# echo waitFor get_joplin_notebooks()