使用Foursquare API获取时间段内的数据

2024-10-02 10:32:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在构建一个应用程序,它将在用户选择的时间段之间给你在foursquare上的签到。我研究了foursquare API,但它最终给了我afterTimestamp和before timestamp。在

afterTimestamp : sample value - 1279044824 : Retrieve the first results to follow these seconds since epoch. This should be useful for paging forward in time, or when polling for changes. To avoid missing results when polling, we recommend subtracting several seconds from the last poll time and then de-duplicating.

beforeTimestamp : sample value - 1279044824 : Retrieve the first results prior to these seconds since epoch. Useful for paging backward in time.

现在我查到epoch是1970年1月1日,包括linux在内的所有地方,但是我如何获得签入,比如在10/10/2012和10/12/2012之间。到2012年10月10日,是不是还要过x秒呢?这听起来异常复杂,错综复杂,不切实际。在

有什么帮助吗?在


Tags: thetosamplefortimevalueresultsfirst

热门问题