auth = dmda.DomoTokenAuth(
domo_instance= os.environ["DOMO_INSTANCE" ],
domo_access_token= os.environ["DOMO_ACCESS_TOKEN" ],
)
await auth.print_is_token()
res = await stream_routes.get_streams(auth= auth, maximum= 5 , loop_until_end= False )
stream = res.response[0 ]
stream_id = stream["id" ]
stream
{'id': 1,
'valid': True,
'invalidExecutionId': None,
'transport': {'type': 'GLOBAL', 'description': None, 'version': '1'},
'updateMethod': 'REPLACE',
'dataProvider': {'id': 0,
'key': 'publicsampledata',
'name': None,
'url': None,
'defaultConnectorId': None,
'defaultConnectorLabel': None,
'authenticationScheme': None,
'connectorValidatorPresent': False,
'resourceBundlePresent': False,
'moduleHandler': None,
'iconPicker': False,
'unsafe': False,
'scope': None,
'producer': None,
'version': None,
'dateCreated': None,
'dateUpdated': None,
'visibility': 'WITH_CONNECTOR',
'type': 'STANDARD',
'customerOAuthConfigurationDataProviderType': None,
'authenticationSchemeConfiguration': None},
'account': None,
'accounts': [],
'accountTemplate': None,
'dataSource': {'id': 'd40b1f41-8847-4d2a-884b-d45f3ba1aaec',
'adc': False,
'adcExternal': False,
'hidden': False},
'schemaDefinition': None,
'scheduleExpression': None,
'scheduleStartDate': None,
'advancedScheduleJson': None,
'scheduleRetryExpression': None,
'scheduleRetryCount': 0,
'lastExecution': None,
'lastSuccessfulExecution': None,
'currentExecution': None,
'currentExecutionState': 'IDLE',
'createdAt': 1580425528.0,
'createdBy': 27,
'modifiedAt': 1580425528.0,
'modifiedBy': 27,
'scheduleState': 'ACTIVE',
'scheduleAssertion': False,
'inactiveScheduleCode': None,
'configuration': [{'streamId': 1,
'category': 'METADATA',
'name': 'isSampleData',
'type': 'string',
'value': 'true'}]}