Skip to content
TORNLIFE More

API: Better "From"-function for logs

Started by Jubsu [2674033] on in Suggestions.

0 replies · 84 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 1 / 1 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
1
Discussion span
→
People posting
1
Likes on archived posts
6
Authority score
25 / 100
Historical score
18 / 100
Story score
32 / 100
Engagement score
35 / 100
Jubsu [2674033]
Hi.
My suggestion is:
Make "from"-function of API log call retrieve the first log entries after the specified time.

Background:
Currently I imagine "To"-function which retrieves entries UP TO the specified time is very important and necessary part of API calls when you deal with logs. Without it, we could only get the latest entries instead of the older logs we need.
However it's counterpart working in the other direction (which I assume is just as common if not more so) does not work the same way. You still only get the latest entries instead of the specified time. "From"-function only reduces the amount of entries in the set.

So with my suggestion if you look for logs "From" 1/1/2021, you would get the 100 first log entries from the start of the year. I don't know if you can simply sort the logs otherway around, then do what "to"-function does, but I'll leave that part to you