14 lines
316 B
Python
14 lines
316 B
Python
from api.http_client import HttpClient
|
|
|
|
|
|
def get_instances(client):
|
|
data = client.get("/instances", params={"pageSize": 200})
|
|
return data.get("results", [])
|
|
|
|
|
|
def get_organization(client):
|
|
for inst in get_instances(client):
|
|
if inst.get("serviceId") == 19:
|
|
return inst
|
|
return None
|