Skip to content
TORNLIFE More

API chain more value needed

Started by UcanTeneke [10611] on in API Development.

5 replies · 104 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 6 / 6 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
6
Discussion span
→
People posting
3
Likes on archived posts
4
Authority score
66 / 100
Historical score
25 / 100
Story score
29 / 100
Engagement score
47 / 100
UcanTeneke [10611]

Hello dear torn api developer,

API currently returns only 5 values for "faction/chain" selection. When a chain is on cooldown, there is no way to know when the chain ended or got broke, with the given data.

I suggest another value in the array with the key "end" resulting in something like: apiReturn[] = { end: (cooldown > 0) ? timestamp_ended : 0 }; so we know for sure with did_it_end = (end > 0 && cooldown > 0);

 

Thanks in advance.
Pi77Bull [2082618]

You could get the timestamp_ended from the last hit of the chain from faction/attacks selection and if it died from timing out you would need to add 5 minutes to the timestamp.

But yeah, having the timestamp_ended in the faction/chain selection would make things a little bit easier.
Helcostr [1934501] Wiki Editor

oh yeah... i was thinking about it right before they released that specific update, and even noticed it when it rolled out: i could see other's awesome chains