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
-`client.get_active_notams(...)`, `client.get_raw_notams(...)`, `client.get_nearby_notams(...)`, and `client.get_historical_notams(...)` return a single `NotamListResult` page.
106
+
-`client.notams.active(...)`, `client.notams.raw(...)`, `client.notams.nearby(...)`, and `client.notams.historical(...)` return a pager that fetches all pages lazily as you iterate.
107
+
108
+
Use the pager when you want all NOTAMs across pages:
109
+
110
+
```python
111
+
pager = client.notams.active(
112
+
{"location": ["KJFK", "KLAX"]},
113
+
per_page=30,
114
+
)
115
+
116
+
for notam in pager:
117
+
print(notam.id)
118
+
```
119
+
120
+
If you want everything in memory at once, materialize the pager with `list(...)`:
121
+
122
+
```python
123
+
all_notams =list(
124
+
client.notams.active(
125
+
{"location": ["KJFK", "KLAX"]},
126
+
per_page=30,
127
+
)
128
+
)
129
+
```
130
+
131
+
If you need page metadata such as `page`, `per_page`, or `total_count`, iterate over `pager.pages`:
Edit the ICAO codes, coordinates, or page sizes in `examples/notams_fetch.py` to match your own use case.
68
66
69
67
## Webhook payload DTO
70
68
71
-
Sandbox test sends and production sends use the same webhook payload DTO. Watcher can send standard `interpretation` messages and optional `lifecycle` messages for later NOTAMC/NOTAMR changes when the listener has `lifecycle_enabled = true`.
69
+
Sandbox test sends and production sends use the same webhook payload DTO. Watcher can send standard `interpretation` messages and optional `lifecycle` messages for later NOTAMC/NOTAMR changes when the listener has `lifecycle.enabled = true`.
0 commit comments