Box.com活动API - 从事件中删除的旧事件? [英] Box.com events API - Old events dropped from stream?

查看:167
本文介绍了Box.com活动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 'https://www.box.com/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 - 从事件中删除的旧事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆