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,
)
| 85 | return AsyncEventResourceWithStreamingResponse(self) |
| 86 | |
| 87 | async def list( |
| 88 | self, |
| 89 | *, |
| 90 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 91 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 92 | extra_headers: Headers | None = None, |
| 93 | extra_query: Query | None = None, |
| 94 | extra_body: Body | None = None, |
| 95 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 96 | ) -> AsyncStream[EventListResponse]: |
| 97 | """Get events""" |
| 98 | return await self._get( |
| 99 | "/event", |
| 100 | options=make_request_options( |
| 101 | extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
| 102 | ), |
| 103 | cast_to=cast(Any, EventListResponse), # Union types cannot be passed in as arguments in the type system |
| 104 | stream=True, |
| 105 | stream_cls=AsyncStream[EventListResponse], |
| 106 | ) |
| 107 | |
| 108 | |
| 109 | class EventResourceWithRawResponse: |
nothing calls this directly
no test coverage detected