Tag: 安全浏览

Google安全浏览API查找Node.js

我无法获得谷歌安全search查找工作。 这是我正在尝试的代码,我总是在响应中获得{} var request = require("request-promise") var body = { "client": { "clientId": "myclientid", "clientVersion": "1.0" }, "threatInfo": { "threatTypes": ["MALWARE"], "platformTypes": ["WINDOWS", "LINUX"], "threatEntryTypes": ["URL"], "threatEntries": [ {"url": "http://some-malicious-url"} ] } } var options = { headers: { "Content-Type": "application/json", "Accept": "application/json" }, method: "POST", url: "https://safebrowsing.googleapis.com/v4/threatMatches:find?key=my-api-key", form: body } request(options).then(function (data){ console.log(data) }) […]