Five9 API python wrapper - runReport
Five9 API python wrapper - runReport
Has anyone used the python wrapper for the Five9 API?
I'm trying to run one of our custom reports through the API but am unsure how to pass the time criteria.
If the report is already built:
Is there a way to run it without passing criteria?
It seems like this should be enough (since the report is already built):
client.configuration.runReport(folderName='Shared Reports', reportName='Test report')
But it didn't work as expected.
What can I do to solve this?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
This is how I built my criteria for retreiving my report:
ReplyDeletestart = '2019-04-11T00:00:00.000'
end = '2019-04-11T06:00:00.000'
criteria={'time':{'end':end, 'start':start}}
identifier = client.configuration.runReport(folderName='Shared Reports', reportName='Test', criteria=criteria)
# Checks every 90 seconds to see if report is ready.
while client.configuration.isReportRunning(identifier=identifier, timeout=90):
None
get_results = client.configuration.getReportResult(identifier)