Skip to content
TORNLIFE More

Latest message / notification

Started by MTosti [1529508] on in API Development.

13 replies · 164 views · thread synced · 5 days ago · View on torn.com
About this thread

Posts archived: 14 / 14 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
14
Discussion span
→
People posting
5
Likes on archived posts
14
Authority score
67 / 100
Historical score
23 / 100
Story score
34 / 100
Engagement score
57 / 100

Most-liked replies

MTosti [1529508]

Hey guys. What is the fastest way of getting acces to new messages and notifications?

Right now, my solution would be to read with the field notifications how many should I look for, and then with the input for events and mail to acces the first N items.



But, that itself, is a pretty big API call, since you receive a lot more events and notifications than you want to.

Thank you!
byrod [1132772]

Oh wow, that's actually good to know!

Are there more of this kind of 'hidden' parameters? Or was I just blind to see this in the documentation?

/by
MTosti [1529508]

That's actually very useful.

But right now how could I approach this. Remember the timestamp of the last seen event / message in my db and check which ones are new after that timestamp?
Harley [258120] Wiki Contributor

Could be useful if you have some kind of app which always displays the last X events in a tab... [:tongue:]