Skip to content
TORNLIFE More

API documentation / guide

Started by Buhox [2168398] on in Questions & Answers.

6 replies · 106 views · thread synced · 8 days ago · View on torn.com
About this thread

Posts archived: 7 / 7 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
7
Discussion span
→
People posting
5
Likes on archived posts
12
Posts by staff, officers and moderators
2
Authority score
63 / 100
Historical score
16 / 100
Story score
30 / 100
Engagement score
49 / 100

Most-liked replies

Mentioned in this thread

DeKleineKobini [2114440] ×1

Buhox [2168398]
Hi guys,

Sorry if this is already somewhere on the forum, but I couldnt find it and if its the case, please point me in the right direction.

I am after the API docs / guide as I want to start developing tools for TORN.

Any info is appreciated, thanks
Stephen_Lynx [2869110]
Also, protip: the API is severely limited. You also do well to log torn requests and studying them. There is an extremely useful function:

async getAction({
type: 'post',
action: 'gym.php',
data: {
step: 'changeGym',
gymID: gymToUse
}
});

It returns a promise. This is an example of how a gym is changed. Study the requests and see how it fits with that data. It's much better than doing everything by hand.