29 lines
611 B
Python
29 lines
611 B
Python
from typing import Any, Optional
|
|
|
|
from worklib.graphql_client import DEFAULT_COMPANY_ID, execute_graphql
|
|
|
|
|
|
def fetch_place_members(
|
|
*,
|
|
query: str,
|
|
variables: dict[str, str],
|
|
graphql_url: Optional[str] = None,
|
|
|
|
company_id: str = DEFAULT_COMPANY_ID,
|
|
access_token: Optional[str] = None,
|
|
timeout_s: int = 30,
|
|
) -> dict[str, Any]:
|
|
return execute_graphql(
|
|
query=query,
|
|
variables=variables,
|
|
graphql_url=graphql_url,
|
|
company_id=company_id,
|
|
access_token=access_token,
|
|
timeout_s=timeout_s,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print()
|
|
|