eric6/Documentation/Source/eric6.Helpviewer.VirusTotal.VirusTotalApi.html

changeset 6942
2602857055c5
parent 6123
39cd368143db
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Helpviewer.VirusTotal.VirusTotalApi</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Helpviewer.VirusTotal.VirusTotalApi</h1>
23 <p>
24 Module implementing the <a href="http://www.virustotal.com">VirusTotal</a>
25 API class.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#VirusTotalAPI">VirusTotalAPI</a></td>
35 <td>Class implementing the <a href="http://www.virustotal.com">VirusTotal</a> API.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="VirusTotalAPI" ID="VirusTotalAPI"></a>
44 <h2>VirusTotalAPI</h2>
45 <p>
46 Class implementing the <a href="http://www.virustotal.com">VirusTotal</a>
47 API.
48 </p><h3>Signals</h3>
49 <dl>
50 <dt>checkServiceKeyFinished(bool, str)</dt>
51 <dd>
52 emitted after the service key
53 check has been performed. It gives a flag indicating validity
54 (boolean) and an error message in case of a network error (string).
55 </dd><dt>fileScanReport(str)</dt>
56 <dd>
57 emitted with the URL of the file scan report
58 page
59 </dd><dt>submitUrlError(str)</dt>
60 <dd>
61 emitted with the error string, if the URL scan
62 submission returned an error.
63 </dd><dt>urlScanReport(str)</dt>
64 <dd>
65 emitted with the URL of the URL scan report page
66 </dd>
67 </dl>
68 <h3>Derived from</h3>
69 QObject
70 <h3>Class Attributes</h3>
71 <table>
72 <tr><td>GetDomainReportPattern</td></tr><tr><td>GetFileReportPattern</td></tr><tr><td>GetIpAddressReportPattern</td></tr><tr><td>GetUrlReportPattern</td></tr><tr><td>ScanUrlPattern</td></tr><tr><td>ServiceCode_InvalidKey</td></tr><tr><td>ServiceCode_InvalidPrivilege</td></tr><tr><td>ServiceCode_RateLimitExceeded</td></tr><tr><td>ServiceResult_ItemNotPresent</td></tr><tr><td>ServiceResult_ItemPresent</td></tr><tr><td>ServiceResult_ItemQueued</td></tr><tr><td>TestServiceKeyScanID</td></tr>
73 </table>
74 <h3>Class Methods</h3>
75 <table>
76 <tr><td>None</td></tr>
77 </table>
78 <h3>Methods</h3>
79 <table>
80 <tr>
81 <td><a href="#VirusTotalAPI.__init__">VirusTotalAPI</a></td>
82 <td>Constructor</td>
83 </tr><tr>
84 <td><a href="#VirusTotalAPI.__checkServiceKeyValidityFinished">__checkServiceKeyValidityFinished</a></td>
85 <td>Private slot to determine the result of the service key validity check.</td>
86 </tr><tr>
87 <td><a href="#VirusTotalAPI.__getDomainReportFinished">__getDomainReportFinished</a></td>
88 <td>Private slot to process the IP address report data.</td>
89 </tr><tr>
90 <td><a href="#VirusTotalAPI.__getFileScanReportUrl">__getFileScanReportUrl</a></td>
91 <td>Private method to get the report URL for a file scan.</td>
92 </tr><tr>
93 <td><a href="#VirusTotalAPI.__getFileScanReportUrlFinished">__getFileScanReportUrlFinished</a></td>
94 <td>Private slot to determine the result of the file scan report URL request.</td>
95 </tr><tr>
96 <td><a href="#VirusTotalAPI.__getIpAddressReportFinished">__getIpAddressReportFinished</a></td>
97 <td>Private slot to process the IP address report data.</td>
98 </tr><tr>
99 <td><a href="#VirusTotalAPI.__getUrlScanReportUrl">__getUrlScanReportUrl</a></td>
100 <td>Private method to get the report URL for a URL scan.</td>
101 </tr><tr>
102 <td><a href="#VirusTotalAPI.__getUrlScanReportUrlFinished">__getUrlScanReportUrlFinished</a></td>
103 <td>Private slot to determine the result of the URL scan report URL request.</td>
104 </tr><tr>
105 <td><a href="#VirusTotalAPI.__loadSettings">__loadSettings</a></td>
106 <td>Private method to load the settings.</td>
107 </tr><tr>
108 <td><a href="#VirusTotalAPI.__submitUrlFinished">__submitUrlFinished</a></td>
109 <td>Private slot to determine the result of the URL scan submission.</td>
110 </tr><tr>
111 <td><a href="#VirusTotalAPI.checkServiceKeyValidity">checkServiceKeyValidity</a></td>
112 <td>Public method to check the validity of the given service key.</td>
113 </tr><tr>
114 <td><a href="#VirusTotalAPI.close">close</a></td>
115 <td>Public slot to close the API.</td>
116 </tr><tr>
117 <td><a href="#VirusTotalAPI.getDomainReport">getDomainReport</a></td>
118 <td>Public method to retrieve a report for a domain.</td>
119 </tr><tr>
120 <td><a href="#VirusTotalAPI.getIpAddressReport">getIpAddressReport</a></td>
121 <td>Public method to retrieve a report for an IP address.</td>
122 </tr><tr>
123 <td><a href="#VirusTotalAPI.preferencesChanged">preferencesChanged</a></td>
124 <td>Public slot to handle a change of preferences.</td>
125 </tr><tr>
126 <td><a href="#VirusTotalAPI.submitUrl">submitUrl</a></td>
127 <td>Public method to submit an URL to be scanned.</td>
128 </tr>
129 </table>
130 <h3>Static Methods</h3>
131 <table>
132 <tr><td>None</td></tr>
133 </table>
134 <a NAME="VirusTotalAPI.__init__" ID="VirusTotalAPI.__init__"></a>
135 <h4>VirusTotalAPI (Constructor)</h4>
136 <b>VirusTotalAPI</b>(<i>parent=None</i>)
137 <p>
138 Constructor
139 </p><dl>
140 <dt><i>parent</i></dt>
141 <dd>
142 reference to the parent object (QObject)
143 </dd>
144 </dl><a NAME="VirusTotalAPI.__checkServiceKeyValidityFinished" ID="VirusTotalAPI.__checkServiceKeyValidityFinished"></a>
145 <h4>VirusTotalAPI.__checkServiceKeyValidityFinished</h4>
146 <b>__checkServiceKeyValidityFinished</b>(<i>reply</i>)
147 <p>
148 Private slot to determine the result of the service key validity check.
149 </p><dl>
150 <dt><i>reply</i> (QNetworkReply)</dt>
151 <dd>
152 reference to the network reply
153 </dd>
154 </dl><a NAME="VirusTotalAPI.__getDomainReportFinished" ID="VirusTotalAPI.__getDomainReportFinished"></a>
155 <h4>VirusTotalAPI.__getDomainReportFinished</h4>
156 <b>__getDomainReportFinished</b>(<i>reply</i>)
157 <p>
158 Private slot to process the IP address report data.
159 </p><dl>
160 <dt><i>reply</i> (QNetworkReply)</dt>
161 <dd>
162 reference to the network reply
163 </dd>
164 </dl><a NAME="VirusTotalAPI.__getFileScanReportUrl" ID="VirusTotalAPI.__getFileScanReportUrl"></a>
165 <h4>VirusTotalAPI.__getFileScanReportUrl</h4>
166 <b>__getFileScanReportUrl</b>(<i>scanId</i>)
167 <p>
168 Private method to get the report URL for a file scan.
169 </p><dl>
170 <dt><i>scanId</i></dt>
171 <dd>
172 ID of the scan to get the report URL for (string)
173 </dd>
174 </dl><a NAME="VirusTotalAPI.__getFileScanReportUrlFinished" ID="VirusTotalAPI.__getFileScanReportUrlFinished"></a>
175 <h4>VirusTotalAPI.__getFileScanReportUrlFinished</h4>
176 <b>__getFileScanReportUrlFinished</b>(<i>reply</i>)
177 <p>
178 Private slot to determine the result of the file scan report URL
179 request.
180 </p><dl>
181 <dt><i>reply</i> (QNetworkReply)</dt>
182 <dd>
183 reference to the network reply
184 </dd>
185 </dl><a NAME="VirusTotalAPI.__getIpAddressReportFinished" ID="VirusTotalAPI.__getIpAddressReportFinished"></a>
186 <h4>VirusTotalAPI.__getIpAddressReportFinished</h4>
187 <b>__getIpAddressReportFinished</b>(<i>reply</i>)
188 <p>
189 Private slot to process the IP address report data.
190 </p><dl>
191 <dt><i>reply</i> (QNetworkReply)</dt>
192 <dd>
193 reference to the network reply
194 </dd>
195 </dl><a NAME="VirusTotalAPI.__getUrlScanReportUrl" ID="VirusTotalAPI.__getUrlScanReportUrl"></a>
196 <h4>VirusTotalAPI.__getUrlScanReportUrl</h4>
197 <b>__getUrlScanReportUrl</b>(<i>scanId</i>)
198 <p>
199 Private method to get the report URL for a URL scan.
200 </p><dl>
201 <dt><i>scanId</i></dt>
202 <dd>
203 ID of the scan to get the report URL for (string)
204 </dd>
205 </dl><a NAME="VirusTotalAPI.__getUrlScanReportUrlFinished" ID="VirusTotalAPI.__getUrlScanReportUrlFinished"></a>
206 <h4>VirusTotalAPI.__getUrlScanReportUrlFinished</h4>
207 <b>__getUrlScanReportUrlFinished</b>(<i>reply</i>)
208 <p>
209 Private slot to determine the result of the URL scan report URL
210 request.
211 </p><dl>
212 <dt><i>reply</i> (QNetworkReply)</dt>
213 <dd>
214 reference to the network reply
215 </dd>
216 </dl><a NAME="VirusTotalAPI.__loadSettings" ID="VirusTotalAPI.__loadSettings"></a>
217 <h4>VirusTotalAPI.__loadSettings</h4>
218 <b>__loadSettings</b>(<i></i>)
219 <p>
220 Private method to load the settings.
221 </p><a NAME="VirusTotalAPI.__submitUrlFinished" ID="VirusTotalAPI.__submitUrlFinished"></a>
222 <h4>VirusTotalAPI.__submitUrlFinished</h4>
223 <b>__submitUrlFinished</b>(<i>reply</i>)
224 <p>
225 Private slot to determine the result of the URL scan submission.
226 </p><dl>
227 <dt><i>reply</i> (QNetworkReply)</dt>
228 <dd>
229 reference to the network reply
230 </dd>
231 </dl><a NAME="VirusTotalAPI.checkServiceKeyValidity" ID="VirusTotalAPI.checkServiceKeyValidity"></a>
232 <h4>VirusTotalAPI.checkServiceKeyValidity</h4>
233 <b>checkServiceKeyValidity</b>(<i>key, protocol=""</i>)
234 <p>
235 Public method to check the validity of the given service key.
236 </p><dl>
237 <dt><i>key</i></dt>
238 <dd>
239 service key (string)
240 </dd><dt><i>protocol</i></dt>
241 <dd>
242 protocol used to access VirusTotal (string)
243 </dd>
244 </dl><a NAME="VirusTotalAPI.close" ID="VirusTotalAPI.close"></a>
245 <h4>VirusTotalAPI.close</h4>
246 <b>close</b>(<i></i>)
247 <p>
248 Public slot to close the API.
249 </p><a NAME="VirusTotalAPI.getDomainReport" ID="VirusTotalAPI.getDomainReport"></a>
250 <h4>VirusTotalAPI.getDomainReport</h4>
251 <b>getDomainReport</b>(<i>domain</i>)
252 <p>
253 Public method to retrieve a report for a domain.
254 </p><dl>
255 <dt><i>domain</i> (str)</dt>
256 <dd>
257 domain name
258 </dd>
259 </dl><a NAME="VirusTotalAPI.getIpAddressReport" ID="VirusTotalAPI.getIpAddressReport"></a>
260 <h4>VirusTotalAPI.getIpAddressReport</h4>
261 <b>getIpAddressReport</b>(<i>ipAddress</i>)
262 <p>
263 Public method to retrieve a report for an IP address.
264 </p><dl>
265 <dt><i>ipAddress</i> (str)</dt>
266 <dd>
267 valid IPv4 address in dotted quad notation
268 </dd>
269 </dl><a NAME="VirusTotalAPI.preferencesChanged" ID="VirusTotalAPI.preferencesChanged"></a>
270 <h4>VirusTotalAPI.preferencesChanged</h4>
271 <b>preferencesChanged</b>(<i></i>)
272 <p>
273 Public slot to handle a change of preferences.
274 </p><a NAME="VirusTotalAPI.submitUrl" ID="VirusTotalAPI.submitUrl"></a>
275 <h4>VirusTotalAPI.submitUrl</h4>
276 <b>submitUrl</b>(<i>url</i>)
277 <p>
278 Public method to submit an URL to be scanned.
279 </p><dl>
280 <dt><i>url</i></dt>
281 <dd>
282 url to be scanned (QUrl)
283 </dd>
284 </dl>
285 <div align="right"><a href="#top">Up</a></div>
286 <hr />
287 </body></html>

eric ide

mercurial