Skip to content
TORNLIFE More

[API] Events endpoint

Started by zachwozn [2301700] on in Bugs & Issues.

3 replies · 170 views · thread synced · 9 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 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
4
Discussion span
→
People posting
4
Likes on archived posts
43
Posts by staff, officers and moderators
2
Authority score
57 / 100
Historical score
40 / 100
Story score
53 / 100
Engagement score
53 / 100

Most-liked replies

zachwozn [2301700]
Torns Calendar is a static list of events every year.
Having an endpoint would make it a little easier to automatically implement events via tools instead of manually grabbing each event at the start of each year. Consider a new endpoint torn -> events

Looking something like this

{
"event_name": {
"start_time": 1714316465,
"end_time": 1715316465,
"event_details": "Details of event",
"user_start_times": True/False
}
}

With start and end times defaulting to noon on the start and end days.
Lazerpent [2112641]
100% this would be very nice.

only change I could see is rather than having a start and end date have a start and duration. (Or both!). Not super important though this is extremely easy to calculate with addition or subtraction.
splent [2088243] Admin Staff

Hey zachwozn, 

 

Thanks for your suggestion! It looks like I forgot to notify you in this thread, but I'm sure you've already seen this is now available in API v2:

https://www.torn.com/swagger.php#/Torn/e95c96ef528248341647a5704630320e 

 

And there's also 'user' -> 'calendar' which contains user's calendar start time: 

https://www.torn.com/swagger.php#/User/4cc4cc6fa3764f9732db9589e91d7739 

 

So I'll finally mark this bug report as fixed. 


Thanks!