Skip to content

Commit e4b7feb

Browse files
committed
fixes
1 parent 4da6d6f commit e4b7feb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

recaptcha-enterprise.lisp

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@
1010
(assert (not (null *project-id*)))
1111
(let* ((response (dex:post (format nil "https://recaptchaenterprise.googleapis.com/v1/projects/~A/assessments?key=~A"
1212
*project-id* *api-key*)
13-
:headers `(("Content-Type" . "application/json"))
13+
:headers '(("Content-Type" . "application/json"))
1414
:content (jojo:to-json (list :|event| (list :|token| token
1515
:|siteKey| key-id
1616
:|expectedAction| action))))))
1717
(jojo:parse response)))
1818

1919
(defun risk-analysis (response)
20-
(getf :|riskAnalysis| response))
20+
(getf response :|riskAnalysis|))
2121

2222
(defun token-properties (response)
23-
(getf :|tokenProperties| response))
23+
(getf response :|tokenProperties|))
2424

2525
(defun event (response)
26-
(getf :|event| response))
26+
(getf response :|event|))
2727

2828
(defun name (response)
29-
(getf :|name| response))
29+
(getf response :|name| ))
3030

3131
(defun validp (response)
32-
(getf :|valid| (token-properties response)))
32+
(getf (token-properties response) :|valid|))
3333

3434
(defun invalid-reason (response)
35-
(getf :|invalidReason| (token-properties response)))
35+
(getf (token-properties response) :|invalidReason|))
3636

3737
(defun score (response)
38-
(getf :|score| (risk-analysis response)))
38+
(getf (risk-analysis response) :|score|))

0 commit comments

Comments
 (0)