首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Five9 API python包装器- runReport

Five9 API python包装器- runReport
EN

Stack Overflow用户
提问于 2018-06-29 17:43:42
回答 1查看 1K关注 0票数 1

有人为Five9 API使用了python包装器吗?

我试图通过API运行我们的一个自定义报告,但不确定如何通过时间标准。

如果报告已经建立:

有没有一种不通过标准就运行它的方法?

这似乎已经足够了(因为报告已经构建好了):

代码语言:javascript
复制
client.configuration.runReport(folderName='Shared Reports', reportName='Test report')

但它并没有像预期的那样起作用。

我能做些什么来解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2019-08-30 18:39:37

这对我有用。如果报告已经完成,您可能会更喜欢while循环检查,但这并不是时间敏感的。

代码语言:javascript
复制
from five9 import Five9
import time

client = Five9('username','password')
start = '2019-08-01T00:00:00.000'
end = '2019-08-29T00:00:00.000'
criteria = {'time':{'end':end, 'start':start}}
identifier = client.configuration.runReport(folderName='SharedReports',reportName='reportname',criteria=criteria)
time.sleep(15)
get_results = client.configuration.getReportResult(identifier)
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51106982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档