Skip to content
TORNLIFE More

Faction OC API Change

Started by Helcostr [1934501] Wiki Editor on in API Development.

7 replies · 129 views · thread synced · 6 days ago · View on torn.com
About this thread

Posts archived: 8 / 8 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
8
Discussion span
→
People posting
2
Likes on archived posts
5
Authority score
70 / 100
Historical score
32 / 100
Story score
29 / 100
Engagement score
51 / 100
GalloInfligo [2133394]
as long as they either deleted the null ones, or did something so i could find the current OC's as compared to all of them in that api pull lol
Helcostr [1934501] Wiki Editor
To find the current OC, you just need to look for time_left zero, initiated zero.

Not sure why you are using the null as a reference to figure out if things are started...
GalloInfligo [2133394]
well to be honest I totally missed the initiated line in the API call, so I was searching the users ID, then doing a if != null etc to get to the current running crime instead of all the past crimes. so its streamlined now searching for that line instead now.

Were using javascript, and have a bot command to let our members see when their OC is due, because we are a travel faction, and this lets you check your OC time while flying etc... A seperate command to see your partners, incase you need to message them for being late etc...