You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run the [the FileScannerExample class](src/main/java/ai/nightfall/examples/FileScannerExample.java), first start a [webhook server](https://docs.nightfall.ai/docs/creating-a-webhook-server) to which results will be delivered. [ngrok](https://ngrok.com/) is a good way to expose a locally running webhook service on a publically-reachable URL:
101
+
```bash
102
+
# ngrok creates a public webhook URL that tunnels to your local machine. Change the port if you're not listening on port 8075.
103
+
ngrok http 8075
104
+
# copy the HTTPS URL ngrok displays, for example https://myurl.ngrok.io
105
+
# supposing you're running a Python webhook server
106
+
python webhook.py
107
+
```
108
+
109
+
Compile the SDK and example code:
110
+
```bash
111
+
make jar
112
+
```
113
+
114
+
then set your API key as an environment variable and run the sample program (changing version number in the jar if necessary):
115
+
116
+
```bash
117
+
export NIGHTFALL_API_KEY="NF-XXXXXX"# replace with your API key
118
+
NGROK_URL="myurl"# replace with the URL from running ngrok above
0 commit comments