commit 36af27ba315929115c32694d43db48035371c186
parent ba23e79525b12e3ec45a22c1f82a7c8663544c33
Author: lou woell <lou@repetitions.de>
Date:   Mon, 27 Apr 2026 17:27:24 +0200

add some documentation

Diffstat:
Mlinkhut.scm | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/linkhut.scm b/linkhut.scm @@ -18,7 +18,11 @@ ;;; Commentary: -;; API documentation: https://docs.linkhut.org/overview.html +;; LinkHut API documentation: https://docs.linkhut.org/overview.html +;; +;; The library provides a function per api call. +;; +;; All functions expect the parameters `host' and `token' to be set. ;;; Code: @@ -94,7 +98,8 @@ (((resp body) (http-get (build-uri 'https #:host (host) - #:path (encode-and-join-uri-path (cons "" (cons api-version path))) + #:path (encode-and-join-uri-path + '("" . (cons api-version path))) #:query (if query (build-query query) query)) #:headers `((authorization . (basic . ,(token))))))) (when (= 200 (response-code resp)) @@ -129,6 +134,7 @@ (others ,others) (time ,time) (meta ,meta))) + (list (cons 'id (string->number hash 16)) (cons 'title desc) (cons 'note ext)