diff options
author | Teddy Wing | 2022-05-08 00:07:16 +0200 |
---|---|---|
committer | Teddy Wing | 2022-05-08 00:07:16 +0200 |
commit | 9553c53d0064da9d1c5c1af303746f17efeb4f71 (patch) | |
tree | 9b24b50f1fb671a048f59eb23971c533037fb0d5 /src/main.lisp | |
parent | ad6751cf6170a1aee72488463780c6e9e626ffa7 (diff) | |
download | wajir-9553c53d0064da9d1c5c1af303746f17efeb4f71.tar.bz2 |
Generate HTTP Basic auth base64 from user and token
Diffstat (limited to 'src/main.lisp')
-rw-r--r-- | src/main.lisp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.lisp b/src/main.lisp index d71f4e8..094bb41 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -7,10 +7,13 @@ ;; Send email to ^maildir^program^ containing message with issue metadata ;; Continue to next page - (fetch-issues - "https://example.atlassian.net" - "project = \\\"FAKE\\\" AND watcher != currentUser() AND key > \\\"FAKE-100\\\" ORDER BY created DESC" - :basic-auth-token "TOKEN")) + (let ((basic-auth-token (cl-base64:string-to-base64-string + (format nil "~A:~A" "name@example.com" "atlassian-token")))) + + (fetch-issues + "https://example.atlassian.net" + "project = \\\"FAKE\\\" AND watcher != currentUser() AND key > \\\"FAKE-100\\\" ORDER BY created DESC" + :basic-auth-token basic-auth-token))) (defun fetch-issues (endpoint jql &key basic-auth-token) (jzon:parse |