Box.com活动API

编程入门 行业动态 更新时间:2024-10-28 02:30:35
本文介绍了Box活动API - 从事件中删除的旧事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经针对相对较新的帐户(2012年6月13日创建)来测试活动API。直到今天,流量位置为0的事件API的调用将返回在帐户中发生的第一个事件。这允许我跟踪已经添加到我的帐户的所有文件,而不需要遍历文件夹层次结构。从本周开始,我打开帐户后的头几天,我不再收到上传的事件。我的电话如下:

I have been testing events API against a relatively new account (created June 13, 2012). Until today, calls to the events API with a stream position of 0 would return the very first events that occurred on the account. This allowed me to track all the files that had been added to my account without traversing the folder hierarchy. Starting this week, I am no longer getting events for uploads during the first few days after I opened my account. My call is as follows:

curl 'www.box/api/2.0/events?stream_type=changes&limit=100&stream_position=0' -L -H 'Authorization: BoxAuth api_key=xxxxx&auth_token=xxxxx'

较旧的事件会不时从事件队列中删除?如果是这样,有没有办法知道队列有多远? (假设老事件确实被丢弃,只是检查队列中最早的项目将是不可靠的,因为如果该事件比我处理的最后一个事件更新,则不可能判断该帐户是否处于非活动状态,或者是临时事件已被删除。)

Do older events get dropped from the events queue from time to time? If so, is there any way to know how far back the queue goes? (Assuming old events do get dropped, just checking the earliest item in the queue would be unreliable since, if that event is more recent than the last one I processed, it's not possible to tell whether the account has just been inactive or whether interim events have been dropped.)

任何指导都将非常感激。希望我只是做错了事情,旧事件仍然可以访问。

Any guidance would be very much appreciated. Hopefully I'm just doing something wrong and the older events are still accessible one way or another.

推荐答案

事件没有维护在用户的帐户的生命周期。保存事件的具体时间长度尚未被指定,因为我们仍然在使用API​​,但是在v2 API作为GA之前我们将会指出这一点。

Events aren't maintained for the lifetime of the user's account. The specific length of time for which events are saved hasn't been specified yet as we're still looking at usage of the API, but we will indicate this before the v2 API is made GA.

更多推荐

Box.com活动API

本文发布于:2023-11-11 13:42:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578607.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Box   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!