1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "demo",
10 "captureConfig": {
11 "port": 3000,
12 "captureEndpoint": "/webhook",
13 "validateSignatures": False,
14 "signatureHeader": "X-Signature",
15 "signatureSecret": "",
16 "maxCaptureMinutes": 60,
17 "autoStop": True,
18 },
19 "replayConfig": {
20 "targetUrl": "",
21 "replayAll": True,
22 "eventIds": [],
23 "filterByEventType": "",
24 "addReplayHeaders": True,
25 "delayBetweenRequests": 100,
26 },
27 "queryConfig": {
28 "filterByEventType": "",
29 "filterBySource": "",
30 "dateFrom": "",
31 "dateTo": "",
32 "limit": 100,
33 "includePayload": True,
34 },
35 "storageDatasetId": "",
36}
37
38
39run = client.actor("fiery_dream/webhook-event-store").call(run_input=run_input)
40
41
42print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
43for item in client.dataset(run["defaultDatasetId"]).iterate_items():
44 print(item)
45
46