forked from detectify/api-examples
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
Latest commit
20 lines (15 loc) · 588 Bytes
/
Copy pathMain.java
File metadata and controls
20 lines (15 loc) · 588 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
packagecom.detectify;
publicclassMain {
publicstaticvoidmain(String[] args) {
// Detectify keys
StringapiKey = "d4bf676ee6146557cbf0f28fe6cbc290";
StringsecretKey = "SGVsbG8sIHdvcmxkISBJIGFtIGEgdGVhcG90IQ==";
// Scan profile token
StringscanProfile = "5605b488634efe810dff4276e28ca7f9";
// Create new Detectify API client
Detectifydtfy = newDetectify(apiKey, secretKey);
// Start a scan and print the current scan status
dtfy.StartScan(scanProfile);
dtfy.ScanStatus(scanProfile);
}
}