File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 10
10
(assert (not (null *project-id* )))
11
11
(let* ((response (dex :post (format nil " https://recaptchaenterprise.googleapis.com/v1/projects/~A /assessments?key=~A "
12
12
*project-id* *api-key* )
13
- :headers ` ((" Content-Type" . " application/json" ))
13
+ :headers ' ((" Content-Type" . " application/json" ))
14
14
:content (jojo :to-json (list :|event| (list :|token| token
15
15
:|siteKey| key-id
16
16
:|expectedAction| action))))))
17
17
(jojo :parse response)))
18
18
19
19
(defun risk-analysis (response)
20
- (getf :|riskAnalysis| response ))
20
+ (getf response :|riskAnalysis|))
21
21
22
22
(defun token-properties (response)
23
- (getf :|tokenProperties| response ))
23
+ (getf response :|tokenProperties|))
24
24
25
25
(defun event (response)
26
- (getf :|event| response ))
26
+ (getf response :|event|))
27
27
28
28
(defun name (response)
29
- (getf :|name| response ))
29
+ (getf response :|name| ))
30
30
31
31
(defun validp (response)
32
- (getf :|valid| (token-properties response)))
32
+ (getf (token-properties response) :|valid| ))
33
33
34
34
(defun invalid-reason (response)
35
- (getf :|invalidReason| (token-properties response)))
35
+ (getf (token-properties response) :|invalidReason| ))
36
36
37
37
(defun score (response)
38
- (getf :|score| (risk-analysis response)))
38
+ (getf (risk-analysis response) :|score| ))
You can’t perform that action at this time.
0 commit comments