Method
search_users
(
self,
*,
# Pagination required as of August 30, 2019.
count: int,
start_index: int,
filter: Optional[str] = None,
)
Source from the content-addressed store, hash-verified
| 113 | # ------------------------- |
| 114 | |
| 115 | async def search_users( |
| 116 | self, |
| 117 | *, |
| 118 | # Pagination required as of August 30, 2019. |
| 119 | count: int, |
| 120 | start_index: int, |
| 121 | filter: Optional[str] = None, |
| 122 | ) -> SearchUsersResponse: |
| 123 | return SearchUsersResponse( |
| 124 | await self.api_call( |
| 125 | http_verb="GET", |
| 126 | path="Users", |
| 127 | query_params={ |
| 128 | "filter": filter, |
| 129 | "count": count, |
| 130 | "startIndex": start_index, |
| 131 | }, |
| 132 | ) |
| 133 | ) |
| 134 | |
| 135 | async def read_user(self, id: str) -> ReadUserResponse: |
| 136 | return ReadUserResponse(await self.api_call(http_verb="GET", path=f"Users/{quote(id)}")) |