有什么方法可以为Slack的AccessLogs API设置启动日期吗?

发布于 2025-02-12 16:21:56 字数 285 浏览 1 评论 0原文

问题中的API: https://api.slack.com/methods/methods/team.accesslogs

我只想在特定日期之后获取AccessLogs,我不希望访问日志以来每次开始的时间开始请致电此API,因为每次拨打此通话时,我都已经在数据库中存储了访问程序。 API似乎没有可以给出开始日期的参数。

API in the question: https://api.slack.com/methods/team.accessLogs

I want fetch the accesslogs only after a certain date, I don't want access logs since the beginning of time everytime I call this API because I am already storing the accesslogs in my database each time I make this call. The API does not seem to have the parameter that can be given for start date.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撧情箌佬 2025-02-19 16:21:56

您应该将每个页面的结果数与“计数”可选参数限制,将每个结果的时间与最后保存的日期进行比较,然后撰写,直到达到日期限制为止。

不幸的是,Slack没有提供使用起始日期作为限制的方法。

You should limit the number of result per page with the 'count' optional argument, compare the time of each result with your last saved date and paginate until you reach your date limit.

Unfortunately, Slack does not provide a way to use a starting date as a limit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文