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
| 110 | # ------------------------- |
| 111 | |
| 112 | def search_users( |
| 113 | self, |
| 114 | *, |
| 115 | # Pagination required as of August 30, 2019. |
| 116 | count: int, |
| 117 | start_index: int, |
| 118 | filter: Optional[str] = None, |
| 119 | ) -> SearchUsersResponse: |
| 120 | return SearchUsersResponse( |
| 121 | self.api_call( |
| 122 | http_verb="GET", |
| 123 | path="Users", |
| 124 | query_params={ |
| 125 | "filter": filter, |
| 126 | "count": count, |
| 127 | "startIndex": start_index, |
| 128 | }, |
| 129 | ) |
| 130 | ) |
| 131 | |
| 132 | def read_user(self, id: str) -> ReadUserResponse: |
| 133 | return ReadUserResponse(self.api_call(http_verb="GET", path=f"Users/{quote(id)}")) |