-
Notifications
You must be signed in to change notification settings - Fork 4
/
violatingSites.clj
33 lines (29 loc) · 1.04 KB
/
violatingSites.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(ns happygapi.abusiveexperiencereport.violatingSites
"Abusive Experience Report API: violatingSites.
Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
See: https://developers.google.com/abusive-experience-report/api/reference/rest/v1/violatingSites"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn list$
"https://developers.google.com/abusive-experience-report/api/reference/rest/v1/violatingSites/list
Required parameters: none
Optional parameters: none
Lists sites that are failing in the Abusive Experience Report."
{:scopes nil}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/get
(util/get-url
"https://abusiveexperiencereport.googleapis.com/"
"v1/violatingSites"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))