token_auth = dmda.DomoTokenAuth(
domo_instance=os.environ["DOMO_INSTANCE"],
domo_access_token=os.environ["DOMO_ACCESS_TOKEN"],
)
await token_auth.who_am_i()
datasets = (
await datacenter_routes.search_datacenter(
auth=token_auth,
entity_type="DATASET",
# maximum = 25
)
).response
dataset = next(
(
dataset
for dataset in datasets
if dataset["rowCount"] != 0
# and dataset["ownedById"] == token_auth.user_id
)
)
dataset
dataset_id = dataset["databaseId"]
dataset_id'581b58d6-4554-46c6-b0e0-c7c2f782df90'