Get events
(
self,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
)
| 43 | return EventResourceWithStreamingResponse(self) |
| 44 | |
| 45 | def list( |
| 46 | self, |
| 47 | *, |
| 48 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 49 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 50 | extra_headers: Headers | None = None, |
| 51 | extra_query: Query | None = None, |
| 52 | extra_body: Body | None = None, |
| 53 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 54 | ) -> Stream[EventListResponse]: |
| 55 | """Get events""" |
| 56 | return self._get( |
| 57 | "/event", |
| 58 | options=make_request_options( |
| 59 | extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
| 60 | ), |
| 61 | cast_to=cast(Any, EventListResponse), # Union types cannot be passed in as arguments in the type system |
| 62 | stream=True, |
| 63 | stream_cls=Stream[EventListResponse], |
| 64 | ) |
| 65 | |
| 66 | |
| 67 | class AsyncEventResource(AsyncAPIResource): |