Skip to content
TORNLIFE More

New selections for USER API

Started by 1898966 [1898966] on in Suggestions.

28 replies · 150 views · thread synced · 5 days ago · View on torn.com
About this thread

Posts archived: 29 / 29 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
29
Discussion span
→
Authority score
48 / 100
Historical score
28 / 100
Story score
46 / 100
Engagement score
60 / 100

People posting, likes and official posts are not counted for this thread yet: on threads longer than one page they come from a periodic pass over the archive, which has not covered it.

Most-liked replies

1898966 [1898966]
Introduction-
If anyone is wondering what API is: http://api.torn.com/
It allows you to pull info from the site to allow scripting.


"The goal of the Torn API is to provide a fully supported and read-only method for players to pull useful information from Torn about their player, faction, or company. This can be used individually to retrieve information about your account, or you can build a website that the entire community can use to do interesting things with the data exposed via the API."
http://api.torn.com/

For example: the Education selection.
{"education_current":17,"education_timeleft":1454760,"education_completed":[1,7,14,15,16,34,43,44,45,46,47,48,49,50,51,52,112,113,114,115,119,120,126,127]}

It allows you to see what course you are doing, how long left and the courses you have completed.


Suggestion 1-
Like the topic says, I think there should be a "gyms" selection added to the USER section of the API.

The "gyms" selection should display info about:
  • The current gym you are in
    • Name
    • Gains
    • Energy required per train
    • Cost
    • Any notes related to it such as requirements for special gyms
  • Amount of Energy remaining to unlock the next gym
  • Name of next gym
Just to clarify,
some of this info is already available in the TORN section of the api. I am suggesting a new selection for the USER section of the API to allow more personal info.

Suggestion 2-
I think there should also be a "race" selection added to the USER selection of the API.

The "race" selection should display info about:
  • The current race you are in
    • Position
    • Lap
    • Time Remaining
  • Racing Points
  • Racing Class (A-E)
  • Racing Skill
1898966 [1898966]

If anyone is wondering what API is: http://api.torn.com/

It allows you to pull info from the site to allow scripting.


Introduction

The goal of the Torn API is to provide a fully supported and read-only method for players to pull useful information from Torn about their player, faction, or company. This can be used individually to retrieve information about your account, or you can build a website that the entire community can use to do interesting things with the data exposed via the API.


For example: the Education selection.
{"education_current":17,"education_timeleft":1454760,"education_completed":[1,7,14,15,16,34,43,44,45,46,47,48,49,50,51,52,112,113,114,115,119,120,126,127]}

It allows you to see what course you are doing, how long left and the courses you have completed.
HandsomePants [1897243]

Yeah while I agree it would be nice to know, I think we're intentionally left in the dark about Gains and Energy required. Even requirements for the Special gyms are not actually given by Torn, just deducted by players over the years, and confirmed by forum posts and Staff. But still, not just plainly stated at the Gym.

But like Scoot said ... if Name, E per Train, and Cost were made available it would make sense.
1898966 [1898966]

Info about special gyms are already available in the gyms selection in the TORN section of the api site.

Fair enough about the gains info, but if ched added this info, it'd be cool.

Either way, I'm good with it :p

"26":{"name":"Frontline Fitness","stage":4,"cost":50000000,"energy":25,"strength":75,"speed":75,"defense":0,"dexterity":0,"note":"If you lose the requirements to access this gym you will be kicked out. You will however keep your membership and will be able to rejoin when the requirements are met once again."}
HandsomePants [1897243]

Oh you're right, my mistake. I misunderstood your suggestion, you even capitalized USER and we all missed the point :) You're not asking for addl. info about each gym, but that each individual player's gym 'status' be available, i.e. where they are in their Gym Progression. And on second thought there IS a % indicator for how close you are to the next gym that could be included.

So as long as that info was only made available to someone with the correct API key (either the player or a dev that they've given the key), sure I'm all for it. R+ :)
1898966 [1898966]

Yep. This is exactly what I wanted.

Would be be nice to know current gym info while on irc or w/e anyone else wants to do using it.
1898966 [1898966]

What I meant by gains is:

"26":{"name":"Frontline Fitness","stage":4,"cost":50000000,"energy":25,"strength":75,"speed":75,"defense":0,"dexterity":0,"note":"If you lose the requirements to access this gym you will be kicked out. You will however keep your membership and will be able to rejoin when the requirements are met once again."}